pulpcore_client 3.16.24 → 3.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +70 -22
- data/docs/AccessPoliciesApi.md +53 -0
- data/docs/AccessPolicy.md +3 -1
- data/docs/AccessPolicyResponse.md +3 -1
- data/docs/ContentguardsRbacApi.md +138 -22
- data/docs/GroupRole.md +19 -0
- data/docs/GroupRoleResponse.md +23 -0
- data/docs/GroupsApi.md +248 -20
- data/docs/GroupsModelPermissionsApi.md +20 -20
- data/docs/GroupsObjectPermissionsApi.md +20 -20
- data/docs/GroupsRolesApi.md +255 -0
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedGroupRoleResponseList.md +23 -0
- data/docs/PaginatedRoleResponseList.md +23 -0
- data/docs/PaginatedUserRoleResponseList.md +23 -0
- data/docs/PatchedAccessPolicy.md +3 -1
- data/docs/PatchedRole.md +21 -0
- data/docs/PatchedUser.md +29 -0
- data/docs/PermissionResponse.md +1 -1
- data/docs/Purge.md +19 -0
- data/docs/Role.md +21 -0
- data/docs/RoleResponse.md +27 -0
- data/docs/RolesApi.md +363 -0
- data/docs/StatesEnum.md +16 -0
- data/docs/TasksApi.md +282 -0
- data/docs/User.md +29 -0
- data/docs/UserGroup.md +17 -0
- data/docs/UserResponse.md +3 -3
- data/docs/UserRole.md +19 -0
- data/docs/UserRoleResponse.md +23 -0
- data/docs/UsersApi.md +219 -0
- data/docs/UsersRolesApi.md +255 -0
- data/docs/WorkerResponse.md +3 -3
- data/git_push.sh +58 -0
- data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
- data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
- data/lib/pulpcore_client/api/groups_api.rb +304 -36
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
- data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
- data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
- data/lib/pulpcore_client/api/roles_api.rb +443 -0
- data/lib/pulpcore_client/api/tasks_api.rb +332 -0
- data/lib/pulpcore_client/api/uploads_api.rb +4 -0
- data/lib/pulpcore_client/api/users_api.rb +264 -0
- data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
- data/lib/pulpcore_client/api_client.rb +5 -2
- data/lib/pulpcore_client/configuration.rb +0 -1
- data/lib/pulpcore_client/models/access_policy.rb +19 -2
- data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
- data/lib/pulpcore_client/models/artifact.rb +90 -0
- data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
- data/lib/pulpcore_client/models/group.rb +9 -0
- data/lib/pulpcore_client/models/group_role.rb +238 -0
- data/lib/pulpcore_client/models/group_role_response.rb +242 -0
- data/lib/pulpcore_client/models/group_user.rb +9 -0
- data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
- data/lib/pulpcore_client/models/nested_role.rb +234 -0
- data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
- data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
- data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_group.rb +9 -0
- data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
- data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
- data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
- data/lib/pulpcore_client/models/patched_role.rb +261 -0
- data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
- data/lib/pulpcore_client/models/patched_user.rb +342 -0
- data/lib/pulpcore_client/models/permission_response.rb +1 -1
- data/lib/pulpcore_client/models/pulp_export.rb +15 -0
- data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
- data/lib/pulpcore_client/models/pulp_import.rb +30 -0
- data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
- data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
- data/lib/pulpcore_client/models/purge.rb +219 -0
- data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
- data/lib/pulpcore_client/models/role.rb +275 -0
- data/lib/pulpcore_client/models/role_response.rb +270 -0
- data/lib/pulpcore_client/models/states_enum.rb +38 -0
- data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
- data/lib/pulpcore_client/models/upload_commit.rb +19 -0
- data/lib/pulpcore_client/models/user.rb +351 -0
- data/lib/pulpcore_client/models/user_group.rb +241 -0
- data/lib/pulpcore_client/models/user_response.rb +6 -29
- data/lib/pulpcore_client/models/user_role.rb +238 -0
- data/lib/pulpcore_client/models/user_role_response.rb +242 -0
- data/lib/pulpcore_client/models/worker_response.rb +10 -10
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +22 -1
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/access_policies_api_spec.rb +11 -0
- data/spec/api/contentguards_rbac_api_spec.rb +36 -12
- data/spec/api/groups_api_spec.rb +54 -4
- data/spec/api/groups_model_permissions_api_spec.rb +4 -4
- data/spec/api/groups_object_permissions_api_spec.rb +4 -4
- data/spec/api/groups_roles_api_spec.rb +97 -0
- data/spec/api/groups_users_api_spec.rb +3 -3
- data/spec/api/roles_api_spec.rb +121 -0
- data/spec/api/tasks_api_spec.rb +62 -0
- data/spec/api/users_api_spec.rb +50 -0
- data/spec/api/users_roles_api_spec.rb +97 -0
- data/spec/models/access_policy_response_spec.rb +6 -0
- data/spec/models/access_policy_spec.rb +6 -0
- data/spec/models/group_role_response_spec.rb +59 -0
- data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_group_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_role_response_list_spec.rb +59 -0
- data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
- data/spec/models/patched_access_policy_spec.rb +6 -0
- data/spec/models/patched_role_spec.rb +53 -0
- data/spec/models/patched_user_spec.rb +77 -0
- data/spec/models/purge_spec.rb +47 -0
- data/spec/models/role_response_spec.rb +71 -0
- data/spec/models/role_spec.rb +53 -0
- data/spec/models/states_enum_spec.rb +35 -0
- data/spec/models/user_group_spec.rb +41 -0
- data/spec/models/user_role_response_spec.rb +59 -0
- data/spec/models/user_role_spec.rb +47 -0
- data/spec/models/user_spec.rb +77 -0
- data/spec/models/worker_response_spec.rb +2 -2
- metadata +190 -111
- data/docs/RBACContentGuardPermission.md +0 -19
@@ -246,6 +246,66 @@ module PulpcoreClient
|
|
246
246
|
return data, status_code, headers
|
247
247
|
end
|
248
248
|
|
249
|
+
# Reset the access policy to its uncustomized default value.
|
250
|
+
# @param access_policy_href [String]
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [AccessPolicyResponse]
|
253
|
+
def reset(access_policy_href, opts = {})
|
254
|
+
data, _status_code, _headers = reset_with_http_info(access_policy_href, opts)
|
255
|
+
data
|
256
|
+
end
|
257
|
+
|
258
|
+
# Reset the access policy to its uncustomized default value.
|
259
|
+
# @param access_policy_href [String]
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @return [Array<(AccessPolicyResponse, Integer, Hash)>] AccessPolicyResponse data, response status code and response headers
|
262
|
+
def reset_with_http_info(access_policy_href, opts = {})
|
263
|
+
if @api_client.config.debugging
|
264
|
+
@api_client.config.logger.debug 'Calling API: AccessPoliciesApi.reset ...'
|
265
|
+
end
|
266
|
+
# verify the required parameter 'access_policy_href' is set
|
267
|
+
if @api_client.config.client_side_validation && access_policy_href.nil?
|
268
|
+
fail ArgumentError, "Missing the required parameter 'access_policy_href' when calling AccessPoliciesApi.reset"
|
269
|
+
end
|
270
|
+
# resource path
|
271
|
+
local_var_path = '{access_policy_href}reset/'.sub('{' + 'access_policy_href' + '}', CGI.escape(access_policy_href.to_s).gsub('%2F', '/'))
|
272
|
+
|
273
|
+
# query parameters
|
274
|
+
query_params = opts[:query_params] || {}
|
275
|
+
|
276
|
+
# header parameters
|
277
|
+
header_params = opts[:header_params] || {}
|
278
|
+
# HTTP header 'Accept' (if needed)
|
279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
280
|
+
|
281
|
+
# form parameters
|
282
|
+
form_params = opts[:form_params] || {}
|
283
|
+
|
284
|
+
# http body (model)
|
285
|
+
post_body = opts[:body]
|
286
|
+
|
287
|
+
# return_type
|
288
|
+
return_type = opts[:return_type] || 'AccessPolicyResponse'
|
289
|
+
|
290
|
+
# auth_names
|
291
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
292
|
+
|
293
|
+
new_options = opts.merge(
|
294
|
+
:header_params => header_params,
|
295
|
+
:query_params => query_params,
|
296
|
+
:form_params => form_params,
|
297
|
+
:body => post_body,
|
298
|
+
:auth_names => auth_names,
|
299
|
+
:return_type => return_type
|
300
|
+
)
|
301
|
+
|
302
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
303
|
+
if @api_client.config.debugging
|
304
|
+
@api_client.config.logger.debug "API called: AccessPoliciesApi#reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
+
end
|
306
|
+
return data, status_code, headers
|
307
|
+
end
|
308
|
+
|
249
309
|
# Update an access policy
|
250
310
|
# ViewSet for AccessPolicy. NOTE: This API endpoint is in \"tech preview\" and subject to change
|
251
311
|
# @param access_policy_href [String]
|
@@ -56,6 +56,30 @@ module PulpcoreClient
|
|
56
56
|
if @api_client.config.client_side_validation && file.nil?
|
57
57
|
fail ArgumentError, "Missing the required parameter 'file' when calling ArtifactsApi.create"
|
58
58
|
end
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'md5'].nil? && opts[:'md5'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"md5"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
61
|
+
end
|
62
|
+
|
63
|
+
if @api_client.config.client_side_validation && !opts[:'sha1'].nil? && opts[:'sha1'].to_s.length < 1
|
64
|
+
fail ArgumentError, 'invalid value for "opts[:"sha1"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
65
|
+
end
|
66
|
+
|
67
|
+
if @api_client.config.client_side_validation && !opts[:'sha224'].nil? && opts[:'sha224'].to_s.length < 1
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"sha224"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
69
|
+
end
|
70
|
+
|
71
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
72
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
73
|
+
end
|
74
|
+
|
75
|
+
if @api_client.config.client_side_validation && !opts[:'sha384'].nil? && opts[:'sha384'].to_s.length < 1
|
76
|
+
fail ArgumentError, 'invalid value for "opts[:"sha384"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
77
|
+
end
|
78
|
+
|
79
|
+
if @api_client.config.client_side_validation && !opts[:'sha512'].nil? && opts[:'sha512'].to_s.length < 1
|
80
|
+
fail ArgumentError, 'invalid value for "opts[:"sha512"]" when calling ArtifactsApi.create, the character length must be great than or equal to 1.'
|
81
|
+
end
|
82
|
+
|
59
83
|
# resource path
|
60
84
|
local_var_path = '/pulp/api/v3/artifacts/'
|
61
85
|
|
@@ -19,37 +19,35 @@ module PulpcoreClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Add
|
23
|
-
# Give users and groups the `download` permission
|
22
|
+
# Add a role for this object to users/groups.
|
24
23
|
# @param r_b_a_c_content_guard_href [String]
|
25
|
-
# @param
|
24
|
+
# @param nested_role [NestedRole]
|
26
25
|
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
26
|
+
# @return [NestedRoleResponse]
|
27
|
+
def add_role(r_b_a_c_content_guard_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts)
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
|
-
# Add
|
34
|
-
# Give users and groups the `download` permission
|
32
|
+
# Add a role for this object to users/groups.
|
35
33
|
# @param r_b_a_c_content_guard_href [String]
|
36
|
-
# @param
|
34
|
+
# @param nested_role [NestedRole]
|
37
35
|
# @param [Hash] opts the optional parameters
|
38
|
-
# @return [Array<(
|
39
|
-
def
|
36
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
37
|
+
def add_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts = {})
|
40
38
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.add_role ...'
|
42
40
|
end
|
43
41
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
44
42
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.add_role"
|
46
44
|
end
|
47
|
-
# verify the required parameter '
|
48
|
-
if @api_client.config.client_side_validation &&
|
49
|
-
fail ArgumentError, "Missing the required parameter '
|
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 ContentguardsRbacApi.add_role"
|
50
48
|
end
|
51
49
|
# resource path
|
52
|
-
local_var_path = '{r_b_a_c_content_guard_href}
|
50
|
+
local_var_path = '{r_b_a_c_content_guard_href}add_role/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
53
51
|
|
54
52
|
# query parameters
|
55
53
|
query_params = opts[:query_params] || {}
|
@@ -65,10 +63,10 @@ module PulpcoreClient
|
|
65
63
|
form_params = opts[:form_params] || {}
|
66
64
|
|
67
65
|
# http body (model)
|
68
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
66
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
69
67
|
|
70
68
|
# return_type
|
71
|
-
return_type = opts[:return_type] || '
|
69
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
72
70
|
|
73
71
|
# auth_names
|
74
72
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -84,7 +82,7 @@ module PulpcoreClient
|
|
84
82
|
|
85
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
84
|
if @api_client.config.debugging
|
87
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
85
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
86
|
end
|
89
87
|
return data, status_code, headers
|
90
88
|
end
|
@@ -299,6 +297,138 @@ module PulpcoreClient
|
|
299
297
|
return data, status_code, headers
|
300
298
|
end
|
301
299
|
|
300
|
+
# List roles assigned to this object.
|
301
|
+
# @param r_b_a_c_content_guard_href [String]
|
302
|
+
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
304
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
305
|
+
# @return [ObjectRolesResponse]
|
306
|
+
def list_roles(r_b_a_c_content_guard_href, opts = {})
|
307
|
+
data, _status_code, _headers = list_roles_with_http_info(r_b_a_c_content_guard_href, opts)
|
308
|
+
data
|
309
|
+
end
|
310
|
+
|
311
|
+
# List roles assigned to this object.
|
312
|
+
# @param r_b_a_c_content_guard_href [String]
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
315
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
316
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
317
|
+
def list_roles_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
318
|
+
if @api_client.config.debugging
|
319
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.list_roles ...'
|
320
|
+
end
|
321
|
+
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
322
|
+
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
323
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.list_roles"
|
324
|
+
end
|
325
|
+
# resource path
|
326
|
+
local_var_path = '{r_b_a_c_content_guard_href}list_roles/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
327
|
+
|
328
|
+
# query parameters
|
329
|
+
query_params = opts[:query_params] || {}
|
330
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
331
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
332
|
+
|
333
|
+
# header parameters
|
334
|
+
header_params = opts[:header_params] || {}
|
335
|
+
# HTTP header 'Accept' (if needed)
|
336
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
337
|
+
|
338
|
+
# form parameters
|
339
|
+
form_params = opts[:form_params] || {}
|
340
|
+
|
341
|
+
# http body (model)
|
342
|
+
post_body = opts[:body]
|
343
|
+
|
344
|
+
# return_type
|
345
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
346
|
+
|
347
|
+
# auth_names
|
348
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
349
|
+
|
350
|
+
new_options = opts.merge(
|
351
|
+
:header_params => header_params,
|
352
|
+
:query_params => query_params,
|
353
|
+
:form_params => form_params,
|
354
|
+
:body => post_body,
|
355
|
+
:auth_names => auth_names,
|
356
|
+
:return_type => return_type
|
357
|
+
)
|
358
|
+
|
359
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
360
|
+
if @api_client.config.debugging
|
361
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
362
|
+
end
|
363
|
+
return data, status_code, headers
|
364
|
+
end
|
365
|
+
|
366
|
+
# List permissions available to the current user on this object.
|
367
|
+
# @param r_b_a_c_content_guard_href [String]
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
370
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
371
|
+
# @return [MyPermissionsResponse]
|
372
|
+
def my_permissions(r_b_a_c_content_guard_href, opts = {})
|
373
|
+
data, _status_code, _headers = my_permissions_with_http_info(r_b_a_c_content_guard_href, opts)
|
374
|
+
data
|
375
|
+
end
|
376
|
+
|
377
|
+
# List permissions available to the current user on this object.
|
378
|
+
# @param r_b_a_c_content_guard_href [String]
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
381
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
382
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
383
|
+
def my_permissions_with_http_info(r_b_a_c_content_guard_href, opts = {})
|
384
|
+
if @api_client.config.debugging
|
385
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.my_permissions ...'
|
386
|
+
end
|
387
|
+
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
388
|
+
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
389
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.my_permissions"
|
390
|
+
end
|
391
|
+
# resource path
|
392
|
+
local_var_path = '{r_b_a_c_content_guard_href}my_permissions/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
393
|
+
|
394
|
+
# query parameters
|
395
|
+
query_params = opts[:query_params] || {}
|
396
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
397
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
398
|
+
|
399
|
+
# header parameters
|
400
|
+
header_params = opts[:header_params] || {}
|
401
|
+
# HTTP header 'Accept' (if needed)
|
402
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
403
|
+
|
404
|
+
# form parameters
|
405
|
+
form_params = opts[:form_params] || {}
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
post_body = opts[:body]
|
409
|
+
|
410
|
+
# return_type
|
411
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
412
|
+
|
413
|
+
# auth_names
|
414
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
415
|
+
|
416
|
+
new_options = opts.merge(
|
417
|
+
:header_params => header_params,
|
418
|
+
:query_params => query_params,
|
419
|
+
:form_params => form_params,
|
420
|
+
:body => post_body,
|
421
|
+
:auth_names => auth_names,
|
422
|
+
:return_type => return_type
|
423
|
+
)
|
424
|
+
|
425
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
+
end
|
429
|
+
return data, status_code, headers
|
430
|
+
end
|
431
|
+
|
302
432
|
# Update a rbac content guard
|
303
433
|
# Viewset for creating contentguards that use RBAC to protect content. Has add and remove actions for managing permission for users and groups to download content protected by this guard.
|
304
434
|
# @param r_b_a_c_content_guard_href [String]
|
@@ -437,37 +567,35 @@ module PulpcoreClient
|
|
437
567
|
return data, status_code, headers
|
438
568
|
end
|
439
569
|
|
440
|
-
# Remove
|
441
|
-
# Remove `download` permission from users and groups
|
570
|
+
# Remove a role for this object from users/groups.
|
442
571
|
# @param r_b_a_c_content_guard_href [String]
|
443
|
-
# @param
|
572
|
+
# @param nested_role [NestedRole]
|
444
573
|
# @param [Hash] opts the optional parameters
|
445
|
-
# @return [
|
446
|
-
def
|
447
|
-
data, _status_code, _headers =
|
574
|
+
# @return [NestedRoleResponse]
|
575
|
+
def remove_role(r_b_a_c_content_guard_href, nested_role, opts = {})
|
576
|
+
data, _status_code, _headers = remove_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts)
|
448
577
|
data
|
449
578
|
end
|
450
579
|
|
451
|
-
# Remove
|
452
|
-
# Remove `download` permission from users and groups
|
580
|
+
# Remove a role for this object from users/groups.
|
453
581
|
# @param r_b_a_c_content_guard_href [String]
|
454
|
-
# @param
|
582
|
+
# @param nested_role [NestedRole]
|
455
583
|
# @param [Hash] opts the optional parameters
|
456
|
-
# @return [Array<(
|
457
|
-
def
|
584
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
585
|
+
def remove_role_with_http_info(r_b_a_c_content_guard_href, nested_role, opts = {})
|
458
586
|
if @api_client.config.debugging
|
459
|
-
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.
|
587
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsRbacApi.remove_role ...'
|
460
588
|
end
|
461
589
|
# verify the required parameter 'r_b_a_c_content_guard_href' is set
|
462
590
|
if @api_client.config.client_side_validation && r_b_a_c_content_guard_href.nil?
|
463
|
-
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.
|
591
|
+
fail ArgumentError, "Missing the required parameter 'r_b_a_c_content_guard_href' when calling ContentguardsRbacApi.remove_role"
|
464
592
|
end
|
465
|
-
# verify the required parameter '
|
466
|
-
if @api_client.config.client_side_validation &&
|
467
|
-
fail ArgumentError, "Missing the required parameter '
|
593
|
+
# verify the required parameter 'nested_role' is set
|
594
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
595
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling ContentguardsRbacApi.remove_role"
|
468
596
|
end
|
469
597
|
# resource path
|
470
|
-
local_var_path = '{r_b_a_c_content_guard_href}
|
598
|
+
local_var_path = '{r_b_a_c_content_guard_href}remove_role/'.sub('{' + 'r_b_a_c_content_guard_href' + '}', CGI.escape(r_b_a_c_content_guard_href.to_s).gsub('%2F', '/'))
|
471
599
|
|
472
600
|
# query parameters
|
473
601
|
query_params = opts[:query_params] || {}
|
@@ -483,10 +611,10 @@ module PulpcoreClient
|
|
483
611
|
form_params = opts[:form_params] || {}
|
484
612
|
|
485
613
|
# http body (model)
|
486
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
614
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
487
615
|
|
488
616
|
# return_type
|
489
|
-
return_type = opts[:return_type] || '
|
617
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
490
618
|
|
491
619
|
# auth_names
|
492
620
|
auth_names = opts[:auth_names] || ['basicAuth']
|
@@ -502,7 +630,7 @@ module PulpcoreClient
|
|
502
630
|
|
503
631
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
504
632
|
if @api_client.config.debugging
|
505
|
-
@api_client.config.logger.debug "API called: ContentguardsRbacApi#
|
633
|
+
@api_client.config.logger.debug "API called: ContentguardsRbacApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
506
634
|
end
|
507
635
|
return data, status_code, headers
|
508
636
|
end
|