pulp_container_client 2.28.1 → 2.29.1
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 +9 -6
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +20 -20
- data/docs/ContainerContainerPullThroughDistribution.md +9 -9
- data/docs/ContainerContainerPullThroughDistributionResponse.md +20 -20
- data/docs/ContainerContainerPushRepository.md +8 -8
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerRepositorySyncURL.md +1 -1
- data/docs/ContentBlobsApi.md +4 -0
- data/docs/ContentManifestsApi.md +4 -0
- data/docs/ContentSignaturesApi.md +4 -0
- data/docs/ContentTagsApi.md +4 -0
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +9 -9
- data/docs/PatchedcontainerContainerPushRepository.md +8 -8
- data/docs/RepositoriesContainerApi.md +3 -3
- data/docs/RepositoriesContainerPushApi.md +75 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +6 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +6 -0
- data/lib/pulp_container_client/api/content_signatures_api.rb +6 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +6 -0
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +42 -42
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +43 -43
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +82 -82
- data/lib/pulp_container_client/models/container_container_push_repository.rb +68 -68
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +83 -83
- data/lib/pulp_container_client/models/container_repository_sync_url.rb +1 -1
- data/lib/pulp_container_client/models/nested_role.rb +1 -1
- data/lib/pulp_container_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +66 -66
- data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +2 -0
- data/spec/api/content_manifests_api_spec.rb +2 -0
- data/spec/api/content_signatures_api_spec.rb +2 -0
- data/spec/api/content_tags_api_spec.rb +2 -0
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +13 -0
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +60 -60
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **
|
|
8
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
7
|
+
| **repository_version** | **String** | RepositoryVersion to be served | [optional] |
|
|
9
8
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional] |
|
|
10
|
-
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
11
9
|
| **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
|
|
12
|
-
| **
|
|
13
|
-
| **
|
|
10
|
+
| **base_path** | **String** | The registry path exposed by this pull-through distribution. | [optional] |
|
|
11
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
12
|
+
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
13
|
+
| **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
|
|
14
14
|
| **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
|
|
15
15
|
| **distributions** | **Array<String>** | Distributions created after pulling content through cache | [optional] |
|
|
16
16
|
| **private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional] |
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
require 'pulp_container_client'
|
|
23
23
|
|
|
24
24
|
instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(
|
|
25
|
-
|
|
26
|
-
pulp_labels: null,
|
|
25
|
+
repository_version: null,
|
|
27
26
|
name: null,
|
|
28
|
-
hidden: null,
|
|
29
27
|
repository: null,
|
|
30
|
-
repository_version: null,
|
|
31
28
|
base_path: null,
|
|
29
|
+
pulp_labels: null,
|
|
30
|
+
hidden: null,
|
|
31
|
+
content_guard: null,
|
|
32
32
|
remote: null,
|
|
33
33
|
distributions: null,
|
|
34
34
|
private: null,
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | A unique name for this repository. | [optional] |
|
|
7
8
|
| **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
|
|
8
|
-
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
9
|
-
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
10
|
-
| **description** | **String** | An optional description. | [optional] |
|
|
11
9
|
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
12
|
-
| **
|
|
10
|
+
| **description** | **String** | An optional description. | [optional] |
|
|
11
|
+
| **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
|
|
12
|
+
| **retain_checkpoints** | **Integer** | Retain X checkpoint publications for the repository. Default is null which retains all checkpoints. | [optional] |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
require 'pulp_container_client'
|
|
18
18
|
|
|
19
19
|
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
|
|
20
|
+
name: null,
|
|
20
21
|
manifest_signing_service: null,
|
|
21
|
-
retain_checkpoints: null,
|
|
22
|
-
retain_repo_versions: null,
|
|
23
|
-
description: null,
|
|
24
22
|
pulp_labels: null,
|
|
25
|
-
|
|
23
|
+
description: null,
|
|
24
|
+
retain_repo_versions: null,
|
|
25
|
+
retain_checkpoints: null
|
|
26
26
|
)
|
|
27
27
|
```
|
|
28
28
|
|
|
@@ -419,7 +419,7 @@ end
|
|
|
419
419
|
|
|
420
420
|
Create a container repository
|
|
421
421
|
|
|
422
|
-
ViewSet for container repo.
|
|
422
|
+
ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
423
423
|
|
|
424
424
|
### Examples
|
|
425
425
|
|
|
@@ -567,7 +567,7 @@ end
|
|
|
567
567
|
|
|
568
568
|
List container repositorys
|
|
569
569
|
|
|
570
|
-
ViewSet for container repo.
|
|
570
|
+
ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
571
571
|
|
|
572
572
|
### Examples
|
|
573
573
|
|
|
@@ -947,7 +947,7 @@ end
|
|
|
947
947
|
|
|
948
948
|
Inspect a container repository
|
|
949
949
|
|
|
950
|
-
ViewSet for container repo.
|
|
950
|
+
ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
951
951
|
|
|
952
952
|
### Examples
|
|
953
953
|
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:24817*
|
|
|
7
7
|
| [**add_role**](RepositoriesContainerPushApi.md#add_role) | **POST** {container_container_push_repository_href}add_role/ | Add a role |
|
|
8
8
|
| [**list**](RepositoriesContainerPushApi.md#list) | **GET** /pulp/api/v3/repositories/container/container-push/ | List container push repositorys |
|
|
9
9
|
| [**list_roles**](RepositoriesContainerPushApi.md#list_roles) | **GET** {container_container_push_repository_href}list_roles/ | List roles |
|
|
10
|
+
| [**migrate**](RepositoriesContainerPushApi.md#migrate) | **POST** {container_container_push_repository_href}migrate/ | Migrate push repository to container repository |
|
|
10
11
|
| [**my_permissions**](RepositoriesContainerPushApi.md#my_permissions) | **GET** {container_container_push_repository_href}my_permissions/ | List user permissions |
|
|
11
12
|
| [**partial_update**](RepositoriesContainerPushApi.md#partial_update) | **PATCH** {container_container_push_repository_href} | Update a container push repository |
|
|
12
13
|
| [**read**](RepositoriesContainerPushApi.md#read) | **GET** {container_container_push_repository_href} | Inspect a container push repository |
|
|
@@ -321,6 +322,80 @@ end
|
|
|
321
322
|
- **Accept**: application/json
|
|
322
323
|
|
|
323
324
|
|
|
325
|
+
## migrate
|
|
326
|
+
|
|
327
|
+
> <AsyncOperationResponse> migrate(container_container_push_repository_href, opts)
|
|
328
|
+
|
|
329
|
+
Migrate push repository to container repository
|
|
330
|
+
|
|
331
|
+
Trigger an asynchronous task to convert this push repository into a container repository in place. The repository primary key and version history are preserved; only the repository type changes.
|
|
332
|
+
|
|
333
|
+
### Examples
|
|
334
|
+
|
|
335
|
+
```ruby
|
|
336
|
+
require 'time'
|
|
337
|
+
require 'pulp_container_client'
|
|
338
|
+
# setup authorization
|
|
339
|
+
PulpContainerClient.configure do |config|
|
|
340
|
+
# Configure HTTP basic authorization: basicAuth
|
|
341
|
+
config.username = 'YOUR USERNAME'
|
|
342
|
+
config.password = 'YOUR PASSWORD'
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
api_instance = PulpContainerClient::RepositoriesContainerPushApi.new
|
|
346
|
+
container_container_push_repository_href = 'container_container_push_repository_href_example' # String |
|
|
347
|
+
opts = {
|
|
348
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
begin
|
|
352
|
+
# Migrate push repository to container repository
|
|
353
|
+
result = api_instance.migrate(container_container_push_repository_href, opts)
|
|
354
|
+
p result
|
|
355
|
+
rescue PulpContainerClient::ApiError => e
|
|
356
|
+
puts "Error when calling RepositoriesContainerPushApi->migrate: #{e}"
|
|
357
|
+
end
|
|
358
|
+
```
|
|
359
|
+
|
|
360
|
+
#### Using the migrate_with_http_info variant
|
|
361
|
+
|
|
362
|
+
This returns an Array which contains the response data, status code and headers.
|
|
363
|
+
|
|
364
|
+
> <Array(<AsyncOperationResponse>, Integer, Hash)> migrate_with_http_info(container_container_push_repository_href, opts)
|
|
365
|
+
|
|
366
|
+
```ruby
|
|
367
|
+
begin
|
|
368
|
+
# Migrate push repository to container repository
|
|
369
|
+
data, status_code, headers = api_instance.migrate_with_http_info(container_container_push_repository_href, opts)
|
|
370
|
+
p status_code # => 2xx
|
|
371
|
+
p headers # => { ... }
|
|
372
|
+
p data # => <AsyncOperationResponse>
|
|
373
|
+
rescue PulpContainerClient::ApiError => e
|
|
374
|
+
puts "Error when calling RepositoriesContainerPushApi->migrate_with_http_info: #{e}"
|
|
375
|
+
end
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Parameters
|
|
379
|
+
|
|
380
|
+
| Name | Type | Description | Notes |
|
|
381
|
+
| ---- | ---- | ----------- | ----- |
|
|
382
|
+
| **container_container_push_repository_href** | **String** | | |
|
|
383
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
|
384
|
+
|
|
385
|
+
### Return type
|
|
386
|
+
|
|
387
|
+
[**AsyncOperationResponse**](AsyncOperationResponse.md)
|
|
388
|
+
|
|
389
|
+
### Authorization
|
|
390
|
+
|
|
391
|
+
[basicAuth](../README.md#basicAuth)
|
|
392
|
+
|
|
393
|
+
### HTTP request headers
|
|
394
|
+
|
|
395
|
+
- **Content-Type**: Not defined
|
|
396
|
+
- **Accept**: application/json
|
|
397
|
+
|
|
398
|
+
|
|
324
399
|
## my_permissions
|
|
325
400
|
|
|
326
401
|
> <MyPermissionsResponse> my_permissions(container_container_push_repository_href, opts)
|
|
@@ -23,6 +23,7 @@ module PulpContainerClient
|
|
|
23
23
|
# ViewSet for Blobs.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [String] :digest Filter results where digest matches value
|
|
27
28
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
28
29
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -34,6 +35,7 @@ module PulpContainerClient
|
|
|
34
35
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
35
36
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
36
37
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
38
|
+
# @option opts [Array<String>] :removed_between
|
|
37
39
|
# @option opts [String] :repository_version
|
|
38
40
|
# @option opts [String] :repository_version_added
|
|
39
41
|
# @option opts [String] :repository_version_removed
|
|
@@ -49,6 +51,7 @@ module PulpContainerClient
|
|
|
49
51
|
# ViewSet for Blobs.
|
|
50
52
|
# @param [Hash] opts the optional parameters
|
|
51
53
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
54
|
+
# @option opts [Array<String>] :added_between
|
|
52
55
|
# @option opts [String] :digest Filter results where digest matches value
|
|
53
56
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
54
57
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
@@ -60,6 +63,7 @@ module PulpContainerClient
|
|
|
60
63
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
61
64
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
62
65
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
66
|
+
# @option opts [Array<String>] :removed_between
|
|
63
67
|
# @option opts [String] :repository_version
|
|
64
68
|
# @option opts [String] :repository_version_added
|
|
65
69
|
# @option opts [String] :repository_version_removed
|
|
@@ -79,6 +83,7 @@ module PulpContainerClient
|
|
|
79
83
|
|
|
80
84
|
# query parameters
|
|
81
85
|
query_params = opts[:query_params] || {}
|
|
86
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
82
87
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
83
88
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
|
84
89
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
@@ -90,6 +95,7 @@ module PulpContainerClient
|
|
|
90
95
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
91
96
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
92
97
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
98
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
93
99
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
94
100
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
95
101
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -23,6 +23,7 @@ module PulpContainerClient
|
|
|
23
23
|
# ViewSet for Manifest.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [String] :digest Filter results where digest matches value
|
|
27
28
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
28
29
|
# @option opts [Boolean] :is_bootable Filter results where is_bootable matches value
|
|
@@ -37,6 +38,7 @@ module PulpContainerClient
|
|
|
37
38
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
38
39
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
39
40
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
41
|
+
# @option opts [Array<String>] :removed_between
|
|
40
42
|
# @option opts [String] :repository_version
|
|
41
43
|
# @option opts [String] :repository_version_added
|
|
42
44
|
# @option opts [String] :repository_version_removed
|
|
@@ -52,6 +54,7 @@ module PulpContainerClient
|
|
|
52
54
|
# ViewSet for Manifest.
|
|
53
55
|
# @param [Hash] opts the optional parameters
|
|
54
56
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
57
|
+
# @option opts [Array<String>] :added_between
|
|
55
58
|
# @option opts [String] :digest Filter results where digest matches value
|
|
56
59
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
57
60
|
# @option opts [Boolean] :is_bootable Filter results where is_bootable matches value
|
|
@@ -66,6 +69,7 @@ module PulpContainerClient
|
|
|
66
69
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
67
70
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
68
71
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
72
|
+
# @option opts [Array<String>] :removed_between
|
|
69
73
|
# @option opts [String] :repository_version
|
|
70
74
|
# @option opts [String] :repository_version_added
|
|
71
75
|
# @option opts [String] :repository_version_removed
|
|
@@ -89,6 +93,7 @@ module PulpContainerClient
|
|
|
89
93
|
|
|
90
94
|
# query parameters
|
|
91
95
|
query_params = opts[:query_params] || {}
|
|
96
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
92
97
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
93
98
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
|
94
99
|
query_params[:'is_bootable'] = opts[:'is_bootable'] if !opts[:'is_bootable'].nil?
|
|
@@ -103,6 +108,7 @@ module PulpContainerClient
|
|
|
103
108
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
104
109
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
105
110
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
111
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
106
112
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
107
113
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
108
114
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -23,6 +23,7 @@ module PulpContainerClient
|
|
|
23
23
|
# ViewSet for image signatures.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [String] :digest Filter results where digest matches value
|
|
27
28
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
28
29
|
# @option opts [String] :key_id Filter results where key_id matches value
|
|
@@ -46,6 +47,7 @@ module PulpContainerClient
|
|
|
46
47
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
47
48
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
48
49
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
50
|
+
# @option opts [Array<String>] :removed_between
|
|
49
51
|
# @option opts [String] :repository_version
|
|
50
52
|
# @option opts [String] :repository_version_added
|
|
51
53
|
# @option opts [String] :repository_version_removed
|
|
@@ -61,6 +63,7 @@ module PulpContainerClient
|
|
|
61
63
|
# ViewSet for image signatures.
|
|
62
64
|
# @param [Hash] opts the optional parameters
|
|
63
65
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
66
|
+
# @option opts [Array<String>] :added_between
|
|
64
67
|
# @option opts [String] :digest Filter results where digest matches value
|
|
65
68
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
66
69
|
# @option opts [String] :key_id Filter results where key_id matches value
|
|
@@ -84,6 +87,7 @@ module PulpContainerClient
|
|
|
84
87
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
85
88
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
86
89
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
90
|
+
# @option opts [Array<String>] :removed_between
|
|
87
91
|
# @option opts [String] :repository_version
|
|
88
92
|
# @option opts [String] :repository_version_added
|
|
89
93
|
# @option opts [String] :repository_version_removed
|
|
@@ -103,6 +107,7 @@ module PulpContainerClient
|
|
|
103
107
|
|
|
104
108
|
# query parameters
|
|
105
109
|
query_params = opts[:query_params] || {}
|
|
110
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
106
111
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
107
112
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
|
108
113
|
query_params[:'key_id'] = opts[:'key_id'] if !opts[:'key_id'].nil?
|
|
@@ -126,6 +131,7 @@ module PulpContainerClient
|
|
|
126
131
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
127
132
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
128
133
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
134
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
129
135
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
130
136
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
131
137
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -23,6 +23,7 @@ module PulpContainerClient
|
|
|
23
23
|
# ViewSet for Tag.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
26
|
+
# @option opts [Array<String>] :added_between
|
|
26
27
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
27
28
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
28
29
|
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
@@ -36,6 +37,7 @@ module PulpContainerClient
|
|
|
36
37
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
37
38
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
38
39
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
40
|
+
# @option opts [Array<String>] :removed_between
|
|
39
41
|
# @option opts [String] :repository_version
|
|
40
42
|
# @option opts [String] :repository_version_added
|
|
41
43
|
# @option opts [String] :repository_version_removed
|
|
@@ -51,6 +53,7 @@ module PulpContainerClient
|
|
|
51
53
|
# ViewSet for Tag.
|
|
52
54
|
# @param [Hash] opts the optional parameters
|
|
53
55
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
56
|
+
# @option opts [Array<String>] :added_between
|
|
54
57
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
55
58
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
56
59
|
# @option opts [Array<String>] :media_type * `application/vnd.docker.distribution.manifest.v1+json` - application/vnd.docker.distribution.manifest.v1+json * `application/vnd.docker.distribution.manifest.v2+json` - application/vnd.docker.distribution.manifest.v2+json * `application/vnd.docker.distribution.manifest.list.v2+json` - application/vnd.docker.distribution.manifest.list.v2+json * `application/vnd.oci.image.manifest.v1+json` - application/vnd.oci.image.manifest.v1+json * `application/vnd.oci.image.index.v1+json` - application/vnd.oci.image.index.v1+json
|
|
@@ -64,6 +67,7 @@ module PulpContainerClient
|
|
|
64
67
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
|
65
68
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
|
66
69
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
70
|
+
# @option opts [Array<String>] :removed_between
|
|
67
71
|
# @option opts [String] :repository_version
|
|
68
72
|
# @option opts [String] :repository_version_added
|
|
69
73
|
# @option opts [String] :repository_version_removed
|
|
@@ -87,6 +91,7 @@ module PulpContainerClient
|
|
|
87
91
|
|
|
88
92
|
# query parameters
|
|
89
93
|
query_params = opts[:query_params] || {}
|
|
94
|
+
query_params[:'added_between'] = @api_client.build_collection_param(opts[:'added_between'], :csv) if !opts[:'added_between'].nil?
|
|
90
95
|
query_params[:'digest'] = @api_client.build_collection_param(opts[:'digest'], :csv) if !opts[:'digest'].nil?
|
|
91
96
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
92
97
|
query_params[:'media_type'] = @api_client.build_collection_param(opts[:'media_type'], :multi) if !opts[:'media_type'].nil?
|
|
@@ -100,6 +105,7 @@ module PulpContainerClient
|
|
|
100
105
|
query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
|
|
101
106
|
query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
|
|
102
107
|
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
108
|
+
query_params[:'removed_between'] = @api_client.build_collection_param(opts[:'removed_between'], :csv) if !opts[:'removed_between'].nil?
|
|
103
109
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
104
110
|
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
105
111
|
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
@@ -748,8 +748,7 @@ module PulpContainerClient
|
|
|
748
748
|
return data, status_code, headers
|
|
749
749
|
end
|
|
750
750
|
|
|
751
|
-
#
|
|
752
|
-
# Set a single pulp_label on the object to a specific value or null.
|
|
751
|
+
# Prevent clients from changing the internal pull-through marker.
|
|
753
752
|
# @param container_container_pull_through_distribution_href [String]
|
|
754
753
|
# @param set_label [SetLabel]
|
|
755
754
|
# @param [Hash] opts the optional parameters
|
|
@@ -760,8 +759,7 @@ module PulpContainerClient
|
|
|
760
759
|
data
|
|
761
760
|
end
|
|
762
761
|
|
|
763
|
-
#
|
|
764
|
-
# Set a single pulp_label on the object to a specific value or null.
|
|
762
|
+
# Prevent clients from changing the internal pull-through marker.
|
|
765
763
|
# @param container_container_pull_through_distribution_href [String]
|
|
766
764
|
# @param set_label [SetLabel]
|
|
767
765
|
# @param [Hash] opts the optional parameters
|
|
@@ -825,8 +823,7 @@ module PulpContainerClient
|
|
|
825
823
|
return data, status_code, headers
|
|
826
824
|
end
|
|
827
825
|
|
|
828
|
-
#
|
|
829
|
-
# Unset a single pulp_label on the object.
|
|
826
|
+
# Prevent clients from removing the internal pull-through marker.
|
|
830
827
|
# @param container_container_pull_through_distribution_href [String]
|
|
831
828
|
# @param unset_label [UnsetLabel]
|
|
832
829
|
# @param [Hash] opts the optional parameters
|
|
@@ -837,8 +834,7 @@ module PulpContainerClient
|
|
|
837
834
|
data
|
|
838
835
|
end
|
|
839
836
|
|
|
840
|
-
#
|
|
841
|
-
# Unset a single pulp_label on the object.
|
|
837
|
+
# Prevent clients from removing the internal pull-through marker.
|
|
842
838
|
# @param container_container_pull_through_distribution_href [String]
|
|
843
839
|
# @param unset_label [UnsetLabel]
|
|
844
840
|
# @param [Hash] opts the optional parameters
|
|
@@ -415,7 +415,7 @@ module PulpContainerClient
|
|
|
415
415
|
end
|
|
416
416
|
|
|
417
417
|
# Create a container repository
|
|
418
|
-
# ViewSet for container repo.
|
|
418
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
419
419
|
# @param container_container_repository [ContainerContainerRepository]
|
|
420
420
|
# @param [Hash] opts the optional parameters
|
|
421
421
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -426,7 +426,7 @@ module PulpContainerClient
|
|
|
426
426
|
end
|
|
427
427
|
|
|
428
428
|
# Create a container repository
|
|
429
|
-
# ViewSet for container repo.
|
|
429
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
430
430
|
# @param container_container_repository [ContainerContainerRepository]
|
|
431
431
|
# @param [Hash] opts the optional parameters
|
|
432
432
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -552,7 +552,7 @@ module PulpContainerClient
|
|
|
552
552
|
end
|
|
553
553
|
|
|
554
554
|
# List container repositorys
|
|
555
|
-
# ViewSet for container repo.
|
|
555
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
556
556
|
# @param [Hash] opts the optional parameters
|
|
557
557
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
558
558
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
|
@@ -600,7 +600,7 @@ module PulpContainerClient
|
|
|
600
600
|
end
|
|
601
601
|
|
|
602
602
|
# List container repositorys
|
|
603
|
-
# ViewSet for container repo.
|
|
603
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
604
604
|
# @param [Hash] opts the optional parameters
|
|
605
605
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
606
606
|
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
|
@@ -951,7 +951,7 @@ module PulpContainerClient
|
|
|
951
951
|
end
|
|
952
952
|
|
|
953
953
|
# Inspect a container repository
|
|
954
|
-
# ViewSet for container repo.
|
|
954
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
955
955
|
# @param container_container_repository_href [String]
|
|
956
956
|
# @param [Hash] opts the optional parameters
|
|
957
957
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -964,7 +964,7 @@ module PulpContainerClient
|
|
|
964
964
|
end
|
|
965
965
|
|
|
966
966
|
# Inspect a container repository
|
|
967
|
-
# ViewSet for container repo.
|
|
967
|
+
# ViewSet for container repo. Repositories linked to a registry distribution inherit the distribution's access policy for read and content-modifying actions, matching legacy push repository behavior.
|
|
968
968
|
# @param container_container_repository_href [String]
|
|
969
969
|
# @param [Hash] opts the optional parameters
|
|
970
970
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
@@ -346,6 +346,72 @@ module PulpContainerClient
|
|
|
346
346
|
return data, status_code, headers
|
|
347
347
|
end
|
|
348
348
|
|
|
349
|
+
# Migrate push repository to container repository
|
|
350
|
+
# Trigger an asynchronous task to convert this push repository into a container repository in place. The repository primary key and version history are preserved; only the repository type changes.
|
|
351
|
+
# @param container_container_push_repository_href [String]
|
|
352
|
+
# @param [Hash] opts the optional parameters
|
|
353
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
354
|
+
# @return [AsyncOperationResponse]
|
|
355
|
+
def migrate(container_container_push_repository_href, opts = {})
|
|
356
|
+
data, _status_code, _headers = migrate_with_http_info(container_container_push_repository_href, opts)
|
|
357
|
+
data
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Migrate push repository to container repository
|
|
361
|
+
# Trigger an asynchronous task to convert this push repository into a container repository in place. The repository primary key and version history are preserved; only the repository type changes.
|
|
362
|
+
# @param container_container_push_repository_href [String]
|
|
363
|
+
# @param [Hash] opts the optional parameters
|
|
364
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
365
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
|
366
|
+
def migrate_with_http_info(container_container_push_repository_href, opts = {})
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.migrate ...'
|
|
369
|
+
end
|
|
370
|
+
# verify the required parameter 'container_container_push_repository_href' is set
|
|
371
|
+
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
372
|
+
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.migrate"
|
|
373
|
+
end
|
|
374
|
+
# resource path
|
|
375
|
+
local_var_path = '{container_container_push_repository_href}migrate/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
|
376
|
+
|
|
377
|
+
# query parameters
|
|
378
|
+
query_params = opts[:query_params] || {}
|
|
379
|
+
|
|
380
|
+
# header parameters
|
|
381
|
+
header_params = opts[:header_params] || {}
|
|
382
|
+
# HTTP header 'Accept' (if needed)
|
|
383
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
384
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
|
385
|
+
|
|
386
|
+
# form parameters
|
|
387
|
+
form_params = opts[:form_params] || {}
|
|
388
|
+
|
|
389
|
+
# http body (model)
|
|
390
|
+
post_body = opts[:debug_body]
|
|
391
|
+
|
|
392
|
+
# return_type
|
|
393
|
+
return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
|
|
394
|
+
|
|
395
|
+
# auth_names
|
|
396
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
397
|
+
|
|
398
|
+
new_options = opts.merge(
|
|
399
|
+
:operation => :"RepositoriesContainerPushApi.migrate",
|
|
400
|
+
:header_params => header_params,
|
|
401
|
+
:query_params => query_params,
|
|
402
|
+
:form_params => form_params,
|
|
403
|
+
:body => post_body,
|
|
404
|
+
:auth_names => auth_names,
|
|
405
|
+
:return_type => return_type
|
|
406
|
+
)
|
|
407
|
+
|
|
408
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
409
|
+
if @api_client.config.debugging
|
|
410
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerPushApi#migrate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
411
|
+
end
|
|
412
|
+
return data, status_code, headers
|
|
413
|
+
end
|
|
414
|
+
|
|
349
415
|
# List user permissions
|
|
350
416
|
# List permissions available to the current user on this object.
|
|
351
417
|
# @param container_container_push_repository_href [String]
|