pulpcore_client 3.21.32 → 3.21.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +139 -141
- data/docs/AccessPoliciesApi.md +25 -25
- 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/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/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/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/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/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/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/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
- metadata +127 -135
- 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(task_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(task_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(task_href, nested_role, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.add_role ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'task_href' is set
|
42
42
|
if @api_client.config.client_side_validation && task_href.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.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 TasksApi.
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.add_role"
|
48
48
|
end
|
49
49
|
# resource path
|
50
50
|
local_var_path = '{task_href}add_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -82,77 +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: TasksApi#
|
86
|
-
end
|
87
|
-
return data, status_code, headers
|
88
|
-
end
|
89
|
-
|
90
|
-
# Cancel a task
|
91
|
-
# This operation cancels a task.
|
92
|
-
# @param task_href [String]
|
93
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [TaskResponse]
|
96
|
-
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
97
|
-
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
98
|
-
data
|
99
|
-
end
|
100
|
-
|
101
|
-
# Cancel a task
|
102
|
-
# This operation cancels a task.
|
103
|
-
# @param task_href [String]
|
104
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
105
|
-
# @param [Hash] opts the optional parameters
|
106
|
-
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
107
|
-
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
108
|
-
if @api_client.config.debugging
|
109
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
110
|
-
end
|
111
|
-
# verify the required parameter 'task_href' is set
|
112
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
113
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
114
|
-
end
|
115
|
-
# verify the required parameter 'patched_task_cancel' is set
|
116
|
-
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
117
|
-
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
118
|
-
end
|
119
|
-
# resource path
|
120
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
121
|
-
|
122
|
-
# query parameters
|
123
|
-
query_params = opts[:query_params] || {}
|
124
|
-
|
125
|
-
# header parameters
|
126
|
-
header_params = opts[:header_params] || {}
|
127
|
-
# HTTP header 'Accept' (if needed)
|
128
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
-
# HTTP header 'Content-Type'
|
130
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
131
|
-
|
132
|
-
# form parameters
|
133
|
-
form_params = opts[:form_params] || {}
|
134
|
-
|
135
|
-
# http body (model)
|
136
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
137
|
-
|
138
|
-
# return_type
|
139
|
-
return_type = opts[:return_type] || 'TaskResponse'
|
140
|
-
|
141
|
-
# auth_names
|
142
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
143
|
-
|
144
|
-
new_options = opts.merge(
|
145
|
-
:header_params => header_params,
|
146
|
-
:query_params => query_params,
|
147
|
-
:form_params => form_params,
|
148
|
-
:body => post_body,
|
149
|
-
:auth_names => auth_names,
|
150
|
-
:return_type => return_type
|
151
|
-
)
|
152
|
-
|
153
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
154
|
-
if @api_client.config.debugging
|
155
|
-
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
+
@api_client.config.logger.debug "API called: TasksApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
86
|
end
|
157
87
|
return data, status_code, headers
|
158
88
|
end
|
@@ -162,8 +92,8 @@ module PulpcoreClient
|
|
162
92
|
# @param task_href [String]
|
163
93
|
# @param [Hash] opts the optional parameters
|
164
94
|
# @return [nil]
|
165
|
-
def
|
166
|
-
|
95
|
+
def delete(task_href, opts = {})
|
96
|
+
delete_with_http_info(task_href, opts)
|
167
97
|
nil
|
168
98
|
end
|
169
99
|
|
@@ -172,13 +102,13 @@ module PulpcoreClient
|
|
172
102
|
# @param task_href [String]
|
173
103
|
# @param [Hash] opts the optional parameters
|
174
104
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
175
|
-
def
|
105
|
+
def delete_with_http_info(task_href, opts = {})
|
176
106
|
if @api_client.config.debugging
|
177
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
107
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.delete ...'
|
178
108
|
end
|
179
109
|
# verify the required parameter 'task_href' is set
|
180
110
|
if @api_client.config.client_side_validation && task_href.nil?
|
181
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
111
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
|
182
112
|
end
|
183
113
|
# resource path
|
184
114
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -212,7 +142,7 @@ module PulpcoreClient
|
|
212
142
|
|
213
143
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
214
144
|
if @api_client.config.debugging
|
215
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
145
|
+
@api_client.config.logger.debug "API called: TasksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
146
|
end
|
217
147
|
return data, status_code, headers
|
218
148
|
end
|
@@ -251,8 +181,8 @@ module PulpcoreClient
|
|
251
181
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
252
182
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
253
183
|
# @return [PaginatedTaskResponseList]
|
254
|
-
def
|
255
|
-
data, _status_code, _headers =
|
184
|
+
def list(opts = {})
|
185
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
256
186
|
data
|
257
187
|
end
|
258
188
|
|
@@ -290,9 +220,9 @@ module PulpcoreClient
|
|
290
220
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
291
221
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
292
222
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
293
|
-
def
|
223
|
+
def list_with_http_info(opts = {})
|
294
224
|
if @api_client.config.debugging
|
295
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
225
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
296
226
|
end
|
297
227
|
allowable_values = ["-args", "-child_tasks", "-created_resources", "-error", "-export", "-finished_at", "-group_roles", "-import", "-kwargs", "-logging_cid", "-name", "-parent_task", "-pk", "-progress_reports", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "-task_group", "-taskschedule", "-user_roles", "-worker", "args", "child_tasks", "created_resources", "error", "export", "finished_at", "group_roles", "import", "kwargs", "logging_cid", "name", "parent_task", "pk", "progress_reports", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "reserved_resources_record", "started_at", "state", "task_group", "taskschedule", "user_roles", "worker"]
|
298
228
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
@@ -366,7 +296,7 @@ module PulpcoreClient
|
|
366
296
|
|
367
297
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
368
298
|
if @api_client.config.debugging
|
369
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
299
|
+
@api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
370
300
|
end
|
371
301
|
return data, status_code, headers
|
372
302
|
end
|
@@ -377,8 +307,8 @@ module PulpcoreClient
|
|
377
307
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
378
308
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
379
309
|
# @return [ObjectRolesResponse]
|
380
|
-
def
|
381
|
-
data, _status_code, _headers =
|
310
|
+
def list_roles(task_href, opts = {})
|
311
|
+
data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
|
382
312
|
data
|
383
313
|
end
|
384
314
|
|
@@ -388,13 +318,13 @@ module PulpcoreClient
|
|
388
318
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
389
319
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
390
320
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
391
|
-
def
|
321
|
+
def list_roles_with_http_info(task_href, opts = {})
|
392
322
|
if @api_client.config.debugging
|
393
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
323
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
|
394
324
|
end
|
395
325
|
# verify the required parameter 'task_href' is set
|
396
326
|
if @api_client.config.client_side_validation && task_href.nil?
|
397
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
327
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.list_roles"
|
398
328
|
end
|
399
329
|
# resource path
|
400
330
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -432,7 +362,7 @@ module PulpcoreClient
|
|
432
362
|
|
433
363
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
434
364
|
if @api_client.config.debugging
|
435
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
365
|
+
@api_client.config.logger.debug "API called: TasksApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
366
|
end
|
437
367
|
return data, status_code, headers
|
438
368
|
end
|
@@ -443,8 +373,8 @@ module PulpcoreClient
|
|
443
373
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
444
374
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
445
375
|
# @return [MyPermissionsResponse]
|
446
|
-
def
|
447
|
-
data, _status_code, _headers =
|
376
|
+
def my_permissions(task_href, opts = {})
|
377
|
+
data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
|
448
378
|
data
|
449
379
|
end
|
450
380
|
|
@@ -454,13 +384,13 @@ module PulpcoreClient
|
|
454
384
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
455
385
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
456
386
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
457
|
-
def
|
387
|
+
def my_permissions_with_http_info(task_href, opts = {})
|
458
388
|
if @api_client.config.debugging
|
459
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
389
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
|
460
390
|
end
|
461
391
|
# verify the required parameter 'task_href' is set
|
462
392
|
if @api_client.config.client_side_validation && task_href.nil?
|
463
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
393
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.my_permissions"
|
464
394
|
end
|
465
395
|
# resource path
|
466
396
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -498,7 +428,7 @@ module PulpcoreClient
|
|
498
428
|
|
499
429
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
500
430
|
if @api_client.config.debugging
|
501
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
431
|
+
@api_client.config.logger.debug "API called: TasksApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
502
432
|
end
|
503
433
|
return data, status_code, headers
|
504
434
|
end
|
@@ -508,8 +438,8 @@ module PulpcoreClient
|
|
508
438
|
# @param purge [Purge]
|
509
439
|
# @param [Hash] opts the optional parameters
|
510
440
|
# @return [AsyncOperationResponse]
|
511
|
-
def
|
512
|
-
data, _status_code, _headers =
|
441
|
+
def purge(purge, opts = {})
|
442
|
+
data, _status_code, _headers = purge_with_http_info(purge, opts)
|
513
443
|
data
|
514
444
|
end
|
515
445
|
|
@@ -518,13 +448,13 @@ module PulpcoreClient
|
|
518
448
|
# @param purge [Purge]
|
519
449
|
# @param [Hash] opts the optional parameters
|
520
450
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
521
|
-
def
|
451
|
+
def purge_with_http_info(purge, opts = {})
|
522
452
|
if @api_client.config.debugging
|
523
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
453
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
|
524
454
|
end
|
525
455
|
# verify the required parameter 'purge' is set
|
526
456
|
if @api_client.config.client_side_validation && purge.nil?
|
527
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
457
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
|
528
458
|
end
|
529
459
|
# resource path
|
530
460
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
@@ -562,7 +492,7 @@ module PulpcoreClient
|
|
562
492
|
|
563
493
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
564
494
|
if @api_client.config.debugging
|
565
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
495
|
+
@api_client.config.logger.debug "API called: TasksApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
566
496
|
end
|
567
497
|
return data, status_code, headers
|
568
498
|
end
|
@@ -574,8 +504,8 @@ module PulpcoreClient
|
|
574
504
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
575
505
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
576
506
|
# @return [TaskResponse]
|
577
|
-
def
|
578
|
-
data, _status_code, _headers =
|
507
|
+
def read(task_href, opts = {})
|
508
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
579
509
|
data
|
580
510
|
end
|
581
511
|
|
@@ -586,13 +516,13 @@ module PulpcoreClient
|
|
586
516
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
587
517
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
588
518
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
589
|
-
def
|
519
|
+
def read_with_http_info(task_href, opts = {})
|
590
520
|
if @api_client.config.debugging
|
591
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
521
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
592
522
|
end
|
593
523
|
# verify the required parameter 'task_href' is set
|
594
524
|
if @api_client.config.client_side_validation && task_href.nil?
|
595
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
525
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
596
526
|
end
|
597
527
|
# resource path
|
598
528
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -630,7 +560,7 @@ module PulpcoreClient
|
|
630
560
|
|
631
561
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
632
562
|
if @api_client.config.debugging
|
633
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
563
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
634
564
|
end
|
635
565
|
return data, status_code, headers
|
636
566
|
end
|
@@ -640,8 +570,8 @@ module PulpcoreClient
|
|
640
570
|
# @param nested_role [NestedRole]
|
641
571
|
# @param [Hash] opts the optional parameters
|
642
572
|
# @return [NestedRoleResponse]
|
643
|
-
def
|
644
|
-
data, _status_code, _headers =
|
573
|
+
def remove_role(task_href, nested_role, opts = {})
|
574
|
+
data, _status_code, _headers = remove_role_with_http_info(task_href, nested_role, opts)
|
645
575
|
data
|
646
576
|
end
|
647
577
|
|
@@ -650,17 +580,17 @@ module PulpcoreClient
|
|
650
580
|
# @param nested_role [NestedRole]
|
651
581
|
# @param [Hash] opts the optional parameters
|
652
582
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
653
|
-
def
|
583
|
+
def remove_role_with_http_info(task_href, nested_role, opts = {})
|
654
584
|
if @api_client.config.debugging
|
655
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
585
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
|
656
586
|
end
|
657
587
|
# verify the required parameter 'task_href' is set
|
658
588
|
if @api_client.config.client_side_validation && task_href.nil?
|
659
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
589
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.remove_role"
|
660
590
|
end
|
661
591
|
# verify the required parameter 'nested_role' is set
|
662
592
|
if @api_client.config.client_side_validation && nested_role.nil?
|
663
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
593
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.remove_role"
|
664
594
|
end
|
665
595
|
# resource path
|
666
596
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -698,7 +628,77 @@ module PulpcoreClient
|
|
698
628
|
|
699
629
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
700
630
|
if @api_client.config.debugging
|
701
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
631
|
+
@api_client.config.logger.debug "API called: TasksApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
632
|
+
end
|
633
|
+
return data, status_code, headers
|
634
|
+
end
|
635
|
+
|
636
|
+
# Cancel a task
|
637
|
+
# This operation cancels a task.
|
638
|
+
# @param task_href [String]
|
639
|
+
# @param patched_task_cancel [PatchedTaskCancel]
|
640
|
+
# @param [Hash] opts the optional parameters
|
641
|
+
# @return [TaskResponse]
|
642
|
+
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
643
|
+
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
644
|
+
data
|
645
|
+
end
|
646
|
+
|
647
|
+
# Cancel a task
|
648
|
+
# This operation cancels a task.
|
649
|
+
# @param task_href [String]
|
650
|
+
# @param patched_task_cancel [PatchedTaskCancel]
|
651
|
+
# @param [Hash] opts the optional parameters
|
652
|
+
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
653
|
+
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
654
|
+
if @api_client.config.debugging
|
655
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
656
|
+
end
|
657
|
+
# verify the required parameter 'task_href' is set
|
658
|
+
if @api_client.config.client_side_validation && task_href.nil?
|
659
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
660
|
+
end
|
661
|
+
# verify the required parameter 'patched_task_cancel' is set
|
662
|
+
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
663
|
+
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
664
|
+
end
|
665
|
+
# resource path
|
666
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
667
|
+
|
668
|
+
# query parameters
|
669
|
+
query_params = opts[:query_params] || {}
|
670
|
+
|
671
|
+
# header parameters
|
672
|
+
header_params = opts[:header_params] || {}
|
673
|
+
# HTTP header 'Accept' (if needed)
|
674
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
675
|
+
# HTTP header 'Content-Type'
|
676
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
677
|
+
|
678
|
+
# form parameters
|
679
|
+
form_params = opts[:form_params] || {}
|
680
|
+
|
681
|
+
# http body (model)
|
682
|
+
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
683
|
+
|
684
|
+
# return_type
|
685
|
+
return_type = opts[:return_type] || 'TaskResponse'
|
686
|
+
|
687
|
+
# auth_names
|
688
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
689
|
+
|
690
|
+
new_options = opts.merge(
|
691
|
+
:header_params => header_params,
|
692
|
+
:query_params => query_params,
|
693
|
+
:form_params => form_params,
|
694
|
+
:body => post_body,
|
695
|
+
:auth_names => auth_names,
|
696
|
+
:return_type => return_type
|
697
|
+
)
|
698
|
+
|
699
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
700
|
+
if @api_client.config.debugging
|
701
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
702
702
|
end
|
703
703
|
return data, status_code, headers
|
704
704
|
end
|