pulpcore_client 3.28.30 → 3.28.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 +154 -156
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactDistributionResponse.md +9 -9
- 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/DomainsApi.md +30 -30
- 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/UpstreamPulpsApi.md +35 -35
- 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/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 +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/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/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/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 +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/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/models/artifact_distribution_response_spec.rb +6 -6
- metadata +140 -148
- 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
|
|
@@ -260,8 +190,8 @@ module PulpcoreClient
|
|
|
260
190
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
261
191
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
262
192
|
# @return [PaginatedTaskResponseList]
|
|
263
|
-
def
|
|
264
|
-
data, _status_code, _headers =
|
|
193
|
+
def list(opts = {})
|
|
194
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
265
195
|
data
|
|
266
196
|
end
|
|
267
197
|
|
|
@@ -308,9 +238,9 @@ module PulpcoreClient
|
|
|
308
238
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
309
239
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
310
240
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
|
311
|
-
def
|
|
241
|
+
def list_with_http_info(opts = {})
|
|
312
242
|
if @api_client.config.debugging
|
|
313
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
243
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
|
314
244
|
end
|
|
315
245
|
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"]
|
|
316
246
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
@@ -393,7 +323,7 @@ module PulpcoreClient
|
|
|
393
323
|
|
|
394
324
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
395
325
|
if @api_client.config.debugging
|
|
396
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
326
|
+
@api_client.config.logger.debug "API called: TasksApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
397
327
|
end
|
|
398
328
|
return data, status_code, headers
|
|
399
329
|
end
|
|
@@ -404,8 +334,8 @@ module PulpcoreClient
|
|
|
404
334
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
405
335
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
406
336
|
# @return [ObjectRolesResponse]
|
|
407
|
-
def
|
|
408
|
-
data, _status_code, _headers =
|
|
337
|
+
def list_roles(task_href, opts = {})
|
|
338
|
+
data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
|
|
409
339
|
data
|
|
410
340
|
end
|
|
411
341
|
|
|
@@ -415,13 +345,13 @@ module PulpcoreClient
|
|
|
415
345
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
416
346
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
417
347
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
418
|
-
def
|
|
348
|
+
def list_roles_with_http_info(task_href, opts = {})
|
|
419
349
|
if @api_client.config.debugging
|
|
420
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
350
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
|
|
421
351
|
end
|
|
422
352
|
# verify the required parameter 'task_href' is set
|
|
423
353
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
424
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
354
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.list_roles"
|
|
425
355
|
end
|
|
426
356
|
# resource path
|
|
427
357
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -459,7 +389,7 @@ module PulpcoreClient
|
|
|
459
389
|
|
|
460
390
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
461
391
|
if @api_client.config.debugging
|
|
462
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
392
|
+
@api_client.config.logger.debug "API called: TasksApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
463
393
|
end
|
|
464
394
|
return data, status_code, headers
|
|
465
395
|
end
|
|
@@ -470,8 +400,8 @@ module PulpcoreClient
|
|
|
470
400
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
471
401
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
472
402
|
# @return [MyPermissionsResponse]
|
|
473
|
-
def
|
|
474
|
-
data, _status_code, _headers =
|
|
403
|
+
def my_permissions(task_href, opts = {})
|
|
404
|
+
data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
|
|
475
405
|
data
|
|
476
406
|
end
|
|
477
407
|
|
|
@@ -481,13 +411,13 @@ module PulpcoreClient
|
|
|
481
411
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
482
412
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
483
413
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
484
|
-
def
|
|
414
|
+
def my_permissions_with_http_info(task_href, opts = {})
|
|
485
415
|
if @api_client.config.debugging
|
|
486
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
416
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
|
|
487
417
|
end
|
|
488
418
|
# verify the required parameter 'task_href' is set
|
|
489
419
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
490
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
420
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.my_permissions"
|
|
491
421
|
end
|
|
492
422
|
# resource path
|
|
493
423
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -525,7 +455,7 @@ module PulpcoreClient
|
|
|
525
455
|
|
|
526
456
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
527
457
|
if @api_client.config.debugging
|
|
528
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
458
|
+
@api_client.config.logger.debug "API called: TasksApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
529
459
|
end
|
|
530
460
|
return data, status_code, headers
|
|
531
461
|
end
|
|
@@ -535,8 +465,8 @@ module PulpcoreClient
|
|
|
535
465
|
# @param purge [Purge]
|
|
536
466
|
# @param [Hash] opts the optional parameters
|
|
537
467
|
# @return [AsyncOperationResponse]
|
|
538
|
-
def
|
|
539
|
-
data, _status_code, _headers =
|
|
468
|
+
def purge(purge, opts = {})
|
|
469
|
+
data, _status_code, _headers = purge_with_http_info(purge, opts)
|
|
540
470
|
data
|
|
541
471
|
end
|
|
542
472
|
|
|
@@ -545,13 +475,13 @@ module PulpcoreClient
|
|
|
545
475
|
# @param purge [Purge]
|
|
546
476
|
# @param [Hash] opts the optional parameters
|
|
547
477
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
548
|
-
def
|
|
478
|
+
def purge_with_http_info(purge, opts = {})
|
|
549
479
|
if @api_client.config.debugging
|
|
550
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
480
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
|
|
551
481
|
end
|
|
552
482
|
# verify the required parameter 'purge' is set
|
|
553
483
|
if @api_client.config.client_side_validation && purge.nil?
|
|
554
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
|
484
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
|
|
555
485
|
end
|
|
556
486
|
# resource path
|
|
557
487
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
|
@@ -589,7 +519,7 @@ module PulpcoreClient
|
|
|
589
519
|
|
|
590
520
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
591
521
|
if @api_client.config.debugging
|
|
592
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
522
|
+
@api_client.config.logger.debug "API called: TasksApi#purge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
593
523
|
end
|
|
594
524
|
return data, status_code, headers
|
|
595
525
|
end
|
|
@@ -601,8 +531,8 @@ module PulpcoreClient
|
|
|
601
531
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
602
532
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
603
533
|
# @return [TaskResponse]
|
|
604
|
-
def
|
|
605
|
-
data, _status_code, _headers =
|
|
534
|
+
def read(task_href, opts = {})
|
|
535
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
|
606
536
|
data
|
|
607
537
|
end
|
|
608
538
|
|
|
@@ -613,13 +543,13 @@ module PulpcoreClient
|
|
|
613
543
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
614
544
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
615
545
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
616
|
-
def
|
|
546
|
+
def read_with_http_info(task_href, opts = {})
|
|
617
547
|
if @api_client.config.debugging
|
|
618
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
548
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
|
619
549
|
end
|
|
620
550
|
# verify the required parameter 'task_href' is set
|
|
621
551
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
622
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
552
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
|
623
553
|
end
|
|
624
554
|
# resource path
|
|
625
555
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -657,7 +587,7 @@ module PulpcoreClient
|
|
|
657
587
|
|
|
658
588
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
659
589
|
if @api_client.config.debugging
|
|
660
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
590
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
661
591
|
end
|
|
662
592
|
return data, status_code, headers
|
|
663
593
|
end
|
|
@@ -667,8 +597,8 @@ module PulpcoreClient
|
|
|
667
597
|
# @param nested_role [NestedRole]
|
|
668
598
|
# @param [Hash] opts the optional parameters
|
|
669
599
|
# @return [NestedRoleResponse]
|
|
670
|
-
def
|
|
671
|
-
data, _status_code, _headers =
|
|
600
|
+
def remove_role(task_href, nested_role, opts = {})
|
|
601
|
+
data, _status_code, _headers = remove_role_with_http_info(task_href, nested_role, opts)
|
|
672
602
|
data
|
|
673
603
|
end
|
|
674
604
|
|
|
@@ -677,17 +607,17 @@ module PulpcoreClient
|
|
|
677
607
|
# @param nested_role [NestedRole]
|
|
678
608
|
# @param [Hash] opts the optional parameters
|
|
679
609
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
680
|
-
def
|
|
610
|
+
def remove_role_with_http_info(task_href, nested_role, opts = {})
|
|
681
611
|
if @api_client.config.debugging
|
|
682
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
612
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
|
|
683
613
|
end
|
|
684
614
|
# verify the required parameter 'task_href' is set
|
|
685
615
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
686
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
616
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.remove_role"
|
|
687
617
|
end
|
|
688
618
|
# verify the required parameter 'nested_role' is set
|
|
689
619
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
690
|
-
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.
|
|
620
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling TasksApi.remove_role"
|
|
691
621
|
end
|
|
692
622
|
# resource path
|
|
693
623
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -725,7 +655,77 @@ module PulpcoreClient
|
|
|
725
655
|
|
|
726
656
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
727
657
|
if @api_client.config.debugging
|
|
728
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
|
658
|
+
@api_client.config.logger.debug "API called: TasksApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
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}"
|
|
729
729
|
end
|
|
730
730
|
return data, status_code, headers
|
|
731
731
|
end
|