pulpcore_client 3.28.28 → 3.28.30
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 +157 -155
- data/docs/AccessPoliciesApi.md +26 -26
- data/docs/ArtifactDistributionResponse.md +12 -12
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +8 -8
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +51 -51
- data/docs/ContentguardsRbacApi.md +51 -51
- data/docs/DistributionsApi.md +8 -8
- data/docs/DistributionsArtifactsApi.md +11 -11
- data/docs/DocsApiJsonApi.md +61 -0
- data/docs/DocsApiYamlApi.md +61 -0
- data/docs/DomainsApi.md +31 -31
- 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 +8 -8
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +8 -8
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +8 -8
- 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/UpstreamPulpsApi.md +36 -36
- 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 +8 -8
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- 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 +8 -8
- 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/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 +7 -11
- data/lib/pulpcore_client/api/remotes_api.rb +7 -11
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +7 -11
- 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/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +50 -50
- 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 +3 -3
- data/spec/api/contentguards_api_spec.rb +3 -3
- 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 +3 -3
- 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/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 +3 -3
- data/spec/api/remotes_api_spec.rb +3 -3
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -3
- 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/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +8 -8
- metadata +164 -156
|
@@ -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
|
|
@@ -190,8 +260,8 @@ module PulpcoreClient
|
|
|
190
260
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
191
261
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
192
262
|
# @return [PaginatedTaskResponseList]
|
|
193
|
-
def
|
|
194
|
-
data, _status_code, _headers =
|
|
263
|
+
def tasks_list(opts = {})
|
|
264
|
+
data, _status_code, _headers = tasks_list_with_http_info(opts)
|
|
195
265
|
data
|
|
196
266
|
end
|
|
197
267
|
|
|
@@ -238,9 +308,9 @@ module PulpcoreClient
|
|
|
238
308
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
239
309
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
240
310
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
|
241
|
-
def
|
|
311
|
+
def tasks_list_with_http_info(opts = {})
|
|
242
312
|
if @api_client.config.debugging
|
|
243
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
313
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list ...'
|
|
244
314
|
end
|
|
245
315
|
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"]
|
|
246
316
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -323,7 +393,7 @@ module PulpcoreClient
|
|
|
323
393
|
|
|
324
394
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
325
395
|
if @api_client.config.debugging
|
|
326
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
396
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
327
397
|
end
|
|
328
398
|
return data, status_code, headers
|
|
329
399
|
end
|
|
@@ -334,8 +404,8 @@ module PulpcoreClient
|
|
|
334
404
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
335
405
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
336
406
|
# @return [ObjectRolesResponse]
|
|
337
|
-
def
|
|
338
|
-
data, _status_code, _headers =
|
|
407
|
+
def tasks_list_roles(task_href, opts = {})
|
|
408
|
+
data, _status_code, _headers = tasks_list_roles_with_http_info(task_href, opts)
|
|
339
409
|
data
|
|
340
410
|
end
|
|
341
411
|
|
|
@@ -345,13 +415,13 @@ module PulpcoreClient
|
|
|
345
415
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
346
416
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
347
417
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
348
|
-
def
|
|
418
|
+
def tasks_list_roles_with_http_info(task_href, opts = {})
|
|
349
419
|
if @api_client.config.debugging
|
|
350
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
420
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_list_roles ...'
|
|
351
421
|
end
|
|
352
422
|
# verify the required parameter 'task_href' is set
|
|
353
423
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
354
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
424
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_list_roles"
|
|
355
425
|
end
|
|
356
426
|
# resource path
|
|
357
427
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -389,7 +459,7 @@ module PulpcoreClient
|
|
|
389
459
|
|
|
390
460
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
391
461
|
if @api_client.config.debugging
|
|
392
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
462
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
393
463
|
end
|
|
394
464
|
return data, status_code, headers
|
|
395
465
|
end
|
|
@@ -400,8 +470,8 @@ module PulpcoreClient
|
|
|
400
470
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
401
471
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
402
472
|
# @return [MyPermissionsResponse]
|
|
403
|
-
def
|
|
404
|
-
data, _status_code, _headers =
|
|
473
|
+
def tasks_my_permissions(task_href, opts = {})
|
|
474
|
+
data, _status_code, _headers = tasks_my_permissions_with_http_info(task_href, opts)
|
|
405
475
|
data
|
|
406
476
|
end
|
|
407
477
|
|
|
@@ -411,13 +481,13 @@ module PulpcoreClient
|
|
|
411
481
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
412
482
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
413
483
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
414
|
-
def
|
|
484
|
+
def tasks_my_permissions_with_http_info(task_href, opts = {})
|
|
415
485
|
if @api_client.config.debugging
|
|
416
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
486
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_my_permissions ...'
|
|
417
487
|
end
|
|
418
488
|
# verify the required parameter 'task_href' is set
|
|
419
489
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
420
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
490
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_my_permissions"
|
|
421
491
|
end
|
|
422
492
|
# resource path
|
|
423
493
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -455,7 +525,7 @@ module PulpcoreClient
|
|
|
455
525
|
|
|
456
526
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
457
527
|
if @api_client.config.debugging
|
|
458
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
528
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
459
529
|
end
|
|
460
530
|
return data, status_code, headers
|
|
461
531
|
end
|
|
@@ -465,8 +535,8 @@ module PulpcoreClient
|
|
|
465
535
|
# @param purge [Purge]
|
|
466
536
|
# @param [Hash] opts the optional parameters
|
|
467
537
|
# @return [AsyncOperationResponse]
|
|
468
|
-
def
|
|
469
|
-
data, _status_code, _headers =
|
|
538
|
+
def tasks_purge(purge, opts = {})
|
|
539
|
+
data, _status_code, _headers = tasks_purge_with_http_info(purge, opts)
|
|
470
540
|
data
|
|
471
541
|
end
|
|
472
542
|
|
|
@@ -475,13 +545,13 @@ module PulpcoreClient
|
|
|
475
545
|
# @param purge [Purge]
|
|
476
546
|
# @param [Hash] opts the optional parameters
|
|
477
547
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
478
|
-
def
|
|
548
|
+
def tasks_purge_with_http_info(purge, opts = {})
|
|
479
549
|
if @api_client.config.debugging
|
|
480
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
550
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_purge ...'
|
|
481
551
|
end
|
|
482
552
|
# verify the required parameter 'purge' is set
|
|
483
553
|
if @api_client.config.client_side_validation && purge.nil?
|
|
484
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
|
554
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.tasks_purge"
|
|
485
555
|
end
|
|
486
556
|
# resource path
|
|
487
557
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
|
@@ -519,7 +589,7 @@ module PulpcoreClient
|
|
|
519
589
|
|
|
520
590
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
521
591
|
if @api_client.config.debugging
|
|
522
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
592
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
523
593
|
end
|
|
524
594
|
return data, status_code, headers
|
|
525
595
|
end
|
|
@@ -531,8 +601,8 @@ module PulpcoreClient
|
|
|
531
601
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
532
602
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
533
603
|
# @return [TaskResponse]
|
|
534
|
-
def
|
|
535
|
-
data, _status_code, _headers =
|
|
604
|
+
def tasks_read(task_href, opts = {})
|
|
605
|
+
data, _status_code, _headers = tasks_read_with_http_info(task_href, opts)
|
|
536
606
|
data
|
|
537
607
|
end
|
|
538
608
|
|
|
@@ -543,13 +613,13 @@ module PulpcoreClient
|
|
|
543
613
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
544
614
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
545
615
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
546
|
-
def
|
|
616
|
+
def tasks_read_with_http_info(task_href, opts = {})
|
|
547
617
|
if @api_client.config.debugging
|
|
548
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
618
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_read ...'
|
|
549
619
|
end
|
|
550
620
|
# verify the required parameter 'task_href' is set
|
|
551
621
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
552
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
622
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_read"
|
|
553
623
|
end
|
|
554
624
|
# resource path
|
|
555
625
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -587,7 +657,7 @@ module PulpcoreClient
|
|
|
587
657
|
|
|
588
658
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
589
659
|
if @api_client.config.debugging
|
|
590
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
660
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
591
661
|
end
|
|
592
662
|
return data, status_code, headers
|
|
593
663
|
end
|
|
@@ -597,8 +667,8 @@ module PulpcoreClient
|
|
|
597
667
|
# @param nested_role [NestedRole]
|
|
598
668
|
# @param [Hash] opts the optional parameters
|
|
599
669
|
# @return [NestedRoleResponse]
|
|
600
|
-
def
|
|
601
|
-
data, _status_code, _headers =
|
|
670
|
+
def tasks_remove_role(task_href, nested_role, opts = {})
|
|
671
|
+
data, _status_code, _headers = tasks_remove_role_with_http_info(task_href, nested_role, opts)
|
|
602
672
|
data
|
|
603
673
|
end
|
|
604
674
|
|
|
@@ -607,17 +677,17 @@ module PulpcoreClient
|
|
|
607
677
|
# @param nested_role [NestedRole]
|
|
608
678
|
# @param [Hash] opts the optional parameters
|
|
609
679
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
610
|
-
def
|
|
680
|
+
def tasks_remove_role_with_http_info(task_href, nested_role, opts = {})
|
|
611
681
|
if @api_client.config.debugging
|
|
612
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
682
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_remove_role ...'
|
|
613
683
|
end
|
|
614
684
|
# verify the required parameter 'task_href' is set
|
|
615
685
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
616
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
686
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_remove_role"
|
|
617
687
|
end
|
|
618
688
|
# verify the required parameter 'nested_role' is set
|
|
619
689
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
620
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
|
690
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.tasks_remove_role"
|
|
621
691
|
end
|
|
622
692
|
# resource path
|
|
623
693
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -655,77 +725,7 @@ module PulpcoreClient
|
|
|
655
725
|
|
|
656
726
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
657
727
|
if @api_client.config.debugging
|
|
658
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
659
|
-
end
|
|
660
|
-
return data, status_code, headers
|
|
661
|
-
end
|
|
662
|
-
|
|
663
|
-
# Cancel a task
|
|
664
|
-
# This operation cancels a task.
|
|
665
|
-
# @param task_href [String]
|
|
666
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
|
667
|
-
# @param [Hash] opts the optional parameters
|
|
668
|
-
# @return [TaskResponse]
|
|
669
|
-
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
|
670
|
-
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
|
671
|
-
data
|
|
672
|
-
end
|
|
673
|
-
|
|
674
|
-
# Cancel a task
|
|
675
|
-
# This operation cancels a task.
|
|
676
|
-
# @param task_href [String]
|
|
677
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
|
678
|
-
# @param [Hash] opts the optional parameters
|
|
679
|
-
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
680
|
-
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
|
681
|
-
if @api_client.config.debugging
|
|
682
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
|
683
|
-
end
|
|
684
|
-
# verify the required parameter 'task_href' is set
|
|
685
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
|
686
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
|
687
|
-
end
|
|
688
|
-
# verify the required parameter 'patched_task_cancel' is set
|
|
689
|
-
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
|
690
|
-
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
|
691
|
-
end
|
|
692
|
-
# resource path
|
|
693
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
694
|
-
|
|
695
|
-
# query parameters
|
|
696
|
-
query_params = opts[:query_params] || {}
|
|
697
|
-
|
|
698
|
-
# header parameters
|
|
699
|
-
header_params = opts[:header_params] || {}
|
|
700
|
-
# HTTP header 'Accept' (if needed)
|
|
701
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
702
|
-
# HTTP header 'Content-Type'
|
|
703
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
704
|
-
|
|
705
|
-
# form parameters
|
|
706
|
-
form_params = opts[:form_params] || {}
|
|
707
|
-
|
|
708
|
-
# http body (model)
|
|
709
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
|
710
|
-
|
|
711
|
-
# return_type
|
|
712
|
-
return_type = opts[:return_type] || 'TaskResponse'
|
|
713
|
-
|
|
714
|
-
# auth_names
|
|
715
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
716
|
-
|
|
717
|
-
new_options = opts.merge(
|
|
718
|
-
:header_params => header_params,
|
|
719
|
-
:query_params => query_params,
|
|
720
|
-
:form_params => form_params,
|
|
721
|
-
:body => post_body,
|
|
722
|
-
:auth_names => auth_names,
|
|
723
|
-
:return_type => return_type
|
|
724
|
-
)
|
|
725
|
-
|
|
726
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
727
|
-
if @api_client.config.debugging
|
|
728
|
-
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
728
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
729
729
|
end
|
|
730
730
|
return data, status_code, headers
|
|
731
731
|
end
|