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
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create a permission
23
23
  # Add an object 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 an object 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: GroupsObjectPermissionsApi.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 GroupsObjectPermissionsApi.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 GroupsObjectPermissionsApi.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 GroupsObjectPermissionsApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_group_href}object_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{group_href}object_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 an object permission from a group.
94
- # @param auth_groups_object_permission_href [String]
94
+ # @param groups_object_permission_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_groups_object_permission_href, opts = {})
98
- delete_with_http_info(auth_groups_object_permission_href, opts)
97
+ def delete(groups_object_permission_href, opts = {})
98
+ delete_with_http_info(groups_object_permission_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete a permission
103
103
  # Remove an object permission from a group.
104
- # @param auth_groups_object_permission_href [String]
104
+ # @param groups_object_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_object_permission_href, opts = {})
107
+ def delete_with_http_info(groups_object_permission_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.delete ...'
110
110
  end
111
- # verify the required parameter 'auth_groups_object_permission_href' is set
112
- if @api_client.config.client_side_validation && auth_groups_object_permission_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_groups_object_permission_href' when calling GroupsObjectPermissionsApi.delete"
111
+ # verify the required parameter 'groups_object_permission_href' is set
112
+ if @api_client.config.client_side_validation && groups_object_permission_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'groups_object_permission_href' when calling GroupsObjectPermissionsApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{auth_groups_object_permission_href}'.sub('{' + 'auth_groups_object_permission_href' + '}', CGI.escape(auth_groups_object_permission_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{groups_object_permission_href}'.sub('{' + 'groups_object_permission_href' + '}', CGI.escape(groups_object_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 object 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 object 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: GroupsObjectPermissionsApi.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 GroupsObjectPermissionsApi.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 GroupsObjectPermissionsApi.list"
184
184
  end
185
185
  # resource path
186
- local_var_path = '{auth_group_href}object_permissions/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
186
+ local_var_path = '{group_href}object_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_object_permission_href [String]
231
+ # @param groups_object_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_object_permission_href, opts = {})
237
- data, _status_code, _headers = read_with_http_info(auth_groups_object_permission_href, opts)
236
+ def read(groups_object_permission_href, opts = {})
237
+ data, _status_code, _headers = read_with_http_info(groups_object_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_object_permission_href [String]
243
+ # @param groups_object_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_object_permission_href, opts = {})
248
+ def read_with_http_info(groups_object_permission_href, opts = {})
249
249
  if @api_client.config.debugging
250
250
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.read ...'
251
251
  end
252
- # verify the required parameter 'auth_groups_object_permission_href' is set
253
- if @api_client.config.client_side_validation && auth_groups_object_permission_href.nil?
254
- fail ArgumentError, "Missing the required parameter 'auth_groups_object_permission_href' when calling GroupsObjectPermissionsApi.read"
252
+ # verify the required parameter 'groups_object_permission_href' is set
253
+ if @api_client.config.client_side_validation && groups_object_permission_href.nil?
254
+ fail ArgumentError, "Missing the required parameter 'groups_object_permission_href' when calling GroupsObjectPermissionsApi.read"
255
255
  end
256
256
  # resource path
257
- local_var_path = '{auth_groups_object_permission_href}'.sub('{' + 'auth_groups_object_permission_href' + '}', CGI.escape(auth_groups_object_permission_href.to_s).gsub('%2F', '/'))
257
+ local_var_path = '{groups_object_permission_href}'.sub('{' + 'groups_object_permission_href' + '}', CGI.escape(groups_object_permission_href.to_s).gsub('%2F', '/'))
258
258
 
259
259
  # query parameters
260
260
  query_params = opts[:query_params] || {}
@@ -0,0 +1,315 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class GroupsRolesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a group role
23
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
+ # @param group_href [String]
25
+ # @param group_role [GroupRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [GroupRoleResponse]
28
+ def create(group_href, group_role, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(group_href, group_role, opts)
30
+ data
31
+ end
32
+
33
+ # Create a group role
34
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
35
+ # @param group_href [String]
36
+ # @param group_role [GroupRole]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(GroupRoleResponse, Integer, Hash)>] GroupRoleResponse data, response status code and response headers
39
+ def create_with_http_info(group_href, group_role, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: GroupsRolesApi.create ...'
42
+ end
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 GroupsRolesApi.create"
46
+ end
47
+ # verify the required parameter 'group_role' is set
48
+ if @api_client.config.client_side_validation && group_role.nil?
49
+ fail ArgumentError, "Missing the required parameter 'group_role' when calling GroupsRolesApi.create"
50
+ end
51
+ # resource path
52
+ local_var_path = '{group_href}roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:body] || @api_client.object_to_http_body(group_role)
69
+
70
+ # return_type
71
+ return_type = opts[:return_type] || 'GroupRoleResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: GroupsRolesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Delete a group role
93
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
94
+ # @param groups_group_role_href [String]
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [nil]
97
+ def delete(groups_group_role_href, opts = {})
98
+ delete_with_http_info(groups_group_role_href, opts)
99
+ nil
100
+ end
101
+
102
+ # Delete a group role
103
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
104
+ # @param groups_group_role_href [String]
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
107
+ def delete_with_http_info(groups_group_role_href, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug 'Calling API: GroupsRolesApi.delete ...'
110
+ end
111
+ # verify the required parameter 'groups_group_role_href' is set
112
+ if @api_client.config.client_side_validation && groups_group_role_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'groups_group_role_href' when calling GroupsRolesApi.delete"
114
+ end
115
+ # resource path
116
+ local_var_path = '{groups_group_role_href}'.sub('{' + 'groups_group_role_href' + '}', CGI.escape(groups_group_role_href.to_s).gsub('%2F', '/'))
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+
121
+ # header parameters
122
+ header_params = opts[:header_params] || {}
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:body]
129
+
130
+ # return_type
131
+ return_type = opts[:return_type]
132
+
133
+ # auth_names
134
+ auth_names = opts[:auth_names] || ['basicAuth']
135
+
136
+ new_options = opts.merge(
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => return_type
143
+ )
144
+
145
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: GroupsRolesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
+ end
149
+ return data, status_code, headers
150
+ end
151
+
152
+ # List group roles
153
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
154
+ # @param group_href [String]
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [String] :content_object content_object
157
+ # @option opts [Integer] :limit Number of results to return per page.
158
+ # @option opts [Integer] :offset The initial index from which to return the results.
159
+ # @option opts [String] :ordering Which field to use when ordering the results.
160
+ # @option opts [String] :role
161
+ # @option opts [String] :role__contains
162
+ # @option opts [String] :role__icontains
163
+ # @option opts [Array<String>] :role__in Multiple values may be separated by commas.
164
+ # @option opts [String] :role__startswith
165
+ # @option opts [String] :fields A list of fields to include in the response.
166
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
167
+ # @return [PaginatedGroupRoleResponseList]
168
+ def list(group_href, opts = {})
169
+ data, _status_code, _headers = list_with_http_info(group_href, opts)
170
+ data
171
+ end
172
+
173
+ # List group roles
174
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
175
+ # @param group_href [String]
176
+ # @param [Hash] opts the optional parameters
177
+ # @option opts [String] :content_object content_object
178
+ # @option opts [Integer] :limit Number of results to return per page.
179
+ # @option opts [Integer] :offset The initial index from which to return the results.
180
+ # @option opts [String] :ordering Which field to use when ordering the results.
181
+ # @option opts [String] :role
182
+ # @option opts [String] :role__contains
183
+ # @option opts [String] :role__icontains
184
+ # @option opts [Array<String>] :role__in Multiple values may be separated by commas.
185
+ # @option opts [String] :role__startswith
186
+ # @option opts [String] :fields A list of fields to include in the response.
187
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
188
+ # @return [Array<(PaginatedGroupRoleResponseList, Integer, Hash)>] PaginatedGroupRoleResponseList data, response status code and response headers
189
+ def list_with_http_info(group_href, opts = {})
190
+ if @api_client.config.debugging
191
+ @api_client.config.logger.debug 'Calling API: GroupsRolesApi.list ...'
192
+ end
193
+ # verify the required parameter 'group_href' is set
194
+ if @api_client.config.client_side_validation && group_href.nil?
195
+ fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsRolesApi.list"
196
+ end
197
+ # resource path
198
+ local_var_path = '{group_href}roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
199
+
200
+ # query parameters
201
+ query_params = opts[:query_params] || {}
202
+ query_params[:'content_object'] = opts[:'content_object'] if !opts[:'content_object'].nil?
203
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
204
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
205
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
206
+ query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
207
+ query_params[:'role__contains'] = opts[:'role__contains'] if !opts[:'role__contains'].nil?
208
+ query_params[:'role__icontains'] = opts[:'role__icontains'] if !opts[:'role__icontains'].nil?
209
+ query_params[:'role__in'] = @api_client.build_collection_param(opts[:'role__in'], :csv) if !opts[:'role__in'].nil?
210
+ query_params[:'role__startswith'] = opts[:'role__startswith'] if !opts[:'role__startswith'].nil?
211
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
212
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
213
+
214
+ # header parameters
215
+ header_params = opts[:header_params] || {}
216
+ # HTTP header 'Accept' (if needed)
217
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+
219
+ # form parameters
220
+ form_params = opts[:form_params] || {}
221
+
222
+ # http body (model)
223
+ post_body = opts[:body]
224
+
225
+ # return_type
226
+ return_type = opts[:return_type] || 'PaginatedGroupRoleResponseList'
227
+
228
+ # auth_names
229
+ auth_names = opts[:auth_names] || ['basicAuth']
230
+
231
+ new_options = opts.merge(
232
+ :header_params => header_params,
233
+ :query_params => query_params,
234
+ :form_params => form_params,
235
+ :body => post_body,
236
+ :auth_names => auth_names,
237
+ :return_type => return_type
238
+ )
239
+
240
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
241
+ if @api_client.config.debugging
242
+ @api_client.config.logger.debug "API called: GroupsRolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
243
+ end
244
+ return data, status_code, headers
245
+ end
246
+
247
+ # Inspect a group role
248
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
249
+ # @param groups_group_role_href [String]
250
+ # @param [Hash] opts the optional parameters
251
+ # @option opts [String] :fields A list of fields to include in the response.
252
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
253
+ # @return [GroupRoleResponse]
254
+ def read(groups_group_role_href, opts = {})
255
+ data, _status_code, _headers = read_with_http_info(groups_group_role_href, opts)
256
+ data
257
+ end
258
+
259
+ # Inspect a group role
260
+ # ViewSet for GroupRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
261
+ # @param groups_group_role_href [String]
262
+ # @param [Hash] opts the optional parameters
263
+ # @option opts [String] :fields A list of fields to include in the response.
264
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
265
+ # @return [Array<(GroupRoleResponse, Integer, Hash)>] GroupRoleResponse data, response status code and response headers
266
+ def read_with_http_info(groups_group_role_href, opts = {})
267
+ if @api_client.config.debugging
268
+ @api_client.config.logger.debug 'Calling API: GroupsRolesApi.read ...'
269
+ end
270
+ # verify the required parameter 'groups_group_role_href' is set
271
+ if @api_client.config.client_side_validation && groups_group_role_href.nil?
272
+ fail ArgumentError, "Missing the required parameter 'groups_group_role_href' when calling GroupsRolesApi.read"
273
+ end
274
+ # resource path
275
+ local_var_path = '{groups_group_role_href}'.sub('{' + 'groups_group_role_href' + '}', CGI.escape(groups_group_role_href.to_s).gsub('%2F', '/'))
276
+
277
+ # query parameters
278
+ query_params = opts[:query_params] || {}
279
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
280
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
281
+
282
+ # header parameters
283
+ header_params = opts[:header_params] || {}
284
+ # HTTP header 'Accept' (if needed)
285
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
286
+
287
+ # form parameters
288
+ form_params = opts[:form_params] || {}
289
+
290
+ # http body (model)
291
+ post_body = opts[:body]
292
+
293
+ # return_type
294
+ return_type = opts[:return_type] || 'GroupRoleResponse'
295
+
296
+ # auth_names
297
+ auth_names = opts[:auth_names] || ['basicAuth']
298
+
299
+ new_options = opts.merge(
300
+ :header_params => header_params,
301
+ :query_params => query_params,
302
+ :form_params => form_params,
303
+ :body => post_body,
304
+ :auth_names => auth_names,
305
+ :return_type => return_type
306
+ )
307
+
308
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
309
+ if @api_client.config.debugging
310
+ @api_client.config.logger.debug "API called: GroupsRolesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
311
+ end
312
+ return data, status_code, headers
313
+ end
314
+ end
315
+ end
@@ -21,35 +21,35 @@ module PulpcoreClient
21
21
  end
22
22
  # Create an user
23
23
  # Add a user to a group.
24
- # @param auth_group_href [String]
24
+ # @param group_href [String]
25
25
  # @param group_user [GroupUser]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [GroupUserResponse]
28
- def create(auth_group_href, group_user, opts = {})
29
- data, _status_code, _headers = create_with_http_info(auth_group_href, group_user, opts)
28
+ def create(group_href, group_user, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(group_href, group_user, opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create an user
34
34
  # Add a user to a group.
35
- # @param auth_group_href [String]
35
+ # @param group_href [String]
36
36
  # @param group_user [GroupUser]
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(GroupUserResponse, Integer, Hash)>] GroupUserResponse data, response status code and response headers
39
- def create_with_http_info(auth_group_href, group_user, opts = {})
39
+ def create_with_http_info(group_href, group_user, opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: GroupsUsersApi.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 GroupsUsersApi.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 GroupsUsersApi.create"
46
46
  end
47
47
  # verify the required parameter 'group_user' is set
48
48
  if @api_client.config.client_side_validation && group_user.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'group_user' when calling GroupsUsersApi.create"
50
50
  end
51
51
  # resource path
52
- local_var_path = '{auth_group_href}users/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
52
+ local_var_path = '{group_href}users/'.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 an user
93
93
  # Remove a user from a group.
94
- # @param auth_groups_user_href [String]
94
+ # @param groups_user_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
97
- def delete(auth_groups_user_href, opts = {})
98
- delete_with_http_info(auth_groups_user_href, opts)
97
+ def delete(groups_user_href, opts = {})
98
+ delete_with_http_info(groups_user_href, opts)
99
99
  nil
100
100
  end
101
101
 
102
102
  # Delete an user
103
103
  # Remove a user from a group.
104
- # @param auth_groups_user_href [String]
104
+ # @param groups_user_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_user_href, opts = {})
107
+ def delete_with_http_info(groups_user_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: GroupsUsersApi.delete ...'
110
110
  end
111
- # verify the required parameter 'auth_groups_user_href' is set
112
- if @api_client.config.client_side_validation && auth_groups_user_href.nil?
113
- fail ArgumentError, "Missing the required parameter 'auth_groups_user_href' when calling GroupsUsersApi.delete"
111
+ # verify the required parameter 'groups_user_href' is set
112
+ if @api_client.config.client_side_validation && groups_user_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'groups_user_href' when calling GroupsUsersApi.delete"
114
114
  end
115
115
  # resource path
116
- local_var_path = '{auth_groups_user_href}'.sub('{' + 'auth_groups_user_href' + '}', CGI.escape(auth_groups_user_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{groups_user_href}'.sub('{' + 'groups_user_href' + '}', CGI.escape(groups_user_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 users
153
153
  # List group users.
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 [PaginatedGroupUserResponseList]
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 users
168
168
  # List group users.
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<(PaginatedGroupUserResponseList, Integer, Hash)>] PaginatedGroupUserResponseList 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: GroupsUsersApi.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 GroupsUsersApi.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 GroupsUsersApi.list"
184
184
  end
185
185
  # resource path
186
- local_var_path = '{auth_group_href}users/'.sub('{' + 'auth_group_href' + '}', CGI.escape(auth_group_href.to_s).gsub('%2F', '/'))
186
+ local_var_path = '{group_href}users/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}