pulpcore_client 3.22.29 → 3.22.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +141 -143
- data/docs/AccessPoliciesApi.md +25 -25
- data/docs/ArtifactDistributionResponse.md +8 -8
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentApi.md +5 -5
- data/docs/ContentguardsApi.md +5 -5
- data/docs/ContentguardsContentRedirectApi.md +50 -50
- data/docs/ContentguardsRbacApi.md +50 -50
- data/docs/DistributionsApi.md +5 -5
- data/docs/DistributionsArtifactsApi.md +10 -10
- data/docs/ExportersFilesystemApi.md +30 -30
- data/docs/ExportersFilesystemExportsApi.md +20 -20
- data/docs/ExportersPulpApi.md +30 -30
- data/docs/ExportersPulpExportsApi.md +20 -20
- data/docs/GroupsApi.md +50 -50
- data/docs/GroupsRolesApi.md +20 -20
- data/docs/GroupsUsersApi.md +15 -15
- data/docs/ImportersPulpApi.md +30 -30
- data/docs/ImportersPulpImportsApi.md +20 -20
- data/docs/OrphansApi.md +5 -5
- data/docs/OrphansCleanupApi.md +5 -5
- data/docs/PublicationsApi.md +5 -5
- data/docs/RemotesApi.md +5 -5
- data/docs/RepairApi.md +5 -5
- data/docs/RepositoriesApi.md +5 -5
- data/docs/RepositoriesReclaimSpaceApi.md +5 -5
- data/docs/RepositoryVersionsApi.md +5 -5
- data/docs/RolesApi.md +30 -30
- data/docs/SigningServicesApi.md +10 -10
- data/docs/TaskGroupsApi.md +10 -10
- data/docs/TaskSchedulesApi.md +30 -30
- data/docs/TasksApi.md +95 -95
- data/docs/UploadsApi.md +50 -50
- data/docs/UsersApi.md +30 -30
- data/docs/UsersRolesApi.md +20 -20
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/access_policies_api.rb +31 -31
- data/lib/pulpcore_client/api/artifacts_api.rb +29 -29
- data/lib/pulpcore_client/api/content_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_api.rb +5 -5
- data/lib/pulpcore_client/api/contentguards_content_redirect_api.rb +63 -63
- data/lib/pulpcore_client/api/contentguards_rbac_api.rb +63 -63
- data/lib/pulpcore_client/api/distributions_api.rb +5 -5
- data/lib/pulpcore_client/api/distributions_artifacts_api.rb +11 -11
- data/lib/pulpcore_client/api/exporters_filesystem_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/exporters_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_api.rb +63 -63
- data/lib/pulpcore_client/api/groups_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/groups_users_api.rb +19 -19
- data/lib/pulpcore_client/api/importers_pulp_api.rb +37 -37
- data/lib/pulpcore_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulpcore_client/api/orphans_api.rb +5 -5
- data/lib/pulpcore_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulpcore_client/api/publications_api.rb +5 -5
- data/lib/pulpcore_client/api/remotes_api.rb +5 -5
- data/lib/pulpcore_client/api/repair_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +5 -5
- data/lib/pulpcore_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulpcore_client/api/repository_versions_api.rb +5 -5
- data/lib/pulpcore_client/api/roles_api.rb +37 -37
- data/lib/pulpcore_client/api/signing_services_api.rb +11 -11
- data/lib/pulpcore_client/api/task_groups_api.rb +11 -11
- data/lib/pulpcore_client/api/task_schedules_api.rb +37 -37
- data/lib/pulpcore_client/api/tasks_api.rb +119 -119
- data/lib/pulpcore_client/api/uploads_api.rb +65 -65
- data/lib/pulpcore_client/api/users_api.rb +37 -37
- data/lib/pulpcore_client/api/users_roles_api.rb +25 -25
- data/lib/pulpcore_client/api/workers_api.rb +11 -11
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +39 -39
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -2
- data/spec/api/access_policies_api_spec.rb +10 -10
- data/spec/api/artifacts_api_spec.rb +8 -8
- data/spec/api/content_api_spec.rb +2 -2
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_content_redirect_api_spec.rb +20 -20
- data/spec/api/contentguards_rbac_api_spec.rb +20 -20
- data/spec/api/distributions_api_spec.rb +2 -2
- data/spec/api/distributions_artifacts_api_spec.rb +4 -4
- data/spec/api/exporters_filesystem_api_spec.rb +12 -12
- data/spec/api/exporters_filesystem_exports_api_spec.rb +8 -8
- data/spec/api/exporters_pulp_api_spec.rb +12 -12
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +20 -20
- data/spec/api/groups_roles_api_spec.rb +8 -8
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +12 -12
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +2 -2
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +2 -2
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +2 -2
- data/spec/api/roles_api_spec.rb +12 -12
- data/spec/api/signing_services_api_spec.rb +4 -4
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +12 -12
- data/spec/api/tasks_api_spec.rb +29 -29
- data/spec/api/uploads_api_spec.rb +20 -20
- data/spec/api/users_api_spec.rb +12 -12
- data/spec/api/users_roles_api_spec.rb +8 -8
- data/spec/api/workers_api_spec.rb +4 -4
- data/spec/models/artifact_distribution_response_spec.rb +6 -6
- metadata +132 -140
- data/docs/DocsApiJsonApi.md +0 -61
- data/docs/DocsApiYamlApi.md +0 -61
- data/lib/pulpcore_client/api/docs_api_json_api.rb +0 -89
- data/lib/pulpcore_client/api/docs_api_yaml_api.rb +0 -89
- data/spec/api/docs_api_json_api_spec.rb +0 -48
- data/spec/api/docs_api_yaml_api_spec.rb +0 -48
data/docs/TasksApi.md
CHANGED
@@ -4,21 +4,21 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**add_role**](TasksApi.md#add_role) | **POST** {task_href}add_role/ |
|
8
|
+
[**delete**](TasksApi.md#delete) | **DELETE** {task_href} | Delete a task
|
9
|
+
[**list**](TasksApi.md#list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
10
|
+
[**list_roles**](TasksApi.md#list_roles) | **GET** {task_href}list_roles/ |
|
11
|
+
[**my_permissions**](TasksApi.md#my_permissions) | **GET** {task_href}my_permissions/ |
|
12
|
+
[**purge**](TasksApi.md#purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
|
13
|
+
[**read**](TasksApi.md#read) | **GET** {task_href} | Inspect a task
|
14
|
+
[**remove_role**](TasksApi.md#remove_role) | **POST** {task_href}remove_role/ |
|
8
15
|
[**tasks_cancel**](TasksApi.md#tasks_cancel) | **PATCH** {task_href} | Cancel a task
|
9
|
-
[**tasks_delete**](TasksApi.md#tasks_delete) | **DELETE** {task_href} | Delete a task
|
10
|
-
[**tasks_list**](TasksApi.md#tasks_list) | **GET** /pulp/api/v3/tasks/ | List tasks
|
11
|
-
[**tasks_list_roles**](TasksApi.md#tasks_list_roles) | **GET** {task_href}list_roles/ |
|
12
|
-
[**tasks_my_permissions**](TasksApi.md#tasks_my_permissions) | **GET** {task_href}my_permissions/ |
|
13
|
-
[**tasks_purge**](TasksApi.md#tasks_purge) | **POST** /pulp/api/v3/tasks/purge/ | Purge Completed Tasks
|
14
|
-
[**tasks_read**](TasksApi.md#tasks_read) | **GET** {task_href} | Inspect a task
|
15
|
-
[**tasks_remove_role**](TasksApi.md#tasks_remove_role) | **POST** {task_href}remove_role/ |
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
##
|
19
|
+
## add_role
|
20
20
|
|
21
|
-
> NestedRoleResponse
|
21
|
+
> NestedRoleResponse add_role(task_href, nested_role)
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -41,10 +41,10 @@ task_href = 'task_href_example' # String |
|
|
41
41
|
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
42
42
|
|
43
43
|
begin
|
44
|
-
result = api_instance.
|
44
|
+
result = api_instance.add_role(task_href, nested_role)
|
45
45
|
p result
|
46
46
|
rescue PulpcoreClient::ApiError => e
|
47
|
-
puts "Exception when calling TasksApi->
|
47
|
+
puts "Exception when calling TasksApi->add_role: #{e}"
|
48
48
|
end
|
49
49
|
```
|
50
50
|
|
@@ -70,64 +70,9 @@ Name | Type | Description | Notes
|
|
70
70
|
- **Accept**: application/json
|
71
71
|
|
72
72
|
|
73
|
-
##
|
74
|
-
|
75
|
-
> TaskResponse tasks_cancel(task_href, patched_task_cancel)
|
76
|
-
|
77
|
-
Cancel a task
|
78
|
-
|
79
|
-
This operation cancels a task.
|
80
|
-
|
81
|
-
### Example
|
82
|
-
|
83
|
-
```ruby
|
84
|
-
# load the gem
|
85
|
-
require 'pulpcore_client'
|
86
|
-
# setup authorization
|
87
|
-
PulpcoreClient.configure do |config|
|
88
|
-
# Configure HTTP basic authorization: basicAuth
|
89
|
-
config.username = 'YOUR USERNAME'
|
90
|
-
config.password = 'YOUR PASSWORD'
|
91
|
-
end
|
92
|
-
|
93
|
-
api_instance = PulpcoreClient::TasksApi.new
|
94
|
-
task_href = 'task_href_example' # String |
|
95
|
-
patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
|
96
|
-
|
97
|
-
begin
|
98
|
-
#Cancel a task
|
99
|
-
result = api_instance.tasks_cancel(task_href, patched_task_cancel)
|
100
|
-
p result
|
101
|
-
rescue PulpcoreClient::ApiError => e
|
102
|
-
puts "Exception when calling TasksApi->tasks_cancel: #{e}"
|
103
|
-
end
|
104
|
-
```
|
105
|
-
|
106
|
-
### Parameters
|
107
|
-
|
108
|
-
|
109
|
-
Name | Type | Description | Notes
|
110
|
-
------------- | ------------- | ------------- | -------------
|
111
|
-
**task_href** | **String**| |
|
112
|
-
**patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
|
113
|
-
|
114
|
-
### Return type
|
115
|
-
|
116
|
-
[**TaskResponse**](TaskResponse.md)
|
117
|
-
|
118
|
-
### Authorization
|
119
|
-
|
120
|
-
[basicAuth](../README.md#basicAuth)
|
121
|
-
|
122
|
-
### HTTP request headers
|
123
|
-
|
124
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
125
|
-
- **Accept**: application/json
|
126
|
-
|
127
|
-
|
128
|
-
## tasks_delete
|
73
|
+
## delete
|
129
74
|
|
130
|
-
>
|
75
|
+
> delete(task_href)
|
131
76
|
|
132
77
|
Delete a task
|
133
78
|
|
@@ -150,9 +95,9 @@ task_href = 'task_href_example' # String |
|
|
150
95
|
|
151
96
|
begin
|
152
97
|
#Delete a task
|
153
|
-
api_instance.
|
98
|
+
api_instance.delete(task_href)
|
154
99
|
rescue PulpcoreClient::ApiError => e
|
155
|
-
puts "Exception when calling TasksApi->
|
100
|
+
puts "Exception when calling TasksApi->delete: #{e}"
|
156
101
|
end
|
157
102
|
```
|
158
103
|
|
@@ -177,9 +122,9 @@ nil (empty response body)
|
|
177
122
|
- **Accept**: Not defined
|
178
123
|
|
179
124
|
|
180
|
-
##
|
125
|
+
## list
|
181
126
|
|
182
|
-
> PaginatedTaskResponseList
|
127
|
+
> PaginatedTaskResponseList list(opts)
|
183
128
|
|
184
129
|
List tasks
|
185
130
|
|
@@ -240,10 +185,10 @@ opts = {
|
|
240
185
|
|
241
186
|
begin
|
242
187
|
#List tasks
|
243
|
-
result = api_instance.
|
188
|
+
result = api_instance.list(opts)
|
244
189
|
p result
|
245
190
|
rescue PulpcoreClient::ApiError => e
|
246
|
-
puts "Exception when calling TasksApi->
|
191
|
+
puts "Exception when calling TasksApi->list: #{e}"
|
247
192
|
end
|
248
193
|
```
|
249
194
|
|
@@ -304,9 +249,9 @@ Name | Type | Description | Notes
|
|
304
249
|
- **Accept**: application/json
|
305
250
|
|
306
251
|
|
307
|
-
##
|
252
|
+
## list_roles
|
308
253
|
|
309
|
-
> ObjectRolesResponse
|
254
|
+
> ObjectRolesResponse list_roles(task_href, opts)
|
310
255
|
|
311
256
|
|
312
257
|
|
@@ -332,10 +277,10 @@ opts = {
|
|
332
277
|
}
|
333
278
|
|
334
279
|
begin
|
335
|
-
result = api_instance.
|
280
|
+
result = api_instance.list_roles(task_href, opts)
|
336
281
|
p result
|
337
282
|
rescue PulpcoreClient::ApiError => e
|
338
|
-
puts "Exception when calling TasksApi->
|
283
|
+
puts "Exception when calling TasksApi->list_roles: #{e}"
|
339
284
|
end
|
340
285
|
```
|
341
286
|
|
@@ -362,9 +307,9 @@ Name | Type | Description | Notes
|
|
362
307
|
- **Accept**: application/json
|
363
308
|
|
364
309
|
|
365
|
-
##
|
310
|
+
## my_permissions
|
366
311
|
|
367
|
-
> MyPermissionsResponse
|
312
|
+
> MyPermissionsResponse my_permissions(task_href, opts)
|
368
313
|
|
369
314
|
|
370
315
|
|
@@ -390,10 +335,10 @@ opts = {
|
|
390
335
|
}
|
391
336
|
|
392
337
|
begin
|
393
|
-
result = api_instance.
|
338
|
+
result = api_instance.my_permissions(task_href, opts)
|
394
339
|
p result
|
395
340
|
rescue PulpcoreClient::ApiError => e
|
396
|
-
puts "Exception when calling TasksApi->
|
341
|
+
puts "Exception when calling TasksApi->my_permissions: #{e}"
|
397
342
|
end
|
398
343
|
```
|
399
344
|
|
@@ -420,9 +365,9 @@ Name | Type | Description | Notes
|
|
420
365
|
- **Accept**: application/json
|
421
366
|
|
422
367
|
|
423
|
-
##
|
368
|
+
## purge
|
424
369
|
|
425
|
-
> AsyncOperationResponse
|
370
|
+
> AsyncOperationResponse purge(purge)
|
426
371
|
|
427
372
|
Purge Completed Tasks
|
428
373
|
|
@@ -445,10 +390,10 @@ purge = PulpcoreClient::Purge.new # Purge |
|
|
445
390
|
|
446
391
|
begin
|
447
392
|
#Purge Completed Tasks
|
448
|
-
result = api_instance.
|
393
|
+
result = api_instance.purge(purge)
|
449
394
|
p result
|
450
395
|
rescue PulpcoreClient::ApiError => e
|
451
|
-
puts "Exception when calling TasksApi->
|
396
|
+
puts "Exception when calling TasksApi->purge: #{e}"
|
452
397
|
end
|
453
398
|
```
|
454
399
|
|
@@ -473,9 +418,9 @@ Name | Type | Description | Notes
|
|
473
418
|
- **Accept**: application/json
|
474
419
|
|
475
420
|
|
476
|
-
##
|
421
|
+
## read
|
477
422
|
|
478
|
-
> TaskResponse
|
423
|
+
> TaskResponse read(task_href, opts)
|
479
424
|
|
480
425
|
Inspect a task
|
481
426
|
|
@@ -502,10 +447,10 @@ opts = {
|
|
502
447
|
|
503
448
|
begin
|
504
449
|
#Inspect a task
|
505
|
-
result = api_instance.
|
450
|
+
result = api_instance.read(task_href, opts)
|
506
451
|
p result
|
507
452
|
rescue PulpcoreClient::ApiError => e
|
508
|
-
puts "Exception when calling TasksApi->
|
453
|
+
puts "Exception when calling TasksApi->read: #{e}"
|
509
454
|
end
|
510
455
|
```
|
511
456
|
|
@@ -532,9 +477,9 @@ Name | Type | Description | Notes
|
|
532
477
|
- **Accept**: application/json
|
533
478
|
|
534
479
|
|
535
|
-
##
|
480
|
+
## remove_role
|
536
481
|
|
537
|
-
> NestedRoleResponse
|
482
|
+
> NestedRoleResponse remove_role(task_href, nested_role)
|
538
483
|
|
539
484
|
|
540
485
|
|
@@ -557,10 +502,10 @@ task_href = 'task_href_example' # String |
|
|
557
502
|
nested_role = PulpcoreClient::NestedRole.new # NestedRole |
|
558
503
|
|
559
504
|
begin
|
560
|
-
result = api_instance.
|
505
|
+
result = api_instance.remove_role(task_href, nested_role)
|
561
506
|
p result
|
562
507
|
rescue PulpcoreClient::ApiError => e
|
563
|
-
puts "Exception when calling TasksApi->
|
508
|
+
puts "Exception when calling TasksApi->remove_role: #{e}"
|
564
509
|
end
|
565
510
|
```
|
566
511
|
|
@@ -585,3 +530,58 @@ Name | Type | Description | Notes
|
|
585
530
|
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
586
531
|
- **Accept**: application/json
|
587
532
|
|
533
|
+
|
534
|
+
## tasks_cancel
|
535
|
+
|
536
|
+
> TaskResponse tasks_cancel(task_href, patched_task_cancel)
|
537
|
+
|
538
|
+
Cancel a task
|
539
|
+
|
540
|
+
This operation cancels a task.
|
541
|
+
|
542
|
+
### Example
|
543
|
+
|
544
|
+
```ruby
|
545
|
+
# load the gem
|
546
|
+
require 'pulpcore_client'
|
547
|
+
# setup authorization
|
548
|
+
PulpcoreClient.configure do |config|
|
549
|
+
# Configure HTTP basic authorization: basicAuth
|
550
|
+
config.username = 'YOUR USERNAME'
|
551
|
+
config.password = 'YOUR PASSWORD'
|
552
|
+
end
|
553
|
+
|
554
|
+
api_instance = PulpcoreClient::TasksApi.new
|
555
|
+
task_href = 'task_href_example' # String |
|
556
|
+
patched_task_cancel = PulpcoreClient::PatchedTaskCancel.new # PatchedTaskCancel |
|
557
|
+
|
558
|
+
begin
|
559
|
+
#Cancel a task
|
560
|
+
result = api_instance.tasks_cancel(task_href, patched_task_cancel)
|
561
|
+
p result
|
562
|
+
rescue PulpcoreClient::ApiError => e
|
563
|
+
puts "Exception when calling TasksApi->tasks_cancel: #{e}"
|
564
|
+
end
|
565
|
+
```
|
566
|
+
|
567
|
+
### Parameters
|
568
|
+
|
569
|
+
|
570
|
+
Name | Type | Description | Notes
|
571
|
+
------------- | ------------- | ------------- | -------------
|
572
|
+
**task_href** | **String**| |
|
573
|
+
**patched_task_cancel** | [**PatchedTaskCancel**](PatchedTaskCancel.md)| |
|
574
|
+
|
575
|
+
### Return type
|
576
|
+
|
577
|
+
[**TaskResponse**](TaskResponse.md)
|
578
|
+
|
579
|
+
### Authorization
|
580
|
+
|
581
|
+
[basicAuth](../README.md#basicAuth)
|
582
|
+
|
583
|
+
### HTTP request headers
|
584
|
+
|
585
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
586
|
+
- **Accept**: application/json
|
587
|
+
|
data/docs/UploadsApi.md
CHANGED
@@ -4,22 +4,22 @@ All URIs are relative to *http://localhost:24817*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
[**
|
12
|
-
[**
|
13
|
-
[**
|
14
|
-
[**
|
15
|
-
[**
|
16
|
-
[**
|
7
|
+
[**add_role**](UploadsApi.md#add_role) | **POST** {upload_href}add_role/ |
|
8
|
+
[**commit**](UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
|
9
|
+
[**create**](UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
|
10
|
+
[**delete**](UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
|
11
|
+
[**list**](UploadsApi.md#list) | **GET** /pulp/api/v3/uploads/ | List uploads
|
12
|
+
[**list_roles**](UploadsApi.md#list_roles) | **GET** {upload_href}list_roles/ |
|
13
|
+
[**my_permissions**](UploadsApi.md#my_permissions) | **GET** {upload_href}my_permissions/ |
|
14
|
+
[**read**](UploadsApi.md#read) | **GET** {upload_href} | Inspect an upload
|
15
|
+
[**remove_role**](UploadsApi.md#remove_role) | **POST** {upload_href}remove_role/ |
|
16
|
+
[**update**](UploadsApi.md#update) | **PUT** {upload_href} | Upload a file chunk
|
17
17
|
|
18
18
|
|
19
19
|
|
20
|
-
##
|
20
|
+
## add_role
|
21
21
|
|
22
|
-
> NestedRoleResponse
|
22
|
+
> NestedRoleResponse add_role(upload_href, upload)
|
23
23
|
|
24
24
|
|
25
25
|
|
@@ -42,10 +42,10 @@ upload_href = 'upload_href_example' # String |
|
|
42
42
|
upload = PulpcoreClient::Upload.new # Upload |
|
43
43
|
|
44
44
|
begin
|
45
|
-
result = api_instance.
|
45
|
+
result = api_instance.add_role(upload_href, upload)
|
46
46
|
p result
|
47
47
|
rescue PulpcoreClient::ApiError => e
|
48
|
-
puts "Exception when calling UploadsApi->
|
48
|
+
puts "Exception when calling UploadsApi->add_role: #{e}"
|
49
49
|
end
|
50
50
|
```
|
51
51
|
|
@@ -71,9 +71,9 @@ Name | Type | Description | Notes
|
|
71
71
|
- **Accept**: application/json
|
72
72
|
|
73
73
|
|
74
|
-
##
|
74
|
+
## commit
|
75
75
|
|
76
|
-
> AsyncOperationResponse
|
76
|
+
> AsyncOperationResponse commit(upload_href, upload_commit)
|
77
77
|
|
78
78
|
Finish an Upload
|
79
79
|
|
@@ -97,10 +97,10 @@ upload_commit = PulpcoreClient::UploadCommit.new # UploadCommit |
|
|
97
97
|
|
98
98
|
begin
|
99
99
|
#Finish an Upload
|
100
|
-
result = api_instance.
|
100
|
+
result = api_instance.commit(upload_href, upload_commit)
|
101
101
|
p result
|
102
102
|
rescue PulpcoreClient::ApiError => e
|
103
|
-
puts "Exception when calling UploadsApi->
|
103
|
+
puts "Exception when calling UploadsApi->commit: #{e}"
|
104
104
|
end
|
105
105
|
```
|
106
106
|
|
@@ -126,9 +126,9 @@ Name | Type | Description | Notes
|
|
126
126
|
- **Accept**: application/json
|
127
127
|
|
128
128
|
|
129
|
-
##
|
129
|
+
## create
|
130
130
|
|
131
|
-
> UploadResponse
|
131
|
+
> UploadResponse create(upload)
|
132
132
|
|
133
133
|
Create an upload
|
134
134
|
|
@@ -151,10 +151,10 @@ upload = PulpcoreClient::Upload.new # Upload |
|
|
151
151
|
|
152
152
|
begin
|
153
153
|
#Create an upload
|
154
|
-
result = api_instance.
|
154
|
+
result = api_instance.create(upload)
|
155
155
|
p result
|
156
156
|
rescue PulpcoreClient::ApiError => e
|
157
|
-
puts "Exception when calling UploadsApi->
|
157
|
+
puts "Exception when calling UploadsApi->create: #{e}"
|
158
158
|
end
|
159
159
|
```
|
160
160
|
|
@@ -179,9 +179,9 @@ Name | Type | Description | Notes
|
|
179
179
|
- **Accept**: application/json
|
180
180
|
|
181
181
|
|
182
|
-
##
|
182
|
+
## delete
|
183
183
|
|
184
|
-
>
|
184
|
+
> delete(upload_href)
|
185
185
|
|
186
186
|
Delete an upload
|
187
187
|
|
@@ -204,9 +204,9 @@ upload_href = 'upload_href_example' # String |
|
|
204
204
|
|
205
205
|
begin
|
206
206
|
#Delete an upload
|
207
|
-
api_instance.
|
207
|
+
api_instance.delete(upload_href)
|
208
208
|
rescue PulpcoreClient::ApiError => e
|
209
|
-
puts "Exception when calling UploadsApi->
|
209
|
+
puts "Exception when calling UploadsApi->delete: #{e}"
|
210
210
|
end
|
211
211
|
```
|
212
212
|
|
@@ -231,9 +231,9 @@ nil (empty response body)
|
|
231
231
|
- **Accept**: Not defined
|
232
232
|
|
233
233
|
|
234
|
-
##
|
234
|
+
## list
|
235
235
|
|
236
|
-
> PaginatedUploadResponseList
|
236
|
+
> PaginatedUploadResponseList list(opts)
|
237
237
|
|
238
238
|
List uploads
|
239
239
|
|
@@ -266,10 +266,10 @@ opts = {
|
|
266
266
|
|
267
267
|
begin
|
268
268
|
#List uploads
|
269
|
-
result = api_instance.
|
269
|
+
result = api_instance.list(opts)
|
270
270
|
p result
|
271
271
|
rescue PulpcoreClient::ApiError => e
|
272
|
-
puts "Exception when calling UploadsApi->
|
272
|
+
puts "Exception when calling UploadsApi->list: #{e}"
|
273
273
|
end
|
274
274
|
```
|
275
275
|
|
@@ -302,9 +302,9 @@ Name | Type | Description | Notes
|
|
302
302
|
- **Accept**: application/json
|
303
303
|
|
304
304
|
|
305
|
-
##
|
305
|
+
## list_roles
|
306
306
|
|
307
|
-
> ObjectRolesResponse
|
307
|
+
> ObjectRolesResponse list_roles(upload_href, opts)
|
308
308
|
|
309
309
|
|
310
310
|
|
@@ -330,10 +330,10 @@ opts = {
|
|
330
330
|
}
|
331
331
|
|
332
332
|
begin
|
333
|
-
result = api_instance.
|
333
|
+
result = api_instance.list_roles(upload_href, opts)
|
334
334
|
p result
|
335
335
|
rescue PulpcoreClient::ApiError => e
|
336
|
-
puts "Exception when calling UploadsApi->
|
336
|
+
puts "Exception when calling UploadsApi->list_roles: #{e}"
|
337
337
|
end
|
338
338
|
```
|
339
339
|
|
@@ -360,9 +360,9 @@ Name | Type | Description | Notes
|
|
360
360
|
- **Accept**: application/json
|
361
361
|
|
362
362
|
|
363
|
-
##
|
363
|
+
## my_permissions
|
364
364
|
|
365
|
-
> MyPermissionsResponse
|
365
|
+
> MyPermissionsResponse my_permissions(upload_href, opts)
|
366
366
|
|
367
367
|
|
368
368
|
|
@@ -388,10 +388,10 @@ opts = {
|
|
388
388
|
}
|
389
389
|
|
390
390
|
begin
|
391
|
-
result = api_instance.
|
391
|
+
result = api_instance.my_permissions(upload_href, opts)
|
392
392
|
p result
|
393
393
|
rescue PulpcoreClient::ApiError => e
|
394
|
-
puts "Exception when calling UploadsApi->
|
394
|
+
puts "Exception when calling UploadsApi->my_permissions: #{e}"
|
395
395
|
end
|
396
396
|
```
|
397
397
|
|
@@ -418,9 +418,9 @@ Name | Type | Description | Notes
|
|
418
418
|
- **Accept**: application/json
|
419
419
|
|
420
420
|
|
421
|
-
##
|
421
|
+
## read
|
422
422
|
|
423
|
-
> UploadDetailResponse
|
423
|
+
> UploadDetailResponse read(upload_href, opts)
|
424
424
|
|
425
425
|
Inspect an upload
|
426
426
|
|
@@ -447,10 +447,10 @@ opts = {
|
|
447
447
|
|
448
448
|
begin
|
449
449
|
#Inspect an upload
|
450
|
-
result = api_instance.
|
450
|
+
result = api_instance.read(upload_href, opts)
|
451
451
|
p result
|
452
452
|
rescue PulpcoreClient::ApiError => e
|
453
|
-
puts "Exception when calling UploadsApi->
|
453
|
+
puts "Exception when calling UploadsApi->read: #{e}"
|
454
454
|
end
|
455
455
|
```
|
456
456
|
|
@@ -477,9 +477,9 @@ Name | Type | Description | Notes
|
|
477
477
|
- **Accept**: application/json
|
478
478
|
|
479
479
|
|
480
|
-
##
|
480
|
+
## remove_role
|
481
481
|
|
482
|
-
> NestedRoleResponse
|
482
|
+
> NestedRoleResponse remove_role(upload_href, upload)
|
483
483
|
|
484
484
|
|
485
485
|
|
@@ -502,10 +502,10 @@ upload_href = 'upload_href_example' # String |
|
|
502
502
|
upload = PulpcoreClient::Upload.new # Upload |
|
503
503
|
|
504
504
|
begin
|
505
|
-
result = api_instance.
|
505
|
+
result = api_instance.remove_role(upload_href, upload)
|
506
506
|
p result
|
507
507
|
rescue PulpcoreClient::ApiError => e
|
508
|
-
puts "Exception when calling UploadsApi->
|
508
|
+
puts "Exception when calling UploadsApi->remove_role: #{e}"
|
509
509
|
end
|
510
510
|
```
|
511
511
|
|
@@ -531,9 +531,9 @@ Name | Type | Description | Notes
|
|
531
531
|
- **Accept**: application/json
|
532
532
|
|
533
533
|
|
534
|
-
##
|
534
|
+
## update
|
535
535
|
|
536
|
-
> UploadResponse
|
536
|
+
> UploadResponse update(content_range, upload_href, file, opts)
|
537
537
|
|
538
538
|
Upload a file chunk
|
539
539
|
|
@@ -561,10 +561,10 @@ opts = {
|
|
561
561
|
|
562
562
|
begin
|
563
563
|
#Upload a file chunk
|
564
|
-
result = api_instance.
|
564
|
+
result = api_instance.update(content_range, upload_href, file, opts)
|
565
565
|
p result
|
566
566
|
rescue PulpcoreClient::ApiError => e
|
567
|
-
puts "Exception when calling UploadsApi->
|
567
|
+
puts "Exception when calling UploadsApi->update: #{e}"
|
568
568
|
end
|
569
569
|
```
|
570
570
|
|