pulpcore_client 3.6.0 → 3.6.5.post2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f91ed9a552672861dc2a9c454bbe2fed84e6d0836c5e2400f598e661f1dc8ecb
4
- data.tar.gz: 68edb6b044f54841cf327530a6749577c269e24e07fc0167241c3f188d2cb2be
3
+ metadata.gz: e87345ef63f10fbd1a3be557e324bebd0020cd5a35561ee3634e904b39fdc68b
4
+ data.tar.gz: 9c7adaef70c4860b7f0832cdbc44ca990ab536cf069b59a0204a1fac5516437a
5
5
  SHA512:
6
- metadata.gz: bff42389e74bb24a70dfade2758d86af52736b40409efda70683a3b67202dbb83834e948d05b9d9153fc9b5fb0d10aa0065d24d87c7ab0fc89bf24f9325762d8
7
- data.tar.gz: 234a02d7bec199079ca38bf409d2a39a1ecc6ba935325bd25fa82552f23beab029bc57582d56576fafc3d42aa710e48905119e1584fa93a0ae54449476ec4e32
6
+ metadata.gz: '0961ebae5eabd59cac06cd7310d5f988399402942afe8c85dad624b2cc18e2c65eb3f78445c92fe05627ba8f18c164e7d5624b03451df5cdcb389b08e1736639'
7
+ data.tar.gz: 827a4133c3218d744e938fcc590cdb15ee2eb2647fc5b5db85951ff036841bb0f98f2f493b83c5197f593151c4d3218a2f598472cacdcd14c863842e4972a24a
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.6.0
10
+ - Package version: 3.6.5.post2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulpcore_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulpcore_client-3.6.0.gem
27
+ gem install ./pulpcore_client-3.6.5.post2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulpcore_client-3.6.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulpcore_client-3.6.5.post2.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulpcore_client', '~> 3.6.0'
36
+ gem 'pulpcore_client', '~> 3.6.5.post2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -135,13 +135,13 @@ Class | Method | HTTP request | Description
135
135
  *PulpcoreClient::OrphansApi* | [**delete**](docs/OrphansApi.md#delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
136
136
  *PulpcoreClient::SigningServicesApi* | [**list**](docs/SigningServicesApi.md#list) | **GET** /pulp/api/v3/signing-services/ | List signing services
137
137
  *PulpcoreClient::SigningServicesApi* | [**read**](docs/SigningServicesApi.md#read) | **GET** {signing_service_href} | Inspect a signing service
138
- *PulpcoreClient::StatusApi* | [**read**](docs/StatusApi.md#read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
138
+ *PulpcoreClient::StatusApi* | [**status_read**](docs/StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
139
139
  *PulpcoreClient::TaskGroupsApi* | [**list**](docs/TaskGroupsApi.md#list) | **GET** /pulp/api/v3/task-groups/ | List task groups
140
140
  *PulpcoreClient::TaskGroupsApi* | [**read**](docs/TaskGroupsApi.md#read) | **GET** {task_group_href} | Inspect a task group
141
141
  *PulpcoreClient::TasksApi* | [**delete**](docs/TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
142
142
  *PulpcoreClient::TasksApi* | [**list**](docs/TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
143
- *PulpcoreClient::TasksApi* | [**partial_update**](docs/TasksApi.md#partial_update) | **PATCH** {task_href} | Cancel a task
144
143
  *PulpcoreClient::TasksApi* | [**read**](docs/TasksApi.md#read) | **GET** {task_href} | Inspect a task
144
+ *PulpcoreClient::TasksApi* | [**tasks_cancel**](docs/TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
145
145
  *PulpcoreClient::UploadsApi* | [**commit**](docs/UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
146
146
  *PulpcoreClient::UploadsApi* | [**create**](docs/UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
147
147
  *PulpcoreClient::UploadsApi* | [**delete**](docs/UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
 
12
12
  ## create
13
13
 
14
- > PermissionResponse create(auth_auth_groups_permission_href)
14
+ > PermissionResponse create(auth_auth_groups_permission_href, body)
15
15
 
16
16
  Create a permission
17
17
 
@@ -31,10 +31,11 @@ end
31
31
 
32
32
  api_instance = PulpcoreClient::GroupsModelPermissionsApi.new
33
33
  auth_auth_groups_permission_href = 'auth_auth_groups_permission_href_example' # String |
34
+ body = nil # Object |
34
35
 
35
36
  begin
36
37
  #Create a permission
37
- result = api_instance.create(auth_auth_groups_permission_href)
38
+ result = api_instance.create(auth_auth_groups_permission_href, body)
38
39
  p result
39
40
  rescue PulpcoreClient::ApiError => e
40
41
  puts "Exception when calling GroupsModelPermissionsApi->create: #{e}"
@@ -47,6 +48,7 @@ end
47
48
  Name | Type | Description | Notes
48
49
  ------------- | ------------- | ------------- | -------------
49
50
  **auth_auth_groups_permission_href** | **String**| |
51
+ **body** | **Object**| |
50
52
 
51
53
  ### Return type
52
54
 
@@ -58,7 +60,7 @@ Name | Type | Description | Notes
58
60
 
59
61
  ### HTTP request headers
60
62
 
61
- - **Content-Type**: Not defined
63
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
62
64
  - **Accept**: application/json
63
65
 
64
66
 
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  ## create
15
15
 
16
- > PermissionResponse create(auth_auth_groups_permission_href)
16
+ > PermissionResponse create(auth_auth_groups_permission_href, body)
17
17
 
18
18
  Create a permission
19
19
 
@@ -33,10 +33,11 @@ end
33
33
 
34
34
  api_instance = PulpcoreClient::GroupsObjectPermissionsApi.new
35
35
  auth_auth_groups_permission_href = 'auth_auth_groups_permission_href_example' # String |
36
+ body = nil # Object |
36
37
 
37
38
  begin
38
39
  #Create a permission
39
- result = api_instance.create(auth_auth_groups_permission_href)
40
+ result = api_instance.create(auth_auth_groups_permission_href, body)
40
41
  p result
41
42
  rescue PulpcoreClient::ApiError => e
42
43
  puts "Exception when calling GroupsObjectPermissionsApi->create: #{e}"
@@ -49,6 +50,7 @@ end
49
50
  Name | Type | Description | Notes
50
51
  ------------- | ------------- | ------------- | -------------
51
52
  **auth_auth_groups_permission_href** | **String**| |
53
+ **body** | **Object**| |
52
54
 
53
55
  ### Return type
54
56
 
@@ -60,13 +62,13 @@ Name | Type | Description | Notes
60
62
 
61
63
  ### HTTP request headers
62
64
 
63
- - **Content-Type**: Not defined
65
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
64
66
  - **Accept**: application/json
65
67
 
66
68
 
67
69
  ## delete
68
70
 
69
- > delete(auth_auth_groups_permission_href, opts)
71
+ > delete(auth_auth_groups_permission_href)
70
72
 
71
73
  Delete a permission
72
74
 
@@ -86,13 +88,10 @@ end
86
88
 
87
89
  api_instance = PulpcoreClient::GroupsObjectPermissionsApi.new
88
90
  auth_auth_groups_permission_href = 'auth_auth_groups_permission_href_example' # String |
89
- opts = {
90
- ordering: 'ordering_example' # String | Which field to use when ordering the results.
91
- }
92
91
 
93
92
  begin
94
93
  #Delete a permission
95
- api_instance.delete(auth_auth_groups_permission_href, opts)
94
+ api_instance.delete(auth_auth_groups_permission_href)
96
95
  rescue PulpcoreClient::ApiError => e
97
96
  puts "Exception when calling GroupsObjectPermissionsApi->delete: #{e}"
98
97
  end
@@ -104,7 +103,6 @@ end
104
103
  Name | Type | Description | Notes
105
104
  ------------- | ------------- | ------------- | -------------
106
105
  **auth_auth_groups_permission_href** | **String**| |
107
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
108
106
 
109
107
  ### Return type
110
108
 
@@ -208,7 +206,6 @@ end
208
206
  api_instance = PulpcoreClient::GroupsObjectPermissionsApi.new
209
207
  auth_auth_groups_permission_href = 'auth_auth_groups_permission_href_example' # String |
210
208
  opts = {
211
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
212
209
  fields: 'fields_example', # String | A list of fields to include in the response.
213
210
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
214
211
  }
@@ -228,7 +225,6 @@ end
228
225
  Name | Type | Description | Notes
229
226
  ------------- | ------------- | ------------- | -------------
230
227
  **auth_auth_groups_permission_href** | **String**| |
231
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
232
228
  **fields** | **String**| A list of fields to include in the response. | [optional]
233
229
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
234
230
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **Object** | | [optional] [readonly]
8
- **id** | **Object** | | [optional] [readonly]
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **id** | **String** | | [optional] [readonly]
9
9
  **permission** | **String** | | [optional] [readonly]
10
10
  **obj** | **String** | Content object. | [optional] [readonly]
11
11
 
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**read**](StatusApi.md#read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
7
+ [**status_read**](StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
8
8
 
9
9
 
10
10
 
11
- ## read
11
+ ## status_read
12
12
 
13
- > StatusResponse read
13
+ > StatusResponse status_read
14
14
 
15
15
  Inspect status of Pulp
16
16
 
@@ -26,10 +26,10 @@ api_instance = PulpcoreClient::StatusApi.new
26
26
 
27
27
  begin
28
28
  #Inspect status of Pulp
29
- result = api_instance.read
29
+ result = api_instance.status_read
30
30
  p result
31
31
  rescue PulpcoreClient::ApiError => e
32
- puts "Exception when calling StatusApi->read: #{e}"
32
+ puts "Exception when calling StatusApi->status_read: #{e}"
33
33
  end
34
34
  ```
35
35
 
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
17
17
  **task_group** | **String** | The task group that this task is a member of. | [optional] [readonly]
18
18
  **progress_reports** | [**Array<ProgressReportResponse>**](ProgressReportResponse.md) | | [optional] [readonly]
19
19
  **created_resources** | **Array<String>** | Resources created by this task. | [optional] [readonly]
20
+ **reserved_resources_record** | **Array<Object>** | | [optional] [readonly]
20
21
 
21
22
  ## Code Sample
22
23
 
@@ -35,7 +36,8 @@ instance = PulpcoreClient::TaskResponse.new(pulp_href: null,
35
36
  child_tasks: null,
36
37
  task_group: null,
37
38
  progress_reports: null,
38
- created_resources: null)
39
+ created_resources: null,
40
+ reserved_resources_record: null)
39
41
  ```
40
42
 
41
43
 
@@ -6,8 +6,8 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**delete**](TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
8
8
  [**list**](TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
9
- [**partial_update**](TasksApi.md#partial_update) | **PATCH** {task_href} | Cancel a task
10
9
  [**read**](TasksApi.md#read) | **GET** {task_href} | Inspect a task
10
+ [**tasks_cancel**](TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
11
11
 
12
12
 
13
13
 
@@ -172,13 +172,13 @@ Name | Type | Description | Notes
172
172
  - **Accept**: application/json
173
173
 
174
174
 
175
- ## partial_update
175
+ ## read
176
176
 
177
- > TaskResponse partial_update(task_href, patched_task_cancel, opts)
177
+ > TaskResponse read(task_href, opts)
178
178
 
179
- Cancel a task
179
+ Inspect a task
180
180
 
181
- This operation cancels a task.
181
+ 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.
182
182
 
183
183
  ### Example
184
184
 
@@ -194,40 +194,17 @@ end
194
194
 
195
195
  api_instance = PulpcoreClient::TasksApi.new
196
196
  task_href = 'task_href_example' # String |
197
- patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
198
197
  opts = {
199
- child_tasks: 'child_tasks_example', # String | child_tasks
200
- created_resources: 'created_resources_example', # String | created_resources
201
- finished_at: 'finished_at_example', # String | finished_at
202
- finished_at__gt: 'finished_at__gt_example', # String | finished_at__gt
203
- finished_at__gte: 'finished_at__gte_example', # String | finished_at__gte
204
- finished_at__lt: 'finished_at__lt_example', # String | finished_at__lt
205
- finished_at__lte: 'finished_at__lte_example', # String | finished_at__lte
206
- finished_at__range: 'finished_at__range_example', # String | finished_at__range
207
- name: 'name_example', # String | name
208
- name__contains: 'name__contains_example', # String | name__contains
209
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
210
- parent_task: 'parent_task_example', # String | parent_task
211
- reserved_resources_record: 'reserved_resources_record_example', # String | reserved_resources_record
212
- started_at: 'started_at_example', # String | started_at
213
- started_at__gt: 'started_at__gt_example', # String | started_at__gt
214
- started_at__gte: 'started_at__gte_example', # String | started_at__gte
215
- started_at__lt: 'started_at__lt_example', # String | started_at__lt
216
- started_at__lte: 'started_at__lte_example', # String | started_at__lte
217
- started_at__range: 'started_at__range_example', # String | started_at__range
218
- state: 'state_example', # String | state
219
- state__in: 'state__in_example', # String | state__in
220
- task_group: 'task_group_example', # String | task_group
221
- worker: 'worker_example', # String | worker
222
- worker__in: 'worker__in_example' # String | worker__in
198
+ fields: 'fields_example', # String | A list of fields to include in the response.
199
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
223
200
  }
224
201
 
225
202
  begin
226
- #Cancel a task
227
- result = api_instance.partial_update(task_href, patched_task_cancel, opts)
203
+ #Inspect a task
204
+ result = api_instance.read(task_href, opts)
228
205
  p result
229
206
  rescue PulpcoreClient::ApiError => e
230
- puts "Exception when calling TasksApi->partial_update: #{e}"
207
+ puts "Exception when calling TasksApi->read: #{e}"
231
208
  end
232
209
  ```
233
210
 
@@ -237,31 +214,8 @@ end
237
214
  Name | Type | Description | Notes
238
215
  ------------- | ------------- | ------------- | -------------
239
216
  **task_href** | **String**| |
240
- **patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
241
- **child_tasks** | **String**| child_tasks | [optional]
242
- **created_resources** | **String**| created_resources | [optional]
243
- **finished_at** | **String**| finished_at | [optional]
244
- **finished_at__gt** | **String**| finished_at__gt | [optional]
245
- **finished_at__gte** | **String**| finished_at__gte | [optional]
246
- **finished_at__lt** | **String**| finished_at__lt | [optional]
247
- **finished_at__lte** | **String**| finished_at__lte | [optional]
248
- **finished_at__range** | **String**| finished_at__range | [optional]
249
- **name** | **String**| name | [optional]
250
- **name__contains** | **String**| name__contains | [optional]
251
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
252
- **parent_task** | **String**| parent_task | [optional]
253
- **reserved_resources_record** | **String**| reserved_resources_record | [optional]
254
- **started_at** | **String**| started_at | [optional]
255
- **started_at__gt** | **String**| started_at__gt | [optional]
256
- **started_at__gte** | **String**| started_at__gte | [optional]
257
- **started_at__lt** | **String**| started_at__lt | [optional]
258
- **started_at__lte** | **String**| started_at__lte | [optional]
259
- **started_at__range** | **String**| started_at__range | [optional]
260
- **state** | **String**| state | [optional]
261
- **state__in** | **String**| state__in | [optional]
262
- **task_group** | **String**| task_group | [optional]
263
- **worker** | **String**| worker | [optional]
264
- **worker__in** | **String**| worker__in | [optional]
217
+ **fields** | **String**| A list of fields to include in the response. | [optional]
218
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
265
219
 
266
220
  ### Return type
267
221
 
@@ -273,17 +227,17 @@ Name | Type | Description | Notes
273
227
 
274
228
  ### HTTP request headers
275
229
 
276
- - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
230
+ - **Content-Type**: Not defined
277
231
  - **Accept**: application/json
278
232
 
279
233
 
280
- ## read
234
+ ## tasks_cancel
281
235
 
282
- > TaskResponse read(task_href, opts)
236
+ > TaskResponse tasks_cancel(task_href, patched_task_cancel)
283
237
 
284
- Inspect a task
238
+ Cancel a task
285
239
 
286
- 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.
240
+ This operation cancels a task.
287
241
 
288
242
  ### Example
289
243
 
@@ -299,17 +253,14 @@ end
299
253
 
300
254
  api_instance = PulpcoreClient::TasksApi.new
301
255
  task_href = 'task_href_example' # String |
302
- opts = {
303
- fields: 'fields_example', # String | A list of fields to include in the response.
304
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
305
- }
256
+ patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
306
257
 
307
258
  begin
308
- #Inspect a task
309
- result = api_instance.read(task_href, opts)
259
+ #Cancel a task
260
+ result = api_instance.tasks_cancel(task_href, patched_task_cancel)
310
261
  p result
311
262
  rescue PulpcoreClient::ApiError => e
312
- puts "Exception when calling TasksApi->read: #{e}"
263
+ puts "Exception when calling TasksApi->tasks_cancel: #{e}"
313
264
  end
314
265
  ```
315
266
 
@@ -319,8 +270,7 @@ end
319
270
  Name | Type | Description | Notes
320
271
  ------------- | ------------- | ------------- | -------------
321
272
  **task_href** | **String**| |
322
- **fields** | **String**| A list of fields to include in the response. | [optional]
323
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
273
+ **patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
324
274
 
325
275
  ### Return type
326
276
 
@@ -332,6 +282,6 @@ Name | Type | Description | Notes
332
282
 
333
283
  ### HTTP request headers
334
284
 
335
- - **Content-Type**: Not defined
285
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
336
286
  - **Accept**: application/json
337
287
 
@@ -320,7 +320,6 @@ content_range = 'content_range_example' # String | The Content-Range header spec
320
320
  upload_href = 'upload_href_example' # String |
321
321
  file = File.new('/path/to/file') # File | A chunk of the uploaded file.
322
322
  opts = {
323
- ordering: 'ordering_example', # String | Which field to use when ordering the results.
324
323
  sha256: 'sha256_example' # String | The SHA-256 checksum of the chunk if available.
325
324
  }
326
325
 
@@ -341,7 +340,6 @@ Name | Type | Description | Notes
341
340
  **content_range** | **String**| The Content-Range header specifies the location of the file chunk within the file. |
342
341
  **upload_href** | **String**| |
343
342
  **file** | **File**| A chunk of the uploaded file. |
344
- **ordering** | **String**| Which field to use when ordering the results. | [optional]
345
343
  **sha256** | **String**| The SHA-256 checksum of the chunk if available. | [optional]
346
344
 
347
345
  ### Return type
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **String** | | [optional] [readonly]
8
7
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
8
+ **pulp_href** | **String** | | [optional] [readonly]
9
9
  **name** | **String** | The name of the worker. | [optional] [readonly]
10
10
  **last_heartbeat** | **DateTime** | Timestamp of the last time the worker talked to the service. | [optional] [readonly]
11
11
 
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
14
14
  ```ruby
15
15
  require 'PulpcoreClient'
16
16
 
17
- instance = PulpcoreClient::WorkerResponse.new(pulp_href: null,
18
- pulp_created: null,
17
+ instance = PulpcoreClient::WorkerResponse.new(pulp_created: null,
18
+ pulp_href: null,
19
19
  name: null,
20
20
  last_heartbeat: null)
21
21
  ```
@@ -22,19 +22,21 @@ module PulpcoreClient
22
22
  # Create a permission
23
23
  # Add a model permission to a group.
24
24
  # @param auth_auth_groups_permission_href [String]
25
+ # @param body [Object]
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [PermissionResponse]
27
- def create(auth_auth_groups_permission_href, opts = {})
28
- data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, opts)
28
+ def create(auth_auth_groups_permission_href, body, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, body, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Create a permission
33
34
  # Add a model permission to a group.
34
35
  # @param auth_auth_groups_permission_href [String]
36
+ # @param body [Object]
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
37
- def create_with_http_info(auth_auth_groups_permission_href, opts = {})
39
+ def create_with_http_info(auth_auth_groups_permission_href, body, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: GroupsModelPermissionsApi.create ...'
40
42
  end
@@ -42,6 +44,10 @@ module PulpcoreClient
42
44
  if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
43
45
  fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsModelPermissionsApi.create"
44
46
  end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling GroupsModelPermissionsApi.create"
50
+ end
45
51
  # resource path
46
52
  local_var_path = '{auth_auth_groups_permission_href}model_permissions/'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
47
53
 
@@ -52,12 +58,14 @@ module PulpcoreClient
52
58
  header_params = opts[:header_params] || {}
53
59
  # HTTP header 'Accept' (if needed)
54
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
55
63
 
56
64
  # form parameters
57
65
  form_params = opts[:form_params] || {}
58
66
 
59
67
  # http body (model)
60
- post_body = opts[:body]
68
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
61
69
 
62
70
  # return_type
63
71
  return_type = opts[:return_type] || 'PermissionResponse'
@@ -22,19 +22,21 @@ module PulpcoreClient
22
22
  # Create a permission
23
23
  # Add an object permission to a group.
24
24
  # @param auth_auth_groups_permission_href [String]
25
+ # @param body [Object]
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [PermissionResponse]
27
- def create(auth_auth_groups_permission_href, opts = {})
28
- data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, opts)
28
+ def create(auth_auth_groups_permission_href, body, opts = {})
29
+ data, _status_code, _headers = create_with_http_info(auth_auth_groups_permission_href, body, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Create a permission
33
34
  # Add an object permission to a group.
34
35
  # @param auth_auth_groups_permission_href [String]
36
+ # @param body [Object]
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
37
- def create_with_http_info(auth_auth_groups_permission_href, opts = {})
39
+ def create_with_http_info(auth_auth_groups_permission_href, body, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: GroupsObjectPermissionsApi.create ...'
40
42
  end
@@ -42,6 +44,10 @@ module PulpcoreClient
42
44
  if @api_client.config.client_side_validation && auth_auth_groups_permission_href.nil?
43
45
  fail ArgumentError, "Missing the required parameter 'auth_auth_groups_permission_href' when calling GroupsObjectPermissionsApi.create"
44
46
  end
47
+ # verify the required parameter 'body' is set
48
+ if @api_client.config.client_side_validation && body.nil?
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling GroupsObjectPermissionsApi.create"
50
+ end
45
51
  # resource path
46
52
  local_var_path = '{auth_auth_groups_permission_href}object_permissions/'.sub('{' + 'auth_auth_groups_permission_href' + '}', CGI.escape(auth_auth_groups_permission_href.to_s).gsub('%2F', '/'))
47
53
 
@@ -52,12 +58,14 @@ module PulpcoreClient
52
58
  header_params = opts[:header_params] || {}
53
59
  # HTTP header 'Accept' (if needed)
54
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
55
63
 
56
64
  # form parameters
57
65
  form_params = opts[:form_params] || {}
58
66
 
59
67
  # http body (model)
60
- post_body = opts[:body]
68
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
61
69
 
62
70
  # return_type
63
71
  return_type = opts[:return_type] || 'PermissionResponse'
@@ -85,7 +93,6 @@ module PulpcoreClient
85
93
  # Remove an object permission from a group.
86
94
  # @param auth_auth_groups_permission_href [String]
87
95
  # @param [Hash] opts the optional parameters
88
- # @option opts [String] :ordering Which field to use when ordering the results.
89
96
  # @return [nil]
90
97
  def delete(auth_auth_groups_permission_href, opts = {})
91
98
  delete_with_http_info(auth_auth_groups_permission_href, opts)
@@ -96,7 +103,6 @@ module PulpcoreClient
96
103
  # Remove an object permission from a group.
97
104
  # @param auth_auth_groups_permission_href [String]
98
105
  # @param [Hash] opts the optional parameters
99
- # @option opts [String] :ordering Which field to use when ordering the results.
100
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
107
  def delete_with_http_info(auth_auth_groups_permission_href, opts = {})
102
108
  if @api_client.config.debugging
@@ -111,7 +117,6 @@ module PulpcoreClient
111
117
 
112
118
  # query parameters
113
119
  query_params = opts[:query_params] || {}
114
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
115
120
 
116
121
  # header parameters
117
122
  header_params = opts[:header_params] || {}
@@ -225,7 +230,6 @@ module PulpcoreClient
225
230
  # Retrieve a model permission from a group.
226
231
  # @param auth_auth_groups_permission_href [String]
227
232
  # @param [Hash] opts the optional parameters
228
- # @option opts [String] :ordering Which field to use when ordering the results.
229
233
  # @option opts [String] :fields A list of fields to include in the response.
230
234
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
231
235
  # @return [PermissionResponse]
@@ -238,7 +242,6 @@ module PulpcoreClient
238
242
  # Retrieve a model permission from a group.
239
243
  # @param auth_auth_groups_permission_href [String]
240
244
  # @param [Hash] opts the optional parameters
241
- # @option opts [String] :ordering Which field to use when ordering the results.
242
245
  # @option opts [String] :fields A list of fields to include in the response.
243
246
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
244
247
  # @return [Array<(PermissionResponse, Integer, Hash)>] PermissionResponse data, response status code and response headers
@@ -255,7 +258,6 @@ module PulpcoreClient
255
258
 
256
259
  # query parameters
257
260
  query_params = opts[:query_params] || {}
258
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
259
261
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
260
262
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
261
263
 
@@ -23,8 +23,8 @@ module PulpcoreClient
23
23
  # Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [StatusResponse]
26
- def read(opts = {})
27
- data, _status_code, _headers = read_with_http_info(opts)
26
+ def status_read(opts = {})
27
+ data, _status_code, _headers = status_read_with_http_info(opts)
28
28
  data
29
29
  end
30
30
 
@@ -32,9 +32,9 @@ module PulpcoreClient
32
32
  # Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(StatusResponse, Integer, Hash)>] StatusResponse data, response status code and response headers
35
- def read_with_http_info(opts = {})
35
+ def status_read_with_http_info(opts = {})
36
36
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: StatusApi.read ...'
37
+ @api_client.config.logger.debug 'Calling API: StatusApi.status_read ...'
38
38
  end
39
39
  # resource path
40
40
  local_var_path = '/pulp/api/v3/status/'
@@ -70,7 +70,7 @@ module PulpcoreClient
70
70
 
71
71
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
72
72
  if @api_client.config.debugging
73
- @api_client.config.logger.debug "API called: StatusApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ @api_client.config.logger.debug "API called: StatusApi#status_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
74
  end
75
75
  return data, status_code, headers
76
76
  end
@@ -219,125 +219,51 @@ module PulpcoreClient
219
219
  return data, status_code, headers
220
220
  end
221
221
 
222
- # Cancel a task
223
- # This operation cancels a task.
222
+ # Inspect a task
223
+ # 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.
224
224
  # @param task_href [String]
225
- # @param patched_task_cancel [PatchedTaskCancel]
226
225
  # @param [Hash] opts the optional parameters
227
- # @option opts [String] :child_tasks child_tasks
228
- # @option opts [String] :created_resources created_resources
229
- # @option opts [String] :finished_at finished_at
230
- # @option opts [String] :finished_at__gt finished_at__gt
231
- # @option opts [String] :finished_at__gte finished_at__gte
232
- # @option opts [String] :finished_at__lt finished_at__lt
233
- # @option opts [String] :finished_at__lte finished_at__lte
234
- # @option opts [String] :finished_at__range finished_at__range
235
- # @option opts [String] :name name
236
- # @option opts [String] :name__contains name__contains
237
- # @option opts [String] :ordering Which field to use when ordering the results.
238
- # @option opts [String] :parent_task parent_task
239
- # @option opts [String] :reserved_resources_record reserved_resources_record
240
- # @option opts [String] :started_at started_at
241
- # @option opts [String] :started_at__gt started_at__gt
242
- # @option opts [String] :started_at__gte started_at__gte
243
- # @option opts [String] :started_at__lt started_at__lt
244
- # @option opts [String] :started_at__lte started_at__lte
245
- # @option opts [String] :started_at__range started_at__range
246
- # @option opts [String] :state state
247
- # @option opts [String] :state__in state__in
248
- # @option opts [String] :task_group task_group
249
- # @option opts [String] :worker worker
250
- # @option opts [String] :worker__in worker__in
226
+ # @option opts [String] :fields A list of fields to include in the response.
227
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
251
228
  # @return [TaskResponse]
252
- def partial_update(task_href, patched_task_cancel, opts = {})
253
- data, _status_code, _headers = partial_update_with_http_info(task_href, patched_task_cancel, opts)
229
+ def read(task_href, opts = {})
230
+ data, _status_code, _headers = read_with_http_info(task_href, opts)
254
231
  data
255
232
  end
256
233
 
257
- # Cancel a task
258
- # This operation cancels a task.
234
+ # Inspect a task
235
+ # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
259
236
  # @param task_href [String]
260
- # @param patched_task_cancel [PatchedTaskCancel]
261
237
  # @param [Hash] opts the optional parameters
262
- # @option opts [String] :child_tasks child_tasks
263
- # @option opts [String] :created_resources created_resources
264
- # @option opts [String] :finished_at finished_at
265
- # @option opts [String] :finished_at__gt finished_at__gt
266
- # @option opts [String] :finished_at__gte finished_at__gte
267
- # @option opts [String] :finished_at__lt finished_at__lt
268
- # @option opts [String] :finished_at__lte finished_at__lte
269
- # @option opts [String] :finished_at__range finished_at__range
270
- # @option opts [String] :name name
271
- # @option opts [String] :name__contains name__contains
272
- # @option opts [String] :ordering Which field to use when ordering the results.
273
- # @option opts [String] :parent_task parent_task
274
- # @option opts [String] :reserved_resources_record reserved_resources_record
275
- # @option opts [String] :started_at started_at
276
- # @option opts [String] :started_at__gt started_at__gt
277
- # @option opts [String] :started_at__gte started_at__gte
278
- # @option opts [String] :started_at__lt started_at__lt
279
- # @option opts [String] :started_at__lte started_at__lte
280
- # @option opts [String] :started_at__range started_at__range
281
- # @option opts [String] :state state
282
- # @option opts [String] :state__in state__in
283
- # @option opts [String] :task_group task_group
284
- # @option opts [String] :worker worker
285
- # @option opts [String] :worker__in worker__in
238
+ # @option opts [String] :fields A list of fields to include in the response.
239
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
286
240
  # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
287
- def partial_update_with_http_info(task_href, patched_task_cancel, opts = {})
241
+ def read_with_http_info(task_href, opts = {})
288
242
  if @api_client.config.debugging
289
- @api_client.config.logger.debug 'Calling API: TasksApi.partial_update ...'
243
+ @api_client.config.logger.debug 'Calling API: TasksApi.read ...'
290
244
  end
291
245
  # verify the required parameter 'task_href' is set
292
246
  if @api_client.config.client_side_validation && task_href.nil?
293
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.partial_update"
294
- end
295
- # verify the required parameter 'patched_task_cancel' is set
296
- if @api_client.config.client_side_validation && patched_task_cancel.nil?
297
- fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.partial_update"
247
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
298
248
  end
299
249
  # resource path
300
250
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
301
251
 
302
252
  # query parameters
303
253
  query_params = opts[:query_params] || {}
304
- query_params[:'child_tasks'] = opts[:'child_tasks'] if !opts[:'child_tasks'].nil?
305
- query_params[:'created_resources'] = opts[:'created_resources'] if !opts[:'created_resources'].nil?
306
- query_params[:'finished_at'] = opts[:'finished_at'] if !opts[:'finished_at'].nil?
307
- query_params[:'finished_at__gt'] = opts[:'finished_at__gt'] if !opts[:'finished_at__gt'].nil?
308
- query_params[:'finished_at__gte'] = opts[:'finished_at__gte'] if !opts[:'finished_at__gte'].nil?
309
- query_params[:'finished_at__lt'] = opts[:'finished_at__lt'] if !opts[:'finished_at__lt'].nil?
310
- query_params[:'finished_at__lte'] = opts[:'finished_at__lte'] if !opts[:'finished_at__lte'].nil?
311
- query_params[:'finished_at__range'] = opts[:'finished_at__range'] if !opts[:'finished_at__range'].nil?
312
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
313
- query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
314
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
315
- query_params[:'parent_task'] = opts[:'parent_task'] if !opts[:'parent_task'].nil?
316
- query_params[:'reserved_resources_record'] = opts[:'reserved_resources_record'] if !opts[:'reserved_resources_record'].nil?
317
- query_params[:'started_at'] = opts[:'started_at'] if !opts[:'started_at'].nil?
318
- query_params[:'started_at__gt'] = opts[:'started_at__gt'] if !opts[:'started_at__gt'].nil?
319
- query_params[:'started_at__gte'] = opts[:'started_at__gte'] if !opts[:'started_at__gte'].nil?
320
- query_params[:'started_at__lt'] = opts[:'started_at__lt'] if !opts[:'started_at__lt'].nil?
321
- query_params[:'started_at__lte'] = opts[:'started_at__lte'] if !opts[:'started_at__lte'].nil?
322
- query_params[:'started_at__range'] = opts[:'started_at__range'] if !opts[:'started_at__range'].nil?
323
- query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
324
- query_params[:'state__in'] = opts[:'state__in'] if !opts[:'state__in'].nil?
325
- query_params[:'task_group'] = opts[:'task_group'] if !opts[:'task_group'].nil?
326
- query_params[:'worker'] = opts[:'worker'] if !opts[:'worker'].nil?
327
- query_params[:'worker__in'] = opts[:'worker__in'] if !opts[:'worker__in'].nil?
254
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
255
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
328
256
 
329
257
  # header parameters
330
258
  header_params = opts[:header_params] || {}
331
259
  # HTTP header 'Accept' (if needed)
332
260
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
333
- # HTTP header 'Content-Type'
334
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
335
261
 
336
262
  # form parameters
337
263
  form_params = opts[:form_params] || {}
338
264
 
339
265
  # http body (model)
340
- post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
266
+ post_body = opts[:body]
341
267
 
342
268
  # return_type
343
269
  return_type = opts[:return_type] || 'TaskResponse'
@@ -354,58 +280,60 @@ module PulpcoreClient
354
280
  :return_type => return_type
355
281
  )
356
282
 
357
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
283
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
358
284
  if @api_client.config.debugging
359
- @api_client.config.logger.debug "API called: TasksApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
285
+ @api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
286
  end
361
287
  return data, status_code, headers
362
288
  end
363
289
 
364
- # Inspect a task
365
- # 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.
290
+ # Cancel a task
291
+ # This operation cancels a task.
366
292
  # @param task_href [String]
293
+ # @param patched_task_cancel [PatchedTaskCancel]
367
294
  # @param [Hash] opts the optional parameters
368
- # @option opts [String] :fields A list of fields to include in the response.
369
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
370
295
  # @return [TaskResponse]
371
- def read(task_href, opts = {})
372
- data, _status_code, _headers = read_with_http_info(task_href, opts)
296
+ def tasks_cancel(task_href, patched_task_cancel, opts = {})
297
+ data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
373
298
  data
374
299
  end
375
300
 
376
- # Inspect a task
377
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
301
+ # Cancel a task
302
+ # This operation cancels a task.
378
303
  # @param task_href [String]
304
+ # @param patched_task_cancel [PatchedTaskCancel]
379
305
  # @param [Hash] opts the optional parameters
380
- # @option opts [String] :fields A list of fields to include in the response.
381
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
382
306
  # @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
383
- def read_with_http_info(task_href, opts = {})
307
+ def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
384
308
  if @api_client.config.debugging
385
- @api_client.config.logger.debug 'Calling API: TasksApi.read ...'
309
+ @api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
386
310
  end
387
311
  # verify the required parameter 'task_href' is set
388
312
  if @api_client.config.client_side_validation && task_href.nil?
389
- fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
313
+ fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
314
+ end
315
+ # verify the required parameter 'patched_task_cancel' is set
316
+ if @api_client.config.client_side_validation && patched_task_cancel.nil?
317
+ fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
390
318
  end
391
319
  # resource path
392
320
  local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
393
321
 
394
322
  # query parameters
395
323
  query_params = opts[:query_params] || {}
396
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
397
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
398
324
 
399
325
  # header parameters
400
326
  header_params = opts[:header_params] || {}
401
327
  # HTTP header 'Accept' (if needed)
402
328
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
329
+ # HTTP header 'Content-Type'
330
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
403
331
 
404
332
  # form parameters
405
333
  form_params = opts[:form_params] || {}
406
334
 
407
335
  # http body (model)
408
- post_body = opts[:body]
336
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_task_cancel)
409
337
 
410
338
  # return_type
411
339
  return_type = opts[:return_type] || 'TaskResponse'
@@ -422,9 +350,9 @@ module PulpcoreClient
422
350
  :return_type => return_type
423
351
  )
424
352
 
425
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
353
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
426
354
  if @api_client.config.debugging
427
- @api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
+ @api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
428
356
  end
429
357
  return data, status_code, headers
430
358
  end
@@ -358,7 +358,6 @@ module PulpcoreClient
358
358
  # @param upload_href [String]
359
359
  # @param file [File] A chunk of the uploaded file.
360
360
  # @param [Hash] opts the optional parameters
361
- # @option opts [String] :ordering Which field to use when ordering the results.
362
361
  # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
363
362
  # @return [UploadResponse]
364
363
  def update(content_range, upload_href, file, opts = {})
@@ -372,7 +371,6 @@ module PulpcoreClient
372
371
  # @param upload_href [String]
373
372
  # @param file [File] A chunk of the uploaded file.
374
373
  # @param [Hash] opts the optional parameters
375
- # @option opts [String] :ordering Which field to use when ordering the results.
376
374
  # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
377
375
  # @return [Array<(UploadResponse, Integer, Hash)>] UploadResponse data, response status code and response headers
378
376
  def update_with_http_info(content_range, upload_href, file, opts = {})
@@ -396,7 +394,6 @@ module PulpcoreClient
396
394
 
397
395
  # query parameters
398
396
  query_params = opts[:query_params] || {}
399
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
400
397
 
401
398
  # header parameters
402
399
  header_params = opts[:header_params] || {}
@@ -37,8 +37,8 @@ module PulpcoreClient
37
37
  # Attribute type mapping.
38
38
  def self.openapi_types
39
39
  {
40
- :'pulp_href' => :'Object',
41
- :'id' => :'Object',
40
+ :'pulp_href' => :'String',
41
+ :'id' => :'String',
42
42
  :'permission' => :'String',
43
43
  :'obj' => :'String'
44
44
  }
@@ -52,6 +52,8 @@ module PulpcoreClient
52
52
  # Resources created by this task.
53
53
  attr_accessor :created_resources
54
54
 
55
+ attr_accessor :reserved_resources_record
56
+
55
57
  # Attribute mapping from ruby-style variable name to JSON key.
56
58
  def self.attribute_map
57
59
  {
@@ -67,7 +69,8 @@ module PulpcoreClient
67
69
  :'child_tasks' => :'child_tasks',
68
70
  :'task_group' => :'task_group',
69
71
  :'progress_reports' => :'progress_reports',
70
- :'created_resources' => :'created_resources'
72
+ :'created_resources' => :'created_resources',
73
+ :'reserved_resources_record' => :'reserved_resources_record'
71
74
  }
72
75
  end
73
76
 
@@ -86,7 +89,8 @@ module PulpcoreClient
86
89
  :'child_tasks' => :'Array<String>',
87
90
  :'task_group' => :'String',
88
91
  :'progress_reports' => :'Array<ProgressReportResponse>',
89
- :'created_resources' => :'Array<String>'
92
+ :'created_resources' => :'Array<String>',
93
+ :'reserved_resources_record' => :'Array<Object>'
90
94
  }
91
95
  end
92
96
 
@@ -168,6 +172,12 @@ module PulpcoreClient
168
172
  self.created_resources = value
169
173
  end
170
174
  end
175
+
176
+ if attributes.key?(:'reserved_resources_record')
177
+ if (value = attributes[:'reserved_resources_record']).is_a?(Array)
178
+ self.reserved_resources_record = value
179
+ end
180
+ end
171
181
  end
172
182
 
173
183
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -205,7 +215,8 @@ module PulpcoreClient
205
215
  child_tasks == o.child_tasks &&
206
216
  task_group == o.task_group &&
207
217
  progress_reports == o.progress_reports &&
208
- created_resources == o.created_resources
218
+ created_resources == o.created_resources &&
219
+ reserved_resources_record == o.reserved_resources_record
209
220
  end
210
221
 
211
222
  # @see the `==` method
@@ -217,7 +228,7 @@ module PulpcoreClient
217
228
  # Calculates hash code according to all attributes.
218
229
  # @return [Integer] Hash code
219
230
  def hash
220
- [pulp_href, pulp_created, state, name, started_at, finished_at, error, worker, parent_task, child_tasks, task_group, progress_reports, created_resources].hash
231
+ [pulp_href, pulp_created, state, name, started_at, finished_at, error, worker, parent_task, child_tasks, task_group, progress_reports, created_resources, reserved_resources_record].hash
221
232
  end
222
233
 
223
234
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
17
  class WorkerResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # The name of the worker.
24
24
  attr_accessor :name
25
25
 
@@ -29,8 +29,8 @@ module PulpcoreClient
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'pulp_href' => :'pulp_href',
33
32
  :'pulp_created' => :'pulp_created',
33
+ :'pulp_href' => :'pulp_href',
34
34
  :'name' => :'name',
35
35
  :'last_heartbeat' => :'last_heartbeat'
36
36
  }
@@ -39,8 +39,8 @@ module PulpcoreClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'pulp_href' => :'String',
43
42
  :'pulp_created' => :'DateTime',
43
+ :'pulp_href' => :'String',
44
44
  :'name' => :'String',
45
45
  :'last_heartbeat' => :'DateTime'
46
46
  }
@@ -67,14 +67,14 @@ module PulpcoreClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'pulp_href')
71
- self.pulp_href = attributes[:'pulp_href']
72
- end
73
-
74
70
  if attributes.key?(:'pulp_created')
75
71
  self.pulp_created = attributes[:'pulp_created']
76
72
  end
77
73
 
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
76
+ end
77
+
78
78
  if attributes.key?(:'name')
79
79
  self.name = attributes[:'name']
80
80
  end
@@ -102,8 +102,8 @@ module PulpcoreClient
102
102
  def ==(o)
103
103
  return true if self.equal?(o)
104
104
  self.class == o.class &&
105
- pulp_href == o.pulp_href &&
106
105
  pulp_created == o.pulp_created &&
106
+ pulp_href == o.pulp_href &&
107
107
  name == o.name &&
108
108
  last_heartbeat == o.last_heartbeat
109
109
  end
@@ -117,7 +117,7 @@ module PulpcoreClient
117
117
  # Calculates hash code according to all attributes.
118
118
  # @return [Integer] Hash code
119
119
  def hash
120
- [pulp_href, pulp_created, name, last_heartbeat].hash
120
+ [pulp_created, pulp_href, name, last_heartbeat].hash
121
121
  end
122
122
 
123
123
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.6.0'
14
+ VERSION = '3.6.5.post2'
15
15
  end
@@ -36,6 +36,7 @@ describe 'GroupsModelPermissionsApi' do
36
36
  # Create a permission
37
37
  # Add a model permission to a group.
38
38
  # @param auth_auth_groups_permission_href
39
+ # @param body
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @return [PermissionResponse]
41
42
  describe 'create test' do
@@ -36,6 +36,7 @@ describe 'GroupsObjectPermissionsApi' do
36
36
  # Create a permission
37
37
  # Add an object permission to a group.
38
38
  # @param auth_auth_groups_permission_href
39
+ # @param body
39
40
  # @param [Hash] opts the optional parameters
40
41
  # @return [PermissionResponse]
41
42
  describe 'create test' do
@@ -49,7 +50,6 @@ describe 'GroupsObjectPermissionsApi' do
49
50
  # Remove an object permission from a group.
50
51
  # @param auth_auth_groups_permission_href
51
52
  # @param [Hash] opts the optional parameters
52
- # @option opts [String] :ordering Which field to use when ordering the results.
53
53
  # @return [nil]
54
54
  describe 'delete test' do
55
55
  it 'should work' do
@@ -79,7 +79,6 @@ describe 'GroupsObjectPermissionsApi' do
79
79
  # Retrieve a model permission from a group.
80
80
  # @param auth_auth_groups_permission_href
81
81
  # @param [Hash] opts the optional parameters
82
- # @option opts [String] :ordering Which field to use when ordering the results.
83
82
  # @option opts [String] :fields A list of fields to include in the response.
84
83
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
85
84
  # @return [PermissionResponse]
@@ -32,12 +32,12 @@ describe 'StatusApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for read
35
+ # unit tests for status_read
36
36
  # Inspect status of Pulp
37
37
  # Returns app information including the version of pulpcore and loaded pulp plugins, known workers, database connection status, and messaging connection status
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @return [StatusResponse]
40
- describe 'read test' do
40
+ describe 'status_read test' do
41
41
  it 'should work' do
42
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
43
  end
@@ -83,52 +83,28 @@ describe 'TasksApi' do
83
83
  end
84
84
  end
85
85
 
86
- # unit tests for partial_update
87
- # Cancel a task
88
- # This operation cancels a task.
86
+ # unit tests for read
87
+ # Inspect a task
88
+ # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
89
89
  # @param task_href
90
- # @param patched_task_cancel
91
90
  # @param [Hash] opts the optional parameters
92
- # @option opts [String] :child_tasks child_tasks
93
- # @option opts [String] :created_resources created_resources
94
- # @option opts [String] :finished_at finished_at
95
- # @option opts [String] :finished_at__gt finished_at__gt
96
- # @option opts [String] :finished_at__gte finished_at__gte
97
- # @option opts [String] :finished_at__lt finished_at__lt
98
- # @option opts [String] :finished_at__lte finished_at__lte
99
- # @option opts [String] :finished_at__range finished_at__range
100
- # @option opts [String] :name name
101
- # @option opts [String] :name__contains name__contains
102
- # @option opts [String] :ordering Which field to use when ordering the results.
103
- # @option opts [String] :parent_task parent_task
104
- # @option opts [String] :reserved_resources_record reserved_resources_record
105
- # @option opts [String] :started_at started_at
106
- # @option opts [String] :started_at__gt started_at__gt
107
- # @option opts [String] :started_at__gte started_at__gte
108
- # @option opts [String] :started_at__lt started_at__lt
109
- # @option opts [String] :started_at__lte started_at__lte
110
- # @option opts [String] :started_at__range started_at__range
111
- # @option opts [String] :state state
112
- # @option opts [String] :state__in state__in
113
- # @option opts [String] :task_group task_group
114
- # @option opts [String] :worker worker
115
- # @option opts [String] :worker__in worker__in
91
+ # @option opts [String] :fields A list of fields to include in the response.
92
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
116
93
  # @return [TaskResponse]
117
- describe 'partial_update test' do
94
+ describe 'read test' do
118
95
  it 'should work' do
119
96
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
97
  end
121
98
  end
122
99
 
123
- # unit tests for read
124
- # Inspect a task
125
- # A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;s identity. schema (DefaultSchema): The schema class to use by default in a viewset.
100
+ # unit tests for tasks_cancel
101
+ # Cancel a task
102
+ # This operation cancels a task.
126
103
  # @param task_href
104
+ # @param patched_task_cancel
127
105
  # @param [Hash] opts the optional parameters
128
- # @option opts [String] :fields A list of fields to include in the response.
129
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
130
106
  # @return [TaskResponse]
131
- describe 'read test' do
107
+ describe 'tasks_cancel test' do
132
108
  it 'should work' do
133
109
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
110
  end
@@ -106,7 +106,6 @@ describe 'UploadsApi' do
106
106
  # @param upload_href
107
107
  # @param file A chunk of the uploaded file.
108
108
  # @param [Hash] opts the optional parameters
109
- # @option opts [String] :ordering Which field to use when ordering the results.
110
109
  # @option opts [String] :sha256 The SHA-256 checksum of the chunk if available.
111
110
  # @return [UploadResponse]
112
111
  describe 'update test' do
@@ -110,4 +110,10 @@ describe 'TaskResponse' do
110
110
  end
111
111
  end
112
112
 
113
+ describe 'test attribute "reserved_resources_record"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
113
119
  end
@@ -32,13 +32,13 @@ describe 'WorkerResponse' do
32
32
  expect(@instance).to be_instance_of(PulpcoreClient::WorkerResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_created"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulpcore_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.5.post2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -327,9 +327,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
327
327
  version: '1.9'
328
328
  required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  requirements:
330
- - - ">="
330
+ - - ">"
331
331
  - !ruby/object:Gem::Version
332
- version: '0'
332
+ version: 1.3.1
333
333
  requirements: []
334
334
  rubygems_version: 3.0.6
335
335
  signing_key: