pulp_rpm_client 3.18.0.dev1651291893 → 3.18.0.dev1651637854
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_publication_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(rpm_rpm_publication_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(rpm_rpm_publication_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param rpm_rpm_publication_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_publication_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'rpm_rpm_publication_href' is set
|
42
|
+
if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.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 PublicationsRpmApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{rpm_rpm_publication_href}add_role/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_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: PublicationsRpmApi#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 publication
|
23
91
|
# Trigger an asynchronous task to create a new RPM content publication.
|
24
92
|
# @param rpm_rpm_publication [RpmRpmPublication]
|
@@ -157,6 +225,7 @@ module PulpRpmClient
|
|
157
225
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
158
226
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
159
227
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
228
|
+
# @option opts [String] :repository Repository referenced by HREF
|
160
229
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
161
230
|
# @option opts [String] :fields A list of fields to include in the response.
|
162
231
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -180,6 +249,7 @@ module PulpRpmClient
|
|
180
249
|
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
181
250
|
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
182
251
|
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
252
|
+
# @option opts [String] :repository Repository referenced by HREF
|
183
253
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
184
254
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
255
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
@@ -204,6 +274,7 @@ module PulpRpmClient
|
|
204
274
|
query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
|
205
275
|
query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
|
206
276
|
query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
|
277
|
+
query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
|
207
278
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
208
279
|
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
209
280
|
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
@@ -241,6 +312,138 @@ module PulpRpmClient
|
|
241
312
|
return data, status_code, headers
|
242
313
|
end
|
243
314
|
|
315
|
+
# List roles assigned to this object.
|
316
|
+
# @param rpm_rpm_publication_href [String]
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
319
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
320
|
+
# @return [ObjectRolesResponse]
|
321
|
+
def list_roles(rpm_rpm_publication_href, opts = {})
|
322
|
+
data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_publication_href, opts)
|
323
|
+
data
|
324
|
+
end
|
325
|
+
|
326
|
+
# List roles assigned to this object.
|
327
|
+
# @param rpm_rpm_publication_href [String]
|
328
|
+
# @param [Hash] opts the optional parameters
|
329
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
330
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
331
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
332
|
+
def list_roles_with_http_info(rpm_rpm_publication_href, opts = {})
|
333
|
+
if @api_client.config.debugging
|
334
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list_roles ...'
|
335
|
+
end
|
336
|
+
# verify the required parameter 'rpm_rpm_publication_href' is set
|
337
|
+
if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
|
338
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.list_roles"
|
339
|
+
end
|
340
|
+
# resource path
|
341
|
+
local_var_path = '{rpm_rpm_publication_href}list_roles/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
|
342
|
+
|
343
|
+
# query parameters
|
344
|
+
query_params = opts[:query_params] || {}
|
345
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
346
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
347
|
+
|
348
|
+
# header parameters
|
349
|
+
header_params = opts[:header_params] || {}
|
350
|
+
# HTTP header 'Accept' (if needed)
|
351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
352
|
+
|
353
|
+
# form parameters
|
354
|
+
form_params = opts[:form_params] || {}
|
355
|
+
|
356
|
+
# http body (model)
|
357
|
+
post_body = opts[:body]
|
358
|
+
|
359
|
+
# return_type
|
360
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
361
|
+
|
362
|
+
# auth_names
|
363
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
364
|
+
|
365
|
+
new_options = opts.merge(
|
366
|
+
:header_params => header_params,
|
367
|
+
:query_params => query_params,
|
368
|
+
:form_params => form_params,
|
369
|
+
:body => post_body,
|
370
|
+
:auth_names => auth_names,
|
371
|
+
:return_type => return_type
|
372
|
+
)
|
373
|
+
|
374
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
375
|
+
if @api_client.config.debugging
|
376
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
|
+
end
|
378
|
+
return data, status_code, headers
|
379
|
+
end
|
380
|
+
|
381
|
+
# List permissions available to the current user on this object.
|
382
|
+
# @param rpm_rpm_publication_href [String]
|
383
|
+
# @param [Hash] opts the optional parameters
|
384
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
385
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
386
|
+
# @return [MyPermissionsResponse]
|
387
|
+
def my_permissions(rpm_rpm_publication_href, opts = {})
|
388
|
+
data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_publication_href, opts)
|
389
|
+
data
|
390
|
+
end
|
391
|
+
|
392
|
+
# List permissions available to the current user on this object.
|
393
|
+
# @param rpm_rpm_publication_href [String]
|
394
|
+
# @param [Hash] opts the optional parameters
|
395
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
396
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
397
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
398
|
+
def my_permissions_with_http_info(rpm_rpm_publication_href, opts = {})
|
399
|
+
if @api_client.config.debugging
|
400
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.my_permissions ...'
|
401
|
+
end
|
402
|
+
# verify the required parameter 'rpm_rpm_publication_href' is set
|
403
|
+
if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
|
404
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.my_permissions"
|
405
|
+
end
|
406
|
+
# resource path
|
407
|
+
local_var_path = '{rpm_rpm_publication_href}my_permissions/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
|
408
|
+
|
409
|
+
# query parameters
|
410
|
+
query_params = opts[:query_params] || {}
|
411
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
412
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
413
|
+
|
414
|
+
# header parameters
|
415
|
+
header_params = opts[:header_params] || {}
|
416
|
+
# HTTP header 'Accept' (if needed)
|
417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
418
|
+
|
419
|
+
# form parameters
|
420
|
+
form_params = opts[:form_params] || {}
|
421
|
+
|
422
|
+
# http body (model)
|
423
|
+
post_body = opts[:body]
|
424
|
+
|
425
|
+
# return_type
|
426
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
427
|
+
|
428
|
+
# auth_names
|
429
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
430
|
+
|
431
|
+
new_options = opts.merge(
|
432
|
+
:header_params => header_params,
|
433
|
+
:query_params => query_params,
|
434
|
+
:form_params => form_params,
|
435
|
+
:body => post_body,
|
436
|
+
:auth_names => auth_names,
|
437
|
+
:return_type => return_type
|
438
|
+
)
|
439
|
+
|
440
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
441
|
+
if @api_client.config.debugging
|
442
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
443
|
+
end
|
444
|
+
return data, status_code, headers
|
445
|
+
end
|
446
|
+
|
244
447
|
# Inspect a rpm publication
|
245
448
|
# ViewSet for Rpm Publications.
|
246
449
|
# @param rpm_rpm_publication_href [String]
|
@@ -308,5 +511,73 @@ module PulpRpmClient
|
|
308
511
|
end
|
309
512
|
return data, status_code, headers
|
310
513
|
end
|
514
|
+
|
515
|
+
# Remove a role for this object from users/groups.
|
516
|
+
# @param rpm_rpm_publication_href [String]
|
517
|
+
# @param nested_role [NestedRole]
|
518
|
+
# @param [Hash] opts the optional parameters
|
519
|
+
# @return [NestedRoleResponse]
|
520
|
+
def remove_role(rpm_rpm_publication_href, nested_role, opts = {})
|
521
|
+
data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_publication_href, nested_role, opts)
|
522
|
+
data
|
523
|
+
end
|
524
|
+
|
525
|
+
# Remove a role for this object from users/groups.
|
526
|
+
# @param rpm_rpm_publication_href [String]
|
527
|
+
# @param nested_role [NestedRole]
|
528
|
+
# @param [Hash] opts the optional parameters
|
529
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
530
|
+
def remove_role_with_http_info(rpm_rpm_publication_href, nested_role, opts = {})
|
531
|
+
if @api_client.config.debugging
|
532
|
+
@api_client.config.logger.debug 'Calling API: PublicationsRpmApi.remove_role ...'
|
533
|
+
end
|
534
|
+
# verify the required parameter 'rpm_rpm_publication_href' is set
|
535
|
+
if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
|
536
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.remove_role"
|
537
|
+
end
|
538
|
+
# verify the required parameter 'nested_role' is set
|
539
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
540
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsRpmApi.remove_role"
|
541
|
+
end
|
542
|
+
# resource path
|
543
|
+
local_var_path = '{rpm_rpm_publication_href}remove_role/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
|
544
|
+
|
545
|
+
# query parameters
|
546
|
+
query_params = opts[:query_params] || {}
|
547
|
+
|
548
|
+
# header parameters
|
549
|
+
header_params = opts[:header_params] || {}
|
550
|
+
# HTTP header 'Accept' (if needed)
|
551
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
552
|
+
# HTTP header 'Content-Type'
|
553
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
554
|
+
|
555
|
+
# form parameters
|
556
|
+
form_params = opts[:form_params] || {}
|
557
|
+
|
558
|
+
# http body (model)
|
559
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
560
|
+
|
561
|
+
# return_type
|
562
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
563
|
+
|
564
|
+
# auth_names
|
565
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
566
|
+
|
567
|
+
new_options = opts.merge(
|
568
|
+
:header_params => header_params,
|
569
|
+
:query_params => query_params,
|
570
|
+
:form_params => form_params,
|
571
|
+
:body => post_body,
|
572
|
+
:auth_names => auth_names,
|
573
|
+
:return_type => return_type
|
574
|
+
)
|
575
|
+
|
576
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
577
|
+
if @api_client.config.debugging
|
578
|
+
@api_client.config.logger.debug "API called: PublicationsRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
579
|
+
end
|
580
|
+
return data, status_code, headers
|
581
|
+
end
|
311
582
|
end
|
312
583
|
end
|
@@ -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_remote_href [String]
|
24
|
+
# @param nested_role [NestedRole]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(rpm_rpm_remote_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(rpm_rpm_remote_href, nested_role, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Add a role for this object to users/groups.
|
33
|
+
# @param rpm_rpm_remote_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_remote_href, nested_role, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.add_role ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'rpm_rpm_remote_href' is set
|
42
|
+
if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.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 RemotesRpmApi.add_role"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '{rpm_rpm_remote_href}add_role/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_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: RemotesRpmApi#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 remote
|
23
91
|
# A ViewSet for RpmRemote.
|
24
92
|
# @param rpm_rpm_remote [RpmRpmRemote]
|
@@ -252,6 +320,138 @@ module PulpRpmClient
|
|
252
320
|
return data, status_code, headers
|
253
321
|
end
|
254
322
|
|
323
|
+
# List roles assigned to this object.
|
324
|
+
# @param rpm_rpm_remote_href [String]
|
325
|
+
# @param [Hash] opts the optional parameters
|
326
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
327
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
328
|
+
# @return [ObjectRolesResponse]
|
329
|
+
def list_roles(rpm_rpm_remote_href, opts = {})
|
330
|
+
data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_remote_href, opts)
|
331
|
+
data
|
332
|
+
end
|
333
|
+
|
334
|
+
# List roles assigned to this object.
|
335
|
+
# @param rpm_rpm_remote_href [String]
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
338
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
339
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
340
|
+
def list_roles_with_http_info(rpm_rpm_remote_href, opts = {})
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.list_roles ...'
|
343
|
+
end
|
344
|
+
# verify the required parameter 'rpm_rpm_remote_href' is set
|
345
|
+
if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
|
346
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.list_roles"
|
347
|
+
end
|
348
|
+
# resource path
|
349
|
+
local_var_path = '{rpm_rpm_remote_href}list_roles/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_href.to_s).gsub('%2F', '/'))
|
350
|
+
|
351
|
+
# query parameters
|
352
|
+
query_params = opts[:query_params] || {}
|
353
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
354
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
355
|
+
|
356
|
+
# header parameters
|
357
|
+
header_params = opts[:header_params] || {}
|
358
|
+
# HTTP header 'Accept' (if needed)
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
360
|
+
|
361
|
+
# form parameters
|
362
|
+
form_params = opts[:form_params] || {}
|
363
|
+
|
364
|
+
# http body (model)
|
365
|
+
post_body = opts[:body]
|
366
|
+
|
367
|
+
# return_type
|
368
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
369
|
+
|
370
|
+
# auth_names
|
371
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
372
|
+
|
373
|
+
new_options = opts.merge(
|
374
|
+
:header_params => header_params,
|
375
|
+
:query_params => query_params,
|
376
|
+
:form_params => form_params,
|
377
|
+
:body => post_body,
|
378
|
+
:auth_names => auth_names,
|
379
|
+
:return_type => return_type
|
380
|
+
)
|
381
|
+
|
382
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
383
|
+
if @api_client.config.debugging
|
384
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
385
|
+
end
|
386
|
+
return data, status_code, headers
|
387
|
+
end
|
388
|
+
|
389
|
+
# List permissions available to the current user on this object.
|
390
|
+
# @param rpm_rpm_remote_href [String]
|
391
|
+
# @param [Hash] opts the optional parameters
|
392
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
393
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
394
|
+
# @return [MyPermissionsResponse]
|
395
|
+
def my_permissions(rpm_rpm_remote_href, opts = {})
|
396
|
+
data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_remote_href, opts)
|
397
|
+
data
|
398
|
+
end
|
399
|
+
|
400
|
+
# List permissions available to the current user on this object.
|
401
|
+
# @param rpm_rpm_remote_href [String]
|
402
|
+
# @param [Hash] opts the optional parameters
|
403
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
404
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
405
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
406
|
+
def my_permissions_with_http_info(rpm_rpm_remote_href, opts = {})
|
407
|
+
if @api_client.config.debugging
|
408
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.my_permissions ...'
|
409
|
+
end
|
410
|
+
# verify the required parameter 'rpm_rpm_remote_href' is set
|
411
|
+
if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
|
412
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.my_permissions"
|
413
|
+
end
|
414
|
+
# resource path
|
415
|
+
local_var_path = '{rpm_rpm_remote_href}my_permissions/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_href.to_s).gsub('%2F', '/'))
|
416
|
+
|
417
|
+
# query parameters
|
418
|
+
query_params = opts[:query_params] || {}
|
419
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
420
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
421
|
+
|
422
|
+
# header parameters
|
423
|
+
header_params = opts[:header_params] || {}
|
424
|
+
# HTTP header 'Accept' (if needed)
|
425
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
426
|
+
|
427
|
+
# form parameters
|
428
|
+
form_params = opts[:form_params] || {}
|
429
|
+
|
430
|
+
# http body (model)
|
431
|
+
post_body = opts[:body]
|
432
|
+
|
433
|
+
# return_type
|
434
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
435
|
+
|
436
|
+
# auth_names
|
437
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
438
|
+
|
439
|
+
new_options = opts.merge(
|
440
|
+
:header_params => header_params,
|
441
|
+
:query_params => query_params,
|
442
|
+
:form_params => form_params,
|
443
|
+
:body => post_body,
|
444
|
+
:auth_names => auth_names,
|
445
|
+
:return_type => return_type
|
446
|
+
)
|
447
|
+
|
448
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
449
|
+
if @api_client.config.debugging
|
450
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
451
|
+
end
|
452
|
+
return data, status_code, headers
|
453
|
+
end
|
454
|
+
|
255
455
|
# Update a rpm remote
|
256
456
|
# Trigger an asynchronous partial update task
|
257
457
|
# @param rpm_rpm_remote_href [String]
|
@@ -390,6 +590,74 @@ module PulpRpmClient
|
|
390
590
|
return data, status_code, headers
|
391
591
|
end
|
392
592
|
|
593
|
+
# Remove a role for this object from users/groups.
|
594
|
+
# @param rpm_rpm_remote_href [String]
|
595
|
+
# @param nested_role [NestedRole]
|
596
|
+
# @param [Hash] opts the optional parameters
|
597
|
+
# @return [NestedRoleResponse]
|
598
|
+
def remove_role(rpm_rpm_remote_href, nested_role, opts = {})
|
599
|
+
data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_remote_href, nested_role, opts)
|
600
|
+
data
|
601
|
+
end
|
602
|
+
|
603
|
+
# Remove a role for this object from users/groups.
|
604
|
+
# @param rpm_rpm_remote_href [String]
|
605
|
+
# @param nested_role [NestedRole]
|
606
|
+
# @param [Hash] opts the optional parameters
|
607
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
608
|
+
def remove_role_with_http_info(rpm_rpm_remote_href, nested_role, opts = {})
|
609
|
+
if @api_client.config.debugging
|
610
|
+
@api_client.config.logger.debug 'Calling API: RemotesRpmApi.remove_role ...'
|
611
|
+
end
|
612
|
+
# verify the required parameter 'rpm_rpm_remote_href' is set
|
613
|
+
if @api_client.config.client_side_validation && rpm_rpm_remote_href.nil?
|
614
|
+
fail ArgumentError, "Missing the required parameter 'rpm_rpm_remote_href' when calling RemotesRpmApi.remove_role"
|
615
|
+
end
|
616
|
+
# verify the required parameter 'nested_role' is set
|
617
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
618
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesRpmApi.remove_role"
|
619
|
+
end
|
620
|
+
# resource path
|
621
|
+
local_var_path = '{rpm_rpm_remote_href}remove_role/'.sub('{' + 'rpm_rpm_remote_href' + '}', CGI.escape(rpm_rpm_remote_href.to_s).gsub('%2F', '/'))
|
622
|
+
|
623
|
+
# query parameters
|
624
|
+
query_params = opts[:query_params] || {}
|
625
|
+
|
626
|
+
# header parameters
|
627
|
+
header_params = opts[:header_params] || {}
|
628
|
+
# HTTP header 'Accept' (if needed)
|
629
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
630
|
+
# HTTP header 'Content-Type'
|
631
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
632
|
+
|
633
|
+
# form parameters
|
634
|
+
form_params = opts[:form_params] || {}
|
635
|
+
|
636
|
+
# http body (model)
|
637
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
638
|
+
|
639
|
+
# return_type
|
640
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
641
|
+
|
642
|
+
# auth_names
|
643
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
644
|
+
|
645
|
+
new_options = opts.merge(
|
646
|
+
:header_params => header_params,
|
647
|
+
:query_params => query_params,
|
648
|
+
:form_params => form_params,
|
649
|
+
:body => post_body,
|
650
|
+
:auth_names => auth_names,
|
651
|
+
:return_type => return_type
|
652
|
+
)
|
653
|
+
|
654
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
655
|
+
if @api_client.config.debugging
|
656
|
+
@api_client.config.logger.debug "API called: RemotesRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
657
|
+
end
|
658
|
+
return data, status_code, headers
|
659
|
+
end
|
660
|
+
|
393
661
|
# Update a rpm remote
|
394
662
|
# Trigger an asynchronous update task
|
395
663
|
# @param rpm_rpm_remote_href [String]
|