pulp_rpm_client 3.18.0.dev1651381596 → 3.18.0.dev1651723793
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_rpm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +36 -8
- data/docs/AcsRpmApi.md +228 -0
- data/docs/DistributionsRpmApi.md +228 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PublicationsRpmApi.md +230 -0
- data/docs/RemotesRpmApi.md +228 -0
- data/docs/RemotesUlnApi.md +228 -0
- data/docs/RepositoriesRpmApi.md +228 -0
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +268 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +268 -0
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +271 -0
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +268 -0
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +268 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +268 -0
- data/lib/pulp_rpm_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_rpm_client/models/nested_role.rb +234 -0
- data/lib/pulp_rpm_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_rpm_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +50 -0
- data/spec/api/distributions_rpm_api_spec.rb +50 -0
- data/spec/api/publications_rpm_api_spec.rb +51 -0
- data/spec/api/remotes_rpm_api_spec.rb +50 -0
- data/spec/api/remotes_uln_api_spec.rb +50 -0
- data/spec/api/repositories_rpm_api_spec.rb +50 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- metadata +18 -2
@@ -19,6 +19,74 @@ module PulpRpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role for this object to users/groups.
|
23
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(rpm_rpm_alternate_content_source_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(rpm_rpm_alternate_content_source_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
34
|
+
# @param nested_role [NestedRole]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
37
|
+
def add_role_with_http_info(rpm_rpm_alternate_content_source_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: AcsRpmApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'rpm_rpm_alternate_content_source_href' is set
|
42
|
+
if @api_client.config.client_side_validation && rpm_rpm_alternate_content_source_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_alternate_content_source_href' when calling AcsRpmApi.add_role"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'nested_role' is set
|
46
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling AcsRpmApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{rpm_rpm_alternate_content_source_href}add_role/'.sub('{' + 'rpm_rpm_alternate_content_source_href' + '}', CGI.escape(rpm_rpm_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: AcsRpmApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
22
90
|
# Create a rpm alternate content source
|
23
91
|
# ViewSet for ACS.
|
24
92
|
# @param rpm_rpm_alternate_content_source [RpmRpmAlternateContentSource]
|
@@ -231,6 +299,138 @@ module PulpRpmClient
|
|
231
299
|
return data, status_code, headers
|
232
300
|
end
|
233
301
|
|
302
|
+
# List roles assigned to this object.
|
303
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
304
|
+
# @param [Hash] opts the optional parameters
|
305
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
306
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
307
|
+
# @return [ObjectRolesResponse]
|
308
|
+
def list_roles(rpm_rpm_alternate_content_source_href, opts = {})
|
309
|
+
data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_alternate_content_source_href, opts)
|
310
|
+
data
|
311
|
+
end
|
312
|
+
|
313
|
+
# List roles assigned to this object.
|
314
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
315
|
+
# @param [Hash] opts the optional parameters
|
316
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
317
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
318
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
319
|
+
def list_roles_with_http_info(rpm_rpm_alternate_content_source_href, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug 'Calling API: AcsRpmApi.list_roles ...'
|
322
|
+
end
|
323
|
+
# verify the required parameter 'rpm_rpm_alternate_content_source_href' is set
|
324
|
+
if @api_client.config.client_side_validation && rpm_rpm_alternate_content_source_href.nil?
|
325
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_alternate_content_source_href' when calling AcsRpmApi.list_roles"
|
326
|
+
end
|
327
|
+
# resource path
|
328
|
+
local_var_path = '{rpm_rpm_alternate_content_source_href}list_roles/'.sub('{' + 'rpm_rpm_alternate_content_source_href' + '}', CGI.escape(rpm_rpm_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
329
|
+
|
330
|
+
# query parameters
|
331
|
+
query_params = opts[:query_params] || {}
|
332
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
333
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
334
|
+
|
335
|
+
# header parameters
|
336
|
+
header_params = opts[:header_params] || {}
|
337
|
+
# HTTP header 'Accept' (if needed)
|
338
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
339
|
+
|
340
|
+
# form parameters
|
341
|
+
form_params = opts[:form_params] || {}
|
342
|
+
|
343
|
+
# http body (model)
|
344
|
+
post_body = opts[:body]
|
345
|
+
|
346
|
+
# return_type
|
347
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
348
|
+
|
349
|
+
# auth_names
|
350
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
351
|
+
|
352
|
+
new_options = opts.merge(
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => return_type
|
359
|
+
)
|
360
|
+
|
361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
362
|
+
if @api_client.config.debugging
|
363
|
+
@api_client.config.logger.debug "API called: AcsRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
364
|
+
end
|
365
|
+
return data, status_code, headers
|
366
|
+
end
|
367
|
+
|
368
|
+
# List permissions available to the current user on this object.
|
369
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
370
|
+
# @param [Hash] opts the optional parameters
|
371
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
372
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
373
|
+
# @return [MyPermissionsResponse]
|
374
|
+
def my_permissions(rpm_rpm_alternate_content_source_href, opts = {})
|
375
|
+
data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_alternate_content_source_href, opts)
|
376
|
+
data
|
377
|
+
end
|
378
|
+
|
379
|
+
# List permissions available to the current user on this object.
|
380
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
381
|
+
# @param [Hash] opts the optional parameters
|
382
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
383
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
384
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
385
|
+
def my_permissions_with_http_info(rpm_rpm_alternate_content_source_href, opts = {})
|
386
|
+
if @api_client.config.debugging
|
387
|
+
@api_client.config.logger.debug 'Calling API: AcsRpmApi.my_permissions ...'
|
388
|
+
end
|
389
|
+
# verify the required parameter 'rpm_rpm_alternate_content_source_href' is set
|
390
|
+
if @api_client.config.client_side_validation && rpm_rpm_alternate_content_source_href.nil?
|
391
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_alternate_content_source_href' when calling AcsRpmApi.my_permissions"
|
392
|
+
end
|
393
|
+
# resource path
|
394
|
+
local_var_path = '{rpm_rpm_alternate_content_source_href}my_permissions/'.sub('{' + 'rpm_rpm_alternate_content_source_href' + '}', CGI.escape(rpm_rpm_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
395
|
+
|
396
|
+
# query parameters
|
397
|
+
query_params = opts[:query_params] || {}
|
398
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
399
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = opts[:header_params] || {}
|
403
|
+
# HTTP header 'Accept' (if needed)
|
404
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
405
|
+
|
406
|
+
# form parameters
|
407
|
+
form_params = opts[:form_params] || {}
|
408
|
+
|
409
|
+
# http body (model)
|
410
|
+
post_body = opts[:body]
|
411
|
+
|
412
|
+
# return_type
|
413
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
414
|
+
|
415
|
+
# auth_names
|
416
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
417
|
+
|
418
|
+
new_options = opts.merge(
|
419
|
+
:header_params => header_params,
|
420
|
+
:query_params => query_params,
|
421
|
+
:form_params => form_params,
|
422
|
+
:body => post_body,
|
423
|
+
:auth_names => auth_names,
|
424
|
+
:return_type => return_type
|
425
|
+
)
|
426
|
+
|
427
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
428
|
+
if @api_client.config.debugging
|
429
|
+
@api_client.config.logger.debug "API called: AcsRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
430
|
+
end
|
431
|
+
return data, status_code, headers
|
432
|
+
end
|
433
|
+
|
234
434
|
# Update a rpm alternate content source
|
235
435
|
# Trigger an asynchronous partial update task
|
236
436
|
# @param rpm_rpm_alternate_content_source_href [String]
|
@@ -437,6 +637,74 @@ module PulpRpmClient
|
|
437
637
|
return data, status_code, headers
|
438
638
|
end
|
439
639
|
|
640
|
+
# Remove a role for this object from users/groups.
|
641
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
642
|
+
# @param nested_role [NestedRole]
|
643
|
+
# @param [Hash] opts the optional parameters
|
644
|
+
# @return [NestedRoleResponse]
|
645
|
+
def remove_role(rpm_rpm_alternate_content_source_href, nested_role, opts = {})
|
646
|
+
data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_alternate_content_source_href, nested_role, opts)
|
647
|
+
data
|
648
|
+
end
|
649
|
+
|
650
|
+
# Remove a role for this object from users/groups.
|
651
|
+
# @param rpm_rpm_alternate_content_source_href [String]
|
652
|
+
# @param nested_role [NestedRole]
|
653
|
+
# @param [Hash] opts the optional parameters
|
654
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
655
|
+
def remove_role_with_http_info(rpm_rpm_alternate_content_source_href, nested_role, opts = {})
|
656
|
+
if @api_client.config.debugging
|
657
|
+
@api_client.config.logger.debug 'Calling API: AcsRpmApi.remove_role ...'
|
658
|
+
end
|
659
|
+
# verify the required parameter 'rpm_rpm_alternate_content_source_href' is set
|
660
|
+
if @api_client.config.client_side_validation && rpm_rpm_alternate_content_source_href.nil?
|
661
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_alternate_content_source_href' when calling AcsRpmApi.remove_role"
|
662
|
+
end
|
663
|
+
# verify the required parameter 'nested_role' is set
|
664
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
665
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling AcsRpmApi.remove_role"
|
666
|
+
end
|
667
|
+
# resource path
|
668
|
+
local_var_path = '{rpm_rpm_alternate_content_source_href}remove_role/'.sub('{' + 'rpm_rpm_alternate_content_source_href' + '}', CGI.escape(rpm_rpm_alternate_content_source_href.to_s).gsub('%2F', '/'))
|
669
|
+
|
670
|
+
# query parameters
|
671
|
+
query_params = opts[:query_params] || {}
|
672
|
+
|
673
|
+
# header parameters
|
674
|
+
header_params = opts[:header_params] || {}
|
675
|
+
# HTTP header 'Accept' (if needed)
|
676
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
677
|
+
# HTTP header 'Content-Type'
|
678
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
679
|
+
|
680
|
+
# form parameters
|
681
|
+
form_params = opts[:form_params] || {}
|
682
|
+
|
683
|
+
# http body (model)
|
684
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
685
|
+
|
686
|
+
# return_type
|
687
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
688
|
+
|
689
|
+
# auth_names
|
690
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
691
|
+
|
692
|
+
new_options = opts.merge(
|
693
|
+
:header_params => header_params,
|
694
|
+
:query_params => query_params,
|
695
|
+
:form_params => form_params,
|
696
|
+
:body => post_body,
|
697
|
+
:auth_names => auth_names,
|
698
|
+
:return_type => return_type
|
699
|
+
)
|
700
|
+
|
701
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
702
|
+
if @api_client.config.debugging
|
703
|
+
@api_client.config.logger.debug "API called: AcsRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
704
|
+
end
|
705
|
+
return data, status_code, headers
|
706
|
+
end
|
707
|
+
|
440
708
|
# Update a rpm alternate content source
|
441
709
|
# Trigger an asynchronous update task
|
442
710
|
# @param rpm_rpm_alternate_content_source_href [String]
|
@@ -19,6 +19,74 @@ module PulpRpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Add a role for this object to users/groups.
|
23
|
+
# @param rpm_rpm_distribution_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(rpm_rpm_distribution_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param rpm_rpm_distribution_href [String]
|
34
|
+
# @param nested_role [NestedRole]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
37
|
+
def add_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'rpm_rpm_distribution_href' is set
|
42
|
+
if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.add_role"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'nested_role' is set
|
46
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsRpmApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{rpm_rpm_distribution_href}add_role/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
|
62
|
+
# form parameters
|
63
|
+
form_params = opts[:form_params] || {}
|
64
|
+
|
65
|
+
# http body (model)
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
67
|
+
|
68
|
+
# return_type
|
69
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
70
|
+
|
71
|
+
# auth_names
|
72
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
73
|
+
|
74
|
+
new_options = opts.merge(
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
22
90
|
# Create a rpm distribution
|
23
91
|
# Trigger an asynchronous create task
|
24
92
|
# @param rpm_rpm_distribution [RpmRpmDistribution]
|
@@ -246,6 +314,138 @@ module PulpRpmClient
|
|
246
314
|
return data, status_code, headers
|
247
315
|
end
|
248
316
|
|
317
|
+
# List roles assigned to this object.
|
318
|
+
# @param rpm_rpm_distribution_href [String]
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
321
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
322
|
+
# @return [ObjectRolesResponse]
|
323
|
+
def list_roles(rpm_rpm_distribution_href, opts = {})
|
324
|
+
data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_distribution_href, opts)
|
325
|
+
data
|
326
|
+
end
|
327
|
+
|
328
|
+
# List roles assigned to this object.
|
329
|
+
# @param rpm_rpm_distribution_href [String]
|
330
|
+
# @param [Hash] opts the optional parameters
|
331
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
332
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
333
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
334
|
+
def list_roles_with_http_info(rpm_rpm_distribution_href, opts = {})
|
335
|
+
if @api_client.config.debugging
|
336
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.list_roles ...'
|
337
|
+
end
|
338
|
+
# verify the required parameter 'rpm_rpm_distribution_href' is set
|
339
|
+
if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
|
340
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.list_roles"
|
341
|
+
end
|
342
|
+
# resource path
|
343
|
+
local_var_path = '{rpm_rpm_distribution_href}list_roles/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
|
344
|
+
|
345
|
+
# query parameters
|
346
|
+
query_params = opts[:query_params] || {}
|
347
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
348
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
349
|
+
|
350
|
+
# header parameters
|
351
|
+
header_params = opts[:header_params] || {}
|
352
|
+
# HTTP header 'Accept' (if needed)
|
353
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
354
|
+
|
355
|
+
# form parameters
|
356
|
+
form_params = opts[:form_params] || {}
|
357
|
+
|
358
|
+
# http body (model)
|
359
|
+
post_body = opts[:body]
|
360
|
+
|
361
|
+
# return_type
|
362
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
363
|
+
|
364
|
+
# auth_names
|
365
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
366
|
+
|
367
|
+
new_options = opts.merge(
|
368
|
+
:header_params => header_params,
|
369
|
+
:query_params => query_params,
|
370
|
+
:form_params => form_params,
|
371
|
+
:body => post_body,
|
372
|
+
:auth_names => auth_names,
|
373
|
+
:return_type => return_type
|
374
|
+
)
|
375
|
+
|
376
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
377
|
+
if @api_client.config.debugging
|
378
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
379
|
+
end
|
380
|
+
return data, status_code, headers
|
381
|
+
end
|
382
|
+
|
383
|
+
# List permissions available to the current user on this object.
|
384
|
+
# @param rpm_rpm_distribution_href [String]
|
385
|
+
# @param [Hash] opts the optional parameters
|
386
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
387
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
388
|
+
# @return [MyPermissionsResponse]
|
389
|
+
def my_permissions(rpm_rpm_distribution_href, opts = {})
|
390
|
+
data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_distribution_href, opts)
|
391
|
+
data
|
392
|
+
end
|
393
|
+
|
394
|
+
# List permissions available to the current user on this object.
|
395
|
+
# @param rpm_rpm_distribution_href [String]
|
396
|
+
# @param [Hash] opts the optional parameters
|
397
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
398
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
399
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
400
|
+
def my_permissions_with_http_info(rpm_rpm_distribution_href, opts = {})
|
401
|
+
if @api_client.config.debugging
|
402
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.my_permissions ...'
|
403
|
+
end
|
404
|
+
# verify the required parameter 'rpm_rpm_distribution_href' is set
|
405
|
+
if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
|
406
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.my_permissions"
|
407
|
+
end
|
408
|
+
# resource path
|
409
|
+
local_var_path = '{rpm_rpm_distribution_href}my_permissions/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
|
410
|
+
|
411
|
+
# query parameters
|
412
|
+
query_params = opts[:query_params] || {}
|
413
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
414
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
415
|
+
|
416
|
+
# header parameters
|
417
|
+
header_params = opts[:header_params] || {}
|
418
|
+
# HTTP header 'Accept' (if needed)
|
419
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
420
|
+
|
421
|
+
# form parameters
|
422
|
+
form_params = opts[:form_params] || {}
|
423
|
+
|
424
|
+
# http body (model)
|
425
|
+
post_body = opts[:body]
|
426
|
+
|
427
|
+
# return_type
|
428
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
429
|
+
|
430
|
+
# auth_names
|
431
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
432
|
+
|
433
|
+
new_options = opts.merge(
|
434
|
+
:header_params => header_params,
|
435
|
+
:query_params => query_params,
|
436
|
+
:form_params => form_params,
|
437
|
+
:body => post_body,
|
438
|
+
:auth_names => auth_names,
|
439
|
+
:return_type => return_type
|
440
|
+
)
|
441
|
+
|
442
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
443
|
+
if @api_client.config.debugging
|
444
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
445
|
+
end
|
446
|
+
return data, status_code, headers
|
447
|
+
end
|
448
|
+
|
249
449
|
# Update a rpm distribution
|
250
450
|
# Trigger an asynchronous partial update task
|
251
451
|
# @param rpm_rpm_distribution_href [String]
|
@@ -384,6 +584,74 @@ module PulpRpmClient
|
|
384
584
|
return data, status_code, headers
|
385
585
|
end
|
386
586
|
|
587
|
+
# Remove a role for this object from users/groups.
|
588
|
+
# @param rpm_rpm_distribution_href [String]
|
589
|
+
# @param nested_role [NestedRole]
|
590
|
+
# @param [Hash] opts the optional parameters
|
591
|
+
# @return [NestedRoleResponse]
|
592
|
+
def remove_role(rpm_rpm_distribution_href, nested_role, opts = {})
|
593
|
+
data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts)
|
594
|
+
data
|
595
|
+
end
|
596
|
+
|
597
|
+
# Remove a role for this object from users/groups.
|
598
|
+
# @param rpm_rpm_distribution_href [String]
|
599
|
+
# @param nested_role [NestedRole]
|
600
|
+
# @param [Hash] opts the optional parameters
|
601
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
602
|
+
def remove_role_with_http_info(rpm_rpm_distribution_href, nested_role, opts = {})
|
603
|
+
if @api_client.config.debugging
|
604
|
+
@api_client.config.logger.debug 'Calling API: DistributionsRpmApi.remove_role ...'
|
605
|
+
end
|
606
|
+
# verify the required parameter 'rpm_rpm_distribution_href' is set
|
607
|
+
if @api_client.config.client_side_validation && rpm_rpm_distribution_href.nil?
|
608
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_distribution_href' when calling DistributionsRpmApi.remove_role"
|
609
|
+
end
|
610
|
+
# verify the required parameter 'nested_role' is set
|
611
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
612
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsRpmApi.remove_role"
|
613
|
+
end
|
614
|
+
# resource path
|
615
|
+
local_var_path = '{rpm_rpm_distribution_href}remove_role/'.sub('{' + 'rpm_rpm_distribution_href' + '}', CGI.escape(rpm_rpm_distribution_href.to_s).gsub('%2F', '/'))
|
616
|
+
|
617
|
+
# query parameters
|
618
|
+
query_params = opts[:query_params] || {}
|
619
|
+
|
620
|
+
# header parameters
|
621
|
+
header_params = opts[:header_params] || {}
|
622
|
+
# HTTP header 'Accept' (if needed)
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
624
|
+
# HTTP header 'Content-Type'
|
625
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
626
|
+
|
627
|
+
# form parameters
|
628
|
+
form_params = opts[:form_params] || {}
|
629
|
+
|
630
|
+
# http body (model)
|
631
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
632
|
+
|
633
|
+
# return_type
|
634
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
635
|
+
|
636
|
+
# auth_names
|
637
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
638
|
+
|
639
|
+
new_options = opts.merge(
|
640
|
+
:header_params => header_params,
|
641
|
+
:query_params => query_params,
|
642
|
+
:form_params => form_params,
|
643
|
+
:body => post_body,
|
644
|
+
:auth_names => auth_names,
|
645
|
+
:return_type => return_type
|
646
|
+
)
|
647
|
+
|
648
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
649
|
+
if @api_client.config.debugging
|
650
|
+
@api_client.config.logger.debug "API called: DistributionsRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
651
|
+
end
|
652
|
+
return data, status_code, headers
|
653
|
+
end
|
654
|
+
|
387
655
|
# Update a rpm distribution
|
388
656
|
# Trigger an asynchronous update task
|
389
657
|
# @param rpm_rpm_distribution_href [String]
|