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.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +70 -22
  3. data/docs/AccessPoliciesApi.md +53 -0
  4. data/docs/AccessPolicy.md +3 -1
  5. data/docs/AccessPolicyResponse.md +3 -1
  6. data/docs/ContentguardsRbacApi.md +138 -22
  7. data/docs/GroupRole.md +19 -0
  8. data/docs/GroupRoleResponse.md +23 -0
  9. data/docs/GroupsApi.md +248 -20
  10. data/docs/GroupsModelPermissionsApi.md +20 -20
  11. data/docs/GroupsObjectPermissionsApi.md +20 -20
  12. data/docs/GroupsRolesApi.md +255 -0
  13. data/docs/GroupsUsersApi.md +15 -15
  14. data/docs/MyPermissionsResponse.md +17 -0
  15. data/docs/NestedRole.md +21 -0
  16. data/docs/NestedRoleResponse.md +21 -0
  17. data/docs/ObjectRolesResponse.md +17 -0
  18. data/docs/PaginatedGroupRoleResponseList.md +23 -0
  19. data/docs/PaginatedRoleResponseList.md +23 -0
  20. data/docs/PaginatedUserRoleResponseList.md +23 -0
  21. data/docs/PatchedAccessPolicy.md +3 -1
  22. data/docs/PatchedRole.md +21 -0
  23. data/docs/PatchedUser.md +29 -0
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/Purge.md +19 -0
  26. data/docs/Role.md +21 -0
  27. data/docs/RoleResponse.md +27 -0
  28. data/docs/RolesApi.md +363 -0
  29. data/docs/StatesEnum.md +16 -0
  30. data/docs/TasksApi.md +282 -0
  31. data/docs/User.md +29 -0
  32. data/docs/UserGroup.md +17 -0
  33. data/docs/UserResponse.md +3 -3
  34. data/docs/UserRole.md +19 -0
  35. data/docs/UserRoleResponse.md +23 -0
  36. data/docs/UsersApi.md +219 -0
  37. data/docs/UsersRolesApi.md +255 -0
  38. data/docs/WorkerResponse.md +3 -3
  39. data/git_push.sh +58 -0
  40. data/lib/pulpcore_client/api/access_policies_api.rb +60 -0
  41. data/lib/pulpcore_client/api/artifacts_api.rb +24 -0
  42. data/lib/pulpcore_client/api/contentguards_rbac_api.rb +168 -40
  43. data/lib/pulpcore_client/api/groups_api.rb +304 -36
  44. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +36 -36
  45. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +36 -36
  46. data/lib/pulpcore_client/api/groups_roles_api.rb +315 -0
  47. data/lib/pulpcore_client/api/groups_users_api.rb +27 -27
  48. data/lib/pulpcore_client/api/roles_api.rb +443 -0
  49. data/lib/pulpcore_client/api/tasks_api.rb +332 -0
  50. data/lib/pulpcore_client/api/uploads_api.rb +4 -0
  51. data/lib/pulpcore_client/api/users_api.rb +264 -0
  52. data/lib/pulpcore_client/api/users_roles_api.rb +315 -0
  53. data/lib/pulpcore_client/api_client.rb +5 -2
  54. data/lib/pulpcore_client/configuration.rb +0 -1
  55. data/lib/pulpcore_client/models/access_policy.rb +19 -2
  56. data/lib/pulpcore_client/models/access_policy_response.rb +19 -2
  57. data/lib/pulpcore_client/models/artifact.rb +90 -0
  58. data/lib/pulpcore_client/models/filesystem_exporter.rb +38 -0
  59. data/lib/pulpcore_client/models/group.rb +9 -0
  60. data/lib/pulpcore_client/models/group_role.rb +238 -0
  61. data/lib/pulpcore_client/models/group_role_response.rb +242 -0
  62. data/lib/pulpcore_client/models/group_user.rb +9 -0
  63. data/lib/pulpcore_client/models/{rbac_content_guard_permission.rb → my_permissions_response.rb} +16 -22
  64. data/lib/pulpcore_client/models/nested_role.rb +234 -0
  65. data/lib/pulpcore_client/models/nested_role_response.rb +234 -0
  66. data/lib/pulpcore_client/models/object_roles_response.rb +213 -0
  67. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +237 -0
  68. data/lib/pulpcore_client/models/paginated_role_response_list.rb +237 -0
  69. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +237 -0
  70. data/lib/pulpcore_client/models/patched_access_policy.rb +14 -2
  71. data/lib/pulpcore_client/models/patched_filesystem_exporter.rb +30 -0
  72. data/lib/pulpcore_client/models/patched_group.rb +9 -0
  73. data/lib/pulpcore_client/models/patched_pulp_exporter.rb +30 -0
  74. data/lib/pulpcore_client/models/patched_pulp_importer.rb +15 -0
  75. data/lib/pulpcore_client/models/patched_rbac_content_guard.rb +30 -0
  76. data/lib/pulpcore_client/models/patched_role.rb +261 -0
  77. data/lib/pulpcore_client/models/patched_task_cancel.rb +15 -0
  78. data/lib/pulpcore_client/models/patched_user.rb +342 -0
  79. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  80. data/lib/pulpcore_client/models/pulp_export.rb +15 -0
  81. data/lib/pulpcore_client/models/pulp_exporter.rb +38 -0
  82. data/lib/pulpcore_client/models/pulp_import.rb +30 -0
  83. data/lib/pulpcore_client/models/pulp_import_check.rb +45 -0
  84. data/lib/pulpcore_client/models/pulp_importer.rb +19 -0
  85. data/lib/pulpcore_client/models/purge.rb +219 -0
  86. data/lib/pulpcore_client/models/rbac_content_guard.rb +34 -0
  87. data/lib/pulpcore_client/models/role.rb +275 -0
  88. data/lib/pulpcore_client/models/role_response.rb +270 -0
  89. data/lib/pulpcore_client/models/states_enum.rb +38 -0
  90. data/lib/pulpcore_client/models/upload_chunk.rb +15 -0
  91. data/lib/pulpcore_client/models/upload_commit.rb +19 -0
  92. data/lib/pulpcore_client/models/user.rb +351 -0
  93. data/lib/pulpcore_client/models/user_group.rb +241 -0
  94. data/lib/pulpcore_client/models/user_response.rb +6 -29
  95. data/lib/pulpcore_client/models/user_role.rb +238 -0
  96. data/lib/pulpcore_client/models/user_role_response.rb +242 -0
  97. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  98. data/lib/pulpcore_client/version.rb +1 -1
  99. data/lib/pulpcore_client.rb +22 -1
  100. data/pulpcore_client.gemspec +3 -3
  101. data/spec/api/access_policies_api_spec.rb +11 -0
  102. data/spec/api/contentguards_rbac_api_spec.rb +36 -12
  103. data/spec/api/groups_api_spec.rb +54 -4
  104. data/spec/api/groups_model_permissions_api_spec.rb +4 -4
  105. data/spec/api/groups_object_permissions_api_spec.rb +4 -4
  106. data/spec/api/groups_roles_api_spec.rb +97 -0
  107. data/spec/api/groups_users_api_spec.rb +3 -3
  108. data/spec/api/roles_api_spec.rb +121 -0
  109. data/spec/api/tasks_api_spec.rb +62 -0
  110. data/spec/api/users_api_spec.rb +50 -0
  111. data/spec/api/users_roles_api_spec.rb +97 -0
  112. data/spec/models/access_policy_response_spec.rb +6 -0
  113. data/spec/models/access_policy_spec.rb +6 -0
  114. data/spec/models/group_role_response_spec.rb +59 -0
  115. data/spec/models/{rbac_content_guard_permission_spec.rb → group_role_spec.rb} +8 -8
  116. data/spec/models/my_permissions_response_spec.rb +41 -0
  117. data/spec/models/nested_role_response_spec.rb +53 -0
  118. data/spec/models/nested_role_spec.rb +53 -0
  119. data/spec/models/object_roles_response_spec.rb +41 -0
  120. data/spec/models/paginated_group_role_response_list_spec.rb +59 -0
  121. data/spec/models/paginated_role_response_list_spec.rb +59 -0
  122. data/spec/models/paginated_user_role_response_list_spec.rb +59 -0
  123. data/spec/models/patched_access_policy_spec.rb +6 -0
  124. data/spec/models/patched_role_spec.rb +53 -0
  125. data/spec/models/patched_user_spec.rb +77 -0
  126. data/spec/models/purge_spec.rb +47 -0
  127. data/spec/models/role_response_spec.rb +71 -0
  128. data/spec/models/role_spec.rb +53 -0
  129. data/spec/models/states_enum_spec.rb +35 -0
  130. data/spec/models/user_group_spec.rb +41 -0
  131. data/spec/models/user_role_response_spec.rb +59 -0
  132. data/spec/models/user_role_spec.rb +47 -0
  133. data/spec/models/user_spec.rb +77 -0
  134. data/spec/models/worker_response_spec.rb +2 -2
  135. metadata +190 -111
  136. data/docs/RBACContentGuardPermission.md +0 -19
@@ -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 group_href [String]
24
+ # @param nested_role [NestedRole]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [NestedRoleResponse]
27
+ def add_role(group_href, nested_role, opts = {})
28
+ data, _status_code, _headers = add_role_with_http_info(group_href, nested_role, opts)
29
+ data
30
+ end
31
+
32
+ # Add a role for this object to users/groups.
33
+ # @param group_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(group_href, nested_role, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: GroupsApi.add_role ...'
40
+ end
41
+ # verify the required parameter 'group_href' is set
42
+ if @api_client.config.client_side_validation && group_href.nil?
43
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.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 GroupsApi.add_role"
48
+ end
49
+ # resource path
50
+ local_var_path = '{group_href}add_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_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: GroupsApi#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 group
23
91
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
92
  # @param group [Group]
@@ -85,29 +153,29 @@ module PulpcoreClient
85
153
 
86
154
  # Delete a group
87
155
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
88
- # @param auth_group_href [String]
156
+ # @param group_href [String]
89
157
  # @param [Hash] opts the optional parameters
90
158
  # @return [nil]
91
- def delete(auth_group_href, opts = {})
92
- delete_with_http_info(auth_group_href, opts)
159
+ def delete(group_href, opts = {})
160
+ delete_with_http_info(group_href, opts)
93
161
  nil
94
162
  end
95
163
 
96
164
  # Delete a group
97
165
  # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
98
- # @param auth_group_href [String]
166
+ # @param group_href [String]
99
167
  # @param [Hash] opts the optional parameters
100
168
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
- def delete_with_http_info(auth_group_href, opts = {})
169
+ def delete_with_http_info(group_href, opts = {})
102
170
  if @api_client.config.debugging
103
171
  @api_client.config.logger.debug 'Calling API: GroupsApi.delete ...'
104
172
  end
105
- # verify the required parameter 'auth_group_href' is set
106
- if @api_client.config.client_side_validation && auth_group_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsApi.delete"
173
+ # verify the required parameter 'group_href' is set
174
+ if @api_client.config.client_side_validation && group_href.nil?
175
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.delete"
108
176
  end
109
177
  # resource path
110
- local_var_path = '{auth_group_href}'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
178
+ local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
111
179
 
112
180
  # query parameters
113
181
  query_params = opts[:query_params] || {}
@@ -235,37 +303,169 @@ module PulpcoreClient
235
303
  return data, status_code, headers
236
304
  end
237
305
 
306
+ # List roles assigned to this object.
307
+ # @param group_href [String]
308
+ # @param [Hash] opts the optional parameters
309
+ # @option opts [String] :fields A list of fields to include in the response.
310
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
311
+ # @return [ObjectRolesResponse]
312
+ def list_roles(group_href, opts = {})
313
+ data, _status_code, _headers = list_roles_with_http_info(group_href, opts)
314
+ data
315
+ end
316
+
317
+ # List roles assigned to this object.
318
+ # @param group_href [String]
319
+ # @param [Hash] opts the optional parameters
320
+ # @option opts [String] :fields A list of fields to include in the response.
321
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
322
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
323
+ def list_roles_with_http_info(group_href, opts = {})
324
+ if @api_client.config.debugging
325
+ @api_client.config.logger.debug 'Calling API: GroupsApi.list_roles ...'
326
+ end
327
+ # verify the required parameter 'group_href' is set
328
+ if @api_client.config.client_side_validation && group_href.nil?
329
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.list_roles"
330
+ end
331
+ # resource path
332
+ local_var_path = '{group_href}list_roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
333
+
334
+ # query parameters
335
+ query_params = opts[:query_params] || {}
336
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
337
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
338
+
339
+ # header parameters
340
+ header_params = opts[:header_params] || {}
341
+ # HTTP header 'Accept' (if needed)
342
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
343
+
344
+ # form parameters
345
+ form_params = opts[:form_params] || {}
346
+
347
+ # http body (model)
348
+ post_body = opts[:body]
349
+
350
+ # return_type
351
+ return_type = opts[:return_type] || 'ObjectRolesResponse'
352
+
353
+ # auth_names
354
+ auth_names = opts[:auth_names] || ['basicAuth']
355
+
356
+ new_options = opts.merge(
357
+ :header_params => header_params,
358
+ :query_params => query_params,
359
+ :form_params => form_params,
360
+ :body => post_body,
361
+ :auth_names => auth_names,
362
+ :return_type => return_type
363
+ )
364
+
365
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
366
+ if @api_client.config.debugging
367
+ @api_client.config.logger.debug "API called: GroupsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
368
+ end
369
+ return data, status_code, headers
370
+ end
371
+
372
+ # List permissions available to the current user on this object.
373
+ # @param group_href [String]
374
+ # @param [Hash] opts the optional parameters
375
+ # @option opts [String] :fields A list of fields to include in the response.
376
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
377
+ # @return [MyPermissionsResponse]
378
+ def my_permissions(group_href, opts = {})
379
+ data, _status_code, _headers = my_permissions_with_http_info(group_href, opts)
380
+ data
381
+ end
382
+
383
+ # List permissions available to the current user on this object.
384
+ # @param group_href [String]
385
+ # @param [Hash] opts the optional parameters
386
+ # @option opts [String] :fields A list of fields to include in the response.
387
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
388
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
389
+ def my_permissions_with_http_info(group_href, opts = {})
390
+ if @api_client.config.debugging
391
+ @api_client.config.logger.debug 'Calling API: GroupsApi.my_permissions ...'
392
+ end
393
+ # verify the required parameter 'group_href' is set
394
+ if @api_client.config.client_side_validation && group_href.nil?
395
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.my_permissions"
396
+ end
397
+ # resource path
398
+ local_var_path = '{group_href}my_permissions/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
399
+
400
+ # query parameters
401
+ query_params = opts[:query_params] || {}
402
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
403
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
404
+
405
+ # header parameters
406
+ header_params = opts[:header_params] || {}
407
+ # HTTP header 'Accept' (if needed)
408
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
409
+
410
+ # form parameters
411
+ form_params = opts[:form_params] || {}
412
+
413
+ # http body (model)
414
+ post_body = opts[:body]
415
+
416
+ # return_type
417
+ return_type = opts[:return_type] || 'MyPermissionsResponse'
418
+
419
+ # auth_names
420
+ auth_names = opts[:auth_names] || ['basicAuth']
421
+
422
+ new_options = opts.merge(
423
+ :header_params => header_params,
424
+ :query_params => query_params,
425
+ :form_params => form_params,
426
+ :body => post_body,
427
+ :auth_names => auth_names,
428
+ :return_type => return_type
429
+ )
430
+
431
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug "API called: GroupsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
434
+ end
435
+ return data, status_code, headers
436
+ end
437
+
238
438
  # Update a group
239
439
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
240
- # @param auth_group_href [String]
440
+ # @param group_href [String]
241
441
  # @param patched_group [PatchedGroup]
242
442
  # @param [Hash] opts the optional parameters
243
443
  # @return [GroupResponse]
244
- def partial_update(auth_group_href, patched_group, opts = {})
245
- data, _status_code, _headers = partial_update_with_http_info(auth_group_href, patched_group, opts)
444
+ def partial_update(group_href, patched_group, opts = {})
445
+ data, _status_code, _headers = partial_update_with_http_info(group_href, patched_group, opts)
246
446
  data
247
447
  end
248
448
 
249
449
  # Update a group
250
450
  # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
251
- # @param auth_group_href [String]
451
+ # @param group_href [String]
252
452
  # @param patched_group [PatchedGroup]
253
453
  # @param [Hash] opts the optional parameters
254
454
  # @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
255
- def partial_update_with_http_info(auth_group_href, patched_group, opts = {})
455
+ def partial_update_with_http_info(group_href, patched_group, opts = {})
256
456
  if @api_client.config.debugging
257
457
  @api_client.config.logger.debug 'Calling API: GroupsApi.partial_update ...'
258
458
  end
259
- # verify the required parameter 'auth_group_href' is set
260
- if @api_client.config.client_side_validation && auth_group_href.nil?
261
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsApi.partial_update"
459
+ # verify the required parameter 'group_href' is set
460
+ if @api_client.config.client_side_validation && group_href.nil?
461
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.partial_update"
262
462
  end
263
463
  # verify the required parameter 'patched_group' is set
264
464
  if @api_client.config.client_side_validation && patched_group.nil?
265
465
  fail ArgumentError, "Missing the required parameter 'patched_group' when calling GroupsApi.partial_update"
266
466
  end
267
467
  # resource path
268
- local_var_path = '{auth_group_href}'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
468
+ local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
269
469
 
270
470
  # query parameters
271
471
  query_params = opts[:query_params] || {}
@@ -307,33 +507,33 @@ module PulpcoreClient
307
507
 
308
508
  # Inspect a group
309
509
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
310
- # @param auth_group_href [String]
510
+ # @param group_href [String]
311
511
  # @param [Hash] opts the optional parameters
312
512
  # @option opts [String] :fields A list of fields to include in the response.
313
513
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
314
514
  # @return [GroupResponse]
315
- def read(auth_group_href, opts = {})
316
- data, _status_code, _headers = read_with_http_info(auth_group_href, opts)
515
+ def read(group_href, opts = {})
516
+ data, _status_code, _headers = read_with_http_info(group_href, opts)
317
517
  data
318
518
  end
319
519
 
320
520
  # Inspect a group
321
521
  # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
322
- # @param auth_group_href [String]
522
+ # @param group_href [String]
323
523
  # @param [Hash] opts the optional parameters
324
524
  # @option opts [String] :fields A list of fields to include in the response.
325
525
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
326
526
  # @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
327
- def read_with_http_info(auth_group_href, opts = {})
527
+ def read_with_http_info(group_href, opts = {})
328
528
  if @api_client.config.debugging
329
529
  @api_client.config.logger.debug 'Calling API: GroupsApi.read ...'
330
530
  end
331
- # verify the required parameter 'auth_group_href' is set
332
- if @api_client.config.client_side_validation && auth_group_href.nil?
333
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsApi.read"
531
+ # verify the required parameter 'group_href' is set
532
+ if @api_client.config.client_side_validation && group_href.nil?
533
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.read"
334
534
  end
335
535
  # resource path
336
- local_var_path = '{auth_group_href}'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
536
+ local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
337
537
 
338
538
  # query parameters
339
539
  query_params = opts[:query_params] || {}
@@ -373,37 +573,105 @@ module PulpcoreClient
373
573
  return data, status_code, headers
374
574
  end
375
575
 
576
+ # Remove a role for this object from users/groups.
577
+ # @param group_href [String]
578
+ # @param nested_role [NestedRole]
579
+ # @param [Hash] opts the optional parameters
580
+ # @return [NestedRoleResponse]
581
+ def remove_role(group_href, nested_role, opts = {})
582
+ data, _status_code, _headers = remove_role_with_http_info(group_href, nested_role, opts)
583
+ data
584
+ end
585
+
586
+ # Remove a role for this object from users/groups.
587
+ # @param group_href [String]
588
+ # @param nested_role [NestedRole]
589
+ # @param [Hash] opts the optional parameters
590
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
591
+ def remove_role_with_http_info(group_href, nested_role, opts = {})
592
+ if @api_client.config.debugging
593
+ @api_client.config.logger.debug 'Calling API: GroupsApi.remove_role ...'
594
+ end
595
+ # verify the required parameter 'group_href' is set
596
+ if @api_client.config.client_side_validation && group_href.nil?
597
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.remove_role"
598
+ end
599
+ # verify the required parameter 'nested_role' is set
600
+ if @api_client.config.client_side_validation && nested_role.nil?
601
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.remove_role"
602
+ end
603
+ # resource path
604
+ local_var_path = '{group_href}remove_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
605
+
606
+ # query parameters
607
+ query_params = opts[:query_params] || {}
608
+
609
+ # header parameters
610
+ header_params = opts[:header_params] || {}
611
+ # HTTP header 'Accept' (if needed)
612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
613
+ # HTTP header 'Content-Type'
614
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
615
+
616
+ # form parameters
617
+ form_params = opts[:form_params] || {}
618
+
619
+ # http body (model)
620
+ post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
621
+
622
+ # return_type
623
+ return_type = opts[:return_type] || 'NestedRoleResponse'
624
+
625
+ # auth_names
626
+ auth_names = opts[:auth_names] || ['basicAuth']
627
+
628
+ new_options = opts.merge(
629
+ :header_params => header_params,
630
+ :query_params => query_params,
631
+ :form_params => form_params,
632
+ :body => post_body,
633
+ :auth_names => auth_names,
634
+ :return_type => return_type
635
+ )
636
+
637
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
638
+ if @api_client.config.debugging
639
+ @api_client.config.logger.debug "API called: GroupsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
640
+ end
641
+ return data, status_code, headers
642
+ end
643
+
376
644
  # Update a group
377
645
  # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
378
- # @param auth_group_href [String]
646
+ # @param group_href [String]
379
647
  # @param group [Group]
380
648
  # @param [Hash] opts the optional parameters
381
649
  # @return [GroupResponse]
382
- def update(auth_group_href, group, opts = {})
383
- data, _status_code, _headers = update_with_http_info(auth_group_href, group, opts)
650
+ def update(group_href, group, opts = {})
651
+ data, _status_code, _headers = update_with_http_info(group_href, group, opts)
384
652
  data
385
653
  end
386
654
 
387
655
  # Update a group
388
656
  # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
389
- # @param auth_group_href [String]
657
+ # @param group_href [String]
390
658
  # @param group [Group]
391
659
  # @param [Hash] opts the optional parameters
392
660
  # @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
393
- def update_with_http_info(auth_group_href, group, opts = {})
661
+ def update_with_http_info(group_href, group, opts = {})
394
662
  if @api_client.config.debugging
395
663
  @api_client.config.logger.debug 'Calling API: GroupsApi.update ...'
396
664
  end
397
- # verify the required parameter 'auth_group_href' is set
398
- if @api_client.config.client_side_validation && auth_group_href.nil?
399
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsApi.update"
665
+ # verify the required parameter 'group_href' is set
666
+ if @api_client.config.client_side_validation && group_href.nil?
667
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.update"
400
668
  end
401
669
  # verify the required parameter 'group' is set
402
670
  if @api_client.config.client_side_validation && group.nil?
403
671
  fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.update"
404
672
  end
405
673
  # resource path
406
- local_var_path = '{auth_group_href}'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
674
+ local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
407
675
 
408
676
  # query parameters
409
677
  query_params = opts[:query_params] || {}
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create a permission
23
23
  # Add a model permission to a group.
24
- # @param auth_group_href [String]
24
+ # @param group_href [String]
25
25
  # @param body [Object]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [PermissionResponse]
28
- def create(auth_group_href, body, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_group_href, body, opts)
28
+ def create(group_href, body, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(group_href, body, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create a permission
34
34
  # Add a model permission to a group.
35
- # @param auth_group_href [String]
35
+ # @param group_href [String]
36
36
  # @param body [Object]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
39
- def create_with_http_info(auth_group_href, body, opts = {})
39
+ def create_with_http_info(group_href, body, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.create ...'
42
42
  end
43
- # verify the required parameter 'auth_group_href' is set
44
- if @api_client.config.client_side_validation && auth_group_href.nil?
45
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsModelPermissionsApi.create"
43
+ # verify the required parameter 'group_href' is set
44
+ if @api_client.config.client_side_validation && group_href.nil?
45
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsModelPermissionsApi.create"
46
46
  end
47
47
  # verify the required parameter 'body' is set
48
48
  if @api_client.config.client_side_validation && body.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'body' when calling GroupsModelPermissionsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_group_href}model_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{group_href}model_permissions/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
53
53
 
54
54
  # query parameters
55
55
  query_params = opts[:query_params] || {}
@@ -91,29 +91,29 @@ module PulpcoreClient
91
91
 
92
92
  # Delete a permission
93
93
  # Remove a model permission from a group.
94
- # @param auth_groups_model_permission_href [String]
94
+ # @param groups_model_permission_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_groups_model_permission_href, opts = {})
98
- delete_with_http_info(auth_groups_model_permission_href, opts)
97
+ def delete(groups_model_permission_href, opts = {})
98
+ delete_with_http_info(groups_model_permission_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete a permission
103
103
  # Remove a model permission from a group.
104
- # @param auth_groups_model_permission_href [String]
104
+ # @param groups_model_permission_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
- def delete_with_http_info(auth_groups_model_permission_href, opts = {})
107
+ def delete_with_http_info(groups_model_permission_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.delete ...'
110
110
  end
111
- # verify the required parameter 'auth_groups_model_permission_href' is set
112
- if @api_client.config.client_side_validation && auth_groups_model_permission_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_groups_model_permission_href' when calling GroupsModelPermissionsApi.delete"
111
+ # verify the required parameter 'groups_model_permission_href' is set
112
+ if @api_client.config.client_side_validation && groups_model_permission_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'groups_model_permission_href' when calling GroupsModelPermissionsApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{auth_groups_model_permission_href}'.sub('{' + 'auth_groups_model_permission_href' + '}', CGI.escape(auth_groups_model_permission_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{groups_model_permission_href}'.sub('{' + 'groups_model_permission_href' + '}', CGI.escape(groups_model_permission_href.to_s).gsub('%2F', '/'))
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}
@@ -151,7 +151,7 @@ module PulpcoreClient
151
151
 
152
152
  # List permissions
153
153
  # List group permissions.
154
- # @param auth_group_href [String]
154
+ # @param group_href [String]
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [Integer] :limit Number of results to return per page.
157
157
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -159,14 +159,14 @@ module PulpcoreClient
159
159
  # @option opts [String] :fields A list of fields to include in the response.
160
160
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
161
161
  # @return [PaginatedPermissionResponseList]
162
- def list(auth_group_href, opts = {})
163
- data, _status_code, _headers = list_with_http_info(auth_group_href, opts)
162
+ def list(group_href, opts = {})
163
+ data, _status_code, _headers = list_with_http_info(group_href, opts)
164
164
  data
165
165
  end
166
166
 
167
167
  # List permissions
168
168
  # List group permissions.
169
- # @param auth_group_href [String]
169
+ # @param group_href [String]
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @option opts [Integer] :limit Number of results to return per page.
172
172
  # @option opts [Integer] :offset The initial index from which to return the results.
@@ -174,16 +174,16 @@ module PulpcoreClient
174
174
  # @option opts [String] :fields A list of fields to include in the response.
175
175
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
176
176
  # @return [Array<(PaginatedPermissionResponseList, Integer, Hash)>] PaginatedPermissionResponseList data, response status code and response headers
177
- def list_with_http_info(auth_group_href, opts = {})
177
+ def list_with_http_info(group_href, opts = {})
178
178
  if @api_client.config.debugging
179
179
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.list ...'
180
180
  end
181
- # verify the required parameter 'auth_group_href' is set
182
- if @api_client.config.client_side_validation && auth_group_href.nil?
183
- fail ArgumentError, "Missing the required parameter 'auth_group_href' when calling GroupsModelPermissionsApi.list"
181
+ # verify the required parameter 'group_href' is set
182
+ if @api_client.config.client_side_validation && group_href.nil?
183
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsModelPermissionsApi.list"
184
184
  end
185
185
  # resource path
186
- local_var_path = '{auth_group_href}model_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
186
+ local_var_path = '{group_href}model_permissions/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
@@ -228,33 +228,33 @@ module PulpcoreClient
228
228
 
229
229
  # Inspect a permission
230
230
  # Retrieve a model permission from a group.
231
- # @param auth_groups_model_permission_href [String]
231
+ # @param groups_model_permission_href [String]
232
232
  # @param [Hash] opts the optional parameters
233
233
  # @option opts [String] :fields A list of fields to include in the response.
234
234
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
235
  # @return [PermissionResponse]
236
- def read(auth_groups_model_permission_href, opts = {})
237
- data, _status_code, _headers = read_with_http_info(auth_groups_model_permission_href, opts)
236
+ def read(groups_model_permission_href, opts = {})
237
+ data, _status_code, _headers = read_with_http_info(groups_model_permission_href, opts)
238
238
  data
239
239
  end
240
240
 
241
241
  # Inspect a permission
242
242
  # Retrieve a model permission from a group.
243
- # @param auth_groups_model_permission_href [String]
243
+ # @param groups_model_permission_href [String]
244
244
  # @param [Hash] opts the optional parameters
245
245
  # @option opts [String] :fields A list of fields to include in the response.
246
246
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
247
247
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
248
- def read_with_http_info(auth_groups_model_permission_href, opts = {})
248
+ def read_with_http_info(groups_model_permission_href, opts = {})
249
249
  if @api_client.config.debugging
250
250
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.read ...'
251
251
  end
252
- # verify the required parameter 'auth_groups_model_permission_href' is set
253
- if @api_client.config.client_side_validation && auth_groups_model_permission_href.nil?
254
- fail ArgumentError, "Missing the required parameter 'auth_groups_model_permission_href' when calling GroupsModelPermissionsApi.read"
252
+ # verify the required parameter 'groups_model_permission_href' is set
253
+ if @api_client.config.client_side_validation && groups_model_permission_href.nil?
254
+ fail ArgumentError, "Missing the required parameter 'groups_model_permission_href' when calling GroupsModelPermissionsApi.read"
255
255
  end
256
256
  # resource path
257
- local_var_path = '{auth_groups_model_permission_href}'.sub('{' + 'auth_groups_model_permission_href' + '}', CGI.escape(auth_groups_model_permission_href.to_s).gsub('%2F', '/'))
257
+ local_var_path = '{groups_model_permission_href}'.sub('{' + 'groups_model_permission_href' + '}', CGI.escape(groups_model_permission_href.to_s).gsub('%2F', '/'))
258
258
 
259
259
  # query parameters
260
260
  query_params = opts[:query_params] || {}