pulpcore_client 3.22.29 → 3.22.31
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 +141 -143
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +5 -5
- data/docs/ContentguardsContentRedirectApi.md +50 -50
- data/docs/ContentguardsRbacApi.md +50 -50
- data/docs/DistributionsApi.md +5 -5
- data/docs/DistributionsArtifactsApi.md +10 -10
- data/docs/ExportersFilesystemApi.md +30 -30
- data/docs/ExportersFilesystemExportsApi.md +20 -20
- data/docs/ExportersPulpApi.md +30 -30
- data/docs/ExportersPulpExportsApi.md +20 -20
- data/docs/GroupsApi.md +50 -50
- data/docs/GroupsRolesApi.md +20 -20
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/ImportersPulpApi.md +30 -30
- data/docs/ImportersPulpImportsApi.md +20 -20
- data/docs/OrphansApi.md +5 -5
- data/docs/OrphansCleanupApi.md +5 -5
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +5 -5
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +5 -5
- data/docs/RepositoryVersionsApi.md +5 -5
- data/docs/RolesApi.md +30 -30
- data/docs/SigningServicesApi.md +10 -10
- data/docs/TaskGroupsApi.md +10 -10
- data/docs/TaskSchedulesApi.md +30 -30
- data/docs/TasksApi.md +95 -95
- data/docs/UploadsApi.md +50 -50
- data/docs/UsersApi.md +30 -30
- data/docs/UsersRolesApi.md +20 -20
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
- 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/models/artifact_distribution_response.rb +39 -39
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -2
- data/spec/api/access_policies_api_spec.rb +10 -10
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +4 -4
- data/spec/api/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/models/artifact_distribution_response_spec.rb +6 -6
- metadata +132 -140
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
|
@@ -24,8 +24,8 @@ module PulpcoreClient
|
|
|
24
24
|
# @param nested_role [NestedRole]
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
|
26
26
|
# @return [NestedRoleResponse]
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
def add_role(task_href, nested_role, opts = {})
|
|
28
|
+
data, _status_code, _headers = add_role_with_http_info(task_href, nested_role, opts)
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -34,17 +34,17 @@ module PulpcoreClient
|
|
|
34
34
|
# @param nested_role [NestedRole]
|
|
35
35
|
# @param [Hash] opts the optional parameters
|
|
36
36
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
37
|
-
def
|
|
37
|
+
def add_role_with_http_info(task_href, nested_role, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.add_role ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'task_href' is set
|
|
42
42
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.add_role"
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'nested_role' is set
|
|
46
46
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.add_role"
|
|
48
48
|
end
|
|
49
49
|
# resource path
|
|
50
50
|
local_var_path = '{task_href}add_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -82,77 +82,7 @@ module PulpcoreClient
|
|
|
82
82
|
|
|
83
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
86
|
-
end
|
|
87
|
-
return data, status_code, headers
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Cancel a task
|
|
91
|
-
# This operation cancels a task.
|
|
92
|
-
# @param task_href [String]
|
|
93
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
|
94
|
-
# @param [Hash] opts the optional parameters
|
|
95
|
-
# @return [TaskResponse]
|
|
96
|
-
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
|
97
|
-
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
|
98
|
-
data
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# Cancel a task
|
|
102
|
-
# This operation cancels a task.
|
|
103
|
-
# @param task_href [String]
|
|
104
|
-
# @param patched_task_cancel [PatchedTaskCancel]
|
|
105
|
-
# @param [Hash] opts the optional parameters
|
|
106
|
-
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
107
|
-
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
|
108
|
-
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
|
110
|
-
end
|
|
111
|
-
# verify the required parameter 'task_href' is set
|
|
112
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
|
113
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
|
114
|
-
end
|
|
115
|
-
# verify the required parameter 'patched_task_cancel' is set
|
|
116
|
-
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
|
117
|
-
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
|
118
|
-
end
|
|
119
|
-
# resource path
|
|
120
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
121
|
-
|
|
122
|
-
# query parameters
|
|
123
|
-
query_params = opts[:query_params] || {}
|
|
124
|
-
|
|
125
|
-
# header parameters
|
|
126
|
-
header_params = opts[:header_params] || {}
|
|
127
|
-
# HTTP header 'Accept' (if needed)
|
|
128
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
129
|
-
# HTTP header 'Content-Type'
|
|
130
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
131
|
-
|
|
132
|
-
# form parameters
|
|
133
|
-
form_params = opts[:form_params] || {}
|
|
134
|
-
|
|
135
|
-
# http body (model)
|
|
136
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
|
|
137
|
-
|
|
138
|
-
# return_type
|
|
139
|
-
return_type = opts[:return_type] || 'TaskResponse'
|
|
140
|
-
|
|
141
|
-
# auth_names
|
|
142
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
|
143
|
-
|
|
144
|
-
new_options = opts.merge(
|
|
145
|
-
:header_params => header_params,
|
|
146
|
-
:query_params => query_params,
|
|
147
|
-
:form_params => form_params,
|
|
148
|
-
:body => post_body,
|
|
149
|
-
:auth_names => auth_names,
|
|
150
|
-
:return_type => return_type
|
|
151
|
-
)
|
|
152
|
-
|
|
153
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
154
|
-
if @api_client.config.debugging
|
|
155
|
-
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
85
|
+
@api_client.config.logger.debug "API called: TasksApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
86
|
end
|
|
157
87
|
return data, status_code, headers
|
|
158
88
|
end
|
|
@@ -162,8 +92,8 @@ module PulpcoreClient
|
|
|
162
92
|
# @param task_href [String]
|
|
163
93
|
# @param [Hash] opts the optional parameters
|
|
164
94
|
# @return [nil]
|
|
165
|
-
def
|
|
166
|
-
|
|
95
|
+
def delete(task_href, opts = {})
|
|
96
|
+
delete_with_http_info(task_href, opts)
|
|
167
97
|
nil
|
|
168
98
|
end
|
|
169
99
|
|
|
@@ -172,13 +102,13 @@ module PulpcoreClient
|
|
|
172
102
|
# @param task_href [String]
|
|
173
103
|
# @param [Hash] opts the optional parameters
|
|
174
104
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
175
|
-
def
|
|
105
|
+
def delete_with_http_info(task_href, opts = {})
|
|
176
106
|
if @api_client.config.debugging
|
|
177
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.delete ...'
|
|
178
108
|
end
|
|
179
109
|
# verify the required parameter 'task_href' is set
|
|
180
110
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
181
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.delete"
|
|
182
112
|
end
|
|
183
113
|
# resource path
|
|
184
114
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -212,7 +142,7 @@ module PulpcoreClient
|
|
|
212
142
|
|
|
213
143
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
214
144
|
if @api_client.config.debugging
|
|
215
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
145
|
+
@api_client.config.logger.debug "API called: TasksApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
146
|
end
|
|
217
147
|
return data, status_code, headers
|
|
218
148
|
end
|
|
@@ -258,8 +188,8 @@ module PulpcoreClient
|
|
|
258
188
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
259
189
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
260
190
|
# @return [PaginatedTaskResponseList]
|
|
261
|
-
def
|
|
262
|
-
data, _status_code, _headers =
|
|
191
|
+
def list(opts = {})
|
|
192
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
263
193
|
data
|
|
264
194
|
end
|
|
265
195
|
|
|
@@ -304,9 +234,9 @@ module PulpcoreClient
|
|
|
304
234
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
305
235
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
306
236
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
|
307
|
-
def
|
|
237
|
+
def list_with_http_info(opts = {})
|
|
308
238
|
if @api_client.config.debugging
|
|
309
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
239
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
|
310
240
|
end
|
|
311
241
|
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"]
|
|
312
242
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -387,7 +317,7 @@ module PulpcoreClient
|
|
|
387
317
|
|
|
388
318
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
389
319
|
if @api_client.config.debugging
|
|
390
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
320
|
+
@api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
391
321
|
end
|
|
392
322
|
return data, status_code, headers
|
|
393
323
|
end
|
|
@@ -398,8 +328,8 @@ module PulpcoreClient
|
|
|
398
328
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
399
329
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
400
330
|
# @return [ObjectRolesResponse]
|
|
401
|
-
def
|
|
402
|
-
data, _status_code, _headers =
|
|
331
|
+
def list_roles(task_href, opts = {})
|
|
332
|
+
data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
|
|
403
333
|
data
|
|
404
334
|
end
|
|
405
335
|
|
|
@@ -409,13 +339,13 @@ module PulpcoreClient
|
|
|
409
339
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
410
340
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
411
341
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
412
|
-
def
|
|
342
|
+
def list_roles_with_http_info(task_href, opts = {})
|
|
413
343
|
if @api_client.config.debugging
|
|
414
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
344
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
|
|
415
345
|
end
|
|
416
346
|
# verify the required parameter 'task_href' is set
|
|
417
347
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
418
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
348
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.list_roles"
|
|
419
349
|
end
|
|
420
350
|
# resource path
|
|
421
351
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -453,7 +383,7 @@ module PulpcoreClient
|
|
|
453
383
|
|
|
454
384
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
455
385
|
if @api_client.config.debugging
|
|
456
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
386
|
+
@api_client.config.logger.debug "API called: TasksApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
457
387
|
end
|
|
458
388
|
return data, status_code, headers
|
|
459
389
|
end
|
|
@@ -464,8 +394,8 @@ module PulpcoreClient
|
|
|
464
394
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
465
395
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
466
396
|
# @return [MyPermissionsResponse]
|
|
467
|
-
def
|
|
468
|
-
data, _status_code, _headers =
|
|
397
|
+
def my_permissions(task_href, opts = {})
|
|
398
|
+
data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
|
|
469
399
|
data
|
|
470
400
|
end
|
|
471
401
|
|
|
@@ -475,13 +405,13 @@ module PulpcoreClient
|
|
|
475
405
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
476
406
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
477
407
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
478
|
-
def
|
|
408
|
+
def my_permissions_with_http_info(task_href, opts = {})
|
|
479
409
|
if @api_client.config.debugging
|
|
480
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
410
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
|
|
481
411
|
end
|
|
482
412
|
# verify the required parameter 'task_href' is set
|
|
483
413
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
484
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
414
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.my_permissions"
|
|
485
415
|
end
|
|
486
416
|
# resource path
|
|
487
417
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -519,7 +449,7 @@ module PulpcoreClient
|
|
|
519
449
|
|
|
520
450
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
521
451
|
if @api_client.config.debugging
|
|
522
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
452
|
+
@api_client.config.logger.debug "API called: TasksApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
523
453
|
end
|
|
524
454
|
return data, status_code, headers
|
|
525
455
|
end
|
|
@@ -529,8 +459,8 @@ module PulpcoreClient
|
|
|
529
459
|
# @param purge [Purge]
|
|
530
460
|
# @param [Hash] opts the optional parameters
|
|
531
461
|
# @return [AsyncOperationResponse]
|
|
532
|
-
def
|
|
533
|
-
data, _status_code, _headers =
|
|
462
|
+
def purge(purge, opts = {})
|
|
463
|
+
data, _status_code, _headers = purge_with_http_info(purge, opts)
|
|
534
464
|
data
|
|
535
465
|
end
|
|
536
466
|
|
|
@@ -539,13 +469,13 @@ module PulpcoreClient
|
|
|
539
469
|
# @param purge [Purge]
|
|
540
470
|
# @param [Hash] opts the optional parameters
|
|
541
471
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
542
|
-
def
|
|
472
|
+
def purge_with_http_info(purge, opts = {})
|
|
543
473
|
if @api_client.config.debugging
|
|
544
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
474
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
|
|
545
475
|
end
|
|
546
476
|
# verify the required parameter 'purge' is set
|
|
547
477
|
if @api_client.config.client_side_validation && purge.nil?
|
|
548
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
|
478
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
|
|
549
479
|
end
|
|
550
480
|
# resource path
|
|
551
481
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
|
@@ -583,7 +513,7 @@ module PulpcoreClient
|
|
|
583
513
|
|
|
584
514
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
585
515
|
if @api_client.config.debugging
|
|
586
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
516
|
+
@api_client.config.logger.debug "API called: TasksApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
587
517
|
end
|
|
588
518
|
return data, status_code, headers
|
|
589
519
|
end
|
|
@@ -595,8 +525,8 @@ module PulpcoreClient
|
|
|
595
525
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
596
526
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
597
527
|
# @return [TaskResponse]
|
|
598
|
-
def
|
|
599
|
-
data, _status_code, _headers =
|
|
528
|
+
def read(task_href, opts = {})
|
|
529
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
|
600
530
|
data
|
|
601
531
|
end
|
|
602
532
|
|
|
@@ -607,13 +537,13 @@ module PulpcoreClient
|
|
|
607
537
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
608
538
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
609
539
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
610
|
-
def
|
|
540
|
+
def read_with_http_info(task_href, opts = {})
|
|
611
541
|
if @api_client.config.debugging
|
|
612
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
542
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
|
613
543
|
end
|
|
614
544
|
# verify the required parameter 'task_href' is set
|
|
615
545
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
616
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
546
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
|
617
547
|
end
|
|
618
548
|
# resource path
|
|
619
549
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -651,7 +581,7 @@ module PulpcoreClient
|
|
|
651
581
|
|
|
652
582
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
653
583
|
if @api_client.config.debugging
|
|
654
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
584
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
655
585
|
end
|
|
656
586
|
return data, status_code, headers
|
|
657
587
|
end
|
|
@@ -661,8 +591,8 @@ module PulpcoreClient
|
|
|
661
591
|
# @param nested_role [NestedRole]
|
|
662
592
|
# @param [Hash] opts the optional parameters
|
|
663
593
|
# @return [NestedRoleResponse]
|
|
664
|
-
def
|
|
665
|
-
data, _status_code, _headers =
|
|
594
|
+
def remove_role(task_href, nested_role, opts = {})
|
|
595
|
+
data, _status_code, _headers = remove_role_with_http_info(task_href, nested_role, opts)
|
|
666
596
|
data
|
|
667
597
|
end
|
|
668
598
|
|
|
@@ -671,17 +601,17 @@ module PulpcoreClient
|
|
|
671
601
|
# @param nested_role [NestedRole]
|
|
672
602
|
# @param [Hash] opts the optional parameters
|
|
673
603
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
674
|
-
def
|
|
604
|
+
def remove_role_with_http_info(task_href, nested_role, opts = {})
|
|
675
605
|
if @api_client.config.debugging
|
|
676
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
606
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
|
|
677
607
|
end
|
|
678
608
|
# verify the required parameter 'task_href' is set
|
|
679
609
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
680
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
610
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.remove_role"
|
|
681
611
|
end
|
|
682
612
|
# verify the required parameter 'nested_role' is set
|
|
683
613
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
684
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
|
614
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.remove_role"
|
|
685
615
|
end
|
|
686
616
|
# resource path
|
|
687
617
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -719,7 +649,77 @@ module PulpcoreClient
|
|
|
719
649
|
|
|
720
650
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
721
651
|
if @api_client.config.debugging
|
|
722
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
652
|
+
@api_client.config.logger.debug "API called: TasksApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
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}"
|
|
723
723
|
end
|
|
724
724
|
return data, status_code, headers
|
|
725
725
|
end
|