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/ContentguardsApi.md
CHANGED
|
@@ -4,127 +4,17 @@ All URIs are relative to *https://pulp*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**create**](ContentguardsApi.md#create) | **POST** /pulp/api/v3/contentguards/ | Create a content guard
|
|
8
|
-
[**delete**](ContentguardsApi.md#delete) | **DELETE** {content_guard_href} | Delete a content guard
|
|
9
7
|
[**list**](ContentguardsApi.md#list) | **GET** /pulp/api/v3/contentguards/ | List content guards
|
|
10
|
-
[**partial_update**](ContentguardsApi.md#partial_update) | **PATCH** {content_guard_href} | Update a content guard
|
|
11
|
-
[**read**](ContentguardsApi.md#read) | **GET** {content_guard_href} | Inspect a content guard
|
|
12
|
-
[**update**](ContentguardsApi.md#update) | **PUT** {content_guard_href} | Update a content guard
|
|
13
8
|
|
|
14
9
|
|
|
15
10
|
|
|
16
|
-
## create
|
|
17
|
-
|
|
18
|
-
> ContentGuardResponse create(content_guard)
|
|
19
|
-
|
|
20
|
-
Create a content guard
|
|
21
|
-
|
|
22
|
-
A viewset for contentguards.
|
|
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::ContentguardsApi.new
|
|
37
|
-
content_guard = PulpcoreClient::ContentGuard.new # ContentGuard |
|
|
38
|
-
|
|
39
|
-
begin
|
|
40
|
-
#Create a content guard
|
|
41
|
-
result = api_instance.create(content_guard)
|
|
42
|
-
p result
|
|
43
|
-
rescue PulpcoreClient::ApiError => e
|
|
44
|
-
puts "Exception when calling ContentguardsApi->create: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Name | Type | Description | Notes
|
|
52
|
-
------------- | ------------- | ------------- | -------------
|
|
53
|
-
**content_guard** | [**ContentGuard**](ContentGuard.md)| |
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
[**ContentGuardResponse**](ContentGuardResponse.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
|
-
> delete(content_guard_href)
|
|
72
|
-
|
|
73
|
-
Delete a content guard
|
|
74
|
-
|
|
75
|
-
A viewset for contentguards.
|
|
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::ContentguardsApi.new
|
|
90
|
-
content_guard_href = 'content_guard_href_example' # String |
|
|
91
|
-
|
|
92
|
-
begin
|
|
93
|
-
#Delete a content guard
|
|
94
|
-
api_instance.delete(content_guard_href)
|
|
95
|
-
rescue PulpcoreClient::ApiError => e
|
|
96
|
-
puts "Exception when calling ContentguardsApi->delete: #{e}"
|
|
97
|
-
end
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### Parameters
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
Name | Type | Description | Notes
|
|
104
|
-
------------- | ------------- | ------------- | -------------
|
|
105
|
-
**content_guard_href** | **String**| |
|
|
106
|
-
|
|
107
|
-
### Return type
|
|
108
|
-
|
|
109
|
-
nil (empty response body)
|
|
110
|
-
|
|
111
|
-
### Authorization
|
|
112
|
-
|
|
113
|
-
[basicAuth](../README.md#basicAuth)
|
|
114
|
-
|
|
115
|
-
### HTTP request headers
|
|
116
|
-
|
|
117
|
-
- **Content-Type**: Not defined
|
|
118
|
-
- **Accept**: Not defined
|
|
119
|
-
|
|
120
|
-
|
|
121
11
|
## list
|
|
122
12
|
|
|
123
13
|
> PaginatedContentGuardResponseList list(opts)
|
|
124
14
|
|
|
125
15
|
List content guards
|
|
126
16
|
|
|
127
|
-
|
|
17
|
+
Endpoint to list all contentguards.
|
|
128
18
|
|
|
129
19
|
### Example
|
|
130
20
|
|
|
@@ -190,172 +80,3 @@ Name | Type | Description | Notes
|
|
|
190
80
|
- **Content-Type**: Not defined
|
|
191
81
|
- **Accept**: application/json
|
|
192
82
|
|
|
193
|
-
|
|
194
|
-
## partial_update
|
|
195
|
-
|
|
196
|
-
> ContentGuardResponse partial_update(content_guard_href, patched_content_guard)
|
|
197
|
-
|
|
198
|
-
Update a content guard
|
|
199
|
-
|
|
200
|
-
A viewset for contentguards.
|
|
201
|
-
|
|
202
|
-
### Example
|
|
203
|
-
|
|
204
|
-
```ruby
|
|
205
|
-
# load the gem
|
|
206
|
-
require 'pulpcore_client'
|
|
207
|
-
# setup authorization
|
|
208
|
-
PulpcoreClient.configure do |config|
|
|
209
|
-
# Configure HTTP basic authorization: basicAuth
|
|
210
|
-
config.username = 'YOUR USERNAME'
|
|
211
|
-
config.password = 'YOUR PASSWORD'
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
215
|
-
content_guard_href = 'content_guard_href_example' # String |
|
|
216
|
-
patched_content_guard = PulpcoreClient::PatchedContentGuard.new # PatchedContentGuard |
|
|
217
|
-
|
|
218
|
-
begin
|
|
219
|
-
#Update a content guard
|
|
220
|
-
result = api_instance.partial_update(content_guard_href, patched_content_guard)
|
|
221
|
-
p result
|
|
222
|
-
rescue PulpcoreClient::ApiError => e
|
|
223
|
-
puts "Exception when calling ContentguardsApi->partial_update: #{e}"
|
|
224
|
-
end
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
### Parameters
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
Name | Type | Description | Notes
|
|
231
|
-
------------- | ------------- | ------------- | -------------
|
|
232
|
-
**content_guard_href** | **String**| |
|
|
233
|
-
**patched_content_guard** | [**PatchedContentGuard**](PatchedContentGuard.md)| |
|
|
234
|
-
|
|
235
|
-
### Return type
|
|
236
|
-
|
|
237
|
-
[**ContentGuardResponse**](ContentGuardResponse.md)
|
|
238
|
-
|
|
239
|
-
### Authorization
|
|
240
|
-
|
|
241
|
-
[basicAuth](../README.md#basicAuth)
|
|
242
|
-
|
|
243
|
-
### HTTP request headers
|
|
244
|
-
|
|
245
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
246
|
-
- **Accept**: application/json
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
## read
|
|
250
|
-
|
|
251
|
-
> ContentGuardResponse read(content_guard_href, opts)
|
|
252
|
-
|
|
253
|
-
Inspect a content guard
|
|
254
|
-
|
|
255
|
-
A viewset for contentguards.
|
|
256
|
-
|
|
257
|
-
### Example
|
|
258
|
-
|
|
259
|
-
```ruby
|
|
260
|
-
# load the gem
|
|
261
|
-
require 'pulpcore_client'
|
|
262
|
-
# setup authorization
|
|
263
|
-
PulpcoreClient.configure do |config|
|
|
264
|
-
# Configure HTTP basic authorization: basicAuth
|
|
265
|
-
config.username = 'YOUR USERNAME'
|
|
266
|
-
config.password = 'YOUR PASSWORD'
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
270
|
-
content_guard_href = 'content_guard_href_example' # String |
|
|
271
|
-
opts = {
|
|
272
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
273
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
begin
|
|
277
|
-
#Inspect a content guard
|
|
278
|
-
result = api_instance.read(content_guard_href, opts)
|
|
279
|
-
p result
|
|
280
|
-
rescue PulpcoreClient::ApiError => e
|
|
281
|
-
puts "Exception when calling ContentguardsApi->read: #{e}"
|
|
282
|
-
end
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### Parameters
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
Name | Type | Description | Notes
|
|
289
|
-
------------- | ------------- | ------------- | -------------
|
|
290
|
-
**content_guard_href** | **String**| |
|
|
291
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
292
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
293
|
-
|
|
294
|
-
### Return type
|
|
295
|
-
|
|
296
|
-
[**ContentGuardResponse**](ContentGuardResponse.md)
|
|
297
|
-
|
|
298
|
-
### Authorization
|
|
299
|
-
|
|
300
|
-
[basicAuth](../README.md#basicAuth)
|
|
301
|
-
|
|
302
|
-
### HTTP request headers
|
|
303
|
-
|
|
304
|
-
- **Content-Type**: Not defined
|
|
305
|
-
- **Accept**: application/json
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
## update
|
|
309
|
-
|
|
310
|
-
> ContentGuardResponse update(content_guard_href, content_guard)
|
|
311
|
-
|
|
312
|
-
Update a content guard
|
|
313
|
-
|
|
314
|
-
A viewset for contentguards.
|
|
315
|
-
|
|
316
|
-
### Example
|
|
317
|
-
|
|
318
|
-
```ruby
|
|
319
|
-
# load the gem
|
|
320
|
-
require 'pulpcore_client'
|
|
321
|
-
# setup authorization
|
|
322
|
-
PulpcoreClient.configure do |config|
|
|
323
|
-
# Configure HTTP basic authorization: basicAuth
|
|
324
|
-
config.username = 'YOUR USERNAME'
|
|
325
|
-
config.password = 'YOUR PASSWORD'
|
|
326
|
-
end
|
|
327
|
-
|
|
328
|
-
api_instance = PulpcoreClient::ContentguardsApi.new
|
|
329
|
-
content_guard_href = 'content_guard_href_example' # String |
|
|
330
|
-
content_guard = PulpcoreClient::ContentGuard.new # ContentGuard |
|
|
331
|
-
|
|
332
|
-
begin
|
|
333
|
-
#Update a content guard
|
|
334
|
-
result = api_instance.update(content_guard_href, content_guard)
|
|
335
|
-
p result
|
|
336
|
-
rescue PulpcoreClient::ApiError => e
|
|
337
|
-
puts "Exception when calling ContentguardsApi->update: #{e}"
|
|
338
|
-
end
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
### Parameters
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
Name | Type | Description | Notes
|
|
345
|
-
------------- | ------------- | ------------- | -------------
|
|
346
|
-
**content_guard_href** | **String**| |
|
|
347
|
-
**content_guard** | [**ContentGuard**](ContentGuard.md)| |
|
|
348
|
-
|
|
349
|
-
### Return type
|
|
350
|
-
|
|
351
|
-
[**ContentGuardResponse**](ContentGuardResponse.md)
|
|
352
|
-
|
|
353
|
-
### Authorization
|
|
354
|
-
|
|
355
|
-
[basicAuth](../README.md#basicAuth)
|
|
356
|
-
|
|
357
|
-
### HTTP request headers
|
|
358
|
-
|
|
359
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
360
|
-
- **Accept**: application/json
|
|
361
|
-
|
data/docs/DistributionsApi.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**](DistributionsApi.md#create) | **POST** /pulp/api/v3/distributions/ | Create a distribution
|
|
8
|
-
[**delete**](DistributionsApi.md#delete) | **DELETE** {distribution_href} | Delete a distribution
|
|
9
7
|
[**list**](DistributionsApi.md#list) | **GET** /pulp/api/v3/distributions/ | List distributions
|
|
10
|
-
[**partial_update**](DistributionsApi.md#partial_update) | **PATCH** {distribution_href} | Update a distribution
|
|
11
|
-
[**read**](DistributionsApi.md#read) | **GET** {distribution_href} | Inspect a distribution
|
|
12
|
-
[**update**](DistributionsApi.md#update) | **PUT** {distribution_href} | Update a distribution
|
|
13
8
|
|
|
14
9
|
|
|
15
10
|
|
|
16
|
-
## create
|
|
17
|
-
|
|
18
|
-
> AsyncOperationResponse create(distribution)
|
|
19
|
-
|
|
20
|
-
Create a distribution
|
|
21
|
-
|
|
22
|
-
Trigger an asynchronous create task
|
|
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::DistributionsApi.new
|
|
37
|
-
distribution = PulpcoreClient::Distribution.new # Distribution |
|
|
38
|
-
|
|
39
|
-
begin
|
|
40
|
-
#Create a distribution
|
|
41
|
-
result = api_instance.create(distribution)
|
|
42
|
-
p result
|
|
43
|
-
rescue PulpcoreClient::ApiError => e
|
|
44
|
-
puts "Exception when calling DistributionsApi->create: #{e}"
|
|
45
|
-
end
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Name | Type | Description | Notes
|
|
52
|
-
------------- | ------------- | ------------- | -------------
|
|
53
|
-
**distribution** | [**Distribution**](Distribution.md)| |
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.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(distribution_href)
|
|
72
|
-
|
|
73
|
-
Delete a distribution
|
|
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::DistributionsApi.new
|
|
90
|
-
distribution_href = 'distribution_href_example' # String |
|
|
91
|
-
|
|
92
|
-
begin
|
|
93
|
-
#Delete a distribution
|
|
94
|
-
result = api_instance.delete(distribution_href)
|
|
95
|
-
p result
|
|
96
|
-
rescue PulpcoreClient::ApiError => e
|
|
97
|
-
puts "Exception when calling DistributionsApi->delete: #{e}"
|
|
98
|
-
end
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
### Parameters
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
Name | Type | Description | Notes
|
|
105
|
-
------------- | ------------- | ------------- | -------------
|
|
106
|
-
**distribution_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
|
> PaginatedDistributionResponseList list(opts)
|
|
125
14
|
|
|
126
15
|
List distributions
|
|
127
16
|
|
|
128
|
-
|
|
17
|
+
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.
|
|
129
18
|
|
|
130
19
|
### Example
|
|
131
20
|
|
|
@@ -154,6 +43,7 @@ opts = {
|
|
|
154
43
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
155
44
|
ordering: ['ordering_example'], # Array<String> | Ordering
|
|
156
45
|
pulp_label_select: 'pulp_label_select_example', # String | Filter labels by search string
|
|
46
|
+
with_content: 'with_content_example', # String | Filter distributions based on the content served by them
|
|
157
47
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
158
48
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
159
49
|
}
|
|
@@ -185,6 +75,7 @@ Name | Type | Description | Notes
|
|
|
185
75
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
186
76
|
**ordering** | [**Array<String>**](String.md)| Ordering | [optional]
|
|
187
77
|
**pulp_label_select** | **String**| Filter labels by search string | [optional]
|
|
78
|
+
**with_content** | **String**| Filter distributions based on the content served by them | [optional]
|
|
188
79
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
189
80
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
190
81
|
|
|
@@ -201,172 +92,3 @@ Name | Type | Description | Notes
|
|
|
201
92
|
- **Content-Type**: Not defined
|
|
202
93
|
- **Accept**: application/json
|
|
203
94
|
|
|
204
|
-
|
|
205
|
-
## partial_update
|
|
206
|
-
|
|
207
|
-
> AsyncOperationResponse partial_update(distribution_href, patched_distribution)
|
|
208
|
-
|
|
209
|
-
Update a distribution
|
|
210
|
-
|
|
211
|
-
Trigger an asynchronous partial update task
|
|
212
|
-
|
|
213
|
-
### Example
|
|
214
|
-
|
|
215
|
-
```ruby
|
|
216
|
-
# load the gem
|
|
217
|
-
require 'pulpcore_client'
|
|
218
|
-
# setup authorization
|
|
219
|
-
PulpcoreClient.configure do |config|
|
|
220
|
-
# Configure HTTP basic authorization: basicAuth
|
|
221
|
-
config.username = 'YOUR USERNAME'
|
|
222
|
-
config.password = 'YOUR PASSWORD'
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
api_instance = PulpcoreClient::DistributionsApi.new
|
|
226
|
-
distribution_href = 'distribution_href_example' # String |
|
|
227
|
-
patched_distribution = PulpcoreClient::PatchedDistribution.new # PatchedDistribution |
|
|
228
|
-
|
|
229
|
-
begin
|
|
230
|
-
#Update a distribution
|
|
231
|
-
result = api_instance.partial_update(distribution_href, patched_distribution)
|
|
232
|
-
p result
|
|
233
|
-
rescue PulpcoreClient::ApiError => e
|
|
234
|
-
puts "Exception when calling DistributionsApi->partial_update: #{e}"
|
|
235
|
-
end
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### Parameters
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
Name | Type | Description | Notes
|
|
242
|
-
------------- | ------------- | ------------- | -------------
|
|
243
|
-
**distribution_href** | **String**| |
|
|
244
|
-
**patched_distribution** | [**PatchedDistribution**](PatchedDistribution.md)| |
|
|
245
|
-
|
|
246
|
-
### Return type
|
|
247
|
-
|
|
248
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
249
|
-
|
|
250
|
-
### Authorization
|
|
251
|
-
|
|
252
|
-
[basicAuth](../README.md#basicAuth)
|
|
253
|
-
|
|
254
|
-
### HTTP request headers
|
|
255
|
-
|
|
256
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
257
|
-
- **Accept**: application/json
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
## read
|
|
261
|
-
|
|
262
|
-
> DistributionResponse read(distribution_href, opts)
|
|
263
|
-
|
|
264
|
-
Inspect a distribution
|
|
265
|
-
|
|
266
|
-
Provides read and list methods and also provides asynchronous CUD methods to dispatch tasks with reservation that lock all Distributions preventing race conditions during base_path checking.
|
|
267
|
-
|
|
268
|
-
### Example
|
|
269
|
-
|
|
270
|
-
```ruby
|
|
271
|
-
# load the gem
|
|
272
|
-
require 'pulpcore_client'
|
|
273
|
-
# setup authorization
|
|
274
|
-
PulpcoreClient.configure do |config|
|
|
275
|
-
# Configure HTTP basic authorization: basicAuth
|
|
276
|
-
config.username = 'YOUR USERNAME'
|
|
277
|
-
config.password = 'YOUR PASSWORD'
|
|
278
|
-
end
|
|
279
|
-
|
|
280
|
-
api_instance = PulpcoreClient::DistributionsApi.new
|
|
281
|
-
distribution_href = 'distribution_href_example' # String |
|
|
282
|
-
opts = {
|
|
283
|
-
fields: 'fields_example', # String | A list of fields to include in the response.
|
|
284
|
-
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
begin
|
|
288
|
-
#Inspect a distribution
|
|
289
|
-
result = api_instance.read(distribution_href, opts)
|
|
290
|
-
p result
|
|
291
|
-
rescue PulpcoreClient::ApiError => e
|
|
292
|
-
puts "Exception when calling DistributionsApi->read: #{e}"
|
|
293
|
-
end
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
### Parameters
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
Name | Type | Description | Notes
|
|
300
|
-
------------- | ------------- | ------------- | -------------
|
|
301
|
-
**distribution_href** | **String**| |
|
|
302
|
-
**fields** | **String**| A list of fields to include in the response. | [optional]
|
|
303
|
-
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
|
304
|
-
|
|
305
|
-
### Return type
|
|
306
|
-
|
|
307
|
-
[**DistributionResponse**](DistributionResponse.md)
|
|
308
|
-
|
|
309
|
-
### Authorization
|
|
310
|
-
|
|
311
|
-
[basicAuth](../README.md#basicAuth)
|
|
312
|
-
|
|
313
|
-
### HTTP request headers
|
|
314
|
-
|
|
315
|
-
- **Content-Type**: Not defined
|
|
316
|
-
- **Accept**: application/json
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
## update
|
|
320
|
-
|
|
321
|
-
> AsyncOperationResponse update(distribution_href, distribution)
|
|
322
|
-
|
|
323
|
-
Update a distribution
|
|
324
|
-
|
|
325
|
-
Trigger an asynchronous update task
|
|
326
|
-
|
|
327
|
-
### Example
|
|
328
|
-
|
|
329
|
-
```ruby
|
|
330
|
-
# load the gem
|
|
331
|
-
require 'pulpcore_client'
|
|
332
|
-
# setup authorization
|
|
333
|
-
PulpcoreClient.configure do |config|
|
|
334
|
-
# Configure HTTP basic authorization: basicAuth
|
|
335
|
-
config.username = 'YOUR USERNAME'
|
|
336
|
-
config.password = 'YOUR PASSWORD'
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
api_instance = PulpcoreClient::DistributionsApi.new
|
|
340
|
-
distribution_href = 'distribution_href_example' # String |
|
|
341
|
-
distribution = PulpcoreClient::Distribution.new # Distribution |
|
|
342
|
-
|
|
343
|
-
begin
|
|
344
|
-
#Update a distribution
|
|
345
|
-
result = api_instance.update(distribution_href, distribution)
|
|
346
|
-
p result
|
|
347
|
-
rescue PulpcoreClient::ApiError => e
|
|
348
|
-
puts "Exception when calling DistributionsApi->update: #{e}"
|
|
349
|
-
end
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
### Parameters
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
Name | Type | Description | Notes
|
|
356
|
-
------------- | ------------- | ------------- | -------------
|
|
357
|
-
**distribution_href** | **String**| |
|
|
358
|
-
**distribution** | [**Distribution**](Distribution.md)| |
|
|
359
|
-
|
|
360
|
-
### Return type
|
|
361
|
-
|
|
362
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
363
|
-
|
|
364
|
-
### Authorization
|
|
365
|
-
|
|
366
|
-
[basicAuth](../README.md#basicAuth)
|
|
367
|
-
|
|
368
|
-
### HTTP request headers
|
|
369
|
-
|
|
370
|
-
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
|
371
|
-
- **Accept**: application/json
|
|
372
|
-
|