pulp_rpm_client 3.18.0.dev1651381596 → 3.18.0.dev1651552515

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.

Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -8
  3. data/docs/AcsRpmApi.md +228 -0
  4. data/docs/DistributionsRpmApi.md +228 -0
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PublicationsRpmApi.md +228 -0
  10. data/docs/RemotesRpmApi.md +228 -0
  11. data/docs/RemotesUlnApi.md +228 -0
  12. data/docs/RepositoriesRpmApi.md +228 -0
  13. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +268 -0
  14. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +268 -0
  15. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +268 -0
  16. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +268 -0
  17. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +268 -0
  18. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +268 -0
  19. data/lib/pulp_rpm_client/models/my_permissions_response.rb +213 -0
  20. data/lib/pulp_rpm_client/models/nested_role.rb +234 -0
  21. data/lib/pulp_rpm_client/models/nested_role_response.rb +234 -0
  22. data/lib/pulp_rpm_client/models/object_roles_response.rb +213 -0
  23. data/lib/pulp_rpm_client/version.rb +1 -1
  24. data/lib/pulp_rpm_client.rb +4 -0
  25. data/spec/api/acs_rpm_api_spec.rb +50 -0
  26. data/spec/api/distributions_rpm_api_spec.rb +50 -0
  27. data/spec/api/publications_rpm_api_spec.rb +50 -0
  28. data/spec/api/remotes_rpm_api_spec.rb +50 -0
  29. data/spec/api/remotes_uln_api_spec.rb +50 -0
  30. data/spec/api/repositories_rpm_api_spec.rb +50 -0
  31. data/spec/models/my_permissions_response_spec.rb +41 -0
  32. data/spec/models/nested_role_response_spec.rb +53 -0
  33. data/spec/models/nested_role_spec.rb +53 -0
  34. data/spec/models/object_roles_response_spec.rb +41 -0
  35. 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]
@@ -241,6 +309,138 @@ module PulpRpmClient
241
309
  return data, status_code, headers
242
310
  end
243
311
 
312
+ # List roles assigned to this object.
313
+ # @param rpm_rpm_publication_href [String]
314
+ # @param [Hash] opts the optional parameters
315
+ # @option opts [String] :fields A list of fields to include in the response.
316
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
317
+ # @return [ObjectRolesResponse]
318
+ def list_roles(rpm_rpm_publication_href, opts = {})
319
+ data, _status_code, _headers = list_roles_with_http_info(rpm_rpm_publication_href, opts)
320
+ data
321
+ end
322
+
323
+ # List roles assigned to this object.
324
+ # @param rpm_rpm_publication_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 [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
329
+ def list_roles_with_http_info(rpm_rpm_publication_href, opts = {})
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug 'Calling API: PublicationsRpmApi.list_roles ...'
332
+ end
333
+ # verify the required parameter 'rpm_rpm_publication_href' is set
334
+ if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
335
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.list_roles"
336
+ end
337
+ # resource path
338
+ local_var_path = '{rpm_rpm_publication_href}list_roles/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
339
+
340
+ # query parameters
341
+ query_params = opts[:query_params] || {}
342
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
343
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
344
+
345
+ # header parameters
346
+ header_params = opts[:header_params] || {}
347
+ # HTTP header 'Accept' (if needed)
348
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
349
+
350
+ # form parameters
351
+ form_params = opts[:form_params] || {}
352
+
353
+ # http body (model)
354
+ post_body = opts[:body]
355
+
356
+ # return_type
357
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
358
+
359
+ # auth_names
360
+ auth_names = opts[:auth_names] || ['basicAuth']
361
+
362
+ new_options = opts.merge(
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names,
368
+ :return_type => return_type
369
+ )
370
+
371
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug "API called: PublicationsRpmApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
+ end
375
+ return data, status_code, headers
376
+ end
377
+
378
+ # List permissions available to the current user on this object.
379
+ # @param rpm_rpm_publication_href [String]
380
+ # @param [Hash] opts the optional parameters
381
+ # @option opts [String] :fields A list of fields to include in the response.
382
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
383
+ # @return [MyPermissionsResponse]
384
+ def my_permissions(rpm_rpm_publication_href, opts = {})
385
+ data, _status_code, _headers = my_permissions_with_http_info(rpm_rpm_publication_href, opts)
386
+ data
387
+ end
388
+
389
+ # List permissions available to the current user on this object.
390
+ # @param rpm_rpm_publication_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 [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
395
+ def my_permissions_with_http_info(rpm_rpm_publication_href, opts = {})
396
+ if @api_client.config.debugging
397
+ @api_client.config.logger.debug 'Calling API: PublicationsRpmApi.my_permissions ...'
398
+ end
399
+ # verify the required parameter 'rpm_rpm_publication_href' is set
400
+ if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
401
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.my_permissions"
402
+ end
403
+ # resource path
404
+ local_var_path = '{rpm_rpm_publication_href}my_permissions/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
405
+
406
+ # query parameters
407
+ query_params = opts[:query_params] || {}
408
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
409
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
410
+
411
+ # header parameters
412
+ header_params = opts[:header_params] || {}
413
+ # HTTP header 'Accept' (if needed)
414
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
415
+
416
+ # form parameters
417
+ form_params = opts[:form_params] || {}
418
+
419
+ # http body (model)
420
+ post_body = opts[:body]
421
+
422
+ # return_type
423
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
424
+
425
+ # auth_names
426
+ auth_names = opts[:auth_names] || ['basicAuth']
427
+
428
+ new_options = opts.merge(
429
+ :header_params => header_params,
430
+ :query_params => query_params,
431
+ :form_params => form_params,
432
+ :body => post_body,
433
+ :auth_names => auth_names,
434
+ :return_type => return_type
435
+ )
436
+
437
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
438
+ if @api_client.config.debugging
439
+ @api_client.config.logger.debug "API called: PublicationsRpmApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
440
+ end
441
+ return data, status_code, headers
442
+ end
443
+
244
444
  # Inspect a rpm publication
245
445
  # ViewSet for Rpm Publications.
246
446
  # @param rpm_rpm_publication_href [String]
@@ -308,5 +508,73 @@ module PulpRpmClient
308
508
  end
309
509
  return data, status_code, headers
310
510
  end
511
+
512
+ # Remove a role for this object from users/groups.
513
+ # @param rpm_rpm_publication_href [String]
514
+ # @param nested_role [NestedRole]
515
+ # @param [Hash] opts the optional parameters
516
+ # @return [NestedRoleResponse]
517
+ def remove_role(rpm_rpm_publication_href, nested_role, opts = {})
518
+ data, _status_code, _headers = remove_role_with_http_info(rpm_rpm_publication_href, nested_role, opts)
519
+ data
520
+ end
521
+
522
+ # Remove a role for this object from users/groups.
523
+ # @param rpm_rpm_publication_href [String]
524
+ # @param nested_role [NestedRole]
525
+ # @param [Hash] opts the optional parameters
526
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
527
+ def remove_role_with_http_info(rpm_rpm_publication_href, nested_role, opts = {})
528
+ if @api_client.config.debugging
529
+ @api_client.config.logger.debug 'Calling API: PublicationsRpmApi.remove_role ...'
530
+ end
531
+ # verify the required parameter 'rpm_rpm_publication_href' is set
532
+ if @api_client.config.client_side_validation && rpm_rpm_publication_href.nil?
533
+ fail ArgumentError, "Missing the required parameter 'rpm_rpm_publication_href' when calling PublicationsRpmApi.remove_role"
534
+ end
535
+ # verify the required parameter 'nested_role' is set
536
+ if @api_client.config.client_side_validation && nested_role.nil?
537
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsRpmApi.remove_role"
538
+ end
539
+ # resource path
540
+ local_var_path = '{rpm_rpm_publication_href}remove_role/'.sub('{' + 'rpm_rpm_publication_href' + '}', CGI.escape(rpm_rpm_publication_href.to_s).gsub('%2F', '/'))
541
+
542
+ # query parameters
543
+ query_params = opts[:query_params] || {}
544
+
545
+ # header parameters
546
+ header_params = opts[:header_params] || {}
547
+ # HTTP header 'Accept' (if needed)
548
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
549
+ # HTTP header 'Content-Type'
550
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
551
+
552
+ # form parameters
553
+ form_params = opts[:form_params] || {}
554
+
555
+ # http body (model)
556
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
557
+
558
+ # return_type
559
+ return_type = opts[:return_type] || 'NestedRoleResponse'
560
+
561
+ # auth_names
562
+ auth_names = opts[:auth_names] || ['basicAuth']
563
+
564
+ new_options = opts.merge(
565
+ :header_params => header_params,
566
+ :query_params => query_params,
567
+ :form_params => form_params,
568
+ :body => post_body,
569
+ :auth_names => auth_names,
570
+ :return_type => return_type
571
+ )
572
+
573
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug "API called: PublicationsRpmApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
576
+ end
577
+ return data, status_code, headers
578
+ end
311
579
  end
312
580
  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]