pulpcore_client 3.19.1 → 3.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +93 -16
  3. data/docs/AccessPoliciesApi.md +2 -2
  4. data/docs/AccessPolicy.md +3 -1
  5. data/docs/AccessPolicyResponse.md +3 -1
  6. data/docs/AcsApi.md +417 -0
  7. data/docs/AlternateContentSource.md +23 -0
  8. data/docs/AlternateContentSourceResponse.md +27 -0
  9. data/docs/ArtifactsApi.md +2 -2
  10. data/docs/ContentApi.md +117 -3
  11. data/docs/ContentGuard.md +19 -0
  12. data/docs/ContentguardsApi.md +282 -3
  13. data/docs/ContentguardsContentRedirectApi.md +230 -2
  14. data/docs/ContentguardsRbacApi.md +2 -2
  15. data/docs/Distribution.md +25 -0
  16. data/docs/DistributionsApi.md +283 -3
  17. data/docs/Export.md +17 -0
  18. data/docs/ExportResponse.md +25 -0
  19. data/docs/Exporter.md +17 -0
  20. data/docs/ExporterResponse.md +21 -0
  21. data/docs/ExportersApi.md +362 -0
  22. data/docs/{GroupsModelPermissionsApi.md → ExportersExportsApi.md} +46 -48
  23. data/docs/ExportersFilesystemApi.md +2 -2
  24. data/docs/ExportersFilesystemExportsApi.md +0 -2
  25. data/docs/ExportersPulpApi.md +2 -2
  26. data/docs/ExportersPulpExportsApi.md +0 -2
  27. data/docs/GroupRole.md +1 -1
  28. data/docs/GroupRoleResponse.md +6 -2
  29. data/docs/GroupsApi.md +2 -2
  30. data/docs/GroupsRolesApi.md +2 -2
  31. data/docs/GroupsUsersApi.md +0 -2
  32. data/docs/Import.md +19 -0
  33. data/docs/Importer.md +17 -0
  34. data/docs/ImporterResponse.md +21 -0
  35. data/docs/ImportersApi.md +361 -0
  36. data/docs/{GroupsObjectPermissionsApi.md → ImportersImportsApi.md} +46 -48
  37. data/docs/ImportersPulpApi.md +2 -2
  38. data/docs/ImportersPulpImportsApi.md +0 -2
  39. data/docs/MultipleArtifactContent.md +17 -0
  40. data/docs/OrphansCleanup.md +1 -1
  41. data/docs/PaginatedAlternateContentSourceResponseList.md +23 -0
  42. data/docs/{PaginatedPermissionResponseList.md → PaginatedExportResponseList.md} +3 -3
  43. data/docs/PaginatedExporterResponseList.md +23 -0
  44. data/docs/PaginatedImporterResponseList.md +23 -0
  45. data/docs/PaginatedRemoteResponseList.md +23 -0
  46. data/docs/PatchedAccessPolicy.md +3 -1
  47. data/docs/PatchedAlternateContentSource.md +23 -0
  48. data/docs/PatchedContentGuard.md +19 -0
  49. data/docs/PatchedDistribution.md +25 -0
  50. data/docs/PatchedExporter.md +17 -0
  51. data/docs/PatchedImporter.md +17 -0
  52. data/docs/PatchedRemote.md +57 -0
  53. data/docs/PatchedRepository.md +25 -0
  54. data/docs/PolicyEnum.md +16 -0
  55. data/docs/PublicationsApi.md +117 -2
  56. data/docs/Remote.md +57 -0
  57. data/docs/RemoteResponse.md +53 -0
  58. data/docs/RemotesApi.md +376 -0
  59. data/docs/RepositoriesApi.md +283 -3
  60. data/docs/RepositoriesVersionsApi.md +271 -0
  61. data/docs/Repository.md +25 -0
  62. data/docs/RepositoryVersionsApi.md +2 -0
  63. data/docs/RolesApi.md +6 -2
  64. data/docs/SigningServicesApi.md +0 -2
  65. data/docs/TaskGroupsApi.md +2 -2
  66. data/docs/TaskSchedulesApi.md +2 -2
  67. data/docs/TasksApi.md +2 -2
  68. data/docs/UploadsApi.md +0 -2
  69. data/docs/UserRole.md +1 -1
  70. data/docs/UserRoleResponse.md +6 -2
  71. data/docs/UsersApi.md +2 -61
  72. data/docs/UsersRolesApi.md +2 -2
  73. data/docs/VersionResponse.md +3 -1
  74. data/docs/WorkersApi.md +2 -2
  75. data/lib/pulpcore_client/api/access_policies_api.rb +7 -3
  76. data/lib/pulpcore_client/api/acs_api.rb +514 -0
  77. data/lib/pulpcore_client/api/artifacts_api.rb +7 -3
  78. data/lib/pulpcore_client/api/content_api.rb +141 -5
  79. data/lib/pulpcore_client/api/contentguards_api.rb +341 -5
  80. data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +275 -3
  81. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +7 -3
  82. data/lib/pulpcore_client/api/distributions_api.rb +343 -5
  83. data/lib/pulpcore_client/api/exporters_api.rb +446 -0
  84. data/lib/pulpcore_client/api/{groups_model_permissions_api.rb → exporters_exports_api.rb} +76 -79
  85. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +7 -3
  86. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +0 -3
  87. data/lib/pulpcore_client/api/exporters_pulp_api.rb +7 -3
  88. data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +0 -3
  89. data/lib/pulpcore_client/api/groups_api.rb +7 -3
  90. data/lib/pulpcore_client/api/groups_roles_api.rb +7 -3
  91. data/lib/pulpcore_client/api/groups_users_api.rb +0 -3
  92. data/lib/pulpcore_client/api/importers_api.rb +444 -0
  93. data/lib/pulpcore_client/api/{groups_object_permissions_api.rb → importers_imports_api.rb} +76 -79
  94. data/lib/pulpcore_client/api/importers_pulp_api.rb +7 -3
  95. data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +0 -3
  96. data/lib/pulpcore_client/api/publications_api.rb +138 -3
  97. data/lib/pulpcore_client/api/remotes_api.rb +467 -0
  98. data/lib/pulpcore_client/api/repositories_api.rb +343 -5
  99. data/lib/pulpcore_client/api/repositories_versions_api.rb +343 -0
  100. data/lib/pulpcore_client/api/repository_versions_api.rb +7 -0
  101. data/lib/pulpcore_client/api/roles_api.rb +13 -3
  102. data/lib/pulpcore_client/api/signing_services_api.rb +0 -3
  103. data/lib/pulpcore_client/api/task_groups_api.rb +7 -3
  104. data/lib/pulpcore_client/api/task_schedules_api.rb +7 -3
  105. data/lib/pulpcore_client/api/tasks_api.rb +7 -3
  106. data/lib/pulpcore_client/api/uploads_api.rb +0 -3
  107. data/lib/pulpcore_client/api/users_api.rb +7 -69
  108. data/lib/pulpcore_client/api/users_roles_api.rb +7 -3
  109. data/lib/pulpcore_client/api/workers_api.rb +7 -3
  110. data/lib/pulpcore_client/models/access_policy.rb +14 -4
  111. data/lib/pulpcore_client/models/access_policy_response.rb +14 -4
  112. data/lib/pulpcore_client/models/alternate_content_source.rb +270 -0
  113. data/lib/pulpcore_client/models/alternate_content_source_response.rb +270 -0
  114. data/lib/pulpcore_client/models/content_guard.rb +258 -0
  115. data/lib/pulpcore_client/models/distribution.rb +297 -0
  116. data/lib/pulpcore_client/models/export.rb +209 -0
  117. data/lib/pulpcore_client/models/export_response.rb +250 -0
  118. data/lib/pulpcore_client/models/exporter.rb +232 -0
  119. data/lib/pulpcore_client/models/{permission_response.rb → exporter_response.rb} +24 -27
  120. data/lib/pulpcore_client/models/group_role.rb +1 -1
  121. data/lib/pulpcore_client/models/group_role_response.rb +26 -6
  122. data/lib/pulpcore_client/models/import.rb +228 -0
  123. data/lib/pulpcore_client/models/importer.rb +232 -0
  124. data/lib/pulpcore_client/models/importer_response.rb +232 -0
  125. data/lib/pulpcore_client/models/multiple_artifact_content.rb +213 -0
  126. data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -2
  127. data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +237 -0
  128. data/lib/pulpcore_client/models/{paginated_permission_response_list.rb → paginated_export_response_list.rb} +4 -4
  129. data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +237 -0
  130. data/lib/pulpcore_client/models/paginated_importer_response_list.rb +237 -0
  131. data/lib/pulpcore_client/models/paginated_remote_response_list.rb +237 -0
  132. data/lib/pulpcore_client/models/patched_access_policy.rb +14 -4
  133. data/lib/pulpcore_client/models/patched_alternate_content_source.rb +256 -0
  134. data/lib/pulpcore_client/models/patched_content_guard.rb +249 -0
  135. data/lib/pulpcore_client/models/patched_distribution.rb +279 -0
  136. data/lib/pulpcore_client/models/patched_exporter.rb +223 -0
  137. data/lib/pulpcore_client/models/patched_importer.rb +223 -0
  138. data/lib/pulpcore_client/models/patched_remote.rb +649 -0
  139. data/lib/pulpcore_client/models/patched_repository.rb +295 -0
  140. data/lib/pulpcore_client/models/policy_enum.rb +36 -0
  141. data/lib/pulpcore_client/models/remote.rb +667 -0
  142. data/lib/pulpcore_client/models/remote_response.rb +483 -0
  143. data/lib/pulpcore_client/models/repository.rb +304 -0
  144. data/lib/pulpcore_client/models/user_role.rb +1 -1
  145. data/lib/pulpcore_client/models/user_role_response.rb +26 -6
  146. data/lib/pulpcore_client/models/version_response.rb +19 -4
  147. data/lib/pulpcore_client/version.rb +1 -1
  148. data/lib/pulpcore_client.rb +35 -4
  149. data/spec/api/access_policies_api_spec.rb +1 -1
  150. data/spec/api/acs_api_spec.rb +132 -0
  151. data/spec/api/artifacts_api_spec.rb +1 -1
  152. data/spec/api/content_api_spec.rb +28 -2
  153. data/spec/api/contentguards_api_spec.rb +66 -2
  154. data/spec/api/contentguards_content_redirect_api_spec.rb +51 -1
  155. data/spec/api/contentguards_rbac_api_spec.rb +1 -1
  156. data/spec/api/distributions_api_spec.rb +66 -2
  157. data/spec/api/exporters_api_spec.rb +120 -0
  158. data/spec/api/{groups_model_permissions_api_spec.rb → exporters_exports_api_spec.rb} +22 -23
  159. data/spec/api/exporters_filesystem_api_spec.rb +1 -1
  160. data/spec/api/exporters_filesystem_exports_api_spec.rb +0 -1
  161. data/spec/api/exporters_pulp_api_spec.rb +1 -1
  162. data/spec/api/exporters_pulp_exports_api_spec.rb +0 -1
  163. data/spec/api/groups_api_spec.rb +1 -1
  164. data/spec/api/groups_roles_api_spec.rb +1 -1
  165. data/spec/api/groups_users_api_spec.rb +0 -1
  166. data/spec/api/importers_api_spec.rb +120 -0
  167. data/spec/api/{groups_object_permissions_api_spec.rb → importers_imports_api_spec.rb} +22 -23
  168. data/spec/api/importers_pulp_api_spec.rb +1 -1
  169. data/spec/api/importers_pulp_imports_api_spec.rb +0 -1
  170. data/spec/api/publications_api_spec.rb +28 -1
  171. data/spec/api/remotes_api_spec.rb +127 -0
  172. data/spec/api/repositories_api_spec.rb +66 -2
  173. data/spec/api/repositories_versions_api_spec.rb +104 -0
  174. data/spec/api/repository_versions_api_spec.rb +1 -0
  175. data/spec/api/roles_api_spec.rb +3 -1
  176. data/spec/api/signing_services_api_spec.rb +0 -1
  177. data/spec/api/task_groups_api_spec.rb +1 -1
  178. data/spec/api/task_schedules_api_spec.rb +1 -1
  179. data/spec/api/tasks_api_spec.rb +1 -1
  180. data/spec/api/uploads_api_spec.rb +0 -1
  181. data/spec/api/users_api_spec.rb +1 -14
  182. data/spec/api/users_roles_api_spec.rb +1 -1
  183. data/spec/api/workers_api_spec.rb +1 -1
  184. data/spec/models/access_policy_response_spec.rb +6 -0
  185. data/spec/models/access_policy_spec.rb +6 -0
  186. data/spec/models/alternate_content_source_response_spec.rb +71 -0
  187. data/spec/models/{permission_response_spec.rb → alternate_content_source_spec.rb} +10 -10
  188. data/spec/models/content_guard_spec.rb +47 -0
  189. data/spec/models/distribution_spec.rb +65 -0
  190. data/spec/models/export_response_spec.rb +65 -0
  191. data/spec/models/export_spec.rb +41 -0
  192. data/spec/models/exporter_response_spec.rb +53 -0
  193. data/spec/models/exporter_spec.rb +41 -0
  194. data/spec/models/group_role_response_spec.rb +12 -0
  195. data/spec/models/import_spec.rb +47 -0
  196. data/spec/models/importer_response_spec.rb +53 -0
  197. data/spec/models/importer_spec.rb +41 -0
  198. data/spec/models/multiple_artifact_content_spec.rb +41 -0
  199. data/spec/models/paginated_alternate_content_source_response_list_spec.rb +59 -0
  200. data/spec/models/{paginated_permission_response_list_spec.rb → paginated_export_response_list_spec.rb} +6 -6
  201. data/spec/models/paginated_exporter_response_list_spec.rb +59 -0
  202. data/spec/models/paginated_importer_response_list_spec.rb +59 -0
  203. data/spec/models/paginated_remote_response_list_spec.rb +59 -0
  204. data/spec/models/patched_access_policy_spec.rb +6 -0
  205. data/spec/models/patched_alternate_content_source_spec.rb +59 -0
  206. data/spec/models/patched_content_guard_spec.rb +47 -0
  207. data/spec/models/patched_distribution_spec.rb +65 -0
  208. data/spec/models/patched_exporter_spec.rb +41 -0
  209. data/spec/models/patched_importer_spec.rb +41 -0
  210. data/spec/models/patched_remote_spec.rb +161 -0
  211. data/spec/models/patched_repository_spec.rb +65 -0
  212. data/spec/models/policy_enum_spec.rb +35 -0
  213. data/spec/models/remote_response_spec.rb +149 -0
  214. data/spec/models/remote_spec.rb +161 -0
  215. data/spec/models/repository_spec.rb +65 -0
  216. data/spec/models/user_role_response_spec.rb +12 -0
  217. data/spec/models/version_response_spec.rb +6 -0
  218. metadata +263 -139
  219. data/docs/PermissionResponse.md +0 -23
@@ -19,6 +19,74 @@ module PulpcoreClient
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 content_redirect_content_guard_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(content_redirect_content_guard_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(content_redirect_content_guard_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param content_redirect_content_guard_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(content_redirect_content_guard_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'content_redirect_content_guard_href' is set
42
+ if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.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 ContentguardsContentRedirectApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{content_redirect_content_guard_href}add_role/'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_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: ContentguardsContentRedirectApi#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 content redirect content guard
23
91
  # Content guard to protect preauthenticated redirects to the content app.
24
92
  # @param content_redirect_content_guard [ContentRedirectContentGuard]
@@ -153,7 +221,7 @@ module PulpcoreClient
153
221
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
154
222
  # @option opts [String] :name__startswith Filter results where name starts with value
155
223
  # @option opts [Integer] :offset The initial index from which to return the results.
156
- # @option opts [String] :ordering Which field to use when ordering the results.
224
+ # @option opts [Array<String>] :ordering Ordering
157
225
  # @option opts [String] :fields A list of fields to include in the response.
158
226
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
159
227
  # @return [PaginatedContentRedirectContentGuardResponseList]
@@ -172,7 +240,7 @@ module PulpcoreClient
172
240
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
173
241
  # @option opts [String] :name__startswith Filter results where name starts with value
174
242
  # @option opts [Integer] :offset The initial index from which to return the results.
175
- # @option opts [String] :ordering Which field to use when ordering the results.
243
+ # @option opts [Array<String>] :ordering Ordering
176
244
  # @option opts [String] :fields A list of fields to include in the response.
177
245
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
178
246
  # @return [Array<(PaginatedContentRedirectContentGuardResponseList, Integer, Hash)>] PaginatedContentRedirectContentGuardResponseList data, response status code and response headers
@@ -180,6 +248,10 @@ module PulpcoreClient
180
248
  if @api_client.config.debugging
181
249
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.list ...'
182
250
  end
251
+ allowable_values = ["-basedistribution", "-certguard_rhsmcertguard", "-certguard_x509certguard", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "certguard_rhsmcertguard", "certguard_x509certguard", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
252
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
253
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
254
+ end
183
255
  # resource path
184
256
  local_var_path = '/pulp/api/v3/contentguards/core/content_redirect/'
185
257
 
@@ -192,7 +264,7 @@ module PulpcoreClient
192
264
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
193
265
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
194
266
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
195
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
267
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
196
268
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
197
269
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
198
270
 
@@ -229,6 +301,138 @@ module PulpcoreClient
229
301
  return data, status_code, headers
230
302
  end
231
303
 
304
+ # List roles assigned to this object.
305
+ # @param content_redirect_content_guard_href [String]
306
+ # @param [Hash] opts the optional parameters
307
+ # @option opts [String] :fields A list of fields to include in the response.
308
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
309
+ # @return [ObjectRolesResponse]
310
+ def list_roles(content_redirect_content_guard_href, opts = {})
311
+ data, _status_code, _headers = list_roles_with_http_info(content_redirect_content_guard_href, opts)
312
+ data
313
+ end
314
+
315
+ # List roles assigned to this object.
316
+ # @param content_redirect_content_guard_href [String]
317
+ # @param [Hash] opts the optional parameters
318
+ # @option opts [String] :fields A list of fields to include in the response.
319
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
320
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
321
+ def list_roles_with_http_info(content_redirect_content_guard_href, opts = {})
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.list_roles ...'
324
+ end
325
+ # verify the required parameter 'content_redirect_content_guard_href' is set
326
+ if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
327
+ fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.list_roles"
328
+ end
329
+ # resource path
330
+ local_var_path = '{content_redirect_content_guard_href}list_roles/'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
331
+
332
+ # query parameters
333
+ query_params = opts[:query_params] || {}
334
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
335
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
336
+
337
+ # header parameters
338
+ header_params = opts[:header_params] || {}
339
+ # HTTP header 'Accept' (if needed)
340
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
341
+
342
+ # form parameters
343
+ form_params = opts[:form_params] || {}
344
+
345
+ # http body (model)
346
+ post_body = opts[:body]
347
+
348
+ # return_type
349
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
350
+
351
+ # auth_names
352
+ auth_names = opts[:auth_names] || ['basicAuth']
353
+
354
+ new_options = opts.merge(
355
+ :header_params => header_params,
356
+ :query_params => query_params,
357
+ :form_params => form_params,
358
+ :body => post_body,
359
+ :auth_names => auth_names,
360
+ :return_type => return_type
361
+ )
362
+
363
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
+ end
367
+ return data, status_code, headers
368
+ end
369
+
370
+ # List permissions available to the current user on this object.
371
+ # @param content_redirect_content_guard_href [String]
372
+ # @param [Hash] opts the optional parameters
373
+ # @option opts [String] :fields A list of fields to include in the response.
374
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
375
+ # @return [MyPermissionsResponse]
376
+ def my_permissions(content_redirect_content_guard_href, opts = {})
377
+ data, _status_code, _headers = my_permissions_with_http_info(content_redirect_content_guard_href, opts)
378
+ data
379
+ end
380
+
381
+ # List permissions available to the current user on this object.
382
+ # @param content_redirect_content_guard_href [String]
383
+ # @param [Hash] opts the optional parameters
384
+ # @option opts [String] :fields A list of fields to include in the response.
385
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
386
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
387
+ def my_permissions_with_http_info(content_redirect_content_guard_href, opts = {})
388
+ if @api_client.config.debugging
389
+ @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.my_permissions ...'
390
+ end
391
+ # verify the required parameter 'content_redirect_content_guard_href' is set
392
+ if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
393
+ fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.my_permissions"
394
+ end
395
+ # resource path
396
+ local_var_path = '{content_redirect_content_guard_href}my_permissions/'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
397
+
398
+ # query parameters
399
+ query_params = opts[:query_params] || {}
400
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
401
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
402
+
403
+ # header parameters
404
+ header_params = opts[:header_params] || {}
405
+ # HTTP header 'Accept' (if needed)
406
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
407
+
408
+ # form parameters
409
+ form_params = opts[:form_params] || {}
410
+
411
+ # http body (model)
412
+ post_body = opts[:body]
413
+
414
+ # return_type
415
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
416
+
417
+ # auth_names
418
+ auth_names = opts[:auth_names] || ['basicAuth']
419
+
420
+ new_options = opts.merge(
421
+ :header_params => header_params,
422
+ :query_params => query_params,
423
+ :form_params => form_params,
424
+ :body => post_body,
425
+ :auth_names => auth_names,
426
+ :return_type => return_type
427
+ )
428
+
429
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
430
+ if @api_client.config.debugging
431
+ @api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
432
+ end
433
+ return data, status_code, headers
434
+ end
435
+
232
436
  # Update a content redirect content guard
233
437
  # Content guard to protect preauthenticated redirects to the content app.
234
438
  # @param content_redirect_content_guard_href [String]
@@ -367,6 +571,74 @@ module PulpcoreClient
367
571
  return data, status_code, headers
368
572
  end
369
573
 
574
+ # Remove a role for this object from users/groups.
575
+ # @param content_redirect_content_guard_href [String]
576
+ # @param nested_role [NestedRole]
577
+ # @param [Hash] opts the optional parameters
578
+ # @return [NestedRoleResponse]
579
+ def remove_role(content_redirect_content_guard_href, nested_role, opts = {})
580
+ data, _status_code, _headers = remove_role_with_http_info(content_redirect_content_guard_href, nested_role, opts)
581
+ data
582
+ end
583
+
584
+ # Remove a role for this object from users/groups.
585
+ # @param content_redirect_content_guard_href [String]
586
+ # @param nested_role [NestedRole]
587
+ # @param [Hash] opts the optional parameters
588
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
589
+ def remove_role_with_http_info(content_redirect_content_guard_href, nested_role, opts = {})
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.remove_role ...'
592
+ end
593
+ # verify the required parameter 'content_redirect_content_guard_href' is set
594
+ if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
595
+ fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.remove_role"
596
+ end
597
+ # verify the required parameter 'nested_role' is set
598
+ if @api_client.config.client_side_validation && nested_role.nil?
599
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsContentRedirectApi.remove_role"
600
+ end
601
+ # resource path
602
+ local_var_path = '{content_redirect_content_guard_href}remove_role/'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
603
+
604
+ # query parameters
605
+ query_params = opts[:query_params] || {}
606
+
607
+ # header parameters
608
+ header_params = opts[:header_params] || {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
611
+ # HTTP header 'Content-Type'
612
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
613
+
614
+ # form parameters
615
+ form_params = opts[:form_params] || {}
616
+
617
+ # http body (model)
618
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
619
+
620
+ # return_type
621
+ return_type = opts[:return_type] || 'NestedRoleResponse'
622
+
623
+ # auth_names
624
+ auth_names = opts[:auth_names] || ['basicAuth']
625
+
626
+ new_options = opts.merge(
627
+ :header_params => header_params,
628
+ :query_params => query_params,
629
+ :form_params => form_params,
630
+ :body => post_body,
631
+ :auth_names => auth_names,
632
+ :return_type => return_type
633
+ )
634
+
635
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
636
+ if @api_client.config.debugging
637
+ @api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
638
+ end
639
+ return data, status_code, headers
640
+ end
641
+
370
642
  # Update a content redirect content guard
371
643
  # Content guard to protect preauthenticated redirects to the content app.
372
644
  # @param content_redirect_content_guard_href [String]
@@ -221,7 +221,7 @@ module PulpcoreClient
221
221
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
222
222
  # @option opts [String] :name__startswith Filter results where name starts with value
223
223
  # @option opts [Integer] :offset The initial index from which to return the results.
224
- # @option opts [String] :ordering Which field to use when ordering the results.
224
+ # @option opts [Array<String>] :ordering Ordering
225
225
  # @option opts [String] :fields A list of fields to include in the response.
226
226
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
227
227
  # @return [PaginatedRBACContentGuardResponseList]
@@ -240,7 +240,7 @@ module PulpcoreClient
240
240
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
241
241
  # @option opts [String] :name__startswith Filter results where name starts with value
242
242
  # @option opts [Integer] :offset The initial index from which to return the results.
243
- # @option opts [String] :ordering Which field to use when ordering the results.
243
+ # @option opts [Array<String>] :ordering Ordering
244
244
  # @option opts [String] :fields A list of fields to include in the response.
245
245
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
246
246
  # @return [Array<(PaginatedRBACContentGuardResponseList, Integer, Hash)>] PaginatedRBACContentGuardResponseList data, response status code and response headers
@@ -248,6 +248,10 @@ module PulpcoreClient
248
248
  if @api_client.config.debugging
249
249
  @api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.list ...'
250
250
  end
251
+ allowable_values = ["-basedistribution", "-certguard_rhsmcertguard", "-certguard_x509certguard", "-core_contentredirectcontentguard", "-core_rbaccontentguard", "-description", "-distribution", "-group_roles", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-user_roles", "basedistribution", "certguard_rhsmcertguard", "certguard_x509certguard", "core_contentredirectcontentguard", "core_rbaccontentguard", "description", "distribution", "group_roles", "name", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "user_roles"]
252
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
253
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
254
+ end
251
255
  # resource path
252
256
  local_var_path = '/pulp/api/v3/contentguards/core/rbac/'
253
257
 
@@ -260,7 +264,7 @@ module PulpcoreClient
260
264
  query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
261
265
  query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
262
266
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
263
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
267
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
264
268
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
265
269
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
266
270