pulpcore_client 3.0.0rc2 → 3.0.0rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +43 -37
- data/docs/ArtifactsApi.md +20 -20
- data/docs/ContentAppStatus.md +19 -0
- data/docs/DatabaseConnection.md +17 -0
- data/docs/OrphansApi.md +5 -5
- data/docs/ProgressReport.md +1 -3
- data/docs/RedisConnection.md +17 -0
- data/docs/RepositoriesApi.md +30 -278
- data/docs/RepositoriesVersionsApi.md +256 -0
- data/docs/RepositoryVersionCreate.md +2 -2
- data/docs/Status.md +27 -0
- data/docs/StatusApi.md +8 -7
- data/docs/TaskCancel.md +17 -0
- data/docs/TasksApi.md +71 -71
- data/docs/Upload.md +6 -8
- data/docs/UploadCommit.md +17 -0
- data/docs/UploadsApi.md +66 -106
- data/docs/Version.md +19 -0
- data/docs/WorkersApi.md +10 -10
- data/lib/pulpcore_client/api/artifacts_api.rb +47 -23
- data/lib/pulpcore_client/api/orphans_api.rb +6 -6
- data/lib/pulpcore_client/api/repositories_api.rb +38 -338
- data/lib/pulpcore_client/api/repositories_versions_api.rb +322 -0
- data/lib/pulpcore_client/api/status_api.rb +12 -10
- data/lib/pulpcore_client/api/tasks_api.rb +88 -88
- data/lib/pulpcore_client/api/uploads_api.rb +105 -154
- data/lib/pulpcore_client/api/workers_api.rb +12 -12
- data/lib/pulpcore_client/api_client.rb +1 -1
- data/lib/pulpcore_client/api_error.rb +1 -1
- data/lib/pulpcore_client/configuration.rb +1 -1
- data/lib/pulpcore_client/models/artifact.rb +91 -1
- data/lib/pulpcore_client/models/async_operation_response.rb +1 -1
- data/lib/pulpcore_client/models/content_app_status.rb +223 -0
- data/lib/pulpcore_client/models/database_connection.rb +203 -0
- data/lib/pulpcore_client/models/inline_response200.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2001.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2002.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2003.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2004.rb +1 -1
- data/lib/pulpcore_client/models/inline_response2005.rb +1 -1
- data/lib/pulpcore_client/models/progress_report.rb +20 -15
- data/lib/pulpcore_client/models/redis_connection.rb +203 -0
- data/lib/pulpcore_client/models/repository.rb +16 -1
- data/lib/pulpcore_client/models/repository_version.rb +1 -1
- data/lib/pulpcore_client/models/repository_version_create.rb +3 -13
- data/lib/pulpcore_client/models/status.rb +283 -0
- data/lib/pulpcore_client/models/task.rb +1 -1
- data/lib/pulpcore_client/models/task_cancel.rb +221 -0
- data/lib/pulpcore_client/models/upload.rb +26 -52
- data/lib/pulpcore_client/models/upload_commit.rb +221 -0
- data/lib/pulpcore_client/models/version.rb +256 -0
- data/lib/pulpcore_client/models/worker.rb +2 -1
- data/lib/pulpcore_client/version.rb +2 -2
- data/lib/pulpcore_client.rb +9 -1
- data/pulpcore_client.gemspec +1 -1
- data/spec/api/artifacts_api_spec.rb +9 -9
- data/spec/api/orphans_api_spec.rb +3 -3
- data/spec/api/repositories_api_spec.rb +13 -76
- data/spec/api/repositories_versions_api_spec.rb +98 -0
- data/spec/api/status_api_spec.rb +4 -4
- data/spec/api/tasks_api_spec.rb +20 -20
- data/spec/api/uploads_api_spec.rb +32 -37
- data/spec/api/workers_api_spec.rb +5 -5
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/artifact_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_app_status_spec.rb +47 -0
- data/spec/models/database_connection_spec.rb +41 -0
- data/spec/models/inline_response2001_spec.rb +1 -1
- data/spec/models/inline_response2002_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response2004_spec.rb +1 -1
- data/spec/models/inline_response2005_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/progress_report_spec.rb +1 -7
- data/spec/models/redis_connection_spec.rb +41 -0
- data/spec/models/repository_spec.rb +1 -1
- data/spec/models/repository_version_create_spec.rb +1 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/models/status_spec.rb +71 -0
- data/spec/models/task_cancel_spec.rb +41 -0
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/upload_commit_spec.rb +41 -0
- data/spec/models/upload_spec.rb +4 -10
- data/spec/models/version_spec.rb +47 -0
- data/spec/models/worker_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +34 -2
data/docs/RepositoriesApi.md
CHANGED
@@ -4,22 +4,18 @@ 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
|
-
[**repositories_versions_create**](RepositoriesApi.md#repositories_versions_create) | **POST** {repository_href}versions/ | Create a repository version
|
14
|
-
[**repositories_versions_delete**](RepositoriesApi.md#repositories_versions_delete) | **DELETE** {repository_version_href} | Delete a repository version
|
15
|
-
[**repositories_versions_list**](RepositoriesApi.md#repositories_versions_list) | **GET** {repository_href}versions/ | List repository versions
|
16
|
-
[**repositories_versions_read**](RepositoriesApi.md#repositories_versions_read) | **GET** {repository_version_href} | Inspect a repository version
|
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
|
+
[**list**](RepositoriesApi.md#list) | **GET** /pulp/api/v3/repositories/ | List repositories
|
10
|
+
[**partial_update**](RepositoriesApi.md#partial_update) | **PATCH** {repository_href} | Partially 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
|
17
13
|
|
18
14
|
|
19
15
|
|
20
|
-
##
|
16
|
+
## create
|
21
17
|
|
22
|
-
> Repository
|
18
|
+
> Repository create(data)
|
23
19
|
|
24
20
|
Create a repository
|
25
21
|
|
@@ -40,10 +36,10 @@ data = PulpcoreClient::Repository.new # Repository |
|
|
40
36
|
|
41
37
|
begin
|
42
38
|
#Create a repository
|
43
|
-
result = api_instance.
|
39
|
+
result = api_instance.create(data)
|
44
40
|
p result
|
45
41
|
rescue PulpcoreClient::ApiError => e
|
46
|
-
puts "Exception when calling RepositoriesApi->
|
42
|
+
puts "Exception when calling RepositoriesApi->create: #{e}"
|
47
43
|
end
|
48
44
|
```
|
49
45
|
|
@@ -68,9 +64,9 @@ Name | Type | Description | Notes
|
|
68
64
|
- **Accept**: application/json
|
69
65
|
|
70
66
|
|
71
|
-
##
|
67
|
+
## delete
|
72
68
|
|
73
|
-
> AsyncOperationResponse
|
69
|
+
> AsyncOperationResponse delete(repository_href)
|
74
70
|
|
75
71
|
Delete a repository
|
76
72
|
|
@@ -93,10 +89,10 @@ repository_href = 'repository_href_example' # String | URI of Repository. e.g.:
|
|
93
89
|
|
94
90
|
begin
|
95
91
|
#Delete a repository
|
96
|
-
result = api_instance.
|
92
|
+
result = api_instance.delete(repository_href)
|
97
93
|
p result
|
98
94
|
rescue PulpcoreClient::ApiError => e
|
99
|
-
puts "Exception when calling RepositoriesApi->
|
95
|
+
puts "Exception when calling RepositoriesApi->delete: #{e}"
|
100
96
|
end
|
101
97
|
```
|
102
98
|
|
@@ -121,9 +117,9 @@ Name | Type | Description | Notes
|
|
121
117
|
- **Accept**: application/json
|
122
118
|
|
123
119
|
|
124
|
-
##
|
120
|
+
## list
|
125
121
|
|
126
|
-
> InlineResponse2001
|
122
|
+
> InlineResponse2001 list(opts)
|
127
123
|
|
128
124
|
List repositories
|
129
125
|
|
@@ -149,10 +145,10 @@ opts = {
|
|
149
145
|
|
150
146
|
begin
|
151
147
|
#List repositories
|
152
|
-
result = api_instance.
|
148
|
+
result = api_instance.list(opts)
|
153
149
|
p result
|
154
150
|
rescue PulpcoreClient::ApiError => e
|
155
|
-
puts "Exception when calling RepositoriesApi->
|
151
|
+
puts "Exception when calling RepositoriesApi->list: #{e}"
|
156
152
|
end
|
157
153
|
```
|
158
154
|
|
@@ -180,9 +176,9 @@ Name | Type | Description | Notes
|
|
180
176
|
- **Accept**: application/json
|
181
177
|
|
182
178
|
|
183
|
-
##
|
179
|
+
## partial_update
|
184
180
|
|
185
|
-
> Repository
|
181
|
+
> Repository partial_update(repository_href, data)
|
186
182
|
|
187
183
|
Partially update a repository
|
188
184
|
|
@@ -204,10 +200,10 @@ data = PulpcoreClient::Repository.new # Repository |
|
|
204
200
|
|
205
201
|
begin
|
206
202
|
#Partially update a repository
|
207
|
-
result = api_instance.
|
203
|
+
result = api_instance.partial_update(repository_href, data)
|
208
204
|
p result
|
209
205
|
rescue PulpcoreClient::ApiError => e
|
210
|
-
puts "Exception when calling RepositoriesApi->
|
206
|
+
puts "Exception when calling RepositoriesApi->partial_update: #{e}"
|
211
207
|
end
|
212
208
|
```
|
213
209
|
|
@@ -233,9 +229,9 @@ Name | Type | Description | Notes
|
|
233
229
|
- **Accept**: application/json
|
234
230
|
|
235
231
|
|
236
|
-
##
|
232
|
+
## read
|
237
233
|
|
238
|
-
> Repository
|
234
|
+
> Repository read(repository_href)
|
239
235
|
|
240
236
|
Inspect a repository
|
241
237
|
|
@@ -256,10 +252,10 @@ repository_href = 'repository_href_example' # String | URI of Repository. e.g.:
|
|
256
252
|
|
257
253
|
begin
|
258
254
|
#Inspect a repository
|
259
|
-
result = api_instance.
|
255
|
+
result = api_instance.read(repository_href)
|
260
256
|
p result
|
261
257
|
rescue PulpcoreClient::ApiError => e
|
262
|
-
puts "Exception when calling RepositoriesApi->
|
258
|
+
puts "Exception when calling RepositoriesApi->read: #{e}"
|
263
259
|
end
|
264
260
|
```
|
265
261
|
|
@@ -284,9 +280,9 @@ Name | Type | Description | Notes
|
|
284
280
|
- **Accept**: application/json
|
285
281
|
|
286
282
|
|
287
|
-
##
|
283
|
+
## update
|
288
284
|
|
289
|
-
> AsyncOperationResponse
|
285
|
+
> AsyncOperationResponse update(repository_href, data)
|
290
286
|
|
291
287
|
Update a repository
|
292
288
|
|
@@ -310,10 +306,10 @@ data = PulpcoreClient::Repository.new # Repository |
|
|
310
306
|
|
311
307
|
begin
|
312
308
|
#Update a repository
|
313
|
-
result = api_instance.
|
309
|
+
result = api_instance.update(repository_href, data)
|
314
310
|
p result
|
315
311
|
rescue PulpcoreClient::ApiError => e
|
316
|
-
puts "Exception when calling RepositoriesApi->
|
312
|
+
puts "Exception when calling RepositoriesApi->update: #{e}"
|
317
313
|
end
|
318
314
|
```
|
319
315
|
|
@@ -338,247 +334,3 @@ Name | Type | Description | Notes
|
|
338
334
|
- **Content-Type**: application/json
|
339
335
|
- **Accept**: application/json
|
340
336
|
|
341
|
-
|
342
|
-
## repositories_versions_create
|
343
|
-
|
344
|
-
> AsyncOperationResponse repositories_versions_create(repository_href, data)
|
345
|
-
|
346
|
-
Create a repository version
|
347
|
-
|
348
|
-
Trigger an asynchronous task to create a new repository version.
|
349
|
-
|
350
|
-
### Example
|
351
|
-
|
352
|
-
```ruby
|
353
|
-
# load the gem
|
354
|
-
require 'pulpcore_client'
|
355
|
-
# setup authorization
|
356
|
-
PulpcoreClient.configure do |config|
|
357
|
-
# Configure HTTP basic authorization: Basic
|
358
|
-
config.username = 'YOUR USERNAME'
|
359
|
-
config.password = 'YOUR PASSWORD'
|
360
|
-
end
|
361
|
-
|
362
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
363
|
-
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
364
|
-
data = PulpcoreClient::RepositoryVersionCreate.new # RepositoryVersionCreate |
|
365
|
-
|
366
|
-
begin
|
367
|
-
#Create a repository version
|
368
|
-
result = api_instance.repositories_versions_create(repository_href, data)
|
369
|
-
p result
|
370
|
-
rescue PulpcoreClient::ApiError => e
|
371
|
-
puts "Exception when calling RepositoriesApi->repositories_versions_create: #{e}"
|
372
|
-
end
|
373
|
-
```
|
374
|
-
|
375
|
-
### Parameters
|
376
|
-
|
377
|
-
|
378
|
-
Name | Type | Description | Notes
|
379
|
-
------------- | ------------- | ------------- | -------------
|
380
|
-
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
381
|
-
**data** | [**RepositoryVersionCreate**](RepositoryVersionCreate.md)| |
|
382
|
-
|
383
|
-
### Return type
|
384
|
-
|
385
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
386
|
-
|
387
|
-
### Authorization
|
388
|
-
|
389
|
-
[Basic](../README.md#Basic)
|
390
|
-
|
391
|
-
### HTTP request headers
|
392
|
-
|
393
|
-
- **Content-Type**: application/json
|
394
|
-
- **Accept**: application/json
|
395
|
-
|
396
|
-
|
397
|
-
## repositories_versions_delete
|
398
|
-
|
399
|
-
> AsyncOperationResponse repositories_versions_delete(repository_version_href)
|
400
|
-
|
401
|
-
Delete a repository version
|
402
|
-
|
403
|
-
Trigger an asynchronous task to delete a repositroy version.
|
404
|
-
|
405
|
-
### Example
|
406
|
-
|
407
|
-
```ruby
|
408
|
-
# load the gem
|
409
|
-
require 'pulpcore_client'
|
410
|
-
# setup authorization
|
411
|
-
PulpcoreClient.configure do |config|
|
412
|
-
# Configure HTTP basic authorization: Basic
|
413
|
-
config.username = 'YOUR USERNAME'
|
414
|
-
config.password = 'YOUR PASSWORD'
|
415
|
-
end
|
416
|
-
|
417
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
418
|
-
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
419
|
-
|
420
|
-
begin
|
421
|
-
#Delete a repository version
|
422
|
-
result = api_instance.repositories_versions_delete(repository_version_href)
|
423
|
-
p result
|
424
|
-
rescue PulpcoreClient::ApiError => e
|
425
|
-
puts "Exception when calling RepositoriesApi->repositories_versions_delete: #{e}"
|
426
|
-
end
|
427
|
-
```
|
428
|
-
|
429
|
-
### Parameters
|
430
|
-
|
431
|
-
|
432
|
-
Name | Type | Description | Notes
|
433
|
-
------------- | ------------- | ------------- | -------------
|
434
|
-
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
435
|
-
|
436
|
-
### Return type
|
437
|
-
|
438
|
-
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
439
|
-
|
440
|
-
### Authorization
|
441
|
-
|
442
|
-
[Basic](../README.md#Basic)
|
443
|
-
|
444
|
-
### HTTP request headers
|
445
|
-
|
446
|
-
- **Content-Type**: Not defined
|
447
|
-
- **Accept**: application/json
|
448
|
-
|
449
|
-
|
450
|
-
## repositories_versions_list
|
451
|
-
|
452
|
-
> InlineResponse2002 repositories_versions_list(repository_href, opts)
|
453
|
-
|
454
|
-
List repository versions
|
455
|
-
|
456
|
-
### Example
|
457
|
-
|
458
|
-
```ruby
|
459
|
-
# load the gem
|
460
|
-
require 'pulpcore_client'
|
461
|
-
# setup authorization
|
462
|
-
PulpcoreClient.configure do |config|
|
463
|
-
# Configure HTTP basic authorization: Basic
|
464
|
-
config.username = 'YOUR USERNAME'
|
465
|
-
config.password = 'YOUR PASSWORD'
|
466
|
-
end
|
467
|
-
|
468
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
469
|
-
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
470
|
-
opts = {
|
471
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
472
|
-
number: 3.4, # Float |
|
473
|
-
number__lt: 3.4, # Float | Filter results where number is less than value
|
474
|
-
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
475
|
-
number__gt: 3.4, # Float | Filter results where number is greater than value
|
476
|
-
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
477
|
-
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
478
|
-
_created__lt: '_created__lt_example', # String | Filter results where _created is less than value
|
479
|
-
_created__lte: '_created__lte_example', # String | Filter results where _created is less than or equal to value
|
480
|
-
_created__gt: '_created__gt_example', # String | Filter results where _created is greater than value
|
481
|
-
_created__gte: '_created__gte_example', # String | Filter results where _created is greater than or equal to value
|
482
|
-
_created__range: '_created__range_example', # String | Filter results where _created is between two comma separated values
|
483
|
-
content: 'content_example', # String | Content Unit referenced by HREF
|
484
|
-
_created: '_created_example', # String | ISO 8601 formatted dates are supported
|
485
|
-
page: 56, # Integer | A page number within the paginated result set.
|
486
|
-
page_size: 56 # Integer | Number of results to return per page.
|
487
|
-
}
|
488
|
-
|
489
|
-
begin
|
490
|
-
#List repository versions
|
491
|
-
result = api_instance.repositories_versions_list(repository_href, opts)
|
492
|
-
p result
|
493
|
-
rescue PulpcoreClient::ApiError => e
|
494
|
-
puts "Exception when calling RepositoriesApi->repositories_versions_list: #{e}"
|
495
|
-
end
|
496
|
-
```
|
497
|
-
|
498
|
-
### Parameters
|
499
|
-
|
500
|
-
|
501
|
-
Name | Type | Description | Notes
|
502
|
-
------------- | ------------- | ------------- | -------------
|
503
|
-
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
504
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
505
|
-
**number** | **Float**| | [optional]
|
506
|
-
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
507
|
-
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
508
|
-
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
509
|
-
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
510
|
-
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
511
|
-
**_created__lt** | **String**| Filter results where _created is less than value | [optional]
|
512
|
-
**_created__lte** | **String**| Filter results where _created is less than or equal to value | [optional]
|
513
|
-
**_created__gt** | **String**| Filter results where _created is greater than value | [optional]
|
514
|
-
**_created__gte** | **String**| Filter results where _created is greater than or equal to value | [optional]
|
515
|
-
**_created__range** | **String**| Filter results where _created is between two comma separated values | [optional]
|
516
|
-
**content** | **String**| Content Unit referenced by HREF | [optional]
|
517
|
-
**_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
518
|
-
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
519
|
-
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
520
|
-
|
521
|
-
### Return type
|
522
|
-
|
523
|
-
[**InlineResponse2002**](InlineResponse2002.md)
|
524
|
-
|
525
|
-
### Authorization
|
526
|
-
|
527
|
-
[Basic](../README.md#Basic)
|
528
|
-
|
529
|
-
### HTTP request headers
|
530
|
-
|
531
|
-
- **Content-Type**: Not defined
|
532
|
-
- **Accept**: application/json
|
533
|
-
|
534
|
-
|
535
|
-
## repositories_versions_read
|
536
|
-
|
537
|
-
> RepositoryVersion repositories_versions_read(repository_version_href)
|
538
|
-
|
539
|
-
Inspect a repository version
|
540
|
-
|
541
|
-
### Example
|
542
|
-
|
543
|
-
```ruby
|
544
|
-
# load the gem
|
545
|
-
require 'pulpcore_client'
|
546
|
-
# setup authorization
|
547
|
-
PulpcoreClient.configure do |config|
|
548
|
-
# Configure HTTP basic authorization: Basic
|
549
|
-
config.username = 'YOUR USERNAME'
|
550
|
-
config.password = 'YOUR PASSWORD'
|
551
|
-
end
|
552
|
-
|
553
|
-
api_instance = PulpcoreClient::RepositoriesApi.new
|
554
|
-
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
555
|
-
|
556
|
-
begin
|
557
|
-
#Inspect a repository version
|
558
|
-
result = api_instance.repositories_versions_read(repository_version_href)
|
559
|
-
p result
|
560
|
-
rescue PulpcoreClient::ApiError => e
|
561
|
-
puts "Exception when calling RepositoriesApi->repositories_versions_read: #{e}"
|
562
|
-
end
|
563
|
-
```
|
564
|
-
|
565
|
-
### Parameters
|
566
|
-
|
567
|
-
|
568
|
-
Name | Type | Description | Notes
|
569
|
-
------------- | ------------- | ------------- | -------------
|
570
|
-
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
571
|
-
|
572
|
-
### Return type
|
573
|
-
|
574
|
-
[**RepositoryVersion**](RepositoryVersion.md)
|
575
|
-
|
576
|
-
### Authorization
|
577
|
-
|
578
|
-
[Basic](../README.md#Basic)
|
579
|
-
|
580
|
-
### HTTP request headers
|
581
|
-
|
582
|
-
- **Content-Type**: Not defined
|
583
|
-
- **Accept**: application/json
|
584
|
-
|
@@ -0,0 +1,256 @@
|
|
1
|
+
# PulpcoreClient::RepositoriesVersionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create**](RepositoriesVersionsApi.md#create) | **POST** {repository_href}versions/ | Create a repository version
|
8
|
+
[**delete**](RepositoriesVersionsApi.md#delete) | **DELETE** {repository_version_href} | Delete a repository version
|
9
|
+
[**list**](RepositoriesVersionsApi.md#list) | **GET** {repository_href}versions/ | List repository versions
|
10
|
+
[**read**](RepositoriesVersionsApi.md#read) | **GET** {repository_version_href} | Inspect a repository version
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## create
|
15
|
+
|
16
|
+
> AsyncOperationResponse create(repository_href, data)
|
17
|
+
|
18
|
+
Create a repository version
|
19
|
+
|
20
|
+
Trigger an asynchronous task to create a new repository version.
|
21
|
+
|
22
|
+
### Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'pulpcore_client'
|
27
|
+
# setup authorization
|
28
|
+
PulpcoreClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: Basic
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
35
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
36
|
+
data = PulpcoreClient::RepositoryVersionCreate.new # RepositoryVersionCreate |
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Create a repository version
|
40
|
+
result = api_instance.create(repository_href, data)
|
41
|
+
p result
|
42
|
+
rescue PulpcoreClient::ApiError => e
|
43
|
+
puts "Exception when calling RepositoriesVersionsApi->create: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
53
|
+
**data** | [**RepositoryVersionCreate**](RepositoryVersionCreate.md)| |
|
54
|
+
|
55
|
+
### Return type
|
56
|
+
|
57
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
58
|
+
|
59
|
+
### Authorization
|
60
|
+
|
61
|
+
[Basic](../README.md#Basic)
|
62
|
+
|
63
|
+
### HTTP request headers
|
64
|
+
|
65
|
+
- **Content-Type**: application/json
|
66
|
+
- **Accept**: application/json
|
67
|
+
|
68
|
+
|
69
|
+
## delete
|
70
|
+
|
71
|
+
> AsyncOperationResponse delete(repository_version_href)
|
72
|
+
|
73
|
+
Delete a repository version
|
74
|
+
|
75
|
+
Trigger an asynchronous task to delete a repositroy version.
|
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: Basic
|
85
|
+
config.username = 'YOUR USERNAME'
|
86
|
+
config.password = 'YOUR PASSWORD'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
90
|
+
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
91
|
+
|
92
|
+
begin
|
93
|
+
#Delete a repository version
|
94
|
+
result = api_instance.delete(repository_version_href)
|
95
|
+
p result
|
96
|
+
rescue PulpcoreClient::ApiError => e
|
97
|
+
puts "Exception when calling RepositoriesVersionsApi->delete: #{e}"
|
98
|
+
end
|
99
|
+
```
|
100
|
+
|
101
|
+
### Parameters
|
102
|
+
|
103
|
+
|
104
|
+
Name | Type | Description | Notes
|
105
|
+
------------- | ------------- | ------------- | -------------
|
106
|
+
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
107
|
+
|
108
|
+
### Return type
|
109
|
+
|
110
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
111
|
+
|
112
|
+
### Authorization
|
113
|
+
|
114
|
+
[Basic](../README.md#Basic)
|
115
|
+
|
116
|
+
### HTTP request headers
|
117
|
+
|
118
|
+
- **Content-Type**: Not defined
|
119
|
+
- **Accept**: application/json
|
120
|
+
|
121
|
+
|
122
|
+
## list
|
123
|
+
|
124
|
+
> InlineResponse2002 list(repository_href, opts)
|
125
|
+
|
126
|
+
List repository versions
|
127
|
+
|
128
|
+
### Example
|
129
|
+
|
130
|
+
```ruby
|
131
|
+
# load the gem
|
132
|
+
require 'pulpcore_client'
|
133
|
+
# setup authorization
|
134
|
+
PulpcoreClient.configure do |config|
|
135
|
+
# Configure HTTP basic authorization: Basic
|
136
|
+
config.username = 'YOUR USERNAME'
|
137
|
+
config.password = 'YOUR PASSWORD'
|
138
|
+
end
|
139
|
+
|
140
|
+
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
141
|
+
repository_href = 'repository_href_example' # String | URI of Repository. e.g.: /pulp/api/v3/repositories/1/
|
142
|
+
opts = {
|
143
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
144
|
+
number: 3.4, # Float |
|
145
|
+
number__lt: 3.4, # Float | Filter results where number is less than value
|
146
|
+
number__lte: 3.4, # Float | Filter results where number is less than or equal to value
|
147
|
+
number__gt: 3.4, # Float | Filter results where number is greater than value
|
148
|
+
number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
|
149
|
+
number__range: 3.4, # Float | Filter results where number is between two comma separated values
|
150
|
+
_created__lt: '_created__lt_example', # String | Filter results where _created is less than value
|
151
|
+
_created__lte: '_created__lte_example', # String | Filter results where _created is less than or equal to value
|
152
|
+
_created__gt: '_created__gt_example', # String | Filter results where _created is greater than value
|
153
|
+
_created__gte: '_created__gte_example', # String | Filter results where _created is greater than or equal to value
|
154
|
+
_created__range: '_created__range_example', # String | Filter results where _created is between two comma separated values
|
155
|
+
content: 'content_example', # String | Content Unit referenced by HREF
|
156
|
+
_created: '_created_example', # String | ISO 8601 formatted dates are supported
|
157
|
+
page: 56, # Integer | A page number within the paginated result set.
|
158
|
+
page_size: 56 # Integer | Number of results to return per page.
|
159
|
+
}
|
160
|
+
|
161
|
+
begin
|
162
|
+
#List repository versions
|
163
|
+
result = api_instance.list(repository_href, opts)
|
164
|
+
p result
|
165
|
+
rescue PulpcoreClient::ApiError => e
|
166
|
+
puts "Exception when calling RepositoriesVersionsApi->list: #{e}"
|
167
|
+
end
|
168
|
+
```
|
169
|
+
|
170
|
+
### Parameters
|
171
|
+
|
172
|
+
|
173
|
+
Name | Type | Description | Notes
|
174
|
+
------------- | ------------- | ------------- | -------------
|
175
|
+
**repository_href** | **String**| URI of Repository. e.g.: /pulp/api/v3/repositories/1/ |
|
176
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
177
|
+
**number** | **Float**| | [optional]
|
178
|
+
**number__lt** | **Float**| Filter results where number is less than value | [optional]
|
179
|
+
**number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
|
180
|
+
**number__gt** | **Float**| Filter results where number is greater than value | [optional]
|
181
|
+
**number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
|
182
|
+
**number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
|
183
|
+
**_created__lt** | **String**| Filter results where _created is less than value | [optional]
|
184
|
+
**_created__lte** | **String**| Filter results where _created is less than or equal to value | [optional]
|
185
|
+
**_created__gt** | **String**| Filter results where _created is greater than value | [optional]
|
186
|
+
**_created__gte** | **String**| Filter results where _created is greater than or equal to value | [optional]
|
187
|
+
**_created__range** | **String**| Filter results where _created is between two comma separated values | [optional]
|
188
|
+
**content** | **String**| Content Unit referenced by HREF | [optional]
|
189
|
+
**_created** | **String**| ISO 8601 formatted dates are supported | [optional]
|
190
|
+
**page** | **Integer**| A page number within the paginated result set. | [optional]
|
191
|
+
**page_size** | **Integer**| Number of results to return per page. | [optional]
|
192
|
+
|
193
|
+
### Return type
|
194
|
+
|
195
|
+
[**InlineResponse2002**](InlineResponse2002.md)
|
196
|
+
|
197
|
+
### Authorization
|
198
|
+
|
199
|
+
[Basic](../README.md#Basic)
|
200
|
+
|
201
|
+
### HTTP request headers
|
202
|
+
|
203
|
+
- **Content-Type**: Not defined
|
204
|
+
- **Accept**: application/json
|
205
|
+
|
206
|
+
|
207
|
+
## read
|
208
|
+
|
209
|
+
> RepositoryVersion read(repository_version_href)
|
210
|
+
|
211
|
+
Inspect a repository version
|
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: Basic
|
221
|
+
config.username = 'YOUR USERNAME'
|
222
|
+
config.password = 'YOUR PASSWORD'
|
223
|
+
end
|
224
|
+
|
225
|
+
api_instance = PulpcoreClient::RepositoriesVersionsApi.new
|
226
|
+
repository_version_href = 'repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
|
227
|
+
|
228
|
+
begin
|
229
|
+
#Inspect a repository version
|
230
|
+
result = api_instance.read(repository_version_href)
|
231
|
+
p result
|
232
|
+
rescue PulpcoreClient::ApiError => e
|
233
|
+
puts "Exception when calling RepositoriesVersionsApi->read: #{e}"
|
234
|
+
end
|
235
|
+
```
|
236
|
+
|
237
|
+
### Parameters
|
238
|
+
|
239
|
+
|
240
|
+
Name | Type | Description | Notes
|
241
|
+
------------- | ------------- | ------------- | -------------
|
242
|
+
**repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/ |
|
243
|
+
|
244
|
+
### Return type
|
245
|
+
|
246
|
+
[**RepositoryVersion**](RepositoryVersion.md)
|
247
|
+
|
248
|
+
### Authorization
|
249
|
+
|
250
|
+
[Basic](../README.md#Basic)
|
251
|
+
|
252
|
+
### HTTP request headers
|
253
|
+
|
254
|
+
- **Content-Type**: Not defined
|
255
|
+
- **Accept**: application/json
|
256
|
+
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**add_content_units** | **Array<String>** | A list of content units to add to a new repository version |
|
8
|
-
**remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version |
|
7
|
+
**add_content_units** | **Array<String>** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional]
|
8
|
+
**remove_content_units** | **Array<String>** | A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added. | [optional]
|
9
9
|
**base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|