pulp_container_client 2.5.0.dev1617593889 → 2.5.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 +5 -5
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/ContentTagsApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/lib/pulp_container_client/api/content_blobs_api.rb +5 -5
- data/lib/pulp_container_client/api/content_manifests_api.rb +5 -5
- data/lib/pulp_container_client/api/content_tags_api.rb +5 -5
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +40 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -43
- data/lib/pulp_container_client/models/content_summary.rb +6 -12
- data/lib/pulp_container_client/models/content_summary_response.rb +6 -12
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f9de070d310494d1ab525af039d295b66e155e0a6cd97780659bfcf7c3ad51b
|
|
4
|
+
data.tar.gz: 782c4d2bcde01fd3584be999479f5aeb44d267108176e0c03927031283e2a21c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3c66aac1dd1453ebaab5030d828664e0980eeaf801692eeff4cd8d199f8c3e497bacc7fd22cfc5d851aebd71d460026f8d1b6bee547ae0eb57b0c7e2fa02525
|
|
7
|
+
data.tar.gz: 43710081acc11a36826a0960678621e977272ff5faaf1f16904ec95e3ff9b45ab818708b2487119184718cf383728aff2c00eb5c00a2e4a4792461ffa1ed1396
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 2.5.
|
|
10
|
+
- Package version: 2.5.1
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build pulp_container_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_container_client-2.5.
|
|
27
|
+
gem install ./pulp_container_client-2.5.1.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.5.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.5.1.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'pulp_container_client', '~> 2.5.
|
|
36
|
+
gem 'pulp_container_client', '~> 2.5.1'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -69,7 +69,7 @@ opts = {
|
|
|
69
69
|
digest: 'digest_example', # String | Filter results where digest matches value
|
|
70
70
|
digest__in: ['digest__in_example'], # Array<String> | Filter results where digest is in a comma-separated list of values
|
|
71
71
|
limit: 56, # Integer | Number of results to return per page.
|
|
72
|
-
media_type:
|
|
72
|
+
media_type: 'media_type_example', # String |
|
|
73
73
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
74
74
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
75
75
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
8
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
9
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
7
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
8
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
12
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
11
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
12
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
|
15
15
|
|
|
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
|
22
|
-
repository: null,
|
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(repository_version: null,
|
|
23
22
|
pulp_labels: null,
|
|
24
|
-
base_path: null,
|
|
25
|
-
repository_version: null,
|
|
26
23
|
content_guard: null,
|
|
24
|
+
name: null,
|
|
25
|
+
repository: null,
|
|
26
|
+
base_path: null,
|
|
27
27
|
private: null,
|
|
28
28
|
description: null)
|
|
29
29
|
```
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
8
|
-
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
11
|
-
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
12
7
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
8
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
9
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
13
10
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
14
11
|
**pulp_href** | **String** | | [optional] [readonly]
|
|
12
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
13
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
14
|
+
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
|
|
15
15
|
**registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
|
16
16
|
**namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
|
|
17
17
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
|
@@ -22,14 +22,14 @@ Name | Type | Description | Notes
|
|
|
22
22
|
```ruby
|
|
23
23
|
require 'PulpContainerClient'
|
|
24
24
|
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
|
26
|
-
repository: null,
|
|
27
|
-
pulp_labels: null,
|
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(repository_version: null,
|
|
28
26
|
pulp_created: null,
|
|
29
|
-
|
|
30
|
-
repository_version: null,
|
|
27
|
+
pulp_labels: null,
|
|
31
28
|
content_guard: null,
|
|
32
29
|
pulp_href: null,
|
|
30
|
+
name: null,
|
|
31
|
+
repository: null,
|
|
32
|
+
base_path: null,
|
|
33
33
|
registry_path: null,
|
|
34
34
|
namespace: null,
|
|
35
35
|
private: null,
|
data/docs/ContentBlobsApi.md
CHANGED
|
@@ -34,7 +34,7 @@ opts = {
|
|
|
34
34
|
digest: 'digest_example', # String | Filter results where digest matches value
|
|
35
35
|
digest__in: ['digest__in_example'], # Array<String> | Filter results where digest is in a comma-separated list of values
|
|
36
36
|
limit: 56, # Integer | Number of results to return per page.
|
|
37
|
-
media_type:
|
|
37
|
+
media_type: 'media_type_example', # String |
|
|
38
38
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
39
39
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
40
40
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
|
61
61
|
**digest** | **String**| Filter results where digest matches value | [optional]
|
|
62
62
|
**digest__in** | [**Array<String>**](String.md)| Filter results where digest is in a comma-separated list of values | [optional]
|
|
63
63
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
64
|
-
**media_type** |
|
|
64
|
+
**media_type** | **String**| | [optional]
|
|
65
65
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
66
66
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
67
67
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
data/docs/ContentManifestsApi.md
CHANGED
|
@@ -34,7 +34,7 @@ opts = {
|
|
|
34
34
|
digest: 'digest_example', # String | Filter results where digest matches value
|
|
35
35
|
digest__in: ['digest__in_example'], # Array<String> | Filter results where digest is in a comma-separated list of values
|
|
36
36
|
limit: 56, # Integer | Number of results to return per page.
|
|
37
|
-
media_type:
|
|
37
|
+
media_type: 'media_type_example', # String |
|
|
38
38
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
39
39
|
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
|
40
40
|
repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
|
61
61
|
**digest** | **String**| Filter results where digest matches value | [optional]
|
|
62
62
|
**digest__in** | [**Array<String>**](String.md)| Filter results where digest is in a comma-separated list of values | [optional]
|
|
63
63
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
64
|
-
**media_type** |
|
|
64
|
+
**media_type** | **String**| | [optional]
|
|
65
65
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
66
66
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
|
67
67
|
**repository_version** | **String**| Repository Version referenced by HREF | [optional]
|
data/docs/ContentSummary.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**added** | **
|
|
8
|
-
**removed** | **
|
|
9
|
-
**present** | **
|
|
7
|
+
**added** | [**Object**](.md) | |
|
|
8
|
+
**removed** | [**Object**](.md) | |
|
|
9
|
+
**present** | [**Object**](.md) | |
|
|
10
10
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**added** | **
|
|
8
|
-
**removed** | **
|
|
9
|
-
**present** | **
|
|
7
|
+
**added** | [**Object**](.md) | |
|
|
8
|
+
**removed** | [**Object**](.md) | |
|
|
9
|
+
**present** | [**Object**](.md) | |
|
|
10
10
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
data/docs/ContentTagsApi.md
CHANGED
|
@@ -33,7 +33,7 @@ api_instance = PulpContainerClient::ContentTagsApi.new
|
|
|
33
33
|
opts = {
|
|
34
34
|
digest: ['digest_example'], # Array<String> | Multiple values may be separated by commas.
|
|
35
35
|
limit: 56, # Integer | Number of results to return per page.
|
|
36
|
-
media_type:
|
|
36
|
+
media_type: 'media_type_example', # String |
|
|
37
37
|
name: 'name_example', # String | Filter results where name matches value
|
|
38
38
|
name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
|
|
39
39
|
offset: 56, # Integer | The initial index from which to return the results.
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
|
61
61
|
------------- | ------------- | ------------- | -------------
|
|
62
62
|
**digest** | [**Array<String>**](String.md)| Multiple values may be separated by commas. | [optional]
|
|
63
63
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
|
64
|
-
**media_type** |
|
|
64
|
+
**media_type** | **String**| | [optional]
|
|
65
65
|
**name** | **String**| Filter results where name matches value | [optional]
|
|
66
66
|
**name__in** | [**Array<String>**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
|
|
67
67
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
8
|
+
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
9
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
7
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
8
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
-
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
12
|
**base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | [optional]
|
|
11
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
12
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
13
13
|
**private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
|
|
14
14
|
**description** | **String** | An optional description. | [optional]
|
|
15
15
|
|
|
@@ -18,12 +18,12 @@ Name | Type | Description | Notes
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
|
22
|
-
repository: null,
|
|
21
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(repository_version: null,
|
|
23
22
|
pulp_labels: null,
|
|
24
|
-
base_path: null,
|
|
25
|
-
repository_version: null,
|
|
26
23
|
content_guard: null,
|
|
24
|
+
name: null,
|
|
25
|
+
repository: null,
|
|
26
|
+
base_path: null,
|
|
27
27
|
private: null,
|
|
28
28
|
description: null)
|
|
29
29
|
```
|
|
@@ -25,7 +25,7 @@ module PulpContainerClient
|
|
|
25
25
|
# @option opts [String] :digest Filter results where digest matches value
|
|
26
26
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
27
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
28
|
-
# @option opts [
|
|
28
|
+
# @option opts [String] :media_type
|
|
29
29
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
30
30
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
31
31
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -45,7 +45,7 @@ module PulpContainerClient
|
|
|
45
45
|
# @option opts [String] :digest Filter results where digest matches value
|
|
46
46
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
47
47
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
48
|
-
# @option opts [
|
|
48
|
+
# @option opts [String] :media_type
|
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
50
50
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
51
51
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -59,8 +59,8 @@ module PulpContainerClient
|
|
|
59
59
|
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.list ...'
|
|
60
60
|
end
|
|
61
61
|
allowable_values = ["application/vnd.docker.container.image.v1+json", "application/vnd.docker.image.rootfs.diff.tar.gzip", "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip", "application/vnd.oci.image.config.v1+json", "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip", "application/vnd.oci.image.layer.v1.tar+gzip"]
|
|
62
|
-
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type']
|
|
63
|
-
fail ArgumentError, "invalid value for \"media_type\", must
|
|
62
|
+
if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
|
|
63
|
+
fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
|
|
64
64
|
end
|
|
65
65
|
# resource path
|
|
66
66
|
local_var_path = '/pulp/api/v3/content/container/blobs/'
|
|
@@ -70,7 +70,7 @@ module PulpContainerClient
|
|
|
70
70
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
71
71
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
|
72
72
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
73
|
-
query_params[:'media_type'] =
|
|
73
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
|
74
74
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
75
75
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
76
76
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
@@ -25,7 +25,7 @@ module PulpContainerClient
|
|
|
25
25
|
# @option opts [String] :digest Filter results where digest matches value
|
|
26
26
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
27
27
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
28
|
-
# @option opts [
|
|
28
|
+
# @option opts [String] :media_type
|
|
29
29
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
30
30
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
31
31
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -45,7 +45,7 @@ module PulpContainerClient
|
|
|
45
45
|
# @option opts [String] :digest Filter results where digest matches value
|
|
46
46
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
47
47
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
48
|
-
# @option opts [
|
|
48
|
+
# @option opts [String] :media_type
|
|
49
49
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
50
50
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
51
51
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -59,8 +59,8 @@ module PulpContainerClient
|
|
|
59
59
|
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.list ...'
|
|
60
60
|
end
|
|
61
61
|
allowable_values = ["application/vnd.docker.distribution.manifest.list.v2+json", "application/vnd.docker.distribution.manifest.v1+json", "application/vnd.docker.distribution.manifest.v2+json", "application/vnd.oci.image.index.v1+json", "application/vnd.oci.image.manifest.v1+json"]
|
|
62
|
-
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type']
|
|
63
|
-
fail ArgumentError, "invalid value for \"media_type\", must
|
|
62
|
+
if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
|
|
63
|
+
fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
|
|
64
64
|
end
|
|
65
65
|
# resource path
|
|
66
66
|
local_var_path = '/pulp/api/v3/content/container/manifests/'
|
|
@@ -70,7 +70,7 @@ module PulpContainerClient
|
|
|
70
70
|
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
71
71
|
query_params[:'digest__in'] = @api_client.build_collection_param(opts[:'digest__in'], :csv) if !opts[:'digest__in'].nil?
|
|
72
72
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
73
|
-
query_params[:'media_type'] =
|
|
73
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
|
74
74
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
75
75
|
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
76
76
|
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
@@ -24,7 +24,7 @@ module PulpContainerClient
|
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
26
26
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
27
|
-
# @option opts [
|
|
27
|
+
# @option opts [String] :media_type
|
|
28
28
|
# @option opts [String] :name Filter results where name matches value
|
|
29
29
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
30
30
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
@@ -45,7 +45,7 @@ module PulpContainerClient
|
|
|
45
45
|
# @param [Hash] opts the optional parameters
|
|
46
46
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
47
47
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
48
|
-
# @option opts [
|
|
48
|
+
# @option opts [String] :media_type
|
|
49
49
|
# @option opts [String] :name Filter results where name matches value
|
|
50
50
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
51
51
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
@@ -61,8 +61,8 @@ module PulpContainerClient
|
|
|
61
61
|
@api_client.config.logger.debug 'Calling API: ContentTagsApi.list ...'
|
|
62
62
|
end
|
|
63
63
|
allowable_values = ["application/vnd.docker.distribution.manifest.list.v2+json", "application/vnd.docker.distribution.manifest.v1+json", "application/vnd.docker.distribution.manifest.v2+json", "application/vnd.oci.image.index.v1+json", "application/vnd.oci.image.manifest.v1+json"]
|
|
64
|
-
if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type']
|
|
65
|
-
fail ArgumentError, "invalid value for \"media_type\", must
|
|
64
|
+
if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
|
|
65
|
+
fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
|
|
66
66
|
end
|
|
67
67
|
# resource path
|
|
68
68
|
local_var_path = '/pulp/api/v3/content/container/tags/'
|
|
@@ -71,7 +71,7 @@ module PulpContainerClient
|
|
|
71
71
|
query_params = opts[:query_params] || {}
|
|
72
72
|
query_params[:'digest'] = @api_client.build_collection_param(opts[:'digest'], :csv) if !opts[:'digest'].nil?
|
|
73
73
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
74
|
-
query_params[:'media_type'] =
|
|
74
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
|
75
75
|
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
76
76
|
query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
|
|
77
77
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
@@ -204,6 +204,26 @@ module PulpContainerClient
|
|
|
204
204
|
if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
|
|
205
205
|
fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerVersionsApi.list"
|
|
206
206
|
end
|
|
207
|
+
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
|
208
|
+
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
|
212
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
|
216
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
|
220
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
|
224
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list, must be smaller than or equal to 2147483647.'
|
|
225
|
+
end
|
|
226
|
+
|
|
207
227
|
# resource path
|
|
208
228
|
local_var_path = '{container_container_push_repository_href}versions/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
|
|
209
229
|
|
|
@@ -323,6 +343,26 @@ module PulpContainerClient
|
|
|
323
343
|
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
|
324
344
|
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerVersionsApi.list_0"
|
|
325
345
|
end
|
|
346
|
+
if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
|
|
347
|
+
fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
|
|
351
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
|
|
355
|
+
fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
|
|
359
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
|
|
363
|
+
fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesContainerVersionsApi.list_0, must be smaller than or equal to 2147483647.'
|
|
364
|
+
end
|
|
365
|
+
|
|
326
366
|
# resource path
|
|
327
367
|
local_var_path = '{container_container_repository_href}versions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
|
328
368
|
|
|
@@ -15,23 +15,23 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistribution
|
|
18
|
+
# RepositoryVersion to be served
|
|
19
|
+
attr_accessor :repository_version
|
|
20
|
+
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
|
+
attr_accessor :content_guard
|
|
25
|
+
|
|
18
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
27
|
attr_accessor :name
|
|
20
28
|
|
|
21
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
22
30
|
attr_accessor :repository
|
|
23
31
|
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
32
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
33
|
attr_accessor :base_path
|
|
28
34
|
|
|
29
|
-
# RepositoryVersion to be served
|
|
30
|
-
attr_accessor :repository_version
|
|
31
|
-
|
|
32
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
|
-
attr_accessor :content_guard
|
|
34
|
-
|
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
36
36
|
attr_accessor :private
|
|
37
37
|
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
+
:'repository_version' => :'repository_version',
|
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
|
46
|
+
:'content_guard' => :'content_guard',
|
|
44
47
|
:'name' => :'name',
|
|
45
48
|
:'repository' => :'repository',
|
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
|
47
49
|
:'base_path' => :'base_path',
|
|
48
|
-
:'repository_version' => :'repository_version',
|
|
49
|
-
:'content_guard' => :'content_guard',
|
|
50
50
|
:'private' => :'private',
|
|
51
51
|
:'description' => :'description'
|
|
52
52
|
}
|
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
+
:'repository_version' => :'String',
|
|
59
|
+
:'pulp_labels' => :'Object',
|
|
60
|
+
:'content_guard' => :'String',
|
|
58
61
|
:'name' => :'String',
|
|
59
62
|
:'repository' => :'String',
|
|
60
|
-
:'pulp_labels' => :'Object',
|
|
61
63
|
:'base_path' => :'String',
|
|
62
|
-
:'repository_version' => :'String',
|
|
63
|
-
:'content_guard' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
65
65
|
:'description' => :'String'
|
|
66
66
|
}
|
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
|
69
69
|
# List of attributes with nullable: true
|
|
70
70
|
def self.openapi_nullable
|
|
71
71
|
Set.new([
|
|
72
|
-
:'repository',
|
|
73
72
|
:'repository_version',
|
|
73
|
+
:'repository',
|
|
74
74
|
:'description'
|
|
75
75
|
])
|
|
76
76
|
end
|
|
@@ -90,28 +90,28 @@ module PulpContainerClient
|
|
|
90
90
|
h[k.to_sym] = v
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'repository')
|
|
98
|
-
self.repository = attributes[:'repository']
|
|
93
|
+
if attributes.key?(:'repository_version')
|
|
94
|
+
self.repository_version = attributes[:'repository_version']
|
|
99
95
|
end
|
|
100
96
|
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
|
102
98
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
103
99
|
end
|
|
104
100
|
|
|
105
|
-
if attributes.key?(:'
|
|
106
|
-
self.
|
|
101
|
+
if attributes.key?(:'content_guard')
|
|
102
|
+
self.content_guard = attributes[:'content_guard']
|
|
107
103
|
end
|
|
108
104
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
105
|
+
if attributes.key?(:'name')
|
|
106
|
+
self.name = attributes[:'name']
|
|
111
107
|
end
|
|
112
108
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
109
|
+
if attributes.key?(:'repository')
|
|
110
|
+
self.repository = attributes[:'repository']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'base_path')
|
|
114
|
+
self.base_path = attributes[:'base_path']
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
if attributes.key?(:'private')
|
|
@@ -151,12 +151,12 @@ module PulpContainerClient
|
|
|
151
151
|
def ==(o)
|
|
152
152
|
return true if self.equal?(o)
|
|
153
153
|
self.class == o.class &&
|
|
154
|
+
repository_version == o.repository_version &&
|
|
155
|
+
pulp_labels == o.pulp_labels &&
|
|
156
|
+
content_guard == o.content_guard &&
|
|
154
157
|
name == o.name &&
|
|
155
158
|
repository == o.repository &&
|
|
156
|
-
pulp_labels == o.pulp_labels &&
|
|
157
159
|
base_path == o.base_path &&
|
|
158
|
-
repository_version == o.repository_version &&
|
|
159
|
-
content_guard == o.content_guard &&
|
|
160
160
|
private == o.private &&
|
|
161
161
|
description == o.description
|
|
162
162
|
end
|
|
@@ -170,7 +170,7 @@ module PulpContainerClient
|
|
|
170
170
|
# Calculates hash code according to all attributes.
|
|
171
171
|
# @return [Integer] Hash code
|
|
172
172
|
def hash
|
|
173
|
-
[
|
|
173
|
+
[repository_version, pulp_labels, content_guard, name, repository, base_path, private, description].hash
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
# Builds the object from hash
|
|
@@ -15,28 +15,28 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
20
|
-
|
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
22
|
-
attr_accessor :repository
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_labels
|
|
18
|
+
# RepositoryVersion to be served
|
|
19
|
+
attr_accessor :repository_version
|
|
25
20
|
|
|
26
21
|
# Timestamp of creation.
|
|
27
22
|
attr_accessor :pulp_created
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
attr_accessor :base_path
|
|
31
|
-
|
|
32
|
-
# RepositoryVersion to be served
|
|
33
|
-
attr_accessor :repository_version
|
|
24
|
+
attr_accessor :pulp_labels
|
|
34
25
|
|
|
35
26
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
36
27
|
attr_accessor :content_guard
|
|
37
28
|
|
|
38
29
|
attr_accessor :pulp_href
|
|
39
30
|
|
|
31
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
32
|
+
attr_accessor :name
|
|
33
|
+
|
|
34
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
35
|
+
attr_accessor :repository
|
|
36
|
+
|
|
37
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
38
|
+
attr_accessor :base_path
|
|
39
|
+
|
|
40
40
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
|
41
41
|
attr_accessor :registry_path
|
|
42
42
|
|
|
@@ -52,14 +52,14 @@ module PulpContainerClient
|
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
53
|
def self.attribute_map
|
|
54
54
|
{
|
|
55
|
-
:'name' => :'name',
|
|
56
|
-
:'repository' => :'repository',
|
|
57
|
-
:'pulp_labels' => :'pulp_labels',
|
|
58
|
-
:'pulp_created' => :'pulp_created',
|
|
59
|
-
:'base_path' => :'base_path',
|
|
60
55
|
:'repository_version' => :'repository_version',
|
|
56
|
+
:'pulp_created' => :'pulp_created',
|
|
57
|
+
:'pulp_labels' => :'pulp_labels',
|
|
61
58
|
:'content_guard' => :'content_guard',
|
|
62
59
|
:'pulp_href' => :'pulp_href',
|
|
60
|
+
:'name' => :'name',
|
|
61
|
+
:'repository' => :'repository',
|
|
62
|
+
:'base_path' => :'base_path',
|
|
63
63
|
:'registry_path' => :'registry_path',
|
|
64
64
|
:'namespace' => :'namespace',
|
|
65
65
|
:'private' => :'private',
|
|
@@ -70,14 +70,14 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'name' => :'String',
|
|
74
|
-
:'repository' => :'String',
|
|
75
|
-
:'pulp_labels' => :'Object',
|
|
76
|
-
:'pulp_created' => :'DateTime',
|
|
77
|
-
:'base_path' => :'String',
|
|
78
73
|
:'repository_version' => :'String',
|
|
74
|
+
:'pulp_created' => :'DateTime',
|
|
75
|
+
:'pulp_labels' => :'Object',
|
|
79
76
|
:'content_guard' => :'String',
|
|
80
77
|
:'pulp_href' => :'String',
|
|
78
|
+
:'name' => :'String',
|
|
79
|
+
:'repository' => :'String',
|
|
80
|
+
:'base_path' => :'String',
|
|
81
81
|
:'registry_path' => :'String',
|
|
82
82
|
:'namespace' => :'String',
|
|
83
83
|
:'private' => :'Boolean',
|
|
@@ -88,8 +88,8 @@ module PulpContainerClient
|
|
|
88
88
|
# List of attributes with nullable: true
|
|
89
89
|
def self.openapi_nullable
|
|
90
90
|
Set.new([
|
|
91
|
-
:'repository',
|
|
92
91
|
:'repository_version',
|
|
92
|
+
:'repository',
|
|
93
93
|
:'description'
|
|
94
94
|
])
|
|
95
95
|
end
|
|
@@ -109,36 +109,36 @@ module PulpContainerClient
|
|
|
109
109
|
h[k.to_sym] = v
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
112
|
+
if attributes.key?(:'repository_version')
|
|
113
|
+
self.repository_version = attributes[:'repository_version']
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
116
|
+
if attributes.key?(:'pulp_created')
|
|
117
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
if attributes.key?(:'pulp_labels')
|
|
121
121
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
122
122
|
end
|
|
123
123
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
124
|
+
if attributes.key?(:'content_guard')
|
|
125
|
+
self.content_guard = attributes[:'content_guard']
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if attributes.key?(:'
|
|
129
|
-
self.
|
|
128
|
+
if attributes.key?(:'pulp_href')
|
|
129
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
130
130
|
end
|
|
131
131
|
|
|
132
|
-
if attributes.key?(:'
|
|
133
|
-
self.
|
|
132
|
+
if attributes.key?(:'name')
|
|
133
|
+
self.name = attributes[:'name']
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
self.
|
|
136
|
+
if attributes.key?(:'repository')
|
|
137
|
+
self.repository = attributes[:'repository']
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
self.
|
|
140
|
+
if attributes.key?(:'base_path')
|
|
141
|
+
self.base_path = attributes[:'base_path']
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
if attributes.key?(:'registry_path')
|
|
@@ -186,14 +186,14 @@ module PulpContainerClient
|
|
|
186
186
|
def ==(o)
|
|
187
187
|
return true if self.equal?(o)
|
|
188
188
|
self.class == o.class &&
|
|
189
|
-
name == o.name &&
|
|
190
|
-
repository == o.repository &&
|
|
191
|
-
pulp_labels == o.pulp_labels &&
|
|
192
|
-
pulp_created == o.pulp_created &&
|
|
193
|
-
base_path == o.base_path &&
|
|
194
189
|
repository_version == o.repository_version &&
|
|
190
|
+
pulp_created == o.pulp_created &&
|
|
191
|
+
pulp_labels == o.pulp_labels &&
|
|
195
192
|
content_guard == o.content_guard &&
|
|
196
193
|
pulp_href == o.pulp_href &&
|
|
194
|
+
name == o.name &&
|
|
195
|
+
repository == o.repository &&
|
|
196
|
+
base_path == o.base_path &&
|
|
197
197
|
registry_path == o.registry_path &&
|
|
198
198
|
namespace == o.namespace &&
|
|
199
199
|
private == o.private &&
|
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
|
209
209
|
# Calculates hash code according to all attributes.
|
|
210
210
|
# @return [Integer] Hash code
|
|
211
211
|
def hash
|
|
212
|
-
[
|
|
212
|
+
[repository_version, pulp_created, pulp_labels, content_guard, pulp_href, name, repository, base_path, registry_path, namespace, private, description].hash
|
|
213
213
|
end
|
|
214
214
|
|
|
215
215
|
# Builds the object from hash
|
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
|
33
33
|
# Attribute type mapping.
|
|
34
34
|
def self.openapi_types
|
|
35
35
|
{
|
|
36
|
-
:'added' => :'
|
|
37
|
-
:'removed' => :'
|
|
38
|
-
:'present' => :'
|
|
36
|
+
:'added' => :'Object',
|
|
37
|
+
:'removed' => :'Object',
|
|
38
|
+
:'present' => :'Object'
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -61,21 +61,15 @@ module PulpContainerClient
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
if attributes.key?(:'added')
|
|
64
|
-
|
|
65
|
-
self.added = value
|
|
66
|
-
end
|
|
64
|
+
self.added = attributes[:'added']
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
if attributes.key?(:'removed')
|
|
70
|
-
|
|
71
|
-
self.removed = value
|
|
72
|
-
end
|
|
68
|
+
self.removed = attributes[:'removed']
|
|
73
69
|
end
|
|
74
70
|
|
|
75
71
|
if attributes.key?(:'present')
|
|
76
|
-
|
|
77
|
-
self.present = value
|
|
78
|
-
end
|
|
72
|
+
self.present = attributes[:'present']
|
|
79
73
|
end
|
|
80
74
|
end
|
|
81
75
|
|
|
@@ -33,9 +33,9 @@ module PulpContainerClient
|
|
|
33
33
|
# Attribute type mapping.
|
|
34
34
|
def self.openapi_types
|
|
35
35
|
{
|
|
36
|
-
:'added' => :'
|
|
37
|
-
:'removed' => :'
|
|
38
|
-
:'present' => :'
|
|
36
|
+
:'added' => :'Object',
|
|
37
|
+
:'removed' => :'Object',
|
|
38
|
+
:'present' => :'Object'
|
|
39
39
|
}
|
|
40
40
|
end
|
|
41
41
|
|
|
@@ -61,21 +61,15 @@ module PulpContainerClient
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
if attributes.key?(:'added')
|
|
64
|
-
|
|
65
|
-
self.added = value
|
|
66
|
-
end
|
|
64
|
+
self.added = attributes[:'added']
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
if attributes.key?(:'removed')
|
|
70
|
-
|
|
71
|
-
self.removed = value
|
|
72
|
-
end
|
|
68
|
+
self.removed = attributes[:'removed']
|
|
73
69
|
end
|
|
74
70
|
|
|
75
71
|
if attributes.key?(:'present')
|
|
76
|
-
|
|
77
|
-
self.present = value
|
|
78
|
-
end
|
|
72
|
+
self.present = attributes[:'present']
|
|
79
73
|
end
|
|
80
74
|
end
|
|
81
75
|
|
|
@@ -15,23 +15,23 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
+
# RepositoryVersion to be served
|
|
19
|
+
attr_accessor :repository_version
|
|
20
|
+
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
24
|
+
attr_accessor :content_guard
|
|
25
|
+
|
|
18
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
27
|
attr_accessor :name
|
|
20
28
|
|
|
21
29
|
# The latest RepositoryVersion for this Repository will be served.
|
|
22
30
|
attr_accessor :repository
|
|
23
31
|
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
32
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
33
|
attr_accessor :base_path
|
|
28
34
|
|
|
29
|
-
# RepositoryVersion to be served
|
|
30
|
-
attr_accessor :repository_version
|
|
31
|
-
|
|
32
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
|
-
attr_accessor :content_guard
|
|
34
|
-
|
|
35
35
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
36
36
|
attr_accessor :private
|
|
37
37
|
|
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
+
:'repository_version' => :'repository_version',
|
|
45
|
+
:'pulp_labels' => :'pulp_labels',
|
|
46
|
+
:'content_guard' => :'content_guard',
|
|
44
47
|
:'name' => :'name',
|
|
45
48
|
:'repository' => :'repository',
|
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
|
47
49
|
:'base_path' => :'base_path',
|
|
48
|
-
:'repository_version' => :'repository_version',
|
|
49
|
-
:'content_guard' => :'content_guard',
|
|
50
50
|
:'private' => :'private',
|
|
51
51
|
:'description' => :'description'
|
|
52
52
|
}
|
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
+
:'repository_version' => :'String',
|
|
59
|
+
:'pulp_labels' => :'Object',
|
|
60
|
+
:'content_guard' => :'String',
|
|
58
61
|
:'name' => :'String',
|
|
59
62
|
:'repository' => :'String',
|
|
60
|
-
:'pulp_labels' => :'Object',
|
|
61
63
|
:'base_path' => :'String',
|
|
62
|
-
:'repository_version' => :'String',
|
|
63
|
-
:'content_guard' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
65
65
|
:'description' => :'String'
|
|
66
66
|
}
|
|
@@ -69,8 +69,8 @@ module PulpContainerClient
|
|
|
69
69
|
# List of attributes with nullable: true
|
|
70
70
|
def self.openapi_nullable
|
|
71
71
|
Set.new([
|
|
72
|
-
:'repository',
|
|
73
72
|
:'repository_version',
|
|
73
|
+
:'repository',
|
|
74
74
|
:'description'
|
|
75
75
|
])
|
|
76
76
|
end
|
|
@@ -90,28 +90,28 @@ module PulpContainerClient
|
|
|
90
90
|
h[k.to_sym] = v
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'repository')
|
|
98
|
-
self.repository = attributes[:'repository']
|
|
93
|
+
if attributes.key?(:'repository_version')
|
|
94
|
+
self.repository_version = attributes[:'repository_version']
|
|
99
95
|
end
|
|
100
96
|
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
|
102
98
|
self.pulp_labels = attributes[:'pulp_labels']
|
|
103
99
|
end
|
|
104
100
|
|
|
105
|
-
if attributes.key?(:'
|
|
106
|
-
self.
|
|
101
|
+
if attributes.key?(:'content_guard')
|
|
102
|
+
self.content_guard = attributes[:'content_guard']
|
|
107
103
|
end
|
|
108
104
|
|
|
109
|
-
if attributes.key?(:'
|
|
110
|
-
self.
|
|
105
|
+
if attributes.key?(:'name')
|
|
106
|
+
self.name = attributes[:'name']
|
|
111
107
|
end
|
|
112
108
|
|
|
113
|
-
if attributes.key?(:'
|
|
114
|
-
self.
|
|
109
|
+
if attributes.key?(:'repository')
|
|
110
|
+
self.repository = attributes[:'repository']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'base_path')
|
|
114
|
+
self.base_path = attributes[:'base_path']
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
if attributes.key?(:'private')
|
|
@@ -141,12 +141,12 @@ module PulpContainerClient
|
|
|
141
141
|
def ==(o)
|
|
142
142
|
return true if self.equal?(o)
|
|
143
143
|
self.class == o.class &&
|
|
144
|
+
repository_version == o.repository_version &&
|
|
145
|
+
pulp_labels == o.pulp_labels &&
|
|
146
|
+
content_guard == o.content_guard &&
|
|
144
147
|
name == o.name &&
|
|
145
148
|
repository == o.repository &&
|
|
146
|
-
pulp_labels == o.pulp_labels &&
|
|
147
149
|
base_path == o.base_path &&
|
|
148
|
-
repository_version == o.repository_version &&
|
|
149
|
-
content_guard == o.content_guard &&
|
|
150
150
|
private == o.private &&
|
|
151
151
|
description == o.description
|
|
152
152
|
end
|
|
@@ -160,7 +160,7 @@ module PulpContainerClient
|
|
|
160
160
|
# Calculates hash code according to all attributes.
|
|
161
161
|
# @return [Integer] Hash code
|
|
162
162
|
def hash
|
|
163
|
-
[
|
|
163
|
+
[repository_version, pulp_labels, content_guard, name, repository, base_path, private, description].hash
|
|
164
164
|
end
|
|
165
165
|
|
|
166
166
|
# Builds the object from hash
|
|
@@ -39,7 +39,7 @@ describe 'ContentBlobsApi' do
|
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
42
|
-
# @option opts [
|
|
42
|
+
# @option opts [String] :media_type
|
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
44
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -39,7 +39,7 @@ describe 'ContentManifestsApi' do
|
|
|
39
39
|
# @option opts [String] :digest Filter results where digest matches value
|
|
40
40
|
# @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
|
|
41
41
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
42
|
-
# @option opts [
|
|
42
|
+
# @option opts [String] :media_type
|
|
43
43
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
44
44
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
45
45
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
@@ -38,7 +38,7 @@ describe 'ContentTagsApi' do
|
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [Array<String>] :digest Multiple values may be separated by commas.
|
|
40
40
|
# @option opts [Integer] :limit Number of results to return per page.
|
|
41
|
-
# @option opts [
|
|
41
|
+
# @option opts [String] :media_type
|
|
42
42
|
# @option opts [String] :name Filter results where name matches value
|
|
43
43
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
|
44
44
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
@@ -32,13 +32,13 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "repository_version"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_created"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
@@ -50,31 +50,31 @@ describe 'ContainerContainerDistributionResponse' do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "content_guard"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "pulp_href"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "name"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
describe 'test attribute "
|
|
71
|
+
describe 'test attribute "repository"' do
|
|
72
72
|
it 'should work' do
|
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
describe 'test attribute "
|
|
77
|
+
describe 'test attribute "base_path"' do
|
|
78
78
|
it 'should work' do
|
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
80
|
end
|
|
@@ -32,37 +32,37 @@ describe 'ContainerContainerDistribution' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistribution)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "repository_version"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_labels"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "content_guard"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "name"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "repository"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "base_path"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
|
@@ -32,37 +32,37 @@ describe 'PatchedcontainerContainerDistribution' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerDistribution)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "repository_version"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "pulp_labels"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "content_guard"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "name"' do
|
|
54
54
|
it 'should work' do
|
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "repository"' do
|
|
60
60
|
it 'should work' do
|
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "base_path"' do
|
|
66
66
|
it 'should work' do
|
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
68
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_container_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -261,9 +261,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
261
261
|
version: '1.9'
|
|
262
262
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
requirements:
|
|
264
|
-
- - "
|
|
264
|
+
- - ">="
|
|
265
265
|
- !ruby/object:Gem::Version
|
|
266
|
-
version:
|
|
266
|
+
version: '0'
|
|
267
267
|
requirements: []
|
|
268
268
|
rubygems_version: 3.0.3
|
|
269
269
|
signing_key:
|