pulpcore_client 3.28.30 → 3.28.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +154 -156
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactDistributionResponse.md +9 -9
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +5 -5
- data/docs/ContentguardsContentRedirectApi.md +50 -50
- data/docs/ContentguardsRbacApi.md +50 -50
- data/docs/DistributionsApi.md +5 -5
- data/docs/DistributionsArtifactsApi.md +10 -10
- data/docs/DomainsApi.md +30 -30
- data/docs/ExportersFilesystemApi.md +30 -30
- data/docs/ExportersFilesystemExportsApi.md +20 -20
- data/docs/ExportersPulpApi.md +30 -30
- data/docs/ExportersPulpExportsApi.md +20 -20
- data/docs/GroupsApi.md +50 -50
- data/docs/GroupsRolesApi.md +20 -20
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/ImportersPulpApi.md +30 -30
- data/docs/ImportersPulpImportsApi.md +20 -20
- data/docs/OrphansApi.md +5 -5
- data/docs/OrphansCleanupApi.md +5 -5
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +5 -5
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +5 -5
- data/docs/RepositoryVersionsApi.md +5 -5
- data/docs/RolesApi.md +30 -30
- data/docs/SigningServicesApi.md +10 -10
- data/docs/TaskGroupsApi.md +10 -10
- data/docs/TaskSchedulesApi.md +30 -30
- data/docs/TasksApi.md +95 -95
- data/docs/UploadsApi.md +50 -50
- data/docs/UpstreamPulpsApi.md +35 -35
- data/docs/UsersApi.md +30 -30
- data/docs/UsersRolesApi.md +20 -20
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
- data/lib/pulpcore_client/api/domains_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +63 -63
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +5 -5
- data/lib/pulpcore_client/api/remotes_api.rb +5 -5
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +5 -5
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
- data/lib/pulpcore_client/api/roles_api.rb +37 -37
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
- data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
- data/lib/pulpcore_client/api/tasks_api.rb +119 -119
- data/lib/pulpcore_client/api/uploads_api.rb +65 -65
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +43 -43
- data/lib/pulpcore_client/api/users_api.rb +37 -37
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +11 -11
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +39 -39
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -2
- data/spec/api/access_policies_api_spec.rb +10 -10
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +4 -4
- data/spec/api/domains_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +12 -12
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +12 -12
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +2 -2
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +4 -4
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +12 -12
- data/spec/api/tasks_api_spec.rb +29 -29
- data/spec/api/uploads_api_spec.rb +20 -20
- data/spec/api/upstream_pulps_api_spec.rb +14 -14
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +4 -4
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +140 -148
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param nested_role [NestedRole]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
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
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpcoreClient
|
|
|
34
34
|
# @param nested_role [NestedRole]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def add_role_with_http_info(group_href, nested_role, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'group_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'nested_role' is set
|
|
46
46
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{group_href}add_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,7 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
85
|
+
@api_client.config.logger.debug "API called: GroupsApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
86
|
end
|
|
87
87
|
return data, status_code, headers
|
|
88
88
|
end
|
|
@@ -92,8 +92,8 @@ module PulpcoreClient
|
|
|
92
92
|
# @param group [Group]
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [GroupResponse]
|
|
95
|
-
def
|
|
96
|
-
data, _status_code, _headers =
|
|
95
|
+
def create(group, opts = {})
|
|
96
|
+
data, _status_code, _headers = create_with_http_info(group, opts)
|
|
97
97
|
data
|
|
98
98
|
end
|
|
99
99
|
|
|
@@ -102,13 +102,13 @@ module PulpcoreClient
|
|
|
102
102
|
# @param group [Group]
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
105
|
-
def
|
|
105
|
+
def create_with_http_info(group, opts = {})
|
|
106
106
|
if @api_client.config.debugging
|
|
107
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.create ...'
|
|
108
108
|
end
|
|
109
109
|
# verify the required parameter 'group' is set
|
|
110
110
|
if @api_client.config.client_side_validation && group.nil?
|
|
111
|
-
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.create"
|
|
112
112
|
end
|
|
113
113
|
# resource path
|
|
114
114
|
local_var_path = '/pulp/api/v3/groups/'
|
|
@@ -146,7 +146,7 @@ module PulpcoreClient
|
|
|
146
146
|
|
|
147
147
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
148
148
|
if @api_client.config.debugging
|
|
149
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
149
|
+
@api_client.config.logger.debug "API called: GroupsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
150
150
|
end
|
|
151
151
|
return data, status_code, headers
|
|
152
152
|
end
|
|
@@ -156,8 +156,8 @@ module PulpcoreClient
|
|
|
156
156
|
# @param group_href [String]
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
|
158
158
|
# @return [nil]
|
|
159
|
-
def
|
|
160
|
-
|
|
159
|
+
def delete(group_href, opts = {})
|
|
160
|
+
delete_with_http_info(group_href, opts)
|
|
161
161
|
nil
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -166,13 +166,13 @@ module PulpcoreClient
|
|
|
166
166
|
# @param group_href [String]
|
|
167
167
|
# @param [Hash] opts the optional parameters
|
|
168
168
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
169
|
-
def
|
|
169
|
+
def delete_with_http_info(group_href, opts = {})
|
|
170
170
|
if @api_client.config.debugging
|
|
171
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
171
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.delete ...'
|
|
172
172
|
end
|
|
173
173
|
# verify the required parameter 'group_href' is set
|
|
174
174
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
175
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.delete"
|
|
176
176
|
end
|
|
177
177
|
# resource path
|
|
178
178
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -206,7 +206,7 @@ module PulpcoreClient
|
|
|
206
206
|
|
|
207
207
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
208
208
|
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
209
|
+
@api_client.config.logger.debug "API called: GroupsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
210
|
end
|
|
211
211
|
return data, status_code, headers
|
|
212
212
|
end
|
|
@@ -229,8 +229,8 @@ module PulpcoreClient
|
|
|
229
229
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
230
230
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
231
231
|
# @return [PaginatedGroupResponseList]
|
|
232
|
-
def
|
|
233
|
-
data, _status_code, _headers =
|
|
232
|
+
def list(opts = {})
|
|
233
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
234
234
|
data
|
|
235
235
|
end
|
|
236
236
|
|
|
@@ -252,9 +252,9 @@ module PulpcoreClient
|
|
|
252
252
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
253
253
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
254
254
|
# @return [Array<(PaginatedGroupResponseList, Integer, Hash)>] PaginatedGroupResponseList data, response status code and response headers
|
|
255
|
-
def
|
|
255
|
+
def list_with_http_info(opts = {})
|
|
256
256
|
if @api_client.config.debugging
|
|
257
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
257
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.list ...'
|
|
258
258
|
end
|
|
259
259
|
allowable_values = ["-id", "-name", "-pk", "id", "name", "pk"]
|
|
260
260
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -308,7 +308,7 @@ module PulpcoreClient
|
|
|
308
308
|
|
|
309
309
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
310
310
|
if @api_client.config.debugging
|
|
311
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
311
|
+
@api_client.config.logger.debug "API called: GroupsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
312
312
|
end
|
|
313
313
|
return data, status_code, headers
|
|
314
314
|
end
|
|
@@ -319,8 +319,8 @@ module PulpcoreClient
|
|
|
319
319
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
320
320
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
321
321
|
# @return [ObjectRolesResponse]
|
|
322
|
-
def
|
|
323
|
-
data, _status_code, _headers =
|
|
322
|
+
def list_roles(group_href, opts = {})
|
|
323
|
+
data, _status_code, _headers = list_roles_with_http_info(group_href, opts)
|
|
324
324
|
data
|
|
325
325
|
end
|
|
326
326
|
|
|
@@ -330,13 +330,13 @@ module PulpcoreClient
|
|
|
330
330
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
331
331
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
332
332
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
333
|
-
def
|
|
333
|
+
def list_roles_with_http_info(group_href, opts = {})
|
|
334
334
|
if @api_client.config.debugging
|
|
335
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
335
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.list_roles ...'
|
|
336
336
|
end
|
|
337
337
|
# verify the required parameter 'group_href' is set
|
|
338
338
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
339
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.list_roles"
|
|
340
340
|
end
|
|
341
341
|
# resource path
|
|
342
342
|
local_var_path = '{group_href}list_roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -374,7 +374,7 @@ module PulpcoreClient
|
|
|
374
374
|
|
|
375
375
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
376
376
|
if @api_client.config.debugging
|
|
377
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
377
|
+
@api_client.config.logger.debug "API called: GroupsApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
378
378
|
end
|
|
379
379
|
return data, status_code, headers
|
|
380
380
|
end
|
|
@@ -385,8 +385,8 @@ module PulpcoreClient
|
|
|
385
385
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
386
386
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
387
387
|
# @return [MyPermissionsResponse]
|
|
388
|
-
def
|
|
389
|
-
data, _status_code, _headers =
|
|
388
|
+
def my_permissions(group_href, opts = {})
|
|
389
|
+
data, _status_code, _headers = my_permissions_with_http_info(group_href, opts)
|
|
390
390
|
data
|
|
391
391
|
end
|
|
392
392
|
|
|
@@ -396,13 +396,13 @@ module PulpcoreClient
|
|
|
396
396
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
397
397
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
398
398
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
399
|
-
def
|
|
399
|
+
def my_permissions_with_http_info(group_href, opts = {})
|
|
400
400
|
if @api_client.config.debugging
|
|
401
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
401
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.my_permissions ...'
|
|
402
402
|
end
|
|
403
403
|
# verify the required parameter 'group_href' is set
|
|
404
404
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
405
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
405
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.my_permissions"
|
|
406
406
|
end
|
|
407
407
|
# resource path
|
|
408
408
|
local_var_path = '{group_href}my_permissions/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -440,7 +440,7 @@ module PulpcoreClient
|
|
|
440
440
|
|
|
441
441
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
442
442
|
if @api_client.config.debugging
|
|
443
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
443
|
+
@api_client.config.logger.debug "API called: GroupsApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
444
444
|
end
|
|
445
445
|
return data, status_code, headers
|
|
446
446
|
end
|
|
@@ -451,8 +451,8 @@ module PulpcoreClient
|
|
|
451
451
|
# @param patched_group [PatchedGroup]
|
|
452
452
|
# @param [Hash] opts the optional parameters
|
|
453
453
|
# @return [GroupResponse]
|
|
454
|
-
def
|
|
455
|
-
data, _status_code, _headers =
|
|
454
|
+
def partial_update(group_href, patched_group, opts = {})
|
|
455
|
+
data, _status_code, _headers = partial_update_with_http_info(group_href, patched_group, opts)
|
|
456
456
|
data
|
|
457
457
|
end
|
|
458
458
|
|
|
@@ -462,17 +462,17 @@ module PulpcoreClient
|
|
|
462
462
|
# @param patched_group [PatchedGroup]
|
|
463
463
|
# @param [Hash] opts the optional parameters
|
|
464
464
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
465
|
-
def
|
|
465
|
+
def partial_update_with_http_info(group_href, patched_group, opts = {})
|
|
466
466
|
if @api_client.config.debugging
|
|
467
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
467
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.partial_update ...'
|
|
468
468
|
end
|
|
469
469
|
# verify the required parameter 'group_href' is set
|
|
470
470
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
471
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
471
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.partial_update"
|
|
472
472
|
end
|
|
473
473
|
# verify the required parameter 'patched_group' is set
|
|
474
474
|
if @api_client.config.client_side_validation && patched_group.nil?
|
|
475
|
-
fail ArgumentError, "Missing the required parameter 'patched_group' when calling GroupsApi.
|
|
475
|
+
fail ArgumentError, "Missing the required parameter 'patched_group' when calling GroupsApi.partial_update"
|
|
476
476
|
end
|
|
477
477
|
# resource path
|
|
478
478
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -510,7 +510,7 @@ module PulpcoreClient
|
|
|
510
510
|
|
|
511
511
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
512
512
|
if @api_client.config.debugging
|
|
513
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
513
|
+
@api_client.config.logger.debug "API called: GroupsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
514
514
|
end
|
|
515
515
|
return data, status_code, headers
|
|
516
516
|
end
|
|
@@ -522,8 +522,8 @@ module PulpcoreClient
|
|
|
522
522
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
523
523
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
524
524
|
# @return [GroupResponse]
|
|
525
|
-
def
|
|
526
|
-
data, _status_code, _headers =
|
|
525
|
+
def read(group_href, opts = {})
|
|
526
|
+
data, _status_code, _headers = read_with_http_info(group_href, opts)
|
|
527
527
|
data
|
|
528
528
|
end
|
|
529
529
|
|
|
@@ -534,13 +534,13 @@ module PulpcoreClient
|
|
|
534
534
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
535
535
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
536
536
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
537
|
-
def
|
|
537
|
+
def read_with_http_info(group_href, opts = {})
|
|
538
538
|
if @api_client.config.debugging
|
|
539
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
539
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.read ...'
|
|
540
540
|
end
|
|
541
541
|
# verify the required parameter 'group_href' is set
|
|
542
542
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
543
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
543
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.read"
|
|
544
544
|
end
|
|
545
545
|
# resource path
|
|
546
546
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -578,7 +578,7 @@ module PulpcoreClient
|
|
|
578
578
|
|
|
579
579
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
580
580
|
if @api_client.config.debugging
|
|
581
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
581
|
+
@api_client.config.logger.debug "API called: GroupsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
582
582
|
end
|
|
583
583
|
return data, status_code, headers
|
|
584
584
|
end
|
|
@@ -588,8 +588,8 @@ module PulpcoreClient
|
|
|
588
588
|
# @param nested_role [NestedRole]
|
|
589
589
|
# @param [Hash] opts the optional parameters
|
|
590
590
|
# @return [NestedRoleResponse]
|
|
591
|
-
def
|
|
592
|
-
data, _status_code, _headers =
|
|
591
|
+
def remove_role(group_href, nested_role, opts = {})
|
|
592
|
+
data, _status_code, _headers = remove_role_with_http_info(group_href, nested_role, opts)
|
|
593
593
|
data
|
|
594
594
|
end
|
|
595
595
|
|
|
@@ -598,17 +598,17 @@ module PulpcoreClient
|
|
|
598
598
|
# @param nested_role [NestedRole]
|
|
599
599
|
# @param [Hash] opts the optional parameters
|
|
600
600
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
601
|
-
def
|
|
601
|
+
def remove_role_with_http_info(group_href, nested_role, opts = {})
|
|
602
602
|
if @api_client.config.debugging
|
|
603
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
603
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.remove_role ...'
|
|
604
604
|
end
|
|
605
605
|
# verify the required parameter 'group_href' is set
|
|
606
606
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
607
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
607
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.remove_role"
|
|
608
608
|
end
|
|
609
609
|
# verify the required parameter 'nested_role' is set
|
|
610
610
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
611
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.
|
|
611
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling GroupsApi.remove_role"
|
|
612
612
|
end
|
|
613
613
|
# resource path
|
|
614
614
|
local_var_path = '{group_href}remove_role/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -646,7 +646,7 @@ module PulpcoreClient
|
|
|
646
646
|
|
|
647
647
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
648
648
|
if @api_client.config.debugging
|
|
649
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
649
|
+
@api_client.config.logger.debug "API called: GroupsApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
650
650
|
end
|
|
651
651
|
return data, status_code, headers
|
|
652
652
|
end
|
|
@@ -657,8 +657,8 @@ module PulpcoreClient
|
|
|
657
657
|
# @param group [Group]
|
|
658
658
|
# @param [Hash] opts the optional parameters
|
|
659
659
|
# @return [GroupResponse]
|
|
660
|
-
def
|
|
661
|
-
data, _status_code, _headers =
|
|
660
|
+
def update(group_href, group, opts = {})
|
|
661
|
+
data, _status_code, _headers = update_with_http_info(group_href, group, opts)
|
|
662
662
|
data
|
|
663
663
|
end
|
|
664
664
|
|
|
@@ -668,17 +668,17 @@ module PulpcoreClient
|
|
|
668
668
|
# @param group [Group]
|
|
669
669
|
# @param [Hash] opts the optional parameters
|
|
670
670
|
# @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
|
|
671
|
-
def
|
|
671
|
+
def update_with_http_info(group_href, group, opts = {})
|
|
672
672
|
if @api_client.config.debugging
|
|
673
|
-
@api_client.config.logger.debug 'Calling API: GroupsApi.
|
|
673
|
+
@api_client.config.logger.debug 'Calling API: GroupsApi.update ...'
|
|
674
674
|
end
|
|
675
675
|
# verify the required parameter 'group_href' is set
|
|
676
676
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
677
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.
|
|
677
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsApi.update"
|
|
678
678
|
end
|
|
679
679
|
# verify the required parameter 'group' is set
|
|
680
680
|
if @api_client.config.client_side_validation && group.nil?
|
|
681
|
-
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.
|
|
681
|
+
fail ArgumentError, "Missing the required parameter 'group' when calling GroupsApi.update"
|
|
682
682
|
end
|
|
683
683
|
# resource path
|
|
684
684
|
local_var_path = '{group_href}'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -716,7 +716,7 @@ module PulpcoreClient
|
|
|
716
716
|
|
|
717
717
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
718
718
|
if @api_client.config.debugging
|
|
719
|
-
@api_client.config.logger.debug "API called: GroupsApi#
|
|
719
|
+
@api_client.config.logger.debug "API called: GroupsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
720
720
|
end
|
|
721
721
|
return data, status_code, headers
|
|
722
722
|
end
|
|
@@ -25,8 +25,8 @@ module PulpcoreClient
|
|
|
25
25
|
# @param group_role [GroupRole]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [GroupRoleResponse]
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
28
|
+
def create(group_href, group_role, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_with_http_info(group_href, group_role, opts)
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
@@ -36,17 +36,17 @@ module PulpcoreClient
|
|
|
36
36
|
# @param group_role [GroupRole]
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(GroupRoleResponse, Integer, Hash)>] GroupRoleResponse data, response status code and response headers
|
|
39
|
-
def
|
|
39
|
+
def create_with_http_info(group_href, group_role, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.create ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'group_href' is set
|
|
44
44
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsRolesApi.
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsRolesApi.create"
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'group_role' is set
|
|
48
48
|
if @api_client.config.client_side_validation && group_role.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'group_role' when calling GroupsRolesApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'group_role' when calling GroupsRolesApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '{group_href}roles/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -84,7 +84,7 @@ module PulpcoreClient
|
|
|
84
84
|
|
|
85
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
86
|
if @api_client.config.debugging
|
|
87
|
-
@api_client.config.logger.debug "API called: GroupsRolesApi#
|
|
87
|
+
@api_client.config.logger.debug "API called: GroupsRolesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
@@ -94,8 +94,8 @@ module PulpcoreClient
|
|
|
94
94
|
# @param groups_group_role_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def
|
|
98
|
-
|
|
97
|
+
def delete(groups_group_role_href, opts = {})
|
|
98
|
+
delete_with_http_info(groups_group_role_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -104,13 +104,13 @@ module PulpcoreClient
|
|
|
104
104
|
# @param groups_group_role_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
|
|
107
|
+
def delete_with_http_info(groups_group_role_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.delete ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'groups_group_role_href' is set
|
|
112
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.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'groups_group_role_href' when calling GroupsRolesApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
116
|
local_var_path = '{groups_group_role_href}'.sub('{' + 'groups_group_role_href' + '}', CGI.escape(groups_group_role_href.to_s).gsub('%2F', '/'))
|
|
@@ -144,7 +144,7 @@ module PulpcoreClient
|
|
|
144
144
|
|
|
145
145
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
146
146
|
if @api_client.config.debugging
|
|
147
|
-
@api_client.config.logger.debug "API called: GroupsRolesApi#
|
|
147
|
+
@api_client.config.logger.debug "API called: GroupsRolesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
@@ -168,8 +168,8 @@ module PulpcoreClient
|
|
|
168
168
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
169
169
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
170
170
|
# @return [PaginatedGroupRoleResponseList]
|
|
171
|
-
def
|
|
172
|
-
data, _status_code, _headers =
|
|
171
|
+
def list(group_href, opts = {})
|
|
172
|
+
data, _status_code, _headers = list_with_http_info(group_href, opts)
|
|
173
173
|
data
|
|
174
174
|
end
|
|
175
175
|
|
|
@@ -192,13 +192,13 @@ module PulpcoreClient
|
|
|
192
192
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
193
193
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
194
194
|
# @return [Array<(PaginatedGroupRoleResponseList, Integer, Hash)>] PaginatedGroupRoleResponseList data, response status code and response headers
|
|
195
|
-
def
|
|
195
|
+
def list_with_http_info(group_href, opts = {})
|
|
196
196
|
if @api_client.config.debugging
|
|
197
|
-
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.
|
|
197
|
+
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.list ...'
|
|
198
198
|
end
|
|
199
199
|
# verify the required parameter 'group_href' is set
|
|
200
200
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
201
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsRolesApi.
|
|
201
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsRolesApi.list"
|
|
202
202
|
end
|
|
203
203
|
allowable_values = ["-description", "-pk", "-pulp_created", "-role", "description", "pk", "pulp_created", "role"]
|
|
204
204
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -252,7 +252,7 @@ module PulpcoreClient
|
|
|
252
252
|
|
|
253
253
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
254
254
|
if @api_client.config.debugging
|
|
255
|
-
@api_client.config.logger.debug "API called: GroupsRolesApi#
|
|
255
|
+
@api_client.config.logger.debug "API called: GroupsRolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
256
256
|
end
|
|
257
257
|
return data, status_code, headers
|
|
258
258
|
end
|
|
@@ -264,8 +264,8 @@ module PulpcoreClient
|
|
|
264
264
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
265
265
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
266
266
|
# @return [GroupRoleResponse]
|
|
267
|
-
def
|
|
268
|
-
data, _status_code, _headers =
|
|
267
|
+
def read(groups_group_role_href, opts = {})
|
|
268
|
+
data, _status_code, _headers = read_with_http_info(groups_group_role_href, opts)
|
|
269
269
|
data
|
|
270
270
|
end
|
|
271
271
|
|
|
@@ -276,13 +276,13 @@ module PulpcoreClient
|
|
|
276
276
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
277
277
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
278
278
|
# @return [Array<(GroupRoleResponse, Integer, Hash)>] GroupRoleResponse data, response status code and response headers
|
|
279
|
-
def
|
|
279
|
+
def read_with_http_info(groups_group_role_href, opts = {})
|
|
280
280
|
if @api_client.config.debugging
|
|
281
|
-
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: GroupsRolesApi.read ...'
|
|
282
282
|
end
|
|
283
283
|
# verify the required parameter 'groups_group_role_href' is set
|
|
284
284
|
if @api_client.config.client_side_validation && groups_group_role_href.nil?
|
|
285
|
-
fail ArgumentError, "Missing the required parameter 'groups_group_role_href' when calling GroupsRolesApi.
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'groups_group_role_href' when calling GroupsRolesApi.read"
|
|
286
286
|
end
|
|
287
287
|
# resource path
|
|
288
288
|
local_var_path = '{groups_group_role_href}'.sub('{' + 'groups_group_role_href' + '}', CGI.escape(groups_group_role_href.to_s).gsub('%2F', '/'))
|
|
@@ -320,7 +320,7 @@ module PulpcoreClient
|
|
|
320
320
|
|
|
321
321
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
322
322
|
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug "API called: GroupsRolesApi#
|
|
323
|
+
@api_client.config.logger.debug "API called: GroupsRolesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
324
324
|
end
|
|
325
325
|
return data, status_code, headers
|
|
326
326
|
end
|
|
@@ -25,8 +25,8 @@ module PulpcoreClient
|
|
|
25
25
|
# @param group_user [GroupUser]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [GroupUserResponse]
|
|
28
|
-
def
|
|
29
|
-
data, _status_code, _headers =
|
|
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
|
|
|
@@ -36,17 +36,17 @@ module PulpcoreClient
|
|
|
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
|
|
39
|
+
def create_with_http_info(group_href, group_user, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.create ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'group_href' is set
|
|
44
44
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsUsersApi.
|
|
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
|
-
fail ArgumentError, "Missing the required parameter 'group_user' when calling GroupsUsersApi.
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'group_user' when calling GroupsUsersApi.create"
|
|
50
50
|
end
|
|
51
51
|
# resource path
|
|
52
52
|
local_var_path = '{group_href}users/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -84,7 +84,7 @@ module PulpcoreClient
|
|
|
84
84
|
|
|
85
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
86
86
|
if @api_client.config.debugging
|
|
87
|
-
@api_client.config.logger.debug "API called: GroupsUsersApi#
|
|
87
|
+
@api_client.config.logger.debug "API called: GroupsUsersApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
88
|
end
|
|
89
89
|
return data, status_code, headers
|
|
90
90
|
end
|
|
@@ -94,8 +94,8 @@ module PulpcoreClient
|
|
|
94
94
|
# @param groups_user_href [String]
|
|
95
95
|
# @param [Hash] opts the optional parameters
|
|
96
96
|
# @return [nil]
|
|
97
|
-
def
|
|
98
|
-
|
|
97
|
+
def delete(groups_user_href, opts = {})
|
|
98
|
+
delete_with_http_info(groups_user_href, opts)
|
|
99
99
|
nil
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -104,13 +104,13 @@ module PulpcoreClient
|
|
|
104
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
|
|
107
|
+
def delete_with_http_info(groups_user_href, opts = {})
|
|
108
108
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.delete ...'
|
|
110
110
|
end
|
|
111
111
|
# verify the required parameter 'groups_user_href' is set
|
|
112
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.
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'groups_user_href' when calling GroupsUsersApi.delete"
|
|
114
114
|
end
|
|
115
115
|
# resource path
|
|
116
116
|
local_var_path = '{groups_user_href}'.sub('{' + 'groups_user_href' + '}', CGI.escape(groups_user_href.to_s).gsub('%2F', '/'))
|
|
@@ -144,7 +144,7 @@ module PulpcoreClient
|
|
|
144
144
|
|
|
145
145
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
146
146
|
if @api_client.config.debugging
|
|
147
|
-
@api_client.config.logger.debug "API called: GroupsUsersApi#
|
|
147
|
+
@api_client.config.logger.debug "API called: GroupsUsersApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
148
148
|
end
|
|
149
149
|
return data, status_code, headers
|
|
150
150
|
end
|
|
@@ -158,8 +158,8 @@ module PulpcoreClient
|
|
|
158
158
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
159
159
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
160
160
|
# @return [PaginatedGroupUserResponseList]
|
|
161
|
-
def
|
|
162
|
-
data, _status_code, _headers =
|
|
161
|
+
def list(group_href, opts = {})
|
|
162
|
+
data, _status_code, _headers = list_with_http_info(group_href, opts)
|
|
163
163
|
data
|
|
164
164
|
end
|
|
165
165
|
|
|
@@ -172,13 +172,13 @@ module PulpcoreClient
|
|
|
172
172
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
173
173
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
174
174
|
# @return [Array<(PaginatedGroupUserResponseList, Integer, Hash)>] PaginatedGroupUserResponseList data, response status code and response headers
|
|
175
|
-
def
|
|
175
|
+
def list_with_http_info(group_href, opts = {})
|
|
176
176
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: GroupsUsersApi.list ...'
|
|
178
178
|
end
|
|
179
179
|
# verify the required parameter 'group_href' is set
|
|
180
180
|
if @api_client.config.client_side_validation && group_href.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsUsersApi.
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'group_href' when calling GroupsUsersApi.list"
|
|
182
182
|
end
|
|
183
183
|
# resource path
|
|
184
184
|
local_var_path = '{group_href}users/'.sub('{' + 'group_href' + '}', CGI.escape(group_href.to_s).gsub('%2F', '/'))
|
|
@@ -218,7 +218,7 @@ module PulpcoreClient
|
|
|
218
218
|
|
|
219
219
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
220
220
|
if @api_client.config.debugging
|
|
221
|
-
@api_client.config.logger.debug "API called: GroupsUsersApi#
|
|
221
|
+
@api_client.config.logger.debug "API called: GroupsUsersApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
222
222
|
end
|
|
223
223
|
return data, status_code, headers
|
|
224
224
|
end
|