pulpcore_client 3.21.31 → 3.21.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 +142 -140
- data/docs/AccessPoliciesApi.md +26 -26
- 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/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/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 +6 -6
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +64 -64
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +64 -64
- data/lib/pulpcore_client/api/distributions_api.rb +6 -6
- 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 +6 -6
- data/lib/pulpcore_client/api/remotes_api.rb +6 -6
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +6 -6
- 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/remote_response.rb +20 -20
- 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/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
- metadata +147 -139
|
@@ -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
|
|
@@ -181,8 +251,8 @@ module PulpcoreClient
|
|
|
181
251
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
182
252
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
183
253
|
# @return [PaginatedTaskResponseList]
|
|
184
|
-
def
|
|
185
|
-
data, _status_code, _headers =
|
|
254
|
+
def tasks_list(opts = {})
|
|
255
|
+
data, _status_code, _headers = tasks_list_with_http_info(opts)
|
|
186
256
|
data
|
|
187
257
|
end
|
|
188
258
|
|
|
@@ -220,9 +290,9 @@ module PulpcoreClient
|
|
|
220
290
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
221
291
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
222
292
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
|
223
|
-
def
|
|
293
|
+
def tasks_list_with_http_info(opts = {})
|
|
224
294
|
if @api_client.config.debugging
|
|
225
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
295
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list ...'
|
|
226
296
|
end
|
|
227
297
|
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"]
|
|
228
298
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -296,7 +366,7 @@ module PulpcoreClient
|
|
|
296
366
|
|
|
297
367
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
298
368
|
if @api_client.config.debugging
|
|
299
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
369
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
300
370
|
end
|
|
301
371
|
return data, status_code, headers
|
|
302
372
|
end
|
|
@@ -307,8 +377,8 @@ module PulpcoreClient
|
|
|
307
377
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
308
378
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
309
379
|
# @return [ObjectRolesResponse]
|
|
310
|
-
def
|
|
311
|
-
data, _status_code, _headers =
|
|
380
|
+
def tasks_list_roles(task_href, opts = {})
|
|
381
|
+
data, _status_code, _headers = tasks_list_roles_with_http_info(task_href, opts)
|
|
312
382
|
data
|
|
313
383
|
end
|
|
314
384
|
|
|
@@ -318,13 +388,13 @@ module PulpcoreClient
|
|
|
318
388
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
319
389
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
320
390
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
321
|
-
def
|
|
391
|
+
def tasks_list_roles_with_http_info(task_href, opts = {})
|
|
322
392
|
if @api_client.config.debugging
|
|
323
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
393
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list_roles ...'
|
|
324
394
|
end
|
|
325
395
|
# verify the required parameter 'task_href' is set
|
|
326
396
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
327
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
397
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_list_roles"
|
|
328
398
|
end
|
|
329
399
|
# resource path
|
|
330
400
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -362,7 +432,7 @@ module PulpcoreClient
|
|
|
362
432
|
|
|
363
433
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
364
434
|
if @api_client.config.debugging
|
|
365
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
435
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
366
436
|
end
|
|
367
437
|
return data, status_code, headers
|
|
368
438
|
end
|
|
@@ -373,8 +443,8 @@ module PulpcoreClient
|
|
|
373
443
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
374
444
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
375
445
|
# @return [MyPermissionsResponse]
|
|
376
|
-
def
|
|
377
|
-
data, _status_code, _headers =
|
|
446
|
+
def tasks_my_permissions(task_href, opts = {})
|
|
447
|
+
data, _status_code, _headers = tasks_my_permissions_with_http_info(task_href, opts)
|
|
378
448
|
data
|
|
379
449
|
end
|
|
380
450
|
|
|
@@ -384,13 +454,13 @@ module PulpcoreClient
|
|
|
384
454
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
385
455
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
386
456
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
387
|
-
def
|
|
457
|
+
def tasks_my_permissions_with_http_info(task_href, opts = {})
|
|
388
458
|
if @api_client.config.debugging
|
|
389
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
459
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_my_permissions ...'
|
|
390
460
|
end
|
|
391
461
|
# verify the required parameter 'task_href' is set
|
|
392
462
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
393
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
463
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_my_permissions"
|
|
394
464
|
end
|
|
395
465
|
# resource path
|
|
396
466
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -428,7 +498,7 @@ module PulpcoreClient
|
|
|
428
498
|
|
|
429
499
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
430
500
|
if @api_client.config.debugging
|
|
431
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
501
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
432
502
|
end
|
|
433
503
|
return data, status_code, headers
|
|
434
504
|
end
|
|
@@ -438,8 +508,8 @@ module PulpcoreClient
|
|
|
438
508
|
# @param purge [Purge]
|
|
439
509
|
# @param [Hash] opts the optional parameters
|
|
440
510
|
# @return [AsyncOperationResponse]
|
|
441
|
-
def
|
|
442
|
-
data, _status_code, _headers =
|
|
511
|
+
def tasks_purge(purge, opts = {})
|
|
512
|
+
data, _status_code, _headers = tasks_purge_with_http_info(purge, opts)
|
|
443
513
|
data
|
|
444
514
|
end
|
|
445
515
|
|
|
@@ -448,13 +518,13 @@ module PulpcoreClient
|
|
|
448
518
|
# @param purge [Purge]
|
|
449
519
|
# @param [Hash] opts the optional parameters
|
|
450
520
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
451
|
-
def
|
|
521
|
+
def tasks_purge_with_http_info(purge, opts = {})
|
|
452
522
|
if @api_client.config.debugging
|
|
453
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
523
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_purge ...'
|
|
454
524
|
end
|
|
455
525
|
# verify the required parameter 'purge' is set
|
|
456
526
|
if @api_client.config.client_side_validation && purge.nil?
|
|
457
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.tasks_purge"
|
|
458
528
|
end
|
|
459
529
|
# resource path
|
|
460
530
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
|
@@ -492,7 +562,7 @@ module PulpcoreClient
|
|
|
492
562
|
|
|
493
563
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
494
564
|
if @api_client.config.debugging
|
|
495
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
565
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
496
566
|
end
|
|
497
567
|
return data, status_code, headers
|
|
498
568
|
end
|
|
@@ -504,8 +574,8 @@ module PulpcoreClient
|
|
|
504
574
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
505
575
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
506
576
|
# @return [TaskResponse]
|
|
507
|
-
def
|
|
508
|
-
data, _status_code, _headers =
|
|
577
|
+
def tasks_read(task_href, opts = {})
|
|
578
|
+
data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
|
|
509
579
|
data
|
|
510
580
|
end
|
|
511
581
|
|
|
@@ -516,13 +586,13 @@ module PulpcoreClient
|
|
|
516
586
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
517
587
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
518
588
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
519
|
-
def
|
|
589
|
+
def tasks_read_with_http_info(task_href, opts = {})
|
|
520
590
|
if @api_client.config.debugging
|
|
521
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
591
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_read ...'
|
|
522
592
|
end
|
|
523
593
|
# verify the required parameter 'task_href' is set
|
|
524
594
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
525
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
595
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
|
|
526
596
|
end
|
|
527
597
|
# resource path
|
|
528
598
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -560,7 +630,7 @@ module PulpcoreClient
|
|
|
560
630
|
|
|
561
631
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
562
632
|
if @api_client.config.debugging
|
|
563
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
633
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
564
634
|
end
|
|
565
635
|
return data, status_code, headers
|
|
566
636
|
end
|
|
@@ -570,8 +640,8 @@ module PulpcoreClient
|
|
|
570
640
|
# @param nested_role [NestedRole]
|
|
571
641
|
# @param [Hash] opts the optional parameters
|
|
572
642
|
# @return [NestedRoleResponse]
|
|
573
|
-
def
|
|
574
|
-
data, _status_code, _headers =
|
|
643
|
+
def tasks_remove_role(task_href, nested_role, opts = {})
|
|
644
|
+
data, _status_code, _headers = tasks_remove_role_with_http_info(task_href, nested_role, opts)
|
|
575
645
|
data
|
|
576
646
|
end
|
|
577
647
|
|
|
@@ -580,17 +650,17 @@ module PulpcoreClient
|
|
|
580
650
|
# @param nested_role [NestedRole]
|
|
581
651
|
# @param [Hash] opts the optional parameters
|
|
582
652
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
583
|
-
def
|
|
653
|
+
def tasks_remove_role_with_http_info(task_href, nested_role, opts = {})
|
|
584
654
|
if @api_client.config.debugging
|
|
585
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
655
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_remove_role ...'
|
|
586
656
|
end
|
|
587
657
|
# verify the required parameter 'task_href' is set
|
|
588
658
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
589
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
659
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_remove_role"
|
|
590
660
|
end
|
|
591
661
|
# verify the required parameter 'nested_role' is set
|
|
592
662
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
593
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
|
663
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_remove_role"
|
|
594
664
|
end
|
|
595
665
|
# resource path
|
|
596
666
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -628,77 +698,7 @@ module PulpcoreClient
|
|
|
628
698
|
|
|
629
699
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
630
700
|
if @api_client.config.debugging
|
|
631
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
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}"
|
|
701
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
702
702
|
end
|
|
703
703
|
return data, status_code, headers
|
|
704
704
|
end
|