pulpcore_client 3.21.32 → 3.22.0
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 +147 -143
- data/docs/AccessPoliciesApi.md +28 -28
- data/docs/ArtifactDistributionResponse.md +29 -0
- data/docs/ArtifactsApi.md +21 -21
- data/docs/ContentApi.md +6 -6
- data/docs/ContentSettingsResponse.md +19 -0
- data/docs/ContentguardsApi.md +8 -8
- data/docs/ContentguardsContentRedirectApi.md +53 -53
- data/docs/ContentguardsRbacApi.md +53 -53
- data/docs/DistributionResponse.md +1 -1
- data/docs/DistributionsApi.md +11 -11
- data/docs/DistributionsArtifactsApi.md +154 -0
- data/docs/ExportersFilesystemApi.md +33 -33
- data/docs/ExportersFilesystemExportsApi.md +21 -21
- data/docs/ExportersPulpApi.md +33 -33
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExport.md +1 -3
- data/docs/GroupsApi.md +51 -51
- data/docs/GroupsRolesApi.md +21 -21
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -33
- 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/PaginatedArtifactDistributionResponseList.md +23 -0
- data/docs/PublicationsApi.md +8 -8
- data/docs/RemoteResponse.md +4 -2
- data/docs/RemoteResponseHiddenFields.md +19 -0
- data/docs/RemotesApi.md +10 -10
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +9 -9
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +10 -10
- data/docs/RolesApi.md +31 -31
- data/docs/SigningServicesApi.md +15 -13
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +3 -1
- data/docs/TaskGroupsApi.md +11 -13
- data/docs/TaskSchedulesApi.md +35 -35
- data/docs/TasksApi.md +128 -114
- data/docs/UploadsApi.md +61 -51
- data/docs/UserResponse.md +3 -1
- data/docs/UsersApi.md +31 -31
- data/docs/UsersRolesApi.md +21 -21
- data/docs/WorkersApi.md +15 -15
- data/lib/pulpcore_client/api/access_policies_api.rb +34 -34
- data/lib/pulpcore_client/api/artifacts_api.rb +30 -30
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +8 -8
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +66 -66
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +66 -66
- data/lib/pulpcore_client/api/distributions_api.rb +12 -12
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +198 -0
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +40 -40
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +64 -64
- 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 +40 -40
- 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 +8 -8
- data/lib/pulpcore_client/api/remotes_api.rb +10 -10
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +8 -8
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +10 -10
- data/lib/pulpcore_client/api/roles_api.rb +38 -38
- data/lib/pulpcore_client/api/signing_services_api.rb +20 -13
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -18
- data/lib/pulpcore_client/api/task_schedules_api.rb +42 -42
- data/lib/pulpcore_client/api/tasks_api.rb +159 -138
- data/lib/pulpcore_client/api/uploads_api.rb +84 -65
- data/lib/pulpcore_client/api/users_api.rb +38 -38
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +16 -16
- data/lib/pulpcore_client/configuration.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +279 -0
- data/lib/pulpcore_client/models/content_settings_response.rb +228 -0
- data/lib/pulpcore_client/models/distribution_response.rb +4 -2
- data/lib/pulpcore_client/models/filesystem_export.rb +4 -14
- data/lib/pulpcore_client/models/group_role.rb +19 -0
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +237 -0
- data/lib/pulpcore_client/models/remote_response.rb +41 -27
- data/lib/pulpcore_client/models/remote_response_hidden_fields.rb +215 -0
- data/lib/pulpcore_client/models/repository_response.rb +4 -2
- data/lib/pulpcore_client/models/status_response.rb +19 -4
- data/lib/pulpcore_client/models/user_response.rb +16 -4
- data/lib/pulpcore_client/models/user_role.rb +19 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -2
- data/spec/api/access_policies_api_spec.rb +11 -11
- 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 +3 -3
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -21
- data/spec/api/contentguards_rbac_api_spec.rb +21 -21
- data/spec/api/distributions_api_spec.rb +5 -5
- data/spec/api/distributions_artifacts_api_spec.rb +76 -0
- data/spec/api/exporters_filesystem_api_spec.rb +13 -13
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +13 -13
- 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 +13 -13
- 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 +4 -4
- 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 +4 -4
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +6 -5
- data/spec/api/task_groups_api_spec.rb +4 -5
- data/spec/api/task_schedules_api_spec.rb +14 -14
- data/spec/api/tasks_api_spec.rb +45 -38
- data/spec/api/uploads_api_spec.rb +25 -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 +6 -6
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +77 -0
- data/spec/models/content_settings_response_spec.rb +47 -0
- data/spec/models/filesystem_export_spec.rb +0 -6
- data/spec/models/paginated_artifact_distribution_response_list_spec.rb +59 -0
- data/spec/models/remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/status_response_spec.rb +6 -0
- data/spec/models/user_response_spec.rb +6 -0
- metadata +162 -150
- 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
|
|
@@ -220,81 +150,95 @@ module PulpcoreClient
|
|
|
220
150
|
# List tasks
|
|
221
151
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
222
152
|
# @param [Hash] opts the optional parameters
|
|
223
|
-
# @option opts [String] :child_tasks
|
|
153
|
+
# @option opts [String] :child_tasks Filter results where child_tasks matches value
|
|
224
154
|
# @option opts [String] :created_resources
|
|
225
|
-
# @option opts [
|
|
155
|
+
# @option opts [String] :exclusive_resources
|
|
156
|
+
# @option opts [Array<String>] :exclusive_resources__in Multiple values may be separated by commas.
|
|
157
|
+
# @option opts [DateTime] :finished_at Filter results where finished_at matches value
|
|
226
158
|
# @option opts [DateTime] :finished_at__gt Filter results where finished_at is greater than value
|
|
227
159
|
# @option opts [DateTime] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
|
228
160
|
# @option opts [DateTime] :finished_at__lt Filter results where finished_at is less than value
|
|
229
161
|
# @option opts [DateTime] :finished_at__lte Filter results where finished_at is less than or equal to value
|
|
230
162
|
# @option opts [Array<DateTime>] :finished_at__range Filter results where finished_at is between two comma separated values
|
|
231
163
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
232
|
-
# @option opts [String] :logging_cid
|
|
164
|
+
# @option opts [String] :logging_cid Filter results where logging_cid matches value
|
|
233
165
|
# @option opts [String] :logging_cid__contains Filter results where logging_cid contains value
|
|
234
|
-
# @option opts [String] :name
|
|
166
|
+
# @option opts [String] :name Filter results where name matches value
|
|
235
167
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
168
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
236
169
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
237
170
|
# @option opts [Array<String>] :ordering Ordering
|
|
238
|
-
# @option opts [String] :parent_task
|
|
171
|
+
# @option opts [String] :parent_task Filter results where parent_task matches value
|
|
172
|
+
# @option opts [String] :reserved_resources
|
|
173
|
+
# @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
|
|
239
174
|
# @option opts [Array<String>] :reserved_resources_record
|
|
240
|
-
# @option opts [
|
|
175
|
+
# @option opts [String] :shared_resources
|
|
176
|
+
# @option opts [Array<String>] :shared_resources__in Multiple values may be separated by commas.
|
|
177
|
+
# @option opts [DateTime] :started_at Filter results where started_at matches value
|
|
241
178
|
# @option opts [DateTime] :started_at__gt Filter results where started_at is greater than value
|
|
242
179
|
# @option opts [DateTime] :started_at__gte Filter results where started_at is greater than or equal to value
|
|
243
180
|
# @option opts [DateTime] :started_at__lt Filter results where started_at is less than value
|
|
244
181
|
# @option opts [DateTime] :started_at__lte Filter results where started_at is less than or equal to value
|
|
245
182
|
# @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
|
|
246
|
-
# @option opts [String] :state
|
|
183
|
+
# @option opts [String] :state Filter results where state matches value
|
|
247
184
|
# @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
|
|
248
|
-
# @option opts [String] :task_group
|
|
249
|
-
# @option opts [String] :worker
|
|
185
|
+
# @option opts [String] :task_group Filter results where task_group matches value
|
|
186
|
+
# @option opts [String] :worker Filter results where worker matches value
|
|
250
187
|
# @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
|
|
251
188
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
252
189
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
253
190
|
# @return [PaginatedTaskResponseList]
|
|
254
|
-
def
|
|
255
|
-
data, _status_code, _headers =
|
|
191
|
+
def list(opts = {})
|
|
192
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
256
193
|
data
|
|
257
194
|
end
|
|
258
195
|
|
|
259
196
|
# List tasks
|
|
260
197
|
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
|
261
198
|
# @param [Hash] opts the optional parameters
|
|
262
|
-
# @option opts [String] :child_tasks
|
|
199
|
+
# @option opts [String] :child_tasks Filter results where child_tasks matches value
|
|
263
200
|
# @option opts [String] :created_resources
|
|
264
|
-
# @option opts [
|
|
201
|
+
# @option opts [String] :exclusive_resources
|
|
202
|
+
# @option opts [Array<String>] :exclusive_resources__in Multiple values may be separated by commas.
|
|
203
|
+
# @option opts [DateTime] :finished_at Filter results where finished_at matches value
|
|
265
204
|
# @option opts [DateTime] :finished_at__gt Filter results where finished_at is greater than value
|
|
266
205
|
# @option opts [DateTime] :finished_at__gte Filter results where finished_at is greater than or equal to value
|
|
267
206
|
# @option opts [DateTime] :finished_at__lt Filter results where finished_at is less than value
|
|
268
207
|
# @option opts [DateTime] :finished_at__lte Filter results where finished_at is less than or equal to value
|
|
269
208
|
# @option opts [Array<DateTime>] :finished_at__range Filter results where finished_at is between two comma separated values
|
|
270
209
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
271
|
-
# @option opts [String] :logging_cid
|
|
210
|
+
# @option opts [String] :logging_cid Filter results where logging_cid matches value
|
|
272
211
|
# @option opts [String] :logging_cid__contains Filter results where logging_cid contains value
|
|
273
|
-
# @option opts [String] :name
|
|
212
|
+
# @option opts [String] :name Filter results where name matches value
|
|
274
213
|
# @option opts [String] :name__contains Filter results where name contains value
|
|
214
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
275
215
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
276
216
|
# @option opts [Array<String>] :ordering Ordering
|
|
277
|
-
# @option opts [String] :parent_task
|
|
217
|
+
# @option opts [String] :parent_task Filter results where parent_task matches value
|
|
218
|
+
# @option opts [String] :reserved_resources
|
|
219
|
+
# @option opts [Array<String>] :reserved_resources__in Multiple values may be separated by commas.
|
|
278
220
|
# @option opts [Array<String>] :reserved_resources_record
|
|
279
|
-
# @option opts [
|
|
221
|
+
# @option opts [String] :shared_resources
|
|
222
|
+
# @option opts [Array<String>] :shared_resources__in Multiple values may be separated by commas.
|
|
223
|
+
# @option opts [DateTime] :started_at Filter results where started_at matches value
|
|
280
224
|
# @option opts [DateTime] :started_at__gt Filter results where started_at is greater than value
|
|
281
225
|
# @option opts [DateTime] :started_at__gte Filter results where started_at is greater than or equal to value
|
|
282
226
|
# @option opts [DateTime] :started_at__lt Filter results where started_at is less than value
|
|
283
227
|
# @option opts [DateTime] :started_at__lte Filter results where started_at is less than or equal to value
|
|
284
228
|
# @option opts [Array<DateTime>] :started_at__range Filter results where started_at is between two comma separated values
|
|
285
|
-
# @option opts [String] :state
|
|
229
|
+
# @option opts [String] :state Filter results where state matches value
|
|
286
230
|
# @option opts [Array<String>] :state__in Filter results where state is in a comma-separated list of values
|
|
287
|
-
# @option opts [String] :task_group
|
|
288
|
-
# @option opts [String] :worker
|
|
231
|
+
# @option opts [String] :task_group Filter results where task_group matches value
|
|
232
|
+
# @option opts [String] :worker Filter results where worker matches value
|
|
289
233
|
# @option opts [Array<String>] :worker__in Filter results where worker is in a comma-separated list of values
|
|
290
234
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
291
235
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
292
236
|
# @return [Array<(PaginatedTaskResponseList, Integer, Hash)>] PaginatedTaskResponseList data, response status code and response headers
|
|
293
|
-
def
|
|
237
|
+
def list_with_http_info(opts = {})
|
|
294
238
|
if @api_client.config.debugging
|
|
295
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
239
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list ...'
|
|
296
240
|
end
|
|
297
|
-
allowable_values = ["-args", "-
|
|
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"]
|
|
298
242
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
299
243
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
300
244
|
end
|
|
@@ -309,6 +253,8 @@ module PulpcoreClient
|
|
|
309
253
|
query_params = opts[:query_params] || {}
|
|
310
254
|
query_params[:'child_tasks'] = opts[:'child_tasks'] if !opts[:'child_tasks'].nil?
|
|
311
255
|
query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
|
|
256
|
+
query_params[:'exclusive_resources'] = opts[:'exclusive_resources'] if !opts[:'exclusive_resources'].nil?
|
|
257
|
+
query_params[:'exclusive_resources__in'] = @api_client.build_collection_param(opts[:'exclusive_resources__in'], :csv) if !opts[:'exclusive_resources__in'].nil?
|
|
312
258
|
query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
|
|
313
259
|
query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
|
|
314
260
|
query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
|
|
@@ -320,10 +266,15 @@ module PulpcoreClient
|
|
|
320
266
|
query_params[:'logging_cid__contains'] = opts[:'logging_cid__contains'] if !opts[:'logging_cid__contains'].nil?
|
|
321
267
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
322
268
|
query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
|
|
269
|
+
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
323
270
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
324
271
|
query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
|
|
325
272
|
query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
|
|
273
|
+
query_params[:'reserved_resources'] = opts[:'reserved_resources'] if !opts[:'reserved_resources'].nil?
|
|
274
|
+
query_params[:'reserved_resources__in'] = @api_client.build_collection_param(opts[:'reserved_resources__in'], :csv) if !opts[:'reserved_resources__in'].nil?
|
|
326
275
|
query_params[:'reserved_resources_record'] = @api_client.build_collection_param(opts[:'reserved_resources_record'], :multi) if !opts[:'reserved_resources_record'].nil?
|
|
276
|
+
query_params[:'shared_resources'] = opts[:'shared_resources'] if !opts[:'shared_resources'].nil?
|
|
277
|
+
query_params[:'shared_resources__in'] = @api_client.build_collection_param(opts[:'shared_resources__in'], :csv) if !opts[:'shared_resources__in'].nil?
|
|
327
278
|
query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
|
|
328
279
|
query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
|
|
329
280
|
query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
|
|
@@ -366,7 +317,7 @@ module PulpcoreClient
|
|
|
366
317
|
|
|
367
318
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
368
319
|
if @api_client.config.debugging
|
|
369
|
-
@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}"
|
|
370
321
|
end
|
|
371
322
|
return data, status_code, headers
|
|
372
323
|
end
|
|
@@ -377,8 +328,8 @@ module PulpcoreClient
|
|
|
377
328
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
378
329
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
379
330
|
# @return [ObjectRolesResponse]
|
|
380
|
-
def
|
|
381
|
-
data, _status_code, _headers =
|
|
331
|
+
def list_roles(task_href, opts = {})
|
|
332
|
+
data, _status_code, _headers = list_roles_with_http_info(task_href, opts)
|
|
382
333
|
data
|
|
383
334
|
end
|
|
384
335
|
|
|
@@ -388,13 +339,13 @@ module PulpcoreClient
|
|
|
388
339
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
389
340
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
390
341
|
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
|
391
|
-
def
|
|
342
|
+
def list_roles_with_http_info(task_href, opts = {})
|
|
392
343
|
if @api_client.config.debugging
|
|
393
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
344
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.list_roles ...'
|
|
394
345
|
end
|
|
395
346
|
# verify the required parameter 'task_href' is set
|
|
396
347
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
397
|
-
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"
|
|
398
349
|
end
|
|
399
350
|
# resource path
|
|
400
351
|
local_var_path = '{task_href}list_roles/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -432,7 +383,7 @@ module PulpcoreClient
|
|
|
432
383
|
|
|
433
384
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
434
385
|
if @api_client.config.debugging
|
|
435
|
-
@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}"
|
|
436
387
|
end
|
|
437
388
|
return data, status_code, headers
|
|
438
389
|
end
|
|
@@ -443,8 +394,8 @@ module PulpcoreClient
|
|
|
443
394
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
444
395
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
445
396
|
# @return [MyPermissionsResponse]
|
|
446
|
-
def
|
|
447
|
-
data, _status_code, _headers =
|
|
397
|
+
def my_permissions(task_href, opts = {})
|
|
398
|
+
data, _status_code, _headers = my_permissions_with_http_info(task_href, opts)
|
|
448
399
|
data
|
|
449
400
|
end
|
|
450
401
|
|
|
@@ -454,13 +405,13 @@ module PulpcoreClient
|
|
|
454
405
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
455
406
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
456
407
|
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
|
457
|
-
def
|
|
408
|
+
def my_permissions_with_http_info(task_href, opts = {})
|
|
458
409
|
if @api_client.config.debugging
|
|
459
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
410
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.my_permissions ...'
|
|
460
411
|
end
|
|
461
412
|
# verify the required parameter 'task_href' is set
|
|
462
413
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
463
|
-
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"
|
|
464
415
|
end
|
|
465
416
|
# resource path
|
|
466
417
|
local_var_path = '{task_href}my_permissions/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -498,7 +449,7 @@ module PulpcoreClient
|
|
|
498
449
|
|
|
499
450
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
500
451
|
if @api_client.config.debugging
|
|
501
|
-
@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}"
|
|
502
453
|
end
|
|
503
454
|
return data, status_code, headers
|
|
504
455
|
end
|
|
@@ -508,8 +459,8 @@ module PulpcoreClient
|
|
|
508
459
|
# @param purge [Purge]
|
|
509
460
|
# @param [Hash] opts the optional parameters
|
|
510
461
|
# @return [AsyncOperationResponse]
|
|
511
|
-
def
|
|
512
|
-
data, _status_code, _headers =
|
|
462
|
+
def purge(purge, opts = {})
|
|
463
|
+
data, _status_code, _headers = purge_with_http_info(purge, opts)
|
|
513
464
|
data
|
|
514
465
|
end
|
|
515
466
|
|
|
@@ -518,13 +469,13 @@ module PulpcoreClient
|
|
|
518
469
|
# @param purge [Purge]
|
|
519
470
|
# @param [Hash] opts the optional parameters
|
|
520
471
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
521
|
-
def
|
|
472
|
+
def purge_with_http_info(purge, opts = {})
|
|
522
473
|
if @api_client.config.debugging
|
|
523
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
474
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.purge ...'
|
|
524
475
|
end
|
|
525
476
|
# verify the required parameter 'purge' is set
|
|
526
477
|
if @api_client.config.client_side_validation && purge.nil?
|
|
527
|
-
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.
|
|
478
|
+
fail ArgumentError, "Missing the required parameter 'purge' when calling TasksApi.purge"
|
|
528
479
|
end
|
|
529
480
|
# resource path
|
|
530
481
|
local_var_path = '/pulp/api/v3/tasks/purge/'
|
|
@@ -562,7 +513,7 @@ module PulpcoreClient
|
|
|
562
513
|
|
|
563
514
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
564
515
|
if @api_client.config.debugging
|
|
565
|
-
@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}"
|
|
566
517
|
end
|
|
567
518
|
return data, status_code, headers
|
|
568
519
|
end
|
|
@@ -574,8 +525,8 @@ module PulpcoreClient
|
|
|
574
525
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
575
526
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
576
527
|
# @return [TaskResponse]
|
|
577
|
-
def
|
|
578
|
-
data, _status_code, _headers =
|
|
528
|
+
def read(task_href, opts = {})
|
|
529
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
|
579
530
|
data
|
|
580
531
|
end
|
|
581
532
|
|
|
@@ -586,13 +537,13 @@ module PulpcoreClient
|
|
|
586
537
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
587
538
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
588
539
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
|
589
|
-
def
|
|
540
|
+
def read_with_http_info(task_href, opts = {})
|
|
590
541
|
if @api_client.config.debugging
|
|
591
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
542
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
|
592
543
|
end
|
|
593
544
|
# verify the required parameter 'task_href' is set
|
|
594
545
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
595
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
|
546
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
|
596
547
|
end
|
|
597
548
|
# resource path
|
|
598
549
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -630,7 +581,7 @@ module PulpcoreClient
|
|
|
630
581
|
|
|
631
582
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
632
583
|
if @api_client.config.debugging
|
|
633
|
-
@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}"
|
|
634
585
|
end
|
|
635
586
|
return data, status_code, headers
|
|
636
587
|
end
|
|
@@ -640,8 +591,8 @@ module PulpcoreClient
|
|
|
640
591
|
# @param nested_role [NestedRole]
|
|
641
592
|
# @param [Hash] opts the optional parameters
|
|
642
593
|
# @return [NestedRoleResponse]
|
|
643
|
-
def
|
|
644
|
-
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)
|
|
645
596
|
data
|
|
646
597
|
end
|
|
647
598
|
|
|
@@ -650,17 +601,17 @@ module PulpcoreClient
|
|
|
650
601
|
# @param nested_role [NestedRole]
|
|
651
602
|
# @param [Hash] opts the optional parameters
|
|
652
603
|
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
|
653
|
-
def
|
|
604
|
+
def remove_role_with_http_info(task_href, nested_role, opts = {})
|
|
654
605
|
if @api_client.config.debugging
|
|
655
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
|
606
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.remove_role ...'
|
|
656
607
|
end
|
|
657
608
|
# verify the required parameter 'task_href' is set
|
|
658
609
|
if @api_client.config.client_side_validation && task_href.nil?
|
|
659
|
-
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"
|
|
660
611
|
end
|
|
661
612
|
# verify the required parameter 'nested_role' is set
|
|
662
613
|
if @api_client.config.client_side_validation && nested_role.nil?
|
|
663
|
-
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"
|
|
664
615
|
end
|
|
665
616
|
# resource path
|
|
666
617
|
local_var_path = '{task_href}remove_role/'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
|
@@ -698,7 +649,77 @@ module PulpcoreClient
|
|
|
698
649
|
|
|
699
650
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
700
651
|
if @api_client.config.debugging
|
|
701
|
-
@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}"
|
|
702
723
|
end
|
|
703
724
|
return data, status_code, headers
|
|
704
725
|
end
|