pulpcore_client 3.21.32 → 3.22.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/docs/TasksApi.md
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# PulpcoreClient::TasksApi
|
2
2
|
|
3
|
-
All URIs are relative to *
|
3
|
+
All URIs are relative to *https://pulp*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**add_role**](TasksApi.md#add_role) | **POST** {task_href}add_role/ |
|
8
|
+
[**delete**](TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
|
9
|
+
[**list**](TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
10
|
+
[**list_roles**](TasksApi.md#list_roles) | **GET** {task_href}list_roles/ |
|
11
|
+
[**my_permissions**](TasksApi.md#my_permissions) | **GET** {task_href}my_permissions/ |
|
12
|
+
[**purge**](TasksApi.md#purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
|
13
|
+
[**read**](TasksApi.md#read) | **GET** {task_href} | Inspect a task
|
14
|
+
[**remove_role**](TasksApi.md#remove_role) | **POST** {task_href}remove_role/ |
|
8
15
|
[**tasks_cancel**](TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
|
9
|
-
[**tasks_delete**](TasksApi.md#tasks_delete) | **DELETE** {task_href} | Delete a task
|
10
|
-
[**tasks_list**](TasksApi.md#tasks_list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
11
|
-
[**tasks_list_roles**](TasksApi.md#tasks_list_roles) | **GET** {task_href}list_roles/ |
|
12
|
-
[**tasks_my_permissions**](TasksApi.md#tasks_my_permissions) | **GET** {task_href}my_permissions/ |
|
13
|
-
[**tasks_purge**](TasksApi.md#tasks_purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
|
14
|
-
[**tasks_read**](TasksApi.md#tasks_read) | **GET** {task_href} | Inspect a task
|
15
|
-
[**tasks_remove_role**](TasksApi.md#tasks_remove_role) | **POST** {task_href}remove_role/ |
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
##
|
19
|
+
## add_role
|
20
20
|
|
21
|
-
> NestedRoleResponse
|
21
|
+
> NestedRoleResponse add_role(task_href, nested_role)
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -41,10 +41,10 @@ task_href = 'task_href_example' # String |
|
|
41
41
|
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
42
42
|
|
43
43
|
begin
|
44
|
-
result = api_instance.
|
44
|
+
result = api_instance.add_role(task_href, nested_role)
|
45
45
|
p result
|
46
46
|
rescue PulpcoreClient::ApiError => e
|
47
|
-
puts "Exception when calling TasksApi->
|
47
|
+
puts "Exception when calling TasksApi->add_role: #{e}"
|
48
48
|
end
|
49
49
|
```
|
50
50
|
|
@@ -70,64 +70,9 @@ Name | Type | Description | Notes
|
|
70
70
|
- **Accept**: application/json
|
71
71
|
|
72
72
|
|
73
|
-
##
|
74
|
-
|
75
|
-
> TaskResponse tasks_cancel(task_href, patched_task_cancel)
|
76
|
-
|
77
|
-
Cancel a task
|
78
|
-
|
79
|
-
This operation cancels a task.
|
80
|
-
|
81
|
-
### Example
|
82
|
-
|
83
|
-
```ruby
|
84
|
-
# load the gem
|
85
|
-
require 'pulpcore_client'
|
86
|
-
# setup authorization
|
87
|
-
PulpcoreClient.configure do |config|
|
88
|
-
# Configure HTTP basic authorization: basicAuth
|
89
|
-
config.username = 'YOUR USERNAME'
|
90
|
-
config.password = 'YOUR PASSWORD'
|
91
|
-
end
|
92
|
-
|
93
|
-
api_instance = PulpcoreClient::TasksApi.new
|
94
|
-
task_href = 'task_href_example' # String |
|
95
|
-
patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
|
96
|
-
|
97
|
-
begin
|
98
|
-
#Cancel a task
|
99
|
-
result = api_instance.tasks_cancel(task_href, patched_task_cancel)
|
100
|
-
p result
|
101
|
-
rescue PulpcoreClient::ApiError => e
|
102
|
-
puts "Exception when calling TasksApi->tasks_cancel: #{e}"
|
103
|
-
end
|
104
|
-
```
|
105
|
-
|
106
|
-
### Parameters
|
107
|
-
|
108
|
-
|
109
|
-
Name | Type | Description | Notes
|
110
|
-
------------- | ------------- | ------------- | -------------
|
111
|
-
**task_href** | **String**| |
|
112
|
-
**patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
|
113
|
-
|
114
|
-
### Return type
|
115
|
-
|
116
|
-
[**TaskResponse**](TaskResponse.md)
|
117
|
-
|
118
|
-
### Authorization
|
119
|
-
|
120
|
-
[basicAuth](../README.md#basicAuth)
|
121
|
-
|
122
|
-
### HTTP request headers
|
123
|
-
|
124
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
125
|
-
- **Accept**: application/json
|
126
|
-
|
127
|
-
|
128
|
-
## tasks_delete
|
73
|
+
## delete
|
129
74
|
|
130
|
-
>
|
75
|
+
> delete(task_href)
|
131
76
|
|
132
77
|
Delete a task
|
133
78
|
|
@@ -150,9 +95,9 @@ task_href = 'task_href_example' # String |
|
|
150
95
|
|
151
96
|
begin
|
152
97
|
#Delete a task
|
153
|
-
api_instance.
|
98
|
+
api_instance.delete(task_href)
|
154
99
|
rescue PulpcoreClient::ApiError => e
|
155
|
-
puts "Exception when calling TasksApi->
|
100
|
+
puts "Exception when calling TasksApi->delete: #{e}"
|
156
101
|
end
|
157
102
|
```
|
158
103
|
|
@@ -177,9 +122,9 @@ nil (empty response body)
|
|
177
122
|
- **Accept**: Not defined
|
178
123
|
|
179
124
|
|
180
|
-
##
|
125
|
+
## list
|
181
126
|
|
182
|
-
> PaginatedTaskResponseList
|
127
|
+
> PaginatedTaskResponseList list(opts)
|
183
128
|
|
184
129
|
List tasks
|
185
130
|
|
@@ -199,33 +144,40 @@ end
|
|
199
144
|
|
200
145
|
api_instance = PulpcoreClient::TasksApi.new
|
201
146
|
opts = {
|
202
|
-
child_tasks: 'child_tasks_example', # String |
|
147
|
+
child_tasks: 'child_tasks_example', # String | Filter results where child_tasks matches value
|
203
148
|
created_resources: 'created_resources_example', # String |
|
204
|
-
|
149
|
+
exclusive_resources: 'exclusive_resources_example', # String |
|
150
|
+
exclusive_resources__in: ['exclusive_resources__in_example'], # Array<String> | Multiple values may be separated by commas.
|
151
|
+
finished_at: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where finished_at matches value
|
205
152
|
finished_at__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where finished_at is greater than value
|
206
153
|
finished_at__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where finished_at is greater than or equal to value
|
207
154
|
finished_at__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where finished_at is less than value
|
208
155
|
finished_at__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where finished_at is less than or equal to value
|
209
156
|
finished_at__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where finished_at is between two comma separated values
|
210
157
|
limit: 56, # Integer | Number of results to return per page.
|
211
|
-
logging_cid: 'logging_cid_example', # String |
|
158
|
+
logging_cid: 'logging_cid_example', # String | Filter results where logging_cid matches value
|
212
159
|
logging_cid__contains: 'logging_cid__contains_example', # String | Filter results where logging_cid contains value
|
213
|
-
name: 'name_example', # String |
|
160
|
+
name: 'name_example', # String | Filter results where name matches value
|
214
161
|
name__contains: 'name__contains_example', # String | Filter results where name contains value
|
162
|
+
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
215
163
|
offset: 56, # Integer | The initial index from which to return the results.
|
216
164
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
217
|
-
parent_task: 'parent_task_example', # String |
|
165
|
+
parent_task: 'parent_task_example', # String | Filter results where parent_task matches value
|
166
|
+
reserved_resources: 'reserved_resources_example', # String |
|
167
|
+
reserved_resources__in: ['reserved_resources__in_example'], # Array<String> | Multiple values may be separated by commas.
|
218
168
|
reserved_resources_record: ['reserved_resources_record_example'], # Array<String> |
|
219
|
-
|
169
|
+
shared_resources: 'shared_resources_example', # String |
|
170
|
+
shared_resources__in: ['shared_resources__in_example'], # Array<String> | Multiple values may be separated by commas.
|
171
|
+
started_at: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where started_at matches value
|
220
172
|
started_at__gt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where started_at is greater than value
|
221
173
|
started_at__gte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where started_at is greater than or equal to value
|
222
174
|
started_at__lt: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where started_at is less than value
|
223
175
|
started_at__lte: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Filter results where started_at is less than or equal to value
|
224
176
|
started_at__range: [DateTime.parse('2013-10-20T19:20:30+01:00')], # Array<DateTime> | Filter results where started_at is between two comma separated values
|
225
|
-
state: 'state_example', # String |
|
177
|
+
state: 'state_example', # String | Filter results where state matches value
|
226
178
|
state__in: ['state__in_example'], # Array<String> | Filter results where state is in a comma-separated list of values
|
227
|
-
task_group: 'task_group_example', # String |
|
228
|
-
worker: 'worker_example', # String |
|
179
|
+
task_group: 'task_group_example', # String | Filter results where task_group matches value
|
180
|
+
worker: 'worker_example', # String | Filter results where worker matches value
|
229
181
|
worker__in: ['worker__in_example'], # Array<String> | Filter results where worker is in a comma-separated list of values
|
230
182
|
fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
|
231
183
|
exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
|
@@ -233,10 +185,10 @@ opts = {
|
|
233
185
|
|
234
186
|
begin
|
235
187
|
#List tasks
|
236
|
-
result = api_instance.
|
188
|
+
result = api_instance.list(opts)
|
237
189
|
p result
|
238
190
|
rescue PulpcoreClient::ApiError => e
|
239
|
-
puts "Exception when calling TasksApi->
|
191
|
+
puts "Exception when calling TasksApi->list: #{e}"
|
240
192
|
end
|
241
193
|
```
|
242
194
|
|
@@ -245,33 +197,40 @@ end
|
|
245
197
|
|
246
198
|
Name | Type | Description | Notes
|
247
199
|
------------- | ------------- | ------------- | -------------
|
248
|
-
**child_tasks** |
|
200
|
+
**child_tasks** | **String**| Filter results where child_tasks matches value | [optional]
|
249
201
|
**created_resources** | [**String**](.md)| | [optional]
|
250
|
-
**
|
202
|
+
**exclusive_resources** | **String**| | [optional]
|
203
|
+
**exclusive_resources__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
204
|
+
**finished_at** | **DateTime**| Filter results where finished_at matches value | [optional]
|
251
205
|
**finished_at__gt** | **DateTime**| Filter results where finished_at is greater than value | [optional]
|
252
206
|
**finished_at__gte** | **DateTime**| Filter results where finished_at is greater than or equal to value | [optional]
|
253
207
|
**finished_at__lt** | **DateTime**| Filter results where finished_at is less than value | [optional]
|
254
208
|
**finished_at__lte** | **DateTime**| Filter results where finished_at is less than or equal to value | [optional]
|
255
209
|
**finished_at__range** | [**Array<DateTime>**](DateTime.md)| Filter results where finished_at is between two comma separated values | [optional]
|
256
210
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
257
|
-
**logging_cid** | **String**|
|
211
|
+
**logging_cid** | **String**| Filter results where logging_cid matches value | [optional]
|
258
212
|
**logging_cid__contains** | **String**| Filter results where logging_cid contains value | [optional]
|
259
|
-
**name** | **String**|
|
213
|
+
**name** | **String**| Filter results where name matches value | [optional]
|
260
214
|
**name__contains** | **String**| Filter results where name contains value | [optional]
|
215
|
+
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
261
216
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
262
217
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
263
|
-
**parent_task** |
|
218
|
+
**parent_task** | **String**| Filter results where parent_task matches value | [optional]
|
219
|
+
**reserved_resources** | **String**| | [optional]
|
220
|
+
**reserved_resources__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
264
221
|
**reserved_resources_record** | [**Array<String>**](String.md)| | [optional]
|
265
|
-
**
|
222
|
+
**shared_resources** | **String**| | [optional]
|
223
|
+
**shared_resources__in** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
224
|
+
**started_at** | **DateTime**| Filter results where started_at matches value | [optional]
|
266
225
|
**started_at__gt** | **DateTime**| Filter results where started_at is greater than value | [optional]
|
267
226
|
**started_at__gte** | **DateTime**| Filter results where started_at is greater than or equal to value | [optional]
|
268
227
|
**started_at__lt** | **DateTime**| Filter results where started_at is less than value | [optional]
|
269
228
|
**started_at__lte** | **DateTime**| Filter results where started_at is less than or equal to value | [optional]
|
270
229
|
**started_at__range** | [**Array<DateTime>**](DateTime.md)| Filter results where started_at is between two comma separated values | [optional]
|
271
|
-
**state** | **String**|
|
230
|
+
**state** | **String**| Filter results where state matches value | [optional]
|
272
231
|
**state__in** | [**Array<String>**](String.md)| Filter results where state is in a comma-separated list of values | [optional]
|
273
|
-
**task_group** |
|
274
|
-
**worker** |
|
232
|
+
**task_group** | **String**| Filter results where task_group matches value | [optional]
|
233
|
+
**worker** | **String**| Filter results where worker matches value | [optional]
|
275
234
|
**worker__in** | [**Array<String>**](String.md)| Filter results where worker is in a comma-separated list of values | [optional]
|
276
235
|
**fields** | [**Array<String>**](String.md)| A list of fields to include in the response. | [optional]
|
277
236
|
**exclude_fields** | [**Array<String>**](String.md)| A list of fields to exclude from the response. | [optional]
|
@@ -290,9 +249,9 @@ Name | Type | Description | Notes
|
|
290
249
|
- **Accept**: application/json
|
291
250
|
|
292
251
|
|
293
|
-
##
|
252
|
+
## list_roles
|
294
253
|
|
295
|
-
> ObjectRolesResponse
|
254
|
+
> ObjectRolesResponse list_roles(task_href, opts)
|
296
255
|
|
297
256
|
|
298
257
|
|
@@ -318,10 +277,10 @@ opts = {
|
|
318
277
|
}
|
319
278
|
|
320
279
|
begin
|
321
|
-
result = api_instance.
|
280
|
+
result = api_instance.list_roles(task_href, opts)
|
322
281
|
p result
|
323
282
|
rescue PulpcoreClient::ApiError => e
|
324
|
-
puts "Exception when calling TasksApi->
|
283
|
+
puts "Exception when calling TasksApi->list_roles: #{e}"
|
325
284
|
end
|
326
285
|
```
|
327
286
|
|
@@ -348,9 +307,9 @@ Name | Type | Description | Notes
|
|
348
307
|
- **Accept**: application/json
|
349
308
|
|
350
309
|
|
351
|
-
##
|
310
|
+
## my_permissions
|
352
311
|
|
353
|
-
> MyPermissionsResponse
|
312
|
+
> MyPermissionsResponse my_permissions(task_href, opts)
|
354
313
|
|
355
314
|
|
356
315
|
|
@@ -376,10 +335,10 @@ opts = {
|
|
376
335
|
}
|
377
336
|
|
378
337
|
begin
|
379
|
-
result = api_instance.
|
338
|
+
result = api_instance.my_permissions(task_href, opts)
|
380
339
|
p result
|
381
340
|
rescue PulpcoreClient::ApiError => e
|
382
|
-
puts "Exception when calling TasksApi->
|
341
|
+
puts "Exception when calling TasksApi->my_permissions: #{e}"
|
383
342
|
end
|
384
343
|
```
|
385
344
|
|
@@ -406,9 +365,9 @@ Name | Type | Description | Notes
|
|
406
365
|
- **Accept**: application/json
|
407
366
|
|
408
367
|
|
409
|
-
##
|
368
|
+
## purge
|
410
369
|
|
411
|
-
> AsyncOperationResponse
|
370
|
+
> AsyncOperationResponse purge(purge)
|
412
371
|
|
413
372
|
Purge Completed Tasks
|
414
373
|
|
@@ -431,10 +390,10 @@ purge = PulpcoreClient::Purge.new # Purge |
|
|
431
390
|
|
432
391
|
begin
|
433
392
|
#Purge Completed Tasks
|
434
|
-
result = api_instance.
|
393
|
+
result = api_instance.purge(purge)
|
435
394
|
p result
|
436
395
|
rescue PulpcoreClient::ApiError => e
|
437
|
-
puts "Exception when calling TasksApi->
|
396
|
+
puts "Exception when calling TasksApi->purge: #{e}"
|
438
397
|
end
|
439
398
|
```
|
440
399
|
|
@@ -459,9 +418,9 @@ Name | Type | Description | Notes
|
|
459
418
|
- **Accept**: application/json
|
460
419
|
|
461
420
|
|
462
|
-
##
|
421
|
+
## read
|
463
422
|
|
464
|
-
> TaskResponse
|
423
|
+
> TaskResponse read(task_href, opts)
|
465
424
|
|
466
425
|
Inspect a task
|
467
426
|
|
@@ -488,10 +447,10 @@ opts = {
|
|
488
447
|
|
489
448
|
begin
|
490
449
|
#Inspect a task
|
491
|
-
result = api_instance.
|
450
|
+
result = api_instance.read(task_href, opts)
|
492
451
|
p result
|
493
452
|
rescue PulpcoreClient::ApiError => e
|
494
|
-
puts "Exception when calling TasksApi->
|
453
|
+
puts "Exception when calling TasksApi->read: #{e}"
|
495
454
|
end
|
496
455
|
```
|
497
456
|
|
@@ -518,9 +477,9 @@ Name | Type | Description | Notes
|
|
518
477
|
- **Accept**: application/json
|
519
478
|
|
520
479
|
|
521
|
-
##
|
480
|
+
## remove_role
|
522
481
|
|
523
|
-
> NestedRoleResponse
|
482
|
+
> NestedRoleResponse remove_role(task_href, nested_role)
|
524
483
|
|
525
484
|
|
526
485
|
|
@@ -543,10 +502,10 @@ task_href = 'task_href_example' # String |
|
|
543
502
|
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
544
503
|
|
545
504
|
begin
|
546
|
-
result = api_instance.
|
505
|
+
result = api_instance.remove_role(task_href, nested_role)
|
547
506
|
p result
|
548
507
|
rescue PulpcoreClient::ApiError => e
|
549
|
-
puts "Exception when calling TasksApi->
|
508
|
+
puts "Exception when calling TasksApi->remove_role: #{e}"
|
550
509
|
end
|
551
510
|
```
|
552
511
|
|
@@ -571,3 +530,58 @@ Name | Type | Description | Notes
|
|
571
530
|
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
572
531
|
- **Accept**: application/json
|
573
532
|
|
533
|
+
|
534
|
+
## tasks_cancel
|
535
|
+
|
536
|
+
> TaskResponse tasks_cancel(task_href, patched_task_cancel)
|
537
|
+
|
538
|
+
Cancel a task
|
539
|
+
|
540
|
+
This operation cancels a task.
|
541
|
+
|
542
|
+
### Example
|
543
|
+
|
544
|
+
```ruby
|
545
|
+
# load the gem
|
546
|
+
require 'pulpcore_client'
|
547
|
+
# setup authorization
|
548
|
+
PulpcoreClient.configure do |config|
|
549
|
+
# Configure HTTP basic authorization: basicAuth
|
550
|
+
config.username = 'YOUR USERNAME'
|
551
|
+
config.password = 'YOUR PASSWORD'
|
552
|
+
end
|
553
|
+
|
554
|
+
api_instance = PulpcoreClient::TasksApi.new
|
555
|
+
task_href = 'task_href_example' # String |
|
556
|
+
patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
|
557
|
+
|
558
|
+
begin
|
559
|
+
#Cancel a task
|
560
|
+
result = api_instance.tasks_cancel(task_href, patched_task_cancel)
|
561
|
+
p result
|
562
|
+
rescue PulpcoreClient::ApiError => e
|
563
|
+
puts "Exception when calling TasksApi->tasks_cancel: #{e}"
|
564
|
+
end
|
565
|
+
```
|
566
|
+
|
567
|
+
### Parameters
|
568
|
+
|
569
|
+
|
570
|
+
Name | Type | Description | Notes
|
571
|
+
------------- | ------------- | ------------- | -------------
|
572
|
+
**task_href** | **String**| |
|
573
|
+
**patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
|
574
|
+
|
575
|
+
### Return type
|
576
|
+
|
577
|
+
[**TaskResponse**](TaskResponse.md)
|
578
|
+
|
579
|
+
### Authorization
|
580
|
+
|
581
|
+
[basicAuth](../README.md#basicAuth)
|
582
|
+
|
583
|
+
### HTTP request headers
|
584
|
+
|
585
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
586
|
+
- **Accept**: application/json
|
587
|
+
|