pulpcore_client 3.22.27 → 3.22.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +144 -142
- data/docs/AccessPoliciesApi.md +26 -26
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentguardsApi.md +6 -6
- data/docs/ContentguardsContentRedirectApi.md +51 -51
- data/docs/ContentguardsRbacApi.md +51 -51
- data/docs/DistributionsApi.md +6 -6
- data/docs/DistributionsArtifactsApi.md +11 -11
- data/docs/DocsApiJsonApi.md +61 -0
- data/docs/DocsApiYamlApi.md +61 -0
- data/docs/ExportersFilesystemApi.md +31 -31
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +31 -31
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +31 -31
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PublicationsApi.md +6 -6
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +6 -6
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +6 -6
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryVersionsApi.md +6 -6
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +11 -11
- data/docs/StatusApi.md +1 -1
- data/docs/TaskGroupsApi.md +11 -11
- data/docs/TaskSchedulesApi.md +31 -31
- data/docs/TasksApi.md +96 -96
- data/docs/UploadsApi.md +51 -51
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +11 -11
- 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/docs_api_json_api.rb +89 -0
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +89 -0
- 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/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +39 -39
- data/lib/pulpcore_client/models/remote_response.rb +20 -20
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +2 -0
- 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/docs_api_json_api_spec.rb +48 -0
- data/spec/api/docs_api_yaml_api_spec.rb +48 -0
- 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
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +153 -145
@@ -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 tasks_add_role(task_href, nested_role, opts = {})
|
28
|
+
data, _status_code, _headers = tasks_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 tasks_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.tasks_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.tasks_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.tasks_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,7 +82,77 @@ 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#
|
85
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
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}"
|
86
156
|
end
|
87
157
|
return data, status_code, headers
|
88
158
|
end
|
@@ -92,8 +162,8 @@ module PulpcoreClient
|
|
92
162
|
# @param task_href [String]
|
93
163
|
# @param [Hash] opts the optional parameters
|
94
164
|
# @return [nil]
|
95
|
-
def
|
96
|
-
|
165
|
+
def tasks_delete(task_href, opts = {})
|
166
|
+
tasks_delete_with_http_info(task_href, opts)
|
97
167
|
nil
|
98
168
|
end
|
99
169
|
|
@@ -102,13 +172,13 @@ module PulpcoreClient
|
|
102
172
|
# @param task_href [String]
|
103
173
|
# @param [Hash] opts the optional parameters
|
104
174
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
105
|
-
def
|
175
|
+
def tasks_delete_with_http_info(task_href, opts = {})
|
106
176
|
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
177
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_delete ...'
|
108
178
|
end
|
109
179
|
# verify the required parameter 'task_href' is set
|
110
180
|
if @api_client.config.client_side_validation && task_href.nil?
|
111
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
181
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_delete"
|
112
182
|
end
|
113
183
|
# resource path
|
114
184
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -142,7 +212,7 @@ module PulpcoreClient
|
|
142
212
|
|
143
213
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
144
214
|
if @api_client.config.debugging
|
145
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
215
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
216
|
end
|
147
217
|
return data, status_code, headers
|
148
218
|
end
|
@@ -188,8 +258,8 @@ module PulpcoreClient
|
|
188
258
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
189
259
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
190
260
|
# @return [PaginatedTaskResponseList]
|
191
|
-
def
|
192
|
-
data, _status_code, _headers =
|
261
|
+
def tasks_list(opts = {})
|
262
|
+
data, _status_code, _headers = tasks_list_with_http_info(opts)
|
193
263
|
data
|
194
264
|
end
|
195
265
|
|
@@ -234,9 +304,9 @@ module PulpcoreClient
|
|
234
304
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
235
305
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
236
306
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
237
|
-
def
|
307
|
+
def tasks_list_with_http_info(opts = {})
|
238
308
|
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
309
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list ...'
|
240
310
|
end
|
241
311
|
allowable_values = ["-args", "-error", "-finished_at", "-kwargs", "-logging_cid", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-reserved_resources_record", "-started_at", "-state", "args", "error", "finished_at", "kwargs", "logging_cid", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "reserved_resources_record", "started_at", "state"]
|
242
312
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
@@ -317,7 +387,7 @@ module PulpcoreClient
|
|
317
387
|
|
318
388
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
319
389
|
if @api_client.config.debugging
|
320
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
390
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
321
391
|
end
|
322
392
|
return data, status_code, headers
|
323
393
|
end
|
@@ -328,8 +398,8 @@ module PulpcoreClient
|
|
328
398
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
329
399
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
330
400
|
# @return [ObjectRolesResponse]
|
331
|
-
def
|
332
|
-
data, _status_code, _headers =
|
401
|
+
def tasks_list_roles(task_href, opts = {})
|
402
|
+
data, _status_code, _headers = tasks_list_roles_with_http_info(task_href, opts)
|
333
403
|
data
|
334
404
|
end
|
335
405
|
|
@@ -339,13 +409,13 @@ module PulpcoreClient
|
|
339
409
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
340
410
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
341
411
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
342
|
-
def
|
412
|
+
def tasks_list_roles_with_http_info(task_href, opts = {})
|
343
413
|
if @api_client.config.debugging
|
344
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
414
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list_roles ...'
|
345
415
|
end
|
346
416
|
# verify the required parameter 'task_href' is set
|
347
417
|
if @api_client.config.client_side_validation && task_href.nil?
|
348
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
418
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_list_roles"
|
349
419
|
end
|
350
420
|
# resource path
|
351
421
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -383,7 +453,7 @@ module PulpcoreClient
|
|
383
453
|
|
384
454
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
385
455
|
if @api_client.config.debugging
|
386
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
456
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
387
457
|
end
|
388
458
|
return data, status_code, headers
|
389
459
|
end
|
@@ -394,8 +464,8 @@ module PulpcoreClient
|
|
394
464
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
395
465
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
396
466
|
# @return [MyPermissionsResponse]
|
397
|
-
def
|
398
|
-
data, _status_code, _headers =
|
467
|
+
def tasks_my_permissions(task_href, opts = {})
|
468
|
+
data, _status_code, _headers = tasks_my_permissions_with_http_info(task_href, opts)
|
399
469
|
data
|
400
470
|
end
|
401
471
|
|
@@ -405,13 +475,13 @@ module PulpcoreClient
|
|
405
475
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
406
476
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
407
477
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
408
|
-
def
|
478
|
+
def tasks_my_permissions_with_http_info(task_href, opts = {})
|
409
479
|
if @api_client.config.debugging
|
410
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
480
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_my_permissions ...'
|
411
481
|
end
|
412
482
|
# verify the required parameter 'task_href' is set
|
413
483
|
if @api_client.config.client_side_validation && task_href.nil?
|
414
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
484
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_my_permissions"
|
415
485
|
end
|
416
486
|
# resource path
|
417
487
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -449,7 +519,7 @@ module PulpcoreClient
|
|
449
519
|
|
450
520
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
451
521
|
if @api_client.config.debugging
|
452
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
522
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
453
523
|
end
|
454
524
|
return data, status_code, headers
|
455
525
|
end
|
@@ -459,8 +529,8 @@ module PulpcoreClient
|
|
459
529
|
# @param purge [Purge]
|
460
530
|
# @param [Hash] opts the optional parameters
|
461
531
|
# @return [AsyncOperationResponse]
|
462
|
-
def
|
463
|
-
data, _status_code, _headers =
|
532
|
+
def tasks_purge(purge, opts = {})
|
533
|
+
data, _status_code, _headers = tasks_purge_with_http_info(purge, opts)
|
464
534
|
data
|
465
535
|
end
|
466
536
|
|
@@ -469,13 +539,13 @@ module PulpcoreClient
|
|
469
539
|
# @param purge [Purge]
|
470
540
|
# @param [Hash] opts the optional parameters
|
471
541
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
472
|
-
def
|
542
|
+
def tasks_purge_with_http_info(purge, opts = {})
|
473
543
|
if @api_client.config.debugging
|
474
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
544
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_purge ...'
|
475
545
|
end
|
476
546
|
# verify the required parameter 'purge' is set
|
477
547
|
if @api_client.config.client_side_validation && purge.nil?
|
478
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
548
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.tasks_purge"
|
479
549
|
end
|
480
550
|
# resource path
|
481
551
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
@@ -513,7 +583,7 @@ module PulpcoreClient
|
|
513
583
|
|
514
584
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
515
585
|
if @api_client.config.debugging
|
516
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
586
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
517
587
|
end
|
518
588
|
return data, status_code, headers
|
519
589
|
end
|
@@ -525,8 +595,8 @@ module PulpcoreClient
|
|
525
595
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
526
596
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
527
597
|
# @return [TaskResponse]
|
528
|
-
def
|
529
|
-
data, _status_code, _headers =
|
598
|
+
def tasks_read(task_href, opts = {})
|
599
|
+
data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
|
530
600
|
data
|
531
601
|
end
|
532
602
|
|
@@ -537,13 +607,13 @@ module PulpcoreClient
|
|
537
607
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
538
608
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
539
609
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
540
|
-
def
|
610
|
+
def tasks_read_with_http_info(task_href, opts = {})
|
541
611
|
if @api_client.config.debugging
|
542
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
612
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_read ...'
|
543
613
|
end
|
544
614
|
# verify the required parameter 'task_href' is set
|
545
615
|
if @api_client.config.client_side_validation && task_href.nil?
|
546
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
616
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
|
547
617
|
end
|
548
618
|
# resource path
|
549
619
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -581,7 +651,7 @@ module PulpcoreClient
|
|
581
651
|
|
582
652
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
583
653
|
if @api_client.config.debugging
|
584
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
654
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
585
655
|
end
|
586
656
|
return data, status_code, headers
|
587
657
|
end
|
@@ -591,8 +661,8 @@ module PulpcoreClient
|
|
591
661
|
# @param nested_role [NestedRole]
|
592
662
|
# @param [Hash] opts the optional parameters
|
593
663
|
# @return [NestedRoleResponse]
|
594
|
-
def
|
595
|
-
data, _status_code, _headers =
|
664
|
+
def tasks_remove_role(task_href, nested_role, opts = {})
|
665
|
+
data, _status_code, _headers = tasks_remove_role_with_http_info(task_href, nested_role, opts)
|
596
666
|
data
|
597
667
|
end
|
598
668
|
|
@@ -601,17 +671,17 @@ module PulpcoreClient
|
|
601
671
|
# @param nested_role [NestedRole]
|
602
672
|
# @param [Hash] opts the optional parameters
|
603
673
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
604
|
-
def
|
674
|
+
def tasks_remove_role_with_http_info(task_href, nested_role, opts = {})
|
605
675
|
if @api_client.config.debugging
|
606
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
676
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_remove_role ...'
|
607
677
|
end
|
608
678
|
# verify the required parameter 'task_href' is set
|
609
679
|
if @api_client.config.client_side_validation && task_href.nil?
|
610
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
680
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_remove_role"
|
611
681
|
end
|
612
682
|
# verify the required parameter 'nested_role' is set
|
613
683
|
if @api_client.config.client_side_validation && nested_role.nil?
|
614
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
684
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_remove_role"
|
615
685
|
end
|
616
686
|
# resource path
|
617
687
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -649,77 +719,7 @@ module PulpcoreClient
|
|
649
719
|
|
650
720
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
651
721
|
if @api_client.config.debugging
|
652
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
653
|
-
end
|
654
|
-
return data, status_code, headers
|
655
|
-
end
|
656
|
-
|
657
|
-
# Cancel a task
|
658
|
-
# This operation cancels a task.
|
659
|
-
# @param task_href [String]
|
660
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
661
|
-
# @param [Hash] opts the optional parameters
|
662
|
-
# @return [TaskResponse]
|
663
|
-
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
664
|
-
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
665
|
-
data
|
666
|
-
end
|
667
|
-
|
668
|
-
# Cancel a task
|
669
|
-
# This operation cancels a task.
|
670
|
-
# @param task_href [String]
|
671
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
672
|
-
# @param [Hash] opts the optional parameters
|
673
|
-
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
674
|
-
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
675
|
-
if @api_client.config.debugging
|
676
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
677
|
-
end
|
678
|
-
# verify the required parameter 'task_href' is set
|
679
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
680
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
681
|
-
end
|
682
|
-
# verify the required parameter 'patched_task_cancel' is set
|
683
|
-
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
684
|
-
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
685
|
-
end
|
686
|
-
# resource path
|
687
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
688
|
-
|
689
|
-
# query parameters
|
690
|
-
query_params = opts[:query_params] || {}
|
691
|
-
|
692
|
-
# header parameters
|
693
|
-
header_params = opts[:header_params] || {}
|
694
|
-
# HTTP header 'Accept' (if needed)
|
695
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
696
|
-
# HTTP header 'Content-Type'
|
697
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
698
|
-
|
699
|
-
# form parameters
|
700
|
-
form_params = opts[:form_params] || {}
|
701
|
-
|
702
|
-
# http body (model)
|
703
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
704
|
-
|
705
|
-
# return_type
|
706
|
-
return_type = opts[:return_type] || 'TaskResponse'
|
707
|
-
|
708
|
-
# auth_names
|
709
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
710
|
-
|
711
|
-
new_options = opts.merge(
|
712
|
-
:header_params => header_params,
|
713
|
-
:query_params => query_params,
|
714
|
-
:form_params => form_params,
|
715
|
-
:body => post_body,
|
716
|
-
:auth_names => auth_names,
|
717
|
-
:return_type => return_type
|
718
|
-
)
|
719
|
-
|
720
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
721
|
-
if @api_client.config.debugging
|
722
|
-
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
722
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
723
723
|
end
|
724
724
|
return data, status_code, headers
|
725
725
|
end
|