pulp_rpm_client 3.28.0 → 3.28.1
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 +26 -4
- data/docs/ContentAdvisoriesApi.md +152 -2
- data/docs/ContentDistributionTreesApi.md +148 -0
- data/docs/ContentModulemdDefaultsApi.md +150 -2
- data/docs/ContentModulemdObsoletesApi.md +148 -0
- data/docs/ContentModulemdsApi.md +150 -2
- data/docs/ContentPackagecategoriesApi.md +148 -0
- data/docs/ContentPackageenvironmentsApi.md +148 -0
- data/docs/ContentPackagegroupsApi.md +148 -0
- data/docs/ContentPackagelangpacksApi.md +148 -0
- data/docs/ContentPackagesApi.md +152 -2
- data/docs/ContentRepoMetadataFilesApi.md +148 -0
- data/docs/RpmModulemd.md +2 -0
- data/docs/RpmModulemdDefaults.md +2 -0
- data/docs/RpmModulemdDefaultsResponse.md +2 -0
- data/docs/RpmModulemdObsolete.md +2 -0
- data/docs/RpmModulemdObsoleteResponse.md +2 -0
- data/docs/RpmModulemdResponse.md +2 -0
- data/docs/RpmPackageCategoryResponse.md +2 -0
- data/docs/RpmPackageEnvironmentResponse.md +2 -0
- data/docs/RpmPackageGroupResponse.md +2 -0
- data/docs/RpmPackageLangpacksResponse.md +2 -0
- data/docs/RpmPackageResponse.md +2 -0
- data/docs/RpmRepoMetadataFileResponse.md +2 -0
- data/docs/RpmUpdateRecordResponse.md +2 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +154 -3
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +151 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +157 -3
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +151 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file_response.rb +13 -1
- data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +13 -1
- data/lib/pulp_rpm_client/models/unset_label.rb +1 -1
- data/lib/pulp_rpm_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +29 -1
- data/spec/api/content_distribution_trees_api_spec.rb +27 -0
- data/spec/api/content_modulemd_defaults_api_spec.rb +28 -1
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +27 -0
- data/spec/api/content_modulemds_api_spec.rb +28 -1
- data/spec/api/content_packagecategories_api_spec.rb +27 -0
- data/spec/api/content_packageenvironments_api_spec.rb +27 -0
- data/spec/api/content_packagegroups_api_spec.rb +27 -0
- data/spec/api/content_packagelangpacks_api_spec.rb +27 -0
- data/spec/api/content_packages_api_spec.rb +29 -1
- data/spec/api/content_repo_metadata_files_api_spec.rb +27 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_response_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_package_category_response_spec.rb +6 -0
- data/spec/models/rpm_package_environment_response_spec.rb +6 -0
- data/spec/models/rpm_package_group_response_spec.rb +6 -0
- data/spec/models/rpm_package_langpacks_response_spec.rb +6 -0
- data/spec/models/rpm_package_response_spec.rb +6 -0
- data/spec/models/rpm_repo_metadata_file_response_spec.rb +6 -0
- data/spec/models/rpm_update_record_response_spec.rb +6 -0
- metadata +79 -79
@@ -29,6 +29,7 @@ module PulpRpmClient
|
|
29
29
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
30
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
31
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
32
33
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
33
34
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
34
35
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -51,6 +52,7 @@ module PulpRpmClient
|
|
51
52
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
52
53
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
54
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
54
56
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
55
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
56
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -78,6 +80,7 @@ module PulpRpmClient
|
|
78
80
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
79
81
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
80
82
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
83
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
81
84
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
82
85
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
83
86
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -187,5 +190,153 @@ module PulpRpmClient
|
|
187
190
|
end
|
188
191
|
return data, status_code, headers
|
189
192
|
end
|
193
|
+
|
194
|
+
# Set a label
|
195
|
+
# Set a single pulp_label on the object to a specific value or null.
|
196
|
+
# @param rpm_package_environment_href [String]
|
197
|
+
# @param set_label [SetLabel]
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [SetLabelResponse]
|
200
|
+
def set_label(rpm_package_environment_href, set_label, opts = {})
|
201
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_package_environment_href, set_label, opts)
|
202
|
+
data
|
203
|
+
end
|
204
|
+
|
205
|
+
# Set a label
|
206
|
+
# Set a single pulp_label on the object to a specific value or null.
|
207
|
+
# @param rpm_package_environment_href [String]
|
208
|
+
# @param set_label [SetLabel]
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
211
|
+
def set_label_with_http_info(rpm_package_environment_href, set_label, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.set_label ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'rpm_package_environment_href' is set
|
216
|
+
if @api_client.config.client_side_validation && rpm_package_environment_href.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_environment_href' when calling ContentPackageenvironmentsApi.set_label"
|
218
|
+
end
|
219
|
+
# verify the required parameter 'set_label' is set
|
220
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackageenvironmentsApi.set_label"
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '{rpm_package_environment_href}set_label/'.sub('{' + 'rpm_package_environment_href' + '}', CGI.escape(rpm_package_environment_href.to_s).gsub('%2F', '/'))
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = opts[:query_params] || {}
|
228
|
+
|
229
|
+
# header parameters
|
230
|
+
header_params = opts[:header_params] || {}
|
231
|
+
# HTTP header 'Accept' (if needed)
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
233
|
+
# HTTP header 'Content-Type'
|
234
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
235
|
+
if !content_type.nil?
|
236
|
+
header_params['Content-Type'] = content_type
|
237
|
+
end
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = opts[:form_params] || {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
244
|
+
|
245
|
+
# return_type
|
246
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
247
|
+
|
248
|
+
# auth_names
|
249
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
250
|
+
|
251
|
+
new_options = opts.merge(
|
252
|
+
:operation => :"ContentPackageenvironmentsApi.set_label",
|
253
|
+
:header_params => header_params,
|
254
|
+
:query_params => query_params,
|
255
|
+
:form_params => form_params,
|
256
|
+
:body => post_body,
|
257
|
+
:auth_names => auth_names,
|
258
|
+
:return_type => return_type
|
259
|
+
)
|
260
|
+
|
261
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "API called: ContentPackageenvironmentsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Unset a label
|
269
|
+
# Unset a single pulp_label on the object.
|
270
|
+
# @param rpm_package_environment_href [String]
|
271
|
+
# @param unset_label [UnsetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [UnsetLabelResponse]
|
274
|
+
def unset_label(rpm_package_environment_href, unset_label, opts = {})
|
275
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_package_environment_href, unset_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Unset a label
|
280
|
+
# Unset a single pulp_label on the object.
|
281
|
+
# @param rpm_package_environment_href [String]
|
282
|
+
# @param unset_label [UnsetLabel]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
285
|
+
def unset_label_with_http_info(rpm_package_environment_href, unset_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentPackageenvironmentsApi.unset_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'rpm_package_environment_href' is set
|
290
|
+
if @api_client.config.client_side_validation && rpm_package_environment_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_environment_href' when calling ContentPackageenvironmentsApi.unset_label"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'unset_label' is set
|
294
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackageenvironmentsApi.unset_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{rpm_package_environment_href}unset_label/'.sub('{' + 'rpm_package_environment_href' + '}', CGI.escape(rpm_package_environment_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(unset_label)
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"ContentPackageenvironmentsApi.unset_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: ContentPackageenvironmentsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
190
341
|
end
|
191
342
|
end
|
@@ -29,6 +29,7 @@ module PulpRpmClient
|
|
29
29
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
30
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
31
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
32
33
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
33
34
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
34
35
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -51,6 +52,7 @@ module PulpRpmClient
|
|
51
52
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
52
53
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
54
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
54
56
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
55
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
56
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -78,6 +80,7 @@ module PulpRpmClient
|
|
78
80
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
79
81
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
80
82
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
83
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
81
84
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
82
85
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
83
86
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -187,5 +190,153 @@ module PulpRpmClient
|
|
187
190
|
end
|
188
191
|
return data, status_code, headers
|
189
192
|
end
|
193
|
+
|
194
|
+
# Set a label
|
195
|
+
# Set a single pulp_label on the object to a specific value or null.
|
196
|
+
# @param rpm_package_group_href [String]
|
197
|
+
# @param set_label [SetLabel]
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [SetLabelResponse]
|
200
|
+
def set_label(rpm_package_group_href, set_label, opts = {})
|
201
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_package_group_href, set_label, opts)
|
202
|
+
data
|
203
|
+
end
|
204
|
+
|
205
|
+
# Set a label
|
206
|
+
# Set a single pulp_label on the object to a specific value or null.
|
207
|
+
# @param rpm_package_group_href [String]
|
208
|
+
# @param set_label [SetLabel]
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
211
|
+
def set_label_with_http_info(rpm_package_group_href, set_label, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.set_label ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'rpm_package_group_href' is set
|
216
|
+
if @api_client.config.client_side_validation && rpm_package_group_href.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_group_href' when calling ContentPackagegroupsApi.set_label"
|
218
|
+
end
|
219
|
+
# verify the required parameter 'set_label' is set
|
220
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagegroupsApi.set_label"
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '{rpm_package_group_href}set_label/'.sub('{' + 'rpm_package_group_href' + '}', CGI.escape(rpm_package_group_href.to_s).gsub('%2F', '/'))
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = opts[:query_params] || {}
|
228
|
+
|
229
|
+
# header parameters
|
230
|
+
header_params = opts[:header_params] || {}
|
231
|
+
# HTTP header 'Accept' (if needed)
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
233
|
+
# HTTP header 'Content-Type'
|
234
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
235
|
+
if !content_type.nil?
|
236
|
+
header_params['Content-Type'] = content_type
|
237
|
+
end
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = opts[:form_params] || {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
244
|
+
|
245
|
+
# return_type
|
246
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
247
|
+
|
248
|
+
# auth_names
|
249
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
250
|
+
|
251
|
+
new_options = opts.merge(
|
252
|
+
:operation => :"ContentPackagegroupsApi.set_label",
|
253
|
+
:header_params => header_params,
|
254
|
+
:query_params => query_params,
|
255
|
+
:form_params => form_params,
|
256
|
+
:body => post_body,
|
257
|
+
:auth_names => auth_names,
|
258
|
+
:return_type => return_type
|
259
|
+
)
|
260
|
+
|
261
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "API called: ContentPackagegroupsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Unset a label
|
269
|
+
# Unset a single pulp_label on the object.
|
270
|
+
# @param rpm_package_group_href [String]
|
271
|
+
# @param unset_label [UnsetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [UnsetLabelResponse]
|
274
|
+
def unset_label(rpm_package_group_href, unset_label, opts = {})
|
275
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_package_group_href, unset_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Unset a label
|
280
|
+
# Unset a single pulp_label on the object.
|
281
|
+
# @param rpm_package_group_href [String]
|
282
|
+
# @param unset_label [UnsetLabel]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
285
|
+
def unset_label_with_http_info(rpm_package_group_href, unset_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagegroupsApi.unset_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'rpm_package_group_href' is set
|
290
|
+
if @api_client.config.client_side_validation && rpm_package_group_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_group_href' when calling ContentPackagegroupsApi.unset_label"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'unset_label' is set
|
294
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagegroupsApi.unset_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{rpm_package_group_href}unset_label/'.sub('{' + 'rpm_package_group_href' + '}', CGI.escape(rpm_package_group_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(unset_label)
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"ContentPackagegroupsApi.unset_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: ContentPackagegroupsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
190
341
|
end
|
191
342
|
end
|
@@ -29,6 +29,7 @@ module PulpRpmClient
|
|
29
29
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
30
30
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
31
31
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
32
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
32
33
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
33
34
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
34
35
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -51,6 +52,7 @@ module PulpRpmClient
|
|
51
52
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
52
53
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
53
54
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
55
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
54
56
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
55
57
|
# @option opts [String] :repository_version Repository Version referenced by HREF/PRN
|
56
58
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
|
@@ -78,6 +80,7 @@ module PulpRpmClient
|
|
78
80
|
query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
|
79
81
|
query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
|
80
82
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
83
|
+
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
81
84
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
82
85
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
83
86
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
@@ -187,5 +190,153 @@ module PulpRpmClient
|
|
187
190
|
end
|
188
191
|
return data, status_code, headers
|
189
192
|
end
|
193
|
+
|
194
|
+
# Set a label
|
195
|
+
# Set a single pulp_label on the object to a specific value or null.
|
196
|
+
# @param rpm_package_langpacks_href [String]
|
197
|
+
# @param set_label [SetLabel]
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @return [SetLabelResponse]
|
200
|
+
def set_label(rpm_package_langpacks_href, set_label, opts = {})
|
201
|
+
data, _status_code, _headers = set_label_with_http_info(rpm_package_langpacks_href, set_label, opts)
|
202
|
+
data
|
203
|
+
end
|
204
|
+
|
205
|
+
# Set a label
|
206
|
+
# Set a single pulp_label on the object to a specific value or null.
|
207
|
+
# @param rpm_package_langpacks_href [String]
|
208
|
+
# @param set_label [SetLabel]
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
|
211
|
+
def set_label_with_http_info(rpm_package_langpacks_href, set_label, opts = {})
|
212
|
+
if @api_client.config.debugging
|
213
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.set_label ...'
|
214
|
+
end
|
215
|
+
# verify the required parameter 'rpm_package_langpacks_href' is set
|
216
|
+
if @api_client.config.client_side_validation && rpm_package_langpacks_href.nil?
|
217
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_langpacks_href' when calling ContentPackagelangpacksApi.set_label"
|
218
|
+
end
|
219
|
+
# verify the required parameter 'set_label' is set
|
220
|
+
if @api_client.config.client_side_validation && set_label.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentPackagelangpacksApi.set_label"
|
222
|
+
end
|
223
|
+
# resource path
|
224
|
+
local_var_path = '{rpm_package_langpacks_href}set_label/'.sub('{' + 'rpm_package_langpacks_href' + '}', CGI.escape(rpm_package_langpacks_href.to_s).gsub('%2F', '/'))
|
225
|
+
|
226
|
+
# query parameters
|
227
|
+
query_params = opts[:query_params] || {}
|
228
|
+
|
229
|
+
# header parameters
|
230
|
+
header_params = opts[:header_params] || {}
|
231
|
+
# HTTP header 'Accept' (if needed)
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
233
|
+
# HTTP header 'Content-Type'
|
234
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
235
|
+
if !content_type.nil?
|
236
|
+
header_params['Content-Type'] = content_type
|
237
|
+
end
|
238
|
+
|
239
|
+
# form parameters
|
240
|
+
form_params = opts[:form_params] || {}
|
241
|
+
|
242
|
+
# http body (model)
|
243
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
|
244
|
+
|
245
|
+
# return_type
|
246
|
+
return_type = opts[:debug_return_type] || 'SetLabelResponse'
|
247
|
+
|
248
|
+
# auth_names
|
249
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
250
|
+
|
251
|
+
new_options = opts.merge(
|
252
|
+
:operation => :"ContentPackagelangpacksApi.set_label",
|
253
|
+
:header_params => header_params,
|
254
|
+
:query_params => query_params,
|
255
|
+
:form_params => form_params,
|
256
|
+
:body => post_body,
|
257
|
+
:auth_names => auth_names,
|
258
|
+
:return_type => return_type
|
259
|
+
)
|
260
|
+
|
261
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
262
|
+
if @api_client.config.debugging
|
263
|
+
@api_client.config.logger.debug "API called: ContentPackagelangpacksApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
264
|
+
end
|
265
|
+
return data, status_code, headers
|
266
|
+
end
|
267
|
+
|
268
|
+
# Unset a label
|
269
|
+
# Unset a single pulp_label on the object.
|
270
|
+
# @param rpm_package_langpacks_href [String]
|
271
|
+
# @param unset_label [UnsetLabel]
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [UnsetLabelResponse]
|
274
|
+
def unset_label(rpm_package_langpacks_href, unset_label, opts = {})
|
275
|
+
data, _status_code, _headers = unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Unset a label
|
280
|
+
# Unset a single pulp_label on the object.
|
281
|
+
# @param rpm_package_langpacks_href [String]
|
282
|
+
# @param unset_label [UnsetLabel]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
|
285
|
+
def unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts = {})
|
286
|
+
if @api_client.config.debugging
|
287
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagelangpacksApi.unset_label ...'
|
288
|
+
end
|
289
|
+
# verify the required parameter 'rpm_package_langpacks_href' is set
|
290
|
+
if @api_client.config.client_side_validation && rpm_package_langpacks_href.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'rpm_package_langpacks_href' when calling ContentPackagelangpacksApi.unset_label"
|
292
|
+
end
|
293
|
+
# verify the required parameter 'unset_label' is set
|
294
|
+
if @api_client.config.client_side_validation && unset_label.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentPackagelangpacksApi.unset_label"
|
296
|
+
end
|
297
|
+
# resource path
|
298
|
+
local_var_path = '{rpm_package_langpacks_href}unset_label/'.sub('{' + 'rpm_package_langpacks_href' + '}', CGI.escape(rpm_package_langpacks_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(unset_label)
|
318
|
+
|
319
|
+
# return_type
|
320
|
+
return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
|
321
|
+
|
322
|
+
# auth_names
|
323
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
324
|
+
|
325
|
+
new_options = opts.merge(
|
326
|
+
:operation => :"ContentPackagelangpacksApi.unset_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: ContentPackagelangpacksApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
338
|
+
end
|
339
|
+
return data, status_code, headers
|
340
|
+
end
|
190
341
|
end
|
191
342
|
end
|