pulpcore_client 3.20.0 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -84
- data/docs/ContentApi.md +1 -115
- data/docs/ContentguardsApi.md +1 -280
- data/docs/DistributionsApi.md +3 -281
- data/docs/PublicationsApi.md +0 -113
- data/docs/PulpImport.md +3 -1
- data/docs/RemotesApi.md +0 -280
- data/docs/RepositoriesApi.md +3 -281
- data/docs/UploadsApi.md +228 -0
- data/lib/pulpcore_client/api/content_api.rb +2 -134
- data/lib/pulpcore_client/api/contentguards_api.rb +2 -334
- data/lib/pulpcore_client/api/distributions_api.rb +5 -336
- data/lib/pulpcore_client/api/publications_api.rb +0 -128
- data/lib/pulpcore_client/api/remotes_api.rb +0 -334
- data/lib/pulpcore_client/api/repositories_api.rb +5 -336
- data/lib/pulpcore_client/api/repository_versions_api.rb +1 -1
- data/lib/pulpcore_client/api/uploads_api.rb +268 -0
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/models/pulp_import.rb +16 -4
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +0 -31
- data/pulpcore_client.gemspec +3 -3
- data/spec/api/content_api_spec.rb +1 -27
- data/spec/api/contentguards_api_spec.rb +1 -65
- data/spec/api/distributions_api_spec.rb +2 -65
- data/spec/api/publications_api_spec.rb +0 -26
- data/spec/api/remotes_api_spec.rb +0 -64
- data/spec/api/repositories_api_spec.rb +2 -65
- data/spec/api/uploads_api_spec.rb +50 -0
- data/spec/models/pulp_import_spec.rb +6 -0
- metadata +136 -261
- data/docs/AcsApi.md +0 -417
- data/docs/AlternateContentSource.md +0 -23
- data/docs/AlternateContentSourceResponse.md +0 -27
- data/docs/ContentGuard.md +0 -19
- data/docs/Distribution.md +0 -25
- data/docs/Export.md +0 -17
- data/docs/ExportResponse.md +0 -25
- data/docs/Exporter.md +0 -17
- data/docs/ExporterResponse.md +0 -21
- data/docs/ExportersApi.md +0 -362
- data/docs/ExportersExportsApi.md +0 -241
- data/docs/Import.md +0 -19
- data/docs/Importer.md +0 -17
- data/docs/ImporterResponse.md +0 -21
- data/docs/ImportersApi.md +0 -361
- data/docs/ImportersImportsApi.md +0 -241
- data/docs/MultipleArtifactContent.md +0 -17
- data/docs/PaginatedAlternateContentSourceResponseList.md +0 -23
- data/docs/PaginatedExportResponseList.md +0 -23
- data/docs/PaginatedExporterResponseList.md +0 -23
- data/docs/PaginatedImporterResponseList.md +0 -23
- data/docs/PatchedAlternateContentSource.md +0 -23
- data/docs/PatchedContentGuard.md +0 -19
- data/docs/PatchedDistribution.md +0 -25
- data/docs/PatchedExporter.md +0 -17
- data/docs/PatchedImporter.md +0 -17
- data/docs/PatchedRemote.md +0 -57
- data/docs/PatchedRepository.md +0 -25
- data/docs/Remote.md +0 -57
- data/docs/RepositoriesVersionsApi.md +0 -271
- data/docs/Repository.md +0 -25
- data/git_push.sh +0 -58
- data/lib/pulpcore_client/api/acs_api.rb +0 -514
- data/lib/pulpcore_client/api/exporters_api.rb +0 -446
- data/lib/pulpcore_client/api/exporters_exports_api.rb +0 -294
- data/lib/pulpcore_client/api/importers_api.rb +0 -444
- data/lib/pulpcore_client/api/importers_imports_api.rb +0 -294
- data/lib/pulpcore_client/api/repositories_versions_api.rb +0 -343
- data/lib/pulpcore_client/models/alternate_content_source.rb +0 -270
- data/lib/pulpcore_client/models/alternate_content_source_response.rb +0 -270
- data/lib/pulpcore_client/models/content_guard.rb +0 -258
- data/lib/pulpcore_client/models/distribution.rb +0 -297
- data/lib/pulpcore_client/models/export.rb +0 -209
- data/lib/pulpcore_client/models/export_response.rb +0 -250
- data/lib/pulpcore_client/models/exporter.rb +0 -232
- data/lib/pulpcore_client/models/exporter_response.rb +0 -232
- data/lib/pulpcore_client/models/import.rb +0 -228
- data/lib/pulpcore_client/models/importer.rb +0 -232
- data/lib/pulpcore_client/models/importer_response.rb +0 -232
- data/lib/pulpcore_client/models/multiple_artifact_content.rb +0 -213
- data/lib/pulpcore_client/models/paginated_alternate_content_source_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_export_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_exporter_response_list.rb +0 -237
- data/lib/pulpcore_client/models/paginated_importer_response_list.rb +0 -237
- data/lib/pulpcore_client/models/patched_alternate_content_source.rb +0 -256
- data/lib/pulpcore_client/models/patched_content_guard.rb +0 -249
- data/lib/pulpcore_client/models/patched_distribution.rb +0 -279
- data/lib/pulpcore_client/models/patched_exporter.rb +0 -223
- data/lib/pulpcore_client/models/patched_importer.rb +0 -223
- data/lib/pulpcore_client/models/patched_remote.rb +0 -649
- data/lib/pulpcore_client/models/patched_repository.rb +0 -295
- data/lib/pulpcore_client/models/remote.rb +0 -667
- data/lib/pulpcore_client/models/repository.rb +0 -304
- data/spec/api/acs_api_spec.rb +0 -132
- data/spec/api/exporters_api_spec.rb +0 -120
- data/spec/api/exporters_exports_api_spec.rb +0 -90
- data/spec/api/importers_api_spec.rb +0 -120
- data/spec/api/importers_imports_api_spec.rb +0 -90
- data/spec/api/repositories_versions_api_spec.rb +0 -104
- data/spec/models/alternate_content_source_response_spec.rb +0 -71
- data/spec/models/alternate_content_source_spec.rb +0 -59
- data/spec/models/content_guard_spec.rb +0 -47
- data/spec/models/distribution_spec.rb +0 -65
- data/spec/models/export_response_spec.rb +0 -65
- data/spec/models/export_spec.rb +0 -41
- data/spec/models/exporter_response_spec.rb +0 -53
- data/spec/models/exporter_spec.rb +0 -41
- data/spec/models/import_spec.rb +0 -47
- data/spec/models/importer_response_spec.rb +0 -53
- data/spec/models/importer_spec.rb +0 -41
- data/spec/models/multiple_artifact_content_spec.rb +0 -41
- data/spec/models/paginated_alternate_content_source_response_list_spec.rb +0 -59
- data/spec/models/paginated_export_response_list_spec.rb +0 -59
- data/spec/models/paginated_exporter_response_list_spec.rb +0 -59
- data/spec/models/paginated_importer_response_list_spec.rb +0 -59
- data/spec/models/patched_alternate_content_source_spec.rb +0 -59
- data/spec/models/patched_content_guard_spec.rb +0 -47
- data/spec/models/patched_distribution_spec.rb +0 -65
- data/spec/models/patched_exporter_spec.rb +0 -41
- data/spec/models/patched_importer_spec.rb +0 -41
- data/spec/models/patched_remote_spec.rb +0 -161
- data/spec/models/patched_repository_spec.rb +0 -65
- data/spec/models/remote_spec.rb +0 -161
- data/spec/models/repository_spec.rb +0 -65
data/docs/RepositoriesApi.md
CHANGED
|
@@ -4,128 +4,17 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**create**](RepositoriesApi.md#create) | **POST** /pulp/api/v3/repositories/ | Create a repository
|
|
8
|
-
[**delete**](RepositoriesApi.md#delete) | **DELETE** {repository_href} | Delete a repository
|
|
9
7
|
[**list**](RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
|
|
10
|
-
[**partial_update**](RepositoriesApi.md#partial_update) | **PATCH** {repository_href} | Update a repository
|
|
11
|
-
[**read**](RepositoriesApi.md#read) | **GET** {repository_href} | Inspect a repository
|
|
12
|
-
[**update**](RepositoriesApi.md#update) | **PUT** {repository_href} | Update a repository
|
|
13
8
|
|
|
14
9
|
|
|
15
10
|
|
|
16
|
-
## create
|
|
17
|
-
|
|
18
|
-
> RepositoryResponse create(repository)
|
|
19
|
-
|
|
20
|
-
Create a repository
|
|
21
|
-
|
|
22
|
-
An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
23
|
-
|
|
24
|
-
### Example
|
|
25
|
-
|
|
26
|
-
```ruby
|
|
27
|
-
# load the gem
|
|
28
|
-
require 'pulpcore_client'
|
|
29
|
-
# setup authorization
|
|
30
|
-
PulpcoreClient.configure do |config|
|
|
31
|
-
# Configure HTTP basic authorization: basicAuth
|
|
32
|
-
config.username = 'YOUR USERNAME'
|
|
33
|
-
config.password = 'YOUR PASSWORD'
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
|
37
|
-
repository = PulpcoreClient::Repository.new # Repository |
|
|
38
|
-
|
|
39
|
-
begin
|
|
40
|
-
#Create a repository
|
|
41
|
-
result = api_instance.create(repository)
|
|
42
|
-
p result
|
|
43
|
-
rescue PulpcoreClient::ApiError => e
|
|
44
|
-
puts "Exception when calling RepositoriesApi->create: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Name | Type | Description | Notes
|
|
52
|
-
------------- | ------------- | ------------- | -------------
|
|
53
|
-
**repository** | [**Repository**](Repository.md)| |
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
[**RepositoryResponse**](RepositoryResponse.md)
|
|
58
|
-
|
|
59
|
-
### Authorization
|
|
60
|
-
|
|
61
|
-
[basicAuth](../README.md#basicAuth)
|
|
62
|
-
|
|
63
|
-
### HTTP request headers
|
|
64
|
-
|
|
65
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
66
|
-
- **Accept**: application/json
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
## delete
|
|
70
|
-
|
|
71
|
-
> AsyncOperationResponse delete(repository_href)
|
|
72
|
-
|
|
73
|
-
Delete a repository
|
|
74
|
-
|
|
75
|
-
Trigger an asynchronous delete task
|
|
76
|
-
|
|
77
|
-
### Example
|
|
78
|
-
|
|
79
|
-
```ruby
|
|
80
|
-
# load the gem
|
|
81
|
-
require 'pulpcore_client'
|
|
82
|
-
# setup authorization
|
|
83
|
-
PulpcoreClient.configure do |config|
|
|
84
|
-
# Configure HTTP basic authorization: basicAuth
|
|
85
|
-
config.username = 'YOUR USERNAME'
|
|
86
|
-
config.password = 'YOUR PASSWORD'
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
|
90
|
-
repository_href = 'repository_href_example' # String |
|
|
91
|
-
|
|
92
|
-
begin
|
|
93
|
-
#Delete a repository
|
|
94
|
-
result = api_instance.delete(repository_href)
|
|
95
|
-
p result
|
|
96
|
-
rescue PulpcoreClient::ApiError => e
|
|
97
|
-
puts "Exception when calling RepositoriesApi->delete: #{e}"
|
|
98
|
-
end
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Parameters
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Name | Type | Description | Notes
|
|
105
|
-
------------- | ------------- | ------------- | -------------
|
|
106
|
-
**repository_href** | **String**| |
|
|
107
|
-
|
|
108
|
-
### Return type
|
|
109
|
-
|
|
110
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
111
|
-
|
|
112
|
-
### Authorization
|
|
113
|
-
|
|
114
|
-
[basicAuth](../README.md#basicAuth)
|
|
115
|
-
|
|
116
|
-
### HTTP request headers
|
|
117
|
-
|
|
118
|
-
- **Content-Type**: Not defined
|
|
119
|
-
- **Accept**: application/json
|
|
120
|
-
|
|
121
|
-
|
|
122
11
|
## list
|
|
123
12
|
|
|
124
13
|
> PaginatedRepositoryResponseList list(opts)
|
|
125
14
|
|
|
126
15
|
List repositories
|
|
127
16
|
|
|
128
|
-
|
|
17
|
+
Endpoint to list all repositories.
|
|
129
18
|
|
|
130
19
|
### Example
|
|
131
20
|
|
|
@@ -150,6 +39,7 @@ opts = {
|
|
|
150
39
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
151
40
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
152
41
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
42
|
+
remote: 'remote_example', # String | Foreign Key referenced by HREF
|
|
153
43
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
154
44
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
155
45
|
}
|
|
@@ -177,6 +67,7 @@ Name | Type | Description | Notes
|
|
|
177
67
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
178
68
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
179
69
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
70
|
+
**remote** | [**String**](.md)| Foreign Key referenced by HREF | [optional]
|
|
180
71
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
181
72
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
182
73
|
|
|
@@ -193,172 +84,3 @@ Name | Type | Description | Notes
|
|
|
193
84
|
- **Content-Type**: Not defined
|
|
194
85
|
- **Accept**: application/json
|
|
195
86
|
|
|
196
|
-
|
|
197
|
-
## partial_update
|
|
198
|
-
|
|
199
|
-
> AsyncOperationResponse partial_update(repository_href, patched_repository)
|
|
200
|
-
|
|
201
|
-
Update a repository
|
|
202
|
-
|
|
203
|
-
Trigger an asynchronous partial update task
|
|
204
|
-
|
|
205
|
-
### Example
|
|
206
|
-
|
|
207
|
-
```ruby
|
|
208
|
-
# load the gem
|
|
209
|
-
require 'pulpcore_client'
|
|
210
|
-
# setup authorization
|
|
211
|
-
PulpcoreClient.configure do |config|
|
|
212
|
-
# Configure HTTP basic authorization: basicAuth
|
|
213
|
-
config.username = 'YOUR USERNAME'
|
|
214
|
-
config.password = 'YOUR PASSWORD'
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
|
218
|
-
repository_href = 'repository_href_example' # String |
|
|
219
|
-
patched_repository = PulpcoreClient::PatchedRepository.new # PatchedRepository |
|
|
220
|
-
|
|
221
|
-
begin
|
|
222
|
-
#Update a repository
|
|
223
|
-
result = api_instance.partial_update(repository_href, patched_repository)
|
|
224
|
-
p result
|
|
225
|
-
rescue PulpcoreClient::ApiError => e
|
|
226
|
-
puts "Exception when calling RepositoriesApi->partial_update: #{e}"
|
|
227
|
-
end
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
### Parameters
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
Name | Type | Description | Notes
|
|
234
|
-
------------- | ------------- | ------------- | -------------
|
|
235
|
-
**repository_href** | **String**| |
|
|
236
|
-
**patched_repository** | [**PatchedRepository**](PatchedRepository.md)| |
|
|
237
|
-
|
|
238
|
-
### Return type
|
|
239
|
-
|
|
240
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
241
|
-
|
|
242
|
-
### Authorization
|
|
243
|
-
|
|
244
|
-
[basicAuth](../README.md#basicAuth)
|
|
245
|
-
|
|
246
|
-
### HTTP request headers
|
|
247
|
-
|
|
248
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
249
|
-
- **Accept**: application/json
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
## read
|
|
253
|
-
|
|
254
|
-
> RepositoryResponse read(repository_href, opts)
|
|
255
|
-
|
|
256
|
-
Inspect a repository
|
|
257
|
-
|
|
258
|
-
An immutable repository ViewSet that does not allow the usage of the methods PATCH and PUT.
|
|
259
|
-
|
|
260
|
-
### Example
|
|
261
|
-
|
|
262
|
-
```ruby
|
|
263
|
-
# load the gem
|
|
264
|
-
require 'pulpcore_client'
|
|
265
|
-
# setup authorization
|
|
266
|
-
PulpcoreClient.configure do |config|
|
|
267
|
-
# Configure HTTP basic authorization: basicAuth
|
|
268
|
-
config.username = 'YOUR USERNAME'
|
|
269
|
-
config.password = 'YOUR PASSWORD'
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
|
273
|
-
repository_href = 'repository_href_example' # String |
|
|
274
|
-
opts = {
|
|
275
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
276
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
begin
|
|
280
|
-
#Inspect a repository
|
|
281
|
-
result = api_instance.read(repository_href, opts)
|
|
282
|
-
p result
|
|
283
|
-
rescue PulpcoreClient::ApiError => e
|
|
284
|
-
puts "Exception when calling RepositoriesApi->read: #{e}"
|
|
285
|
-
end
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### Parameters
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
Name | Type | Description | Notes
|
|
292
|
-
------------- | ------------- | ------------- | -------------
|
|
293
|
-
**repository_href** | **String**| |
|
|
294
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
295
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
296
|
-
|
|
297
|
-
### Return type
|
|
298
|
-
|
|
299
|
-
[**RepositoryResponse**](RepositoryResponse.md)
|
|
300
|
-
|
|
301
|
-
### Authorization
|
|
302
|
-
|
|
303
|
-
[basicAuth](../README.md#basicAuth)
|
|
304
|
-
|
|
305
|
-
### HTTP request headers
|
|
306
|
-
|
|
307
|
-
- **Content-Type**: Not defined
|
|
308
|
-
- **Accept**: application/json
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
## update
|
|
312
|
-
|
|
313
|
-
> AsyncOperationResponse update(repository_href, repository)
|
|
314
|
-
|
|
315
|
-
Update a repository
|
|
316
|
-
|
|
317
|
-
Trigger an asynchronous update task
|
|
318
|
-
|
|
319
|
-
### Example
|
|
320
|
-
|
|
321
|
-
```ruby
|
|
322
|
-
# load the gem
|
|
323
|
-
require 'pulpcore_client'
|
|
324
|
-
# setup authorization
|
|
325
|
-
PulpcoreClient.configure do |config|
|
|
326
|
-
# Configure HTTP basic authorization: basicAuth
|
|
327
|
-
config.username = 'YOUR USERNAME'
|
|
328
|
-
config.password = 'YOUR PASSWORD'
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
|
332
|
-
repository_href = 'repository_href_example' # String |
|
|
333
|
-
repository = PulpcoreClient::Repository.new # Repository |
|
|
334
|
-
|
|
335
|
-
begin
|
|
336
|
-
#Update a repository
|
|
337
|
-
result = api_instance.update(repository_href, repository)
|
|
338
|
-
p result
|
|
339
|
-
rescue PulpcoreClient::ApiError => e
|
|
340
|
-
puts "Exception when calling RepositoriesApi->update: #{e}"
|
|
341
|
-
end
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
### Parameters
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
Name | Type | Description | Notes
|
|
348
|
-
------------- | ------------- | ------------- | -------------
|
|
349
|
-
**repository_href** | **String**| |
|
|
350
|
-
**repository** | [**Repository**](Repository.md)| |
|
|
351
|
-
|
|
352
|
-
### Return type
|
|
353
|
-
|
|
354
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
355
|
-
|
|
356
|
-
### Authorization
|
|
357
|
-
|
|
358
|
-
[basicAuth](../README.md#basicAuth)
|
|
359
|
-
|
|
360
|
-
### HTTP request headers
|
|
361
|
-
|
|
362
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
363
|
-
- **Accept**: application/json
|
|
364
|
-
|
data/docs/UploadsApi.md
CHANGED
|
@@ -4,15 +4,73 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**add_role**](UploadsApi.md#add_role) | **POST** {upload_href}add_role/ |
|
|
7
8
|
[**commit**](UploadsApi.md#commit) | **POST** {upload_href}commit/ | Finish an Upload
|
|
8
9
|
[**create**](UploadsApi.md#create) | **POST** /pulp/api/v3/uploads/ | Create an upload
|
|
9
10
|
[**delete**](UploadsApi.md#delete) | **DELETE** {upload_href} | Delete an upload
|
|
10
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/ |
|
|
11
14
|
[**read**](UploadsApi.md#read) | **GET** {upload_href} | Inspect an upload
|
|
15
|
+
[**remove_role**](UploadsApi.md#remove_role) | **POST** {upload_href}remove_role/ |
|
|
12
16
|
[**update**](UploadsApi.md#update) | **PUT** {upload_href} | Upload a file chunk
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
20
|
+
## add_role
|
|
21
|
+
|
|
22
|
+
> NestedRoleResponse add_role(upload_href, upload)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
Add a role for this object to users/groups.
|
|
27
|
+
|
|
28
|
+
### Example
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
# load the gem
|
|
32
|
+
require 'pulpcore_client'
|
|
33
|
+
# setup authorization
|
|
34
|
+
PulpcoreClient.configure do |config|
|
|
35
|
+
# Configure HTTP basic authorization: basicAuth
|
|
36
|
+
config.username = 'YOUR USERNAME'
|
|
37
|
+
config.password = 'YOUR PASSWORD'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
|
41
|
+
upload_href = 'upload_href_example' # String |
|
|
42
|
+
upload = PulpcoreClient::Upload.new # Upload |
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
result = api_instance.add_role(upload_href, upload)
|
|
46
|
+
p result
|
|
47
|
+
rescue PulpcoreClient::ApiError => e
|
|
48
|
+
puts "Exception when calling UploadsApi->add_role: #{e}"
|
|
49
|
+
end
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Parameters
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Name | Type | Description | Notes
|
|
56
|
+
------------- | ------------- | ------------- | -------------
|
|
57
|
+
**upload_href** | **String**| |
|
|
58
|
+
**upload** | [**Upload**](Upload.md)| |
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[basicAuth](../README.md#basicAuth)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
16
74
|
## commit
|
|
17
75
|
|
|
18
76
|
> AsyncOperationResponse commit(upload_href, upload_commit)
|
|
@@ -234,6 +292,122 @@ Name | Type | Description | Notes
|
|
|
234
292
|
- **Accept**: application/json
|
|
235
293
|
|
|
236
294
|
|
|
295
|
+
## list_roles
|
|
296
|
+
|
|
297
|
+
> ObjectRolesResponse list_roles(upload_href, opts)
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
List roles assigned to this object.
|
|
302
|
+
|
|
303
|
+
### Example
|
|
304
|
+
|
|
305
|
+
```ruby
|
|
306
|
+
# load the gem
|
|
307
|
+
require 'pulpcore_client'
|
|
308
|
+
# setup authorization
|
|
309
|
+
PulpcoreClient.configure do |config|
|
|
310
|
+
# Configure HTTP basic authorization: basicAuth
|
|
311
|
+
config.username = 'YOUR USERNAME'
|
|
312
|
+
config.password = 'YOUR PASSWORD'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
|
316
|
+
upload_href = 'upload_href_example' # String |
|
|
317
|
+
opts = {
|
|
318
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
319
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
begin
|
|
323
|
+
result = api_instance.list_roles(upload_href, opts)
|
|
324
|
+
p result
|
|
325
|
+
rescue PulpcoreClient::ApiError => e
|
|
326
|
+
puts "Exception when calling UploadsApi->list_roles: #{e}"
|
|
327
|
+
end
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Parameters
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
Name | Type | Description | Notes
|
|
334
|
+
------------- | ------------- | ------------- | -------------
|
|
335
|
+
**upload_href** | **String**| |
|
|
336
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
337
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
338
|
+
|
|
339
|
+
### Return type
|
|
340
|
+
|
|
341
|
+
[**ObjectRolesResponse**](ObjectRolesResponse.md)
|
|
342
|
+
|
|
343
|
+
### Authorization
|
|
344
|
+
|
|
345
|
+
[basicAuth](../README.md#basicAuth)
|
|
346
|
+
|
|
347
|
+
### HTTP request headers
|
|
348
|
+
|
|
349
|
+
- **Content-Type**: Not defined
|
|
350
|
+
- **Accept**: application/json
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## my_permissions
|
|
354
|
+
|
|
355
|
+
> MyPermissionsResponse my_permissions(upload_href, opts)
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
List permissions available to the current user on this object.
|
|
360
|
+
|
|
361
|
+
### Example
|
|
362
|
+
|
|
363
|
+
```ruby
|
|
364
|
+
# load the gem
|
|
365
|
+
require 'pulpcore_client'
|
|
366
|
+
# setup authorization
|
|
367
|
+
PulpcoreClient.configure do |config|
|
|
368
|
+
# Configure HTTP basic authorization: basicAuth
|
|
369
|
+
config.username = 'YOUR USERNAME'
|
|
370
|
+
config.password = 'YOUR PASSWORD'
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
|
374
|
+
upload_href = 'upload_href_example' # String |
|
|
375
|
+
opts = {
|
|
376
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
377
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
begin
|
|
381
|
+
result = api_instance.my_permissions(upload_href, opts)
|
|
382
|
+
p result
|
|
383
|
+
rescue PulpcoreClient::ApiError => e
|
|
384
|
+
puts "Exception when calling UploadsApi->my_permissions: #{e}"
|
|
385
|
+
end
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
### Parameters
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
Name | Type | Description | Notes
|
|
392
|
+
------------- | ------------- | ------------- | -------------
|
|
393
|
+
**upload_href** | **String**| |
|
|
394
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
395
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
396
|
+
|
|
397
|
+
### Return type
|
|
398
|
+
|
|
399
|
+
[**MyPermissionsResponse**](MyPermissionsResponse.md)
|
|
400
|
+
|
|
401
|
+
### Authorization
|
|
402
|
+
|
|
403
|
+
[basicAuth](../README.md#basicAuth)
|
|
404
|
+
|
|
405
|
+
### HTTP request headers
|
|
406
|
+
|
|
407
|
+
- **Content-Type**: Not defined
|
|
408
|
+
- **Accept**: application/json
|
|
409
|
+
|
|
410
|
+
|
|
237
411
|
## read
|
|
238
412
|
|
|
239
413
|
> UploadDetailResponse read(upload_href, opts)
|
|
@@ -293,6 +467,60 @@ Name | Type | Description | Notes
|
|
|
293
467
|
- **Accept**: application/json
|
|
294
468
|
|
|
295
469
|
|
|
470
|
+
## remove_role
|
|
471
|
+
|
|
472
|
+
> NestedRoleResponse remove_role(upload_href, upload)
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
Remove a role for this object from users/groups.
|
|
477
|
+
|
|
478
|
+
### Example
|
|
479
|
+
|
|
480
|
+
```ruby
|
|
481
|
+
# load the gem
|
|
482
|
+
require 'pulpcore_client'
|
|
483
|
+
# setup authorization
|
|
484
|
+
PulpcoreClient.configure do |config|
|
|
485
|
+
# Configure HTTP basic authorization: basicAuth
|
|
486
|
+
config.username = 'YOUR USERNAME'
|
|
487
|
+
config.password = 'YOUR PASSWORD'
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
api_instance = PulpcoreClient::UploadsApi.new
|
|
491
|
+
upload_href = 'upload_href_example' # String |
|
|
492
|
+
upload = PulpcoreClient::Upload.new # Upload |
|
|
493
|
+
|
|
494
|
+
begin
|
|
495
|
+
result = api_instance.remove_role(upload_href, upload)
|
|
496
|
+
p result
|
|
497
|
+
rescue PulpcoreClient::ApiError => e
|
|
498
|
+
puts "Exception when calling UploadsApi->remove_role: #{e}"
|
|
499
|
+
end
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
### Parameters
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
Name | Type | Description | Notes
|
|
506
|
+
------------- | ------------- | ------------- | -------------
|
|
507
|
+
**upload_href** | **String**| |
|
|
508
|
+
**upload** | [**Upload**](Upload.md)| |
|
|
509
|
+
|
|
510
|
+
### Return type
|
|
511
|
+
|
|
512
|
+
[**NestedRoleResponse**](NestedRoleResponse.md)
|
|
513
|
+
|
|
514
|
+
### Authorization
|
|
515
|
+
|
|
516
|
+
[basicAuth](../README.md#basicAuth)
|
|
517
|
+
|
|
518
|
+
### HTTP request headers
|
|
519
|
+
|
|
520
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
521
|
+
- **Accept**: application/json
|
|
522
|
+
|
|
523
|
+
|
|
296
524
|
## update
|
|
297
525
|
|
|
298
526
|
> UploadResponse update(content_range, upload_href, file, opts)
|