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_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]
@@ -146,11 +216,12 @@ module PulpDebClient
146
216
  # List verbatim publications
147
217
  # 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).
148
218
  # @param [Hash] opts the optional parameters
149
- # @option opts [String] :content Content Unit referenced by HREF
150
- # @option opts [String] :content__in Content Unit referenced by HREF
219
+ # @option opts [String] :content Content Unit referenced by HREF/PRN
220
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
151
221
  # @option opts [Integer] :limit Number of results to return per page.
152
222
  # @option opts [Integer] :offset The initial index from which to return the results.
153
223
  # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
224
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
154
225
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
155
226
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
156
227
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -159,9 +230,9 @@ module PulpDebClient
159
230
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
231
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
232
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
- # @option opts [String] :q
163
- # @option opts [String] :repository Repository referenced by HREF
164
- # @option opts [String] :repository_version Repository Version referenced by HREF
233
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
234
+ # @option opts [String] :repository Repository referenced by HREF/PRN
235
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
165
236
  # @option opts [Array<String>] :fields A list of fields to include in the response.
166
237
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
167
238
  # @return [PaginateddebVerbatimPublicationResponseList]
@@ -173,11 +244,12 @@ module PulpDebClient
173
244
  # List verbatim publications
174
245
  # An VerbatimPublication is the Pulp-internal representation of a \&quot;mirrored\&quot; 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).
175
246
  # @param [Hash] opts the optional parameters
176
- # @option opts [String] :content Content Unit referenced by HREF
177
- # @option opts [String] :content__in Content Unit referenced by HREF
247
+ # @option opts [String] :content Content Unit referenced by HREF/PRN
248
+ # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
178
249
  # @option opts [Integer] :limit Number of results to return per page.
179
250
  # @option opts [Integer] :offset The initial index from which to return the results.
180
251
  # @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;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
252
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
181
253
  # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
182
254
  # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
183
255
  # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
@@ -186,9 +258,9 @@ module PulpDebClient
186
258
  # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
187
259
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
188
260
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
189
- # @option opts [String] :q
190
- # @option opts [String] :repository Repository referenced by HREF
191
- # @option opts [String] :repository_version Repository Version referenced by HREF
261
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
262
+ # @option opts [String] :repository Repository referenced by HREF/PRN
263
+ # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
192
264
  # @option opts [Array<String>] :fields A list of fields to include in the response.
193
265
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
194
266
  # @return [Array<(PaginateddebVerbatimPublicationResponseList, Integer, Hash)>] PaginateddebVerbatimPublicationResponseList data, response status code and response headers
@@ -206,10 +278,11 @@ module PulpDebClient
206
278
  # query parameters
207
279
  query_params = opts[:query_params] || {}
208
280
  query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
209
- query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
281
+ query_params[:'content__in'] = @api_client.build_collection_param(opts[:'content__in'], :csv) if !opts[:'content__in'].nil?
210
282
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
211
283
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
212
284
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
285
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
213
286
  query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
214
287
  query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
215
288
  query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
@@ -257,6 +330,142 @@ module PulpDebClient
257
330
  return data, status_code, headers
258
331
  end
259
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
+
260
469
  # Inspect a verbatim publication
261
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).
262
471
  # @param deb_verbatim_publication_href [String]
@@ -324,5 +533,75 @@ module PulpDebClient
324
533
  end
325
534
  return data, status_code, headers
326
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
327
606
  end
328
607
  end