pulp_deb_client 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -4
  3. data/docs/DebReleaseComponentResponse.md +3 -1
  4. data/docs/DebSourcePackageResponse.md +2 -0
  5. data/docs/DistributionsAptApi.md +232 -0
  6. data/docs/MyPermissionsResponse.md +17 -0
  7. data/docs/NestedRole.md +21 -0
  8. data/docs/NestedRoleResponse.md +21 -0
  9. data/docs/ObjectRolesResponse.md +17 -0
  10. data/docs/PublicationsAptApi.md +232 -0
  11. data/docs/PublicationsVerbatimApi.md +232 -0
  12. data/docs/RemotesAptApi.md +232 -0
  13. data/docs/RepositoriesAptApi.md +232 -0
  14. data/lib/pulp_deb_client/api/distributions_apt_api.rb +276 -0
  15. data/lib/pulp_deb_client/api/publications_apt_api.rb +276 -0
  16. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +276 -0
  17. data/lib/pulp_deb_client/api/remotes_apt_api.rb +276 -0
  18. data/lib/pulp_deb_client/api/repositories_apt_api.rb +276 -0
  19. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  20. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
  21. data/lib/pulp_deb_client/models/deb_release_component_response.rb +14 -4
  22. data/lib/pulp_deb_client/models/deb_source_package_response.rb +11 -1
  23. data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
  24. data/lib/pulp_deb_client/models/nested_role.rb +253 -0
  25. data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
  26. data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
  27. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  28. data/lib/pulp_deb_client/version.rb +1 -1
  29. data/lib/pulp_deb_client.rb +4 -0
  30. data/spec/api/distributions_apt_api_spec.rb +54 -0
  31. data/spec/api/publications_apt_api_spec.rb +54 -0
  32. data/spec/api/publications_verbatim_api_spec.rb +54 -0
  33. data/spec/api/remotes_apt_api_spec.rb +54 -0
  34. data/spec/api/repositories_apt_api_spec.rb +54 -0
  35. data/spec/models/deb_release_component_response_spec.rb +6 -0
  36. data/spec/models/deb_source_package_response_spec.rb +6 -0
  37. data/spec/models/my_permissions_response_spec.rb +41 -0
  38. data/spec/models/nested_role_response_spec.rb +53 -0
  39. data/spec/models/nested_role_spec.rb +53 -0
  40. data/spec/models/object_roles_response_spec.rb +41 -0
  41. metadata +95 -79
@@ -19,6 +19,76 @@ module PulpDebClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
23
+ # Add a role for this object to users/groups.
24
+ # @param deb_verbatim_publication_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(deb_verbatim_publication_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(deb_verbatim_publication_href, nested_role, opts)
30
+ data
31
+ end
32
+
33
+ # Add a role
34
+ # Add a role for this object to users/groups.
35
+ # @param deb_verbatim_publication_href [String]
36
+ # @param nested_role [NestedRole]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
+ def add_role_with_http_info(deb_verbatim_publication_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'deb_verbatim_publication_href' is set
44
+ if @api_client.config.client_side_validation && deb_verbatim_publication_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'deb_verbatim_publication_href' when calling PublicationsVerbatimApi.add_role"
46
+ end
47
+ # verify the required parameter 'nested_role' is set
48
+ if @api_client.config.client_side_validation && nested_role.nil?
49
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsVerbatimApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{deb_verbatim_publication_href}add_role/'.sub('{' + 'deb_verbatim_publication_href' + '}', CGI.escape(deb_verbatim_publication_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
69
+
70
+ # return_type
71
+ return_type = opts[:return_type] || 'NestedRoleResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
22
92
  # Create a verbatim publication
23
93
  # Trigger an asynchronous task to publish content
24
94
  # @param deb_verbatim_publication [DebVerbatimPublication]
@@ -260,6 +330,142 @@ module PulpDebClient
260
330
  return data, status_code, headers
261
331
  end
262
332
 
333
+ # List roles
334
+ # List roles assigned to this object.
335
+ # @param deb_verbatim_publication_href [String]
336
+ # @param [Hash] opts the optional parameters
337
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
338
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
339
+ # @return [ObjectRolesResponse]
340
+ def list_roles(deb_verbatim_publication_href, opts = {})
341
+ data, _status_code, _headers = list_roles_with_http_info(deb_verbatim_publication_href, opts)
342
+ data
343
+ end
344
+
345
+ # List roles
346
+ # List roles assigned to this object.
347
+ # @param deb_verbatim_publication_href [String]
348
+ # @param [Hash] opts the optional parameters
349
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
350
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
351
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
352
+ def list_roles_with_http_info(deb_verbatim_publication_href, opts = {})
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.list_roles ...'
355
+ end
356
+ # verify the required parameter 'deb_verbatim_publication_href' is set
357
+ if @api_client.config.client_side_validation && deb_verbatim_publication_href.nil?
358
+ fail ArgumentError, "Missing the required parameter 'deb_verbatim_publication_href' when calling PublicationsVerbatimApi.list_roles"
359
+ end
360
+ # resource path
361
+ local_var_path = '{deb_verbatim_publication_href}list_roles/'.sub('{' + 'deb_verbatim_publication_href' + '}', CGI.escape(deb_verbatim_publication_href.to_s).gsub('%2F', '/'))
362
+
363
+ # query parameters
364
+ query_params = opts[:query_params] || {}
365
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
366
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
367
+
368
+ # header parameters
369
+ header_params = opts[:header_params] || {}
370
+ # HTTP header 'Accept' (if needed)
371
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
372
+
373
+ # form parameters
374
+ form_params = opts[:form_params] || {}
375
+
376
+ # http body (model)
377
+ post_body = opts[:body]
378
+
379
+ # return_type
380
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
381
+
382
+ # auth_names
383
+ auth_names = opts[:auth_names] || ['basicAuth']
384
+
385
+ new_options = opts.merge(
386
+ :header_params => header_params,
387
+ :query_params => query_params,
388
+ :form_params => form_params,
389
+ :body => post_body,
390
+ :auth_names => auth_names,
391
+ :return_type => return_type
392
+ )
393
+
394
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
395
+ if @api_client.config.debugging
396
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
397
+ end
398
+ return data, status_code, headers
399
+ end
400
+
401
+ # List user permissions
402
+ # List permissions available to the current user on this object.
403
+ # @param deb_verbatim_publication_href [String]
404
+ # @param [Hash] opts the optional parameters
405
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
406
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
407
+ # @return [MyPermissionsResponse]
408
+ def my_permissions(deb_verbatim_publication_href, opts = {})
409
+ data, _status_code, _headers = my_permissions_with_http_info(deb_verbatim_publication_href, opts)
410
+ data
411
+ end
412
+
413
+ # List user permissions
414
+ # List permissions available to the current user on this object.
415
+ # @param deb_verbatim_publication_href [String]
416
+ # @param [Hash] opts the optional parameters
417
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
418
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
419
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
420
+ def my_permissions_with_http_info(deb_verbatim_publication_href, opts = {})
421
+ if @api_client.config.debugging
422
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.my_permissions ...'
423
+ end
424
+ # verify the required parameter 'deb_verbatim_publication_href' is set
425
+ if @api_client.config.client_side_validation && deb_verbatim_publication_href.nil?
426
+ fail ArgumentError, "Missing the required parameter 'deb_verbatim_publication_href' when calling PublicationsVerbatimApi.my_permissions"
427
+ end
428
+ # resource path
429
+ local_var_path = '{deb_verbatim_publication_href}my_permissions/'.sub('{' + 'deb_verbatim_publication_href' + '}', CGI.escape(deb_verbatim_publication_href.to_s).gsub('%2F', '/'))
430
+
431
+ # query parameters
432
+ query_params = opts[:query_params] || {}
433
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
434
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
435
+
436
+ # header parameters
437
+ header_params = opts[:header_params] || {}
438
+ # HTTP header 'Accept' (if needed)
439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
440
+
441
+ # form parameters
442
+ form_params = opts[:form_params] || {}
443
+
444
+ # http body (model)
445
+ post_body = opts[:body]
446
+
447
+ # return_type
448
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
449
+
450
+ # auth_names
451
+ auth_names = opts[:auth_names] || ['basicAuth']
452
+
453
+ new_options = opts.merge(
454
+ :header_params => header_params,
455
+ :query_params => query_params,
456
+ :form_params => form_params,
457
+ :body => post_body,
458
+ :auth_names => auth_names,
459
+ :return_type => return_type
460
+ )
461
+
462
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
463
+ if @api_client.config.debugging
464
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
+ end
466
+ return data, status_code, headers
467
+ end
468
+
263
469
  # Inspect a verbatim publication
264
470
  # An VerbatimPublication is the Pulp-internal representation of a \"mirrored\" AptRepositoryVersion. In other words, the verbatim publisher will recreate the synced subset of some a APT repository using the exact same metadata files and signatures as used by the upstream original. Once a Pulp publication has been created, it can be served by creating a Pulp distribution (in a near atomic action).
265
471
  # @param deb_verbatim_publication_href [String]
@@ -327,5 +533,75 @@ module PulpDebClient
327
533
  end
328
534
  return data, status_code, headers
329
535
  end
536
+
537
+ # Remove a role
538
+ # Remove a role for this object from users/groups.
539
+ # @param deb_verbatim_publication_href [String]
540
+ # @param nested_role [NestedRole]
541
+ # @param [Hash] opts the optional parameters
542
+ # @return [NestedRoleResponse]
543
+ def remove_role(deb_verbatim_publication_href, nested_role, opts = {})
544
+ data, _status_code, _headers = remove_role_with_http_info(deb_verbatim_publication_href, nested_role, opts)
545
+ data
546
+ end
547
+
548
+ # Remove a role
549
+ # Remove a role for this object from users/groups.
550
+ # @param deb_verbatim_publication_href [String]
551
+ # @param nested_role [NestedRole]
552
+ # @param [Hash] opts the optional parameters
553
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
554
+ def remove_role_with_http_info(deb_verbatim_publication_href, nested_role, opts = {})
555
+ if @api_client.config.debugging
556
+ @api_client.config.logger.debug 'Calling API: PublicationsVerbatimApi.remove_role ...'
557
+ end
558
+ # verify the required parameter 'deb_verbatim_publication_href' is set
559
+ if @api_client.config.client_side_validation && deb_verbatim_publication_href.nil?
560
+ fail ArgumentError, "Missing the required parameter 'deb_verbatim_publication_href' when calling PublicationsVerbatimApi.remove_role"
561
+ end
562
+ # verify the required parameter 'nested_role' is set
563
+ if @api_client.config.client_side_validation && nested_role.nil?
564
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling PublicationsVerbatimApi.remove_role"
565
+ end
566
+ # resource path
567
+ local_var_path = '{deb_verbatim_publication_href}remove_role/'.sub('{' + 'deb_verbatim_publication_href' + '}', CGI.escape(deb_verbatim_publication_href.to_s).gsub('%2F', '/'))
568
+
569
+ # query parameters
570
+ query_params = opts[:query_params] || {}
571
+
572
+ # header parameters
573
+ header_params = opts[:header_params] || {}
574
+ # HTTP header 'Accept' (if needed)
575
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
576
+ # HTTP header 'Content-Type'
577
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
578
+
579
+ # form parameters
580
+ form_params = opts[:form_params] || {}
581
+
582
+ # http body (model)
583
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
584
+
585
+ # return_type
586
+ return_type = opts[:return_type] || 'NestedRoleResponse'
587
+
588
+ # auth_names
589
+ auth_names = opts[:auth_names] || ['basicAuth']
590
+
591
+ new_options = opts.merge(
592
+ :header_params => header_params,
593
+ :query_params => query_params,
594
+ :form_params => form_params,
595
+ :body => post_body,
596
+ :auth_names => auth_names,
597
+ :return_type => return_type
598
+ )
599
+
600
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
601
+ if @api_client.config.debugging
602
+ @api_client.config.logger.debug "API called: PublicationsVerbatimApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
603
+ end
604
+ return data, status_code, headers
605
+ end
330
606
  end
331
607
  end
@@ -19,6 +19,76 @@ module PulpDebClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add a role
23
+ # Add a role for this object to users/groups.
24
+ # @param deb_apt_remote_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(deb_apt_remote_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(deb_apt_remote_href, nested_role, opts)
30
+ data
31
+ end
32
+
33
+ # Add a role
34
+ # Add a role for this object to users/groups.
35
+ # @param deb_apt_remote_href [String]
36
+ # @param nested_role [NestedRole]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
+ def add_role_with_http_info(deb_apt_remote_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'deb_apt_remote_href' is set
44
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.add_role"
46
+ end
47
+ # verify the required parameter 'nested_role' is set
48
+ if @api_client.config.client_side_validation && nested_role.nil?
49
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesAptApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{deb_apt_remote_href}add_role/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
69
+
70
+ # return_type
71
+ return_type = opts[:return_type] || 'NestedRoleResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: RemotesAptApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
22
92
  # Create an apt remote
23
93
  # An AptRemote represents an external APT repository content source. It contains the location of the upstream APT repository, as well as the user options that are applied when using the remote to synchronize the upstream repository to Pulp.
24
94
  # @param deb_apt_remote [DebAptRemote]
@@ -280,6 +350,142 @@ module PulpDebClient
280
350
  return data, status_code, headers
281
351
  end
282
352
 
353
+ # List roles
354
+ # List roles assigned to this object.
355
+ # @param deb_apt_remote_href [String]
356
+ # @param [Hash] opts the optional parameters
357
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
358
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
359
+ # @return [ObjectRolesResponse]
360
+ def list_roles(deb_apt_remote_href, opts = {})
361
+ data, _status_code, _headers = list_roles_with_http_info(deb_apt_remote_href, opts)
362
+ data
363
+ end
364
+
365
+ # List roles
366
+ # List roles assigned to this object.
367
+ # @param deb_apt_remote_href [String]
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
370
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
371
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
372
+ def list_roles_with_http_info(deb_apt_remote_href, opts = {})
373
+ if @api_client.config.debugging
374
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.list_roles ...'
375
+ end
376
+ # verify the required parameter 'deb_apt_remote_href' is set
377
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
378
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.list_roles"
379
+ end
380
+ # resource path
381
+ local_var_path = '{deb_apt_remote_href}list_roles/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
382
+
383
+ # query parameters
384
+ query_params = opts[:query_params] || {}
385
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
386
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
387
+
388
+ # header parameters
389
+ header_params = opts[:header_params] || {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
392
+
393
+ # form parameters
394
+ form_params = opts[:form_params] || {}
395
+
396
+ # http body (model)
397
+ post_body = opts[:body]
398
+
399
+ # return_type
400
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
401
+
402
+ # auth_names
403
+ auth_names = opts[:auth_names] || ['basicAuth']
404
+
405
+ new_options = opts.merge(
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => return_type
412
+ )
413
+
414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: RemotesAptApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
420
+
421
+ # List user permissions
422
+ # List permissions available to the current user on this object.
423
+ # @param deb_apt_remote_href [String]
424
+ # @param [Hash] opts the optional parameters
425
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
426
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
427
+ # @return [MyPermissionsResponse]
428
+ def my_permissions(deb_apt_remote_href, opts = {})
429
+ data, _status_code, _headers = my_permissions_with_http_info(deb_apt_remote_href, opts)
430
+ data
431
+ end
432
+
433
+ # List user permissions
434
+ # List permissions available to the current user on this object.
435
+ # @param deb_apt_remote_href [String]
436
+ # @param [Hash] opts the optional parameters
437
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
438
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
439
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
440
+ def my_permissions_with_http_info(deb_apt_remote_href, opts = {})
441
+ if @api_client.config.debugging
442
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.my_permissions ...'
443
+ end
444
+ # verify the required parameter 'deb_apt_remote_href' is set
445
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
446
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.my_permissions"
447
+ end
448
+ # resource path
449
+ local_var_path = '{deb_apt_remote_href}my_permissions/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
450
+
451
+ # query parameters
452
+ query_params = opts[:query_params] || {}
453
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
454
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
455
+
456
+ # header parameters
457
+ header_params = opts[:header_params] || {}
458
+ # HTTP header 'Accept' (if needed)
459
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
460
+
461
+ # form parameters
462
+ form_params = opts[:form_params] || {}
463
+
464
+ # http body (model)
465
+ post_body = opts[:body]
466
+
467
+ # return_type
468
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
469
+
470
+ # auth_names
471
+ auth_names = opts[:auth_names] || ['basicAuth']
472
+
473
+ new_options = opts.merge(
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => return_type
480
+ )
481
+
482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
483
+ if @api_client.config.debugging
484
+ @api_client.config.logger.debug "API called: RemotesAptApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
485
+ end
486
+ return data, status_code, headers
487
+ end
488
+
283
489
  # Update an apt remote
284
490
  # Trigger an asynchronous partial update task
285
491
  # @param deb_apt_remote_href [String]
@@ -418,6 +624,76 @@ module PulpDebClient
418
624
  return data, status_code, headers
419
625
  end
420
626
 
627
+ # Remove a role
628
+ # Remove a role for this object from users/groups.
629
+ # @param deb_apt_remote_href [String]
630
+ # @param nested_role [NestedRole]
631
+ # @param [Hash] opts the optional parameters
632
+ # @return [NestedRoleResponse]
633
+ def remove_role(deb_apt_remote_href, nested_role, opts = {})
634
+ data, _status_code, _headers = remove_role_with_http_info(deb_apt_remote_href, nested_role, opts)
635
+ data
636
+ end
637
+
638
+ # Remove a role
639
+ # Remove a role for this object from users/groups.
640
+ # @param deb_apt_remote_href [String]
641
+ # @param nested_role [NestedRole]
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
644
+ def remove_role_with_http_info(deb_apt_remote_href, nested_role, opts = {})
645
+ if @api_client.config.debugging
646
+ @api_client.config.logger.debug 'Calling API: RemotesAptApi.remove_role ...'
647
+ end
648
+ # verify the required parameter 'deb_apt_remote_href' is set
649
+ if @api_client.config.client_side_validation && deb_apt_remote_href.nil?
650
+ fail ArgumentError, "Missing the required parameter 'deb_apt_remote_href' when calling RemotesAptApi.remove_role"
651
+ end
652
+ # verify the required parameter 'nested_role' is set
653
+ if @api_client.config.client_side_validation && nested_role.nil?
654
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesAptApi.remove_role"
655
+ end
656
+ # resource path
657
+ local_var_path = '{deb_apt_remote_href}remove_role/'.sub('{' + 'deb_apt_remote_href' + '}', CGI.escape(deb_apt_remote_href.to_s).gsub('%2F', '/'))
658
+
659
+ # query parameters
660
+ query_params = opts[:query_params] || {}
661
+
662
+ # header parameters
663
+ header_params = opts[:header_params] || {}
664
+ # HTTP header 'Accept' (if needed)
665
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
666
+ # HTTP header 'Content-Type'
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
668
+
669
+ # form parameters
670
+ form_params = opts[:form_params] || {}
671
+
672
+ # http body (model)
673
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
674
+
675
+ # return_type
676
+ return_type = opts[:return_type] || 'NestedRoleResponse'
677
+
678
+ # auth_names
679
+ auth_names = opts[:auth_names] || ['basicAuth']
680
+
681
+ new_options = opts.merge(
682
+ :header_params => header_params,
683
+ :query_params => query_params,
684
+ :form_params => form_params,
685
+ :body => post_body,
686
+ :auth_names => auth_names,
687
+ :return_type => return_type
688
+ )
689
+
690
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
691
+ if @api_client.config.debugging
692
+ @api_client.config.logger.debug "API called: RemotesAptApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
693
+ end
694
+ return data, status_code, headers
695
+ end
696
+
421
697
  # Set a label
422
698
  # Set a single pulp_label on the object to a specific value or null.
423
699
  # @param deb_apt_remote_href [String]