pulpcore_client 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/docs/GroupsModelPermissionsApi.md +5 -3
- data/docs/GroupsObjectPermissionsApi.md +5 -3
- data/docs/OrphansApi.md +5 -5
- data/docs/StatusApi.md +5 -5
- data/docs/TaskResponse.md +3 -1
- data/docs/TasksApi.md +64 -64
- data/lib/pulpcore_client/api/groups_model_permissions_api.rb +12 -4
- data/lib/pulpcore_client/api/groups_object_permissions_api.rb +12 -4
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/status_api.rb +5 -5
- data/lib/pulpcore_client/api/tasks_api.rb +75 -75
- data/lib/pulpcore_client/models/task_response.rb +15 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/groups_model_permissions_api_spec.rb +1 -0
- data/spec/api/groups_object_permissions_api_spec.rb +1 -0
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/status_api_spec.rb +2 -2
- data/spec/api/tasks_api_spec.rb +16 -16
- data/spec/models/task_response_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5d5c71bbf87fe38480bb40687861a42e91e80c89d37167fc6f1ede48574161a
|
4
|
+
data.tar.gz: '0238330646741f18f5fffd9eba095b037602f569b198cd17f61c6e308d727221'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e6aaa7d990544d5d6daf12ece1cbb8bffd295356ea3e97a89bad5f76c1627c65c3a938c9e1053eb63dc1f9ce13168eb52b7dfdaeee07f7717280c9112f0d66
|
7
|
+
data.tar.gz: bc1d6cf376c54ec474b01809283f7a0d072301f5bb213a9be5941dd4b43761af797df786caedc70f06bacaebdb7dd0912cb37104b6f25d350f64ecfa790e7f2d
|
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.
|
10
|
+
- Package version: 3.6.1
|
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.
|
27
|
+
gem install ./pulpcore_client-3.6.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulpcore_client-3.6.
|
30
|
+
(for development, run `gem install --dev ./pulpcore_client-3.6.1.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.
|
36
|
+
gem 'pulpcore_client', '~> 3.6.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -132,16 +132,16 @@ Class | Method | HTTP request | Description
|
|
132
132
|
*PulpcoreClient::ImportersPulpApi* | [**partial_update**](docs/ImportersPulpApi.md#partial_update) | **PATCH** {pulp_importer_href} | Update a pulp importer
|
133
133
|
*PulpcoreClient::ImportersPulpApi* | [**read**](docs/ImportersPulpApi.md#read) | **GET** {pulp_importer_href} | Inspect a pulp importer
|
134
134
|
*PulpcoreClient::ImportersPulpApi* | [**update**](docs/ImportersPulpApi.md#update) | **PUT** {pulp_importer_href} | Update a pulp importer
|
135
|
-
*PulpcoreClient::OrphansApi* | [**
|
135
|
+
*PulpcoreClient::OrphansApi* | [**orphans_delete**](docs/OrphansApi.md#orphans_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* | [**
|
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**:
|
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,7 +62,7 @@ Name | Type | Description | Notes
|
|
60
62
|
|
61
63
|
### HTTP request headers
|
62
64
|
|
63
|
-
- **Content-Type**:
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
64
66
|
- **Accept**: application/json
|
65
67
|
|
66
68
|
|
data/docs/OrphansApi.md
CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**orphans_delete**](OrphansApi.md#orphans_delete) | **DELETE** /pulp/api/v3/orphans/ | Delete orphans
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
##
|
11
|
+
## orphans_delete
|
12
12
|
|
13
|
-
> AsyncOperationResponse
|
13
|
+
> AsyncOperationResponse orphans_delete
|
14
14
|
|
15
15
|
Delete orphans
|
16
16
|
|
@@ -32,10 +32,10 @@ api_instance = PulpcoreClient::OrphansApi.new
|
|
32
32
|
|
33
33
|
begin
|
34
34
|
#Delete orphans
|
35
|
-
result = api_instance.
|
35
|
+
result = api_instance.orphans_delete
|
36
36
|
p result
|
37
37
|
rescue PulpcoreClient::ApiError => e
|
38
|
-
puts "Exception when calling OrphansApi->
|
38
|
+
puts "Exception when calling OrphansApi->orphans_delete: #{e}"
|
39
39
|
end
|
40
40
|
```
|
41
41
|
|
data/docs/StatusApi.md
CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**status_read**](StatusApi.md#status_read) | **GET** /pulp/api/v3/status/ | Inspect status of Pulp
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
##
|
11
|
+
## status_read
|
12
12
|
|
13
|
-
> StatusResponse
|
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.
|
29
|
+
result = api_instance.status_read
|
30
30
|
p result
|
31
31
|
rescue PulpcoreClient::ApiError => e
|
32
|
-
puts "Exception when calling StatusApi->
|
32
|
+
puts "Exception when calling StatusApi->status_read: #{e}"
|
33
33
|
end
|
34
34
|
```
|
35
35
|
|
data/docs/TaskResponse.md
CHANGED
@@ -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
|
|
data/docs/TasksApi.md
CHANGED
@@ -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,9 +172,68 @@ Name | Type | Description | Notes
|
|
172
172
|
- **Accept**: application/json
|
173
173
|
|
174
174
|
|
175
|
-
##
|
175
|
+
## read
|
176
|
+
|
177
|
+
> TaskResponse read(task_href, opts)
|
178
|
+
|
179
|
+
Inspect a task
|
180
|
+
|
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
|
+
|
183
|
+
### Example
|
184
|
+
|
185
|
+
```ruby
|
186
|
+
# load the gem
|
187
|
+
require 'pulpcore_client'
|
188
|
+
# setup authorization
|
189
|
+
PulpcoreClient.configure do |config|
|
190
|
+
# Configure HTTP basic authorization: basicAuth
|
191
|
+
config.username = 'YOUR USERNAME'
|
192
|
+
config.password = 'YOUR PASSWORD'
|
193
|
+
end
|
194
|
+
|
195
|
+
api_instance = PulpcoreClient::TasksApi.new
|
196
|
+
task_href = 'task_href_example' # String |
|
197
|
+
opts = {
|
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.
|
200
|
+
}
|
201
|
+
|
202
|
+
begin
|
203
|
+
#Inspect a task
|
204
|
+
result = api_instance.read(task_href, opts)
|
205
|
+
p result
|
206
|
+
rescue PulpcoreClient::ApiError => e
|
207
|
+
puts "Exception when calling TasksApi->read: #{e}"
|
208
|
+
end
|
209
|
+
```
|
210
|
+
|
211
|
+
### Parameters
|
212
|
+
|
213
|
+
|
214
|
+
Name | Type | Description | Notes
|
215
|
+
------------- | ------------- | ------------- | -------------
|
216
|
+
**task_href** | **String**| |
|
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]
|
219
|
+
|
220
|
+
### Return type
|
221
|
+
|
222
|
+
[**TaskResponse**](TaskResponse.md)
|
223
|
+
|
224
|
+
### Authorization
|
225
|
+
|
226
|
+
[basicAuth](../README.md#basicAuth)
|
227
|
+
|
228
|
+
### HTTP request headers
|
229
|
+
|
230
|
+
- **Content-Type**: Not defined
|
231
|
+
- **Accept**: application/json
|
232
|
+
|
233
|
+
|
234
|
+
## tasks_cancel
|
176
235
|
|
177
|
-
> TaskResponse
|
236
|
+
> TaskResponse tasks_cancel(task_href, patched_task_cancel, opts)
|
178
237
|
|
179
238
|
Cancel a task
|
180
239
|
|
@@ -224,10 +283,10 @@ opts = {
|
|
224
283
|
|
225
284
|
begin
|
226
285
|
#Cancel a task
|
227
|
-
result = api_instance.
|
286
|
+
result = api_instance.tasks_cancel(task_href, patched_task_cancel, opts)
|
228
287
|
p result
|
229
288
|
rescue PulpcoreClient::ApiError => e
|
230
|
-
puts "Exception when calling TasksApi->
|
289
|
+
puts "Exception when calling TasksApi->tasks_cancel: #{e}"
|
231
290
|
end
|
232
291
|
```
|
233
292
|
|
@@ -276,62 +335,3 @@ Name | Type | Description | Notes
|
|
276
335
|
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
277
336
|
- **Accept**: application/json
|
278
337
|
|
279
|
-
|
280
|
-
## read
|
281
|
-
|
282
|
-
> TaskResponse read(task_href, opts)
|
283
|
-
|
284
|
-
Inspect a task
|
285
|
-
|
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.
|
287
|
-
|
288
|
-
### Example
|
289
|
-
|
290
|
-
```ruby
|
291
|
-
# load the gem
|
292
|
-
require 'pulpcore_client'
|
293
|
-
# setup authorization
|
294
|
-
PulpcoreClient.configure do |config|
|
295
|
-
# Configure HTTP basic authorization: basicAuth
|
296
|
-
config.username = 'YOUR USERNAME'
|
297
|
-
config.password = 'YOUR PASSWORD'
|
298
|
-
end
|
299
|
-
|
300
|
-
api_instance = PulpcoreClient::TasksApi.new
|
301
|
-
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
|
-
}
|
306
|
-
|
307
|
-
begin
|
308
|
-
#Inspect a task
|
309
|
-
result = api_instance.read(task_href, opts)
|
310
|
-
p result
|
311
|
-
rescue PulpcoreClient::ApiError => e
|
312
|
-
puts "Exception when calling TasksApi->read: #{e}"
|
313
|
-
end
|
314
|
-
```
|
315
|
-
|
316
|
-
### Parameters
|
317
|
-
|
318
|
-
|
319
|
-
Name | Type | Description | Notes
|
320
|
-
------------- | ------------- | ------------- | -------------
|
321
|
-
**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]
|
324
|
-
|
325
|
-
### Return type
|
326
|
-
|
327
|
-
[**TaskResponse**](TaskResponse.md)
|
328
|
-
|
329
|
-
### Authorization
|
330
|
-
|
331
|
-
[basicAuth](../README.md#basicAuth)
|
332
|
-
|
333
|
-
### HTTP request headers
|
334
|
-
|
335
|
-
- **Content-Type**: Not defined
|
336
|
-
- **Accept**: application/json
|
337
|
-
|
@@ -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'
|
@@ -23,8 +23,8 @@ module PulpcoreClient
|
|
23
23
|
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [AsyncOperationResponse]
|
26
|
-
def
|
27
|
-
data, _status_code, _headers =
|
26
|
+
def orphans_delete(opts = {})
|
27
|
+
data, _status_code, _headers = orphans_delete_with_http_info(opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
@@ -32,9 +32,9 @@ module PulpcoreClient
|
|
32
32
|
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
35
|
-
def
|
35
|
+
def orphans_delete_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: OrphansApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: OrphansApi.orphans_delete ...'
|
38
38
|
end
|
39
39
|
# resource path
|
40
40
|
local_var_path = '/pulp/api/v3/orphans/'
|
@@ -70,7 +70,7 @@ module PulpcoreClient
|
|
70
70
|
|
71
71
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
72
72
|
if @api_client.config.debugging
|
73
|
-
@api_client.config.logger.debug "API called: OrphansApi#
|
73
|
+
@api_client.config.logger.debug "API called: OrphansApi#orphans_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
74
|
end
|
75
75
|
return data, status_code, headers
|
76
76
|
end
|
@@ -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
|
27
|
-
data, _status_code, _headers =
|
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
|
35
|
+
def status_read_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: StatusApi.
|
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#
|
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,6 +219,74 @@ module PulpcoreClient
|
|
219
219
|
return data, status_code, headers
|
220
220
|
end
|
221
221
|
|
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
|
+
# @param task_href [String]
|
225
|
+
# @param [Hash] opts the optional parameters
|
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.
|
228
|
+
# @return [TaskResponse]
|
229
|
+
def read(task_href, opts = {})
|
230
|
+
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
231
|
+
data
|
232
|
+
end
|
233
|
+
|
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. \"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.
|
236
|
+
# @param task_href [String]
|
237
|
+
# @param [Hash] opts the optional parameters
|
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.
|
240
|
+
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
241
|
+
def read_with_http_info(task_href, opts = {})
|
242
|
+
if @api_client.config.debugging
|
243
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
244
|
+
end
|
245
|
+
# verify the required parameter 'task_href' is set
|
246
|
+
if @api_client.config.client_side_validation && task_href.nil?
|
247
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
248
|
+
end
|
249
|
+
# resource path
|
250
|
+
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
251
|
+
|
252
|
+
# query parameters
|
253
|
+
query_params = opts[:query_params] || {}
|
254
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
255
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = opts[:header_params] || {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
form_params = opts[:form_params] || {}
|
264
|
+
|
265
|
+
# http body (model)
|
266
|
+
post_body = opts[:body]
|
267
|
+
|
268
|
+
# return_type
|
269
|
+
return_type = opts[:return_type] || 'TaskResponse'
|
270
|
+
|
271
|
+
# auth_names
|
272
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
273
|
+
|
274
|
+
new_options = opts.merge(
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => return_type
|
281
|
+
)
|
282
|
+
|
283
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
284
|
+
if @api_client.config.debugging
|
285
|
+
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
286
|
+
end
|
287
|
+
return data, status_code, headers
|
288
|
+
end
|
289
|
+
|
222
290
|
# Cancel a task
|
223
291
|
# This operation cancels a task.
|
224
292
|
# @param task_href [String]
|
@@ -249,8 +317,8 @@ module PulpcoreClient
|
|
249
317
|
# @option opts [String] :worker worker
|
250
318
|
# @option opts [String] :worker__in worker__in
|
251
319
|
# @return [TaskResponse]
|
252
|
-
def
|
253
|
-
data, _status_code, _headers =
|
320
|
+
def tasks_cancel(task_href, patched_task_cancel, opts = {})
|
321
|
+
data, _status_code, _headers = tasks_cancel_with_http_info(task_href, patched_task_cancel, opts)
|
254
322
|
data
|
255
323
|
end
|
256
324
|
|
@@ -284,17 +352,17 @@ module PulpcoreClient
|
|
284
352
|
# @option opts [String] :worker worker
|
285
353
|
# @option opts [String] :worker__in worker__in
|
286
354
|
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
287
|
-
def
|
355
|
+
def tasks_cancel_with_http_info(task_href, patched_task_cancel, opts = {})
|
288
356
|
if @api_client.config.debugging
|
289
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.
|
357
|
+
@api_client.config.logger.debug 'Calling API: TasksApi.tasks_cancel ...'
|
290
358
|
end
|
291
359
|
# verify the required parameter 'task_href' is set
|
292
360
|
if @api_client.config.client_side_validation && task_href.nil?
|
293
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.
|
361
|
+
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.tasks_cancel"
|
294
362
|
end
|
295
363
|
# verify the required parameter 'patched_task_cancel' is set
|
296
364
|
if @api_client.config.client_side_validation && patched_task_cancel.nil?
|
297
|
-
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.
|
365
|
+
fail ArgumentError, "Missing the required parameter 'patched_task_cancel' when calling TasksApi.tasks_cancel"
|
298
366
|
end
|
299
367
|
# resource path
|
300
368
|
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
@@ -356,75 +424,7 @@ module PulpcoreClient
|
|
356
424
|
|
357
425
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
358
426
|
if @api_client.config.debugging
|
359
|
-
@api_client.config.logger.debug "API called: TasksApi#
|
360
|
-
end
|
361
|
-
return data, status_code, headers
|
362
|
-
end
|
363
|
-
|
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.
|
366
|
-
# @param task_href [String]
|
367
|
-
# @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
|
-
# @return [TaskResponse]
|
371
|
-
def read(task_href, opts = {})
|
372
|
-
data, _status_code, _headers = read_with_http_info(task_href, opts)
|
373
|
-
data
|
374
|
-
end
|
375
|
-
|
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. \"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.
|
378
|
-
# @param task_href [String]
|
379
|
-
# @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
|
-
# @return [Array<(TaskResponse, Integer, Hash)>] TaskResponse data, response status code and response headers
|
383
|
-
def read_with_http_info(task_href, opts = {})
|
384
|
-
if @api_client.config.debugging
|
385
|
-
@api_client.config.logger.debug 'Calling API: TasksApi.read ...'
|
386
|
-
end
|
387
|
-
# verify the required parameter 'task_href' is set
|
388
|
-
if @api_client.config.client_side_validation && task_href.nil?
|
389
|
-
fail ArgumentError, "Missing the required parameter 'task_href' when calling TasksApi.read"
|
390
|
-
end
|
391
|
-
# resource path
|
392
|
-
local_var_path = '{task_href}'.sub('{' + 'task_href' + '}', CGI.escape(task_href.to_s).gsub('%2F', '/'))
|
393
|
-
|
394
|
-
# query parameters
|
395
|
-
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
|
-
|
399
|
-
# header parameters
|
400
|
-
header_params = opts[:header_params] || {}
|
401
|
-
# HTTP header 'Accept' (if needed)
|
402
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
403
|
-
|
404
|
-
# form parameters
|
405
|
-
form_params = opts[:form_params] || {}
|
406
|
-
|
407
|
-
# http body (model)
|
408
|
-
post_body = opts[:body]
|
409
|
-
|
410
|
-
# return_type
|
411
|
-
return_type = opts[:return_type] || 'TaskResponse'
|
412
|
-
|
413
|
-
# auth_names
|
414
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
415
|
-
|
416
|
-
new_options = opts.merge(
|
417
|
-
:header_params => header_params,
|
418
|
-
:query_params => query_params,
|
419
|
-
:form_params => form_params,
|
420
|
-
:body => post_body,
|
421
|
-
:auth_names => auth_names,
|
422
|
-
:return_type => return_type
|
423
|
-
)
|
424
|
-
|
425
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
426
|
-
if @api_client.config.debugging
|
427
|
-
@api_client.config.logger.debug "API called: TasksApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
427
|
+
@api_client.config.logger.debug "API called: TasksApi#tasks_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
428
|
end
|
429
429
|
return data, status_code, headers
|
430
430
|
end
|
@@ -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
|
@@ -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
|
@@ -32,12 +32,12 @@ describe 'OrphansApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for orphans_delete
|
36
36
|
# Delete orphans
|
37
37
|
# Trigger an asynchronous task that deletes allorphaned content and artifacts.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [AsyncOperationResponse]
|
40
|
-
describe '
|
40
|
+
describe 'orphans_delete 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
|
data/spec/api/status_api_spec.rb
CHANGED
@@ -32,12 +32,12 @@ describe 'StatusApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
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 '
|
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
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -83,7 +83,21 @@ describe 'TasksApi' do
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
# unit tests for
|
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. \"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.
|
89
|
+
# @param task_href
|
90
|
+
# @param [Hash] opts the optional parameters
|
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.
|
93
|
+
# @return [TaskResponse]
|
94
|
+
describe 'read test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# unit tests for tasks_cancel
|
87
101
|
# Cancel a task
|
88
102
|
# This operation cancels a task.
|
89
103
|
# @param task_href
|
@@ -114,21 +128,7 @@ describe 'TasksApi' do
|
|
114
128
|
# @option opts [String] :worker worker
|
115
129
|
# @option opts [String] :worker__in worker__in
|
116
130
|
# @return [TaskResponse]
|
117
|
-
describe '
|
118
|
-
it 'should work' do
|
119
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
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. \"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.
|
126
|
-
# @param task_href
|
127
|
-
# @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
|
-
# @return [TaskResponse]
|
131
|
-
describe 'read test' do
|
131
|
+
describe 'tasks_cancel test' do
|
132
132
|
it 'should work' do
|
133
133
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
134
|
end
|
@@ -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
|
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.
|
4
|
+
version: 3.6.1
|
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-
|
11
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|