pulp_deb_client 3.3.1 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -4
  3. data/docs/ContentGenericContentsApi.md +10 -8
  4. data/docs/ContentInstallerFileIndicesApi.md +10 -8
  5. data/docs/ContentInstallerPackagesApi.md +10 -8
  6. data/docs/ContentPackageIndicesApi.md +10 -8
  7. data/docs/ContentPackageReleaseComponentsApi.md +10 -8
  8. data/docs/ContentPackagesApi.md +10 -8
  9. data/docs/ContentReleaseArchitecturesApi.md +10 -8
  10. data/docs/ContentReleaseComponentsApi.md +10 -8
  11. data/docs/ContentReleaseFilesApi.md +10 -8
  12. data/docs/ContentReleasesApi.md +10 -8
  13. data/docs/ContentSourceIndicesApi.md +10 -8
  14. data/docs/ContentSourcePackagesApi.md +10 -8
  15. data/docs/ContentSourceReleaseComponentsApi.md +10 -8
  16. data/docs/DebAptDistributionResponse.md +4 -0
  17. data/docs/DebAptPublicationResponse.md +2 -0
  18. data/docs/DebAptRemoteResponse.md +2 -0
  19. data/docs/DebAptRepositoryResponse.md +2 -0
  20. data/docs/DebGenericContentResponse.md +2 -0
  21. data/docs/DebInstallerFileIndexResponse.md +2 -0
  22. data/docs/DebInstallerPackageResponse.md +2 -0
  23. data/docs/DebPackageIndexResponse.md +2 -0
  24. data/docs/DebPackageReleaseComponentResponse.md +2 -0
  25. data/docs/DebPackageResponse.md +2 -0
  26. data/docs/DebReleaseArchitectureResponse.md +2 -0
  27. data/docs/DebReleaseComponentResponse.md +5 -1
  28. data/docs/DebReleaseFileResponse.md +2 -0
  29. data/docs/DebReleaseResponse.md +2 -0
  30. data/docs/DebSourceIndexResponse.md +2 -0
  31. data/docs/DebSourcePackageReleaseComponentResponse.md +2 -0
  32. data/docs/DebSourcePackageResponse.md +4 -0
  33. data/docs/DebVerbatimPublicationResponse.md +2 -0
  34. data/docs/DistributionsAptApi.md +236 -2
  35. data/docs/MyPermissionsResponse.md +17 -0
  36. data/docs/NestedRole.md +21 -0
  37. data/docs/NestedRoleResponse.md +21 -0
  38. data/docs/ObjectRolesResponse.md +17 -0
  39. data/docs/PublicationsAptApi.md +244 -10
  40. data/docs/PublicationsVerbatimApi.md +244 -10
  41. data/docs/RemotesAptApi.md +236 -2
  42. data/docs/RepositoriesAptApi.md +240 -6
  43. data/docs/RepositoriesAptVersionsApi.md +8 -6
  44. data/docs/RepositoryVersionResponse.md +2 -0
  45. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +11 -8
  46. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +11 -8
  47. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +11 -8
  48. data/lib/pulp_deb_client/api/content_package_indices_api.rb +11 -8
  49. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +11 -8
  50. data/lib/pulp_deb_client/api/content_packages_api.rb +11 -8
  51. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +11 -8
  52. data/lib/pulp_deb_client/api/content_release_components_api.rb +11 -8
  53. data/lib/pulp_deb_client/api/content_release_files_api.rb +11 -8
  54. data/lib/pulp_deb_client/api/content_releases_api.rb +11 -8
  55. data/lib/pulp_deb_client/api/content_source_indices_api.rb +11 -8
  56. data/lib/pulp_deb_client/api/content_source_packages_api.rb +11 -8
  57. data/lib/pulp_deb_client/api/content_source_release_components_api.rb +11 -8
  58. data/lib/pulp_deb_client/api/distributions_apt_api.rb +281 -2
  59. data/lib/pulp_deb_client/api/publications_apt_api.rb +290 -11
  60. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +290 -11
  61. data/lib/pulp_deb_client/api/remotes_apt_api.rb +281 -2
  62. data/lib/pulp_deb_client/api/repositories_apt_api.rb +285 -6
  63. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +10 -7
  64. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +21 -1
  65. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +11 -1
  66. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  67. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +31 -21
  68. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +11 -1
  69. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +11 -1
  70. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +11 -1
  71. data/lib/pulp_deb_client/models/deb_installer_package_response.rb +11 -1
  72. data/lib/pulp_deb_client/models/deb_package_index_response.rb +11 -1
  73. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +11 -1
  74. data/lib/pulp_deb_client/models/deb_package_response.rb +11 -1
  75. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +11 -1
  76. data/lib/pulp_deb_client/models/deb_release_component_response.rb +24 -4
  77. data/lib/pulp_deb_client/models/deb_release_file_response.rb +11 -1
  78. data/lib/pulp_deb_client/models/deb_release_response.rb +11 -1
  79. data/lib/pulp_deb_client/models/deb_source_index_response.rb +11 -1
  80. data/lib/pulp_deb_client/models/deb_source_package_release_component_response.rb +11 -1
  81. data/lib/pulp_deb_client/models/deb_source_package_response.rb +21 -1
  82. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +11 -1
  83. data/lib/pulp_deb_client/models/my_permissions_response.rb +213 -0
  84. data/lib/pulp_deb_client/models/nested_role.rb +253 -0
  85. data/lib/pulp_deb_client/models/nested_role_response.rb +234 -0
  86. data/lib/pulp_deb_client/models/object_roles_response.rb +213 -0
  87. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  88. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +1 -1
  89. data/lib/pulp_deb_client/models/repository_version_response.rb +12 -2
  90. data/lib/pulp_deb_client/version.rb +1 -1
  91. data/lib/pulp_deb_client.rb +4 -0
  92. data/spec/api/content_generic_contents_api_spec.rb +5 -4
  93. data/spec/api/content_installer_file_indices_api_spec.rb +5 -4
  94. data/spec/api/content_installer_packages_api_spec.rb +5 -4
  95. data/spec/api/content_package_indices_api_spec.rb +5 -4
  96. data/spec/api/content_package_release_components_api_spec.rb +5 -4
  97. data/spec/api/content_packages_api_spec.rb +5 -4
  98. data/spec/api/content_release_architectures_api_spec.rb +5 -4
  99. data/spec/api/content_release_components_api_spec.rb +5 -4
  100. data/spec/api/content_release_files_api_spec.rb +5 -4
  101. data/spec/api/content_releases_api_spec.rb +5 -4
  102. data/spec/api/content_source_indices_api_spec.rb +5 -4
  103. data/spec/api/content_source_packages_api_spec.rb +5 -4
  104. data/spec/api/content_source_release_components_api_spec.rb +5 -4
  105. data/spec/api/distributions_apt_api_spec.rb +56 -1
  106. data/spec/api/publications_apt_api_spec.rb +60 -5
  107. data/spec/api/publications_verbatim_api_spec.rb +60 -5
  108. data/spec/api/remotes_apt_api_spec.rb +56 -1
  109. data/spec/api/repositories_apt_api_spec.rb +58 -3
  110. data/spec/api/repositories_apt_versions_api_spec.rb +4 -3
  111. data/spec/models/deb_apt_distribution_response_spec.rb +12 -0
  112. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  113. data/spec/models/deb_apt_remote_response_spec.rb +6 -0
  114. data/spec/models/deb_apt_repository_response_spec.rb +6 -0
  115. data/spec/models/deb_generic_content_response_spec.rb +6 -0
  116. data/spec/models/deb_installer_file_index_response_spec.rb +6 -0
  117. data/spec/models/deb_installer_package_response_spec.rb +6 -0
  118. data/spec/models/deb_package_index_response_spec.rb +6 -0
  119. data/spec/models/deb_package_release_component_response_spec.rb +6 -0
  120. data/spec/models/deb_package_response_spec.rb +6 -0
  121. data/spec/models/deb_release_architecture_response_spec.rb +6 -0
  122. data/spec/models/deb_release_component_response_spec.rb +12 -0
  123. data/spec/models/deb_release_file_response_spec.rb +6 -0
  124. data/spec/models/deb_release_response_spec.rb +6 -0
  125. data/spec/models/deb_source_index_response_spec.rb +6 -0
  126. data/spec/models/deb_source_package_release_component_response_spec.rb +6 -0
  127. data/spec/models/deb_source_package_response_spec.rb +12 -0
  128. data/spec/models/deb_verbatim_publication_response_spec.rb +6 -0
  129. data/spec/models/my_permissions_response_spec.rb +41 -0
  130. data/spec/models/nested_role_response_spec.rb +53 -0
  131. data/spec/models/nested_role_spec.rb +53 -0
  132. data/spec/models/object_roles_response_spec.rb +41 -0
  133. data/spec/models/repository_version_response_spec.rb +6 -0
  134. metadata +91 -75
@@ -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_distribution_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [NestedRoleResponse]
28
+ def add_role(deb_apt_distribution_href, nested_role, opts = {})
29
+ data, _status_code, _headers = add_role_with_http_info(deb_apt_distribution_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_distribution_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_distribution_href, nested_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.add_role ...'
42
+ end
43
+ # verify the required parameter 'deb_apt_distribution_href' is set
44
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.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 DistributionsAptApi.add_role"
50
+ end
51
+ # resource path
52
+ local_var_path = '{deb_apt_distribution_href}add_role/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_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: DistributionsAptApi#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 distribution
23
93
  # Trigger an asynchronous create task
24
94
  # @param deb_apt_distribution [DebAptDistribution]
@@ -164,10 +234,11 @@ module PulpDebClient
164
234
  # @option opts [String] :name__startswith Filter results where name starts with value
165
235
  # @option opts [Integer] :offset The initial index from which to return the results.
166
236
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
237
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
167
238
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
168
239
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
169
240
  # @option opts [String] :pulp_label_select Filter labels by search string
170
- # @option opts [String] :q
241
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
171
242
  # @option opts [String] :repository Filter results where repository matches value
172
243
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
173
244
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -198,10 +269,11 @@ module PulpDebClient
198
269
  # @option opts [String] :name__startswith Filter results where name starts with value
199
270
  # @option opts [Integer] :offset The initial index from which to return the results.
200
271
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
272
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
201
273
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
202
274
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
203
275
  # @option opts [String] :pulp_label_select Filter labels by search string
204
- # @option opts [String] :q
276
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
205
277
  # @option opts [String] :repository Filter results where repository matches value
206
278
  # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
207
279
  # @option opts [String] :with_content Filter distributions based on the content served by them
@@ -237,6 +309,7 @@ module PulpDebClient
237
309
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
238
310
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
239
311
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
312
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
240
313
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
241
314
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
242
315
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
@@ -280,6 +353,142 @@ module PulpDebClient
280
353
  return data, status_code, headers
281
354
  end
282
355
 
356
+ # List roles
357
+ # List roles assigned to this object.
358
+ # @param deb_apt_distribution_href [String]
359
+ # @param [Hash] opts the optional parameters
360
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
361
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
362
+ # @return [ObjectRolesResponse]
363
+ def list_roles(deb_apt_distribution_href, opts = {})
364
+ data, _status_code, _headers = list_roles_with_http_info(deb_apt_distribution_href, opts)
365
+ data
366
+ end
367
+
368
+ # List roles
369
+ # List roles assigned to this object.
370
+ # @param deb_apt_distribution_href [String]
371
+ # @param [Hash] opts the optional parameters
372
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
373
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
374
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
375
+ def list_roles_with_http_info(deb_apt_distribution_href, opts = {})
376
+ if @api_client.config.debugging
377
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.list_roles ...'
378
+ end
379
+ # verify the required parameter 'deb_apt_distribution_href' is set
380
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
381
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.list_roles"
382
+ end
383
+ # resource path
384
+ local_var_path = '{deb_apt_distribution_href}list_roles/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
385
+
386
+ # query parameters
387
+ query_params = opts[:query_params] || {}
388
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
389
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
390
+
391
+ # header parameters
392
+ header_params = opts[:header_params] || {}
393
+ # HTTP header 'Accept' (if needed)
394
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
395
+
396
+ # form parameters
397
+ form_params = opts[:form_params] || {}
398
+
399
+ # http body (model)
400
+ post_body = opts[:body]
401
+
402
+ # return_type
403
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
404
+
405
+ # auth_names
406
+ auth_names = opts[:auth_names] || ['basicAuth']
407
+
408
+ new_options = opts.merge(
409
+ :header_params => header_params,
410
+ :query_params => query_params,
411
+ :form_params => form_params,
412
+ :body => post_body,
413
+ :auth_names => auth_names,
414
+ :return_type => return_type
415
+ )
416
+
417
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
418
+ if @api_client.config.debugging
419
+ @api_client.config.logger.debug "API called: DistributionsAptApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
420
+ end
421
+ return data, status_code, headers
422
+ end
423
+
424
+ # List user permissions
425
+ # List permissions available to the current user on this object.
426
+ # @param deb_apt_distribution_href [String]
427
+ # @param [Hash] opts the optional parameters
428
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
429
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
430
+ # @return [MyPermissionsResponse]
431
+ def my_permissions(deb_apt_distribution_href, opts = {})
432
+ data, _status_code, _headers = my_permissions_with_http_info(deb_apt_distribution_href, opts)
433
+ data
434
+ end
435
+
436
+ # List user permissions
437
+ # List permissions available to the current user on this object.
438
+ # @param deb_apt_distribution_href [String]
439
+ # @param [Hash] opts the optional parameters
440
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
441
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
442
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
443
+ def my_permissions_with_http_info(deb_apt_distribution_href, opts = {})
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.my_permissions ...'
446
+ end
447
+ # verify the required parameter 'deb_apt_distribution_href' is set
448
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
449
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.my_permissions"
450
+ end
451
+ # resource path
452
+ local_var_path = '{deb_apt_distribution_href}my_permissions/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
453
+
454
+ # query parameters
455
+ query_params = opts[:query_params] || {}
456
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
457
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
458
+
459
+ # header parameters
460
+ header_params = opts[:header_params] || {}
461
+ # HTTP header 'Accept' (if needed)
462
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
463
+
464
+ # form parameters
465
+ form_params = opts[:form_params] || {}
466
+
467
+ # http body (model)
468
+ post_body = opts[:body]
469
+
470
+ # return_type
471
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
472
+
473
+ # auth_names
474
+ auth_names = opts[:auth_names] || ['basicAuth']
475
+
476
+ new_options = opts.merge(
477
+ :header_params => header_params,
478
+ :query_params => query_params,
479
+ :form_params => form_params,
480
+ :body => post_body,
481
+ :auth_names => auth_names,
482
+ :return_type => return_type
483
+ )
484
+
485
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
486
+ if @api_client.config.debugging
487
+ @api_client.config.logger.debug "API called: DistributionsAptApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
488
+ end
489
+ return data, status_code, headers
490
+ end
491
+
283
492
  # Update an apt distribution
284
493
  # Trigger an asynchronous partial update task
285
494
  # @param deb_apt_distribution_href [String]
@@ -418,6 +627,76 @@ module PulpDebClient
418
627
  return data, status_code, headers
419
628
  end
420
629
 
630
+ # Remove a role
631
+ # Remove a role for this object from users/groups.
632
+ # @param deb_apt_distribution_href [String]
633
+ # @param nested_role [NestedRole]
634
+ # @param [Hash] opts the optional parameters
635
+ # @return [NestedRoleResponse]
636
+ def remove_role(deb_apt_distribution_href, nested_role, opts = {})
637
+ data, _status_code, _headers = remove_role_with_http_info(deb_apt_distribution_href, nested_role, opts)
638
+ data
639
+ end
640
+
641
+ # Remove a role
642
+ # Remove a role for this object from users/groups.
643
+ # @param deb_apt_distribution_href [String]
644
+ # @param nested_role [NestedRole]
645
+ # @param [Hash] opts the optional parameters
646
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
647
+ def remove_role_with_http_info(deb_apt_distribution_href, nested_role, opts = {})
648
+ if @api_client.config.debugging
649
+ @api_client.config.logger.debug 'Calling API: DistributionsAptApi.remove_role ...'
650
+ end
651
+ # verify the required parameter 'deb_apt_distribution_href' is set
652
+ if @api_client.config.client_side_validation && deb_apt_distribution_href.nil?
653
+ fail ArgumentError, "Missing the required parameter 'deb_apt_distribution_href' when calling DistributionsAptApi.remove_role"
654
+ end
655
+ # verify the required parameter 'nested_role' is set
656
+ if @api_client.config.client_side_validation && nested_role.nil?
657
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling DistributionsAptApi.remove_role"
658
+ end
659
+ # resource path
660
+ local_var_path = '{deb_apt_distribution_href}remove_role/'.sub('{' + 'deb_apt_distribution_href' + '}', CGI.escape(deb_apt_distribution_href.to_s).gsub('%2F', '/'))
661
+
662
+ # query parameters
663
+ query_params = opts[:query_params] || {}
664
+
665
+ # header parameters
666
+ header_params = opts[:header_params] || {}
667
+ # HTTP header 'Accept' (if needed)
668
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
669
+ # HTTP header 'Content-Type'
670
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
671
+
672
+ # form parameters
673
+ form_params = opts[:form_params] || {}
674
+
675
+ # http body (model)
676
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
677
+
678
+ # return_type
679
+ return_type = opts[:return_type] || 'NestedRoleResponse'
680
+
681
+ # auth_names
682
+ auth_names = opts[:auth_names] || ['basicAuth']
683
+
684
+ new_options = opts.merge(
685
+ :header_params => header_params,
686
+ :query_params => query_params,
687
+ :form_params => form_params,
688
+ :body => post_body,
689
+ :auth_names => auth_names,
690
+ :return_type => return_type
691
+ )
692
+
693
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug "API called: DistributionsAptApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
696
+ end
697
+ return data, status_code, headers
698
+ end
699
+
421
700
  # Set a label
422
701
  # Set a single pulp_label on the object to a specific value or null.
423
702
  # @param deb_apt_distribution_href [String]