pulp_container_client 2.4.0.dev1614741644 → 2.4.0.dev1615346638
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerRemote.md +7 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -7
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +7 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +29 -29
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_remote.rb +36 -2
- data/lib/pulp_container_client/models/container_container_remote_response.rb +14 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +24 -24
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +36 -2
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_remote_response_spec.rb +6 -18
- data/spec/models/container_container_remote_spec.rb +18 -0
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_remote_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21afe249070b79dd7b52cd62eae3c3a79fb811de7be9fb22cded9d661d1213b2
|
4
|
+
data.tar.gz: 604d35dbb864e94263e60b54f03d5b5a976146d57d47292e4c3d5c7004a9c368
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b18dadded26dc4863366a42c60070d81319f6b83b4b0c8bb6421a99e46140609720f64ad1d1344665b4cde786cfdb81e2a69fef5b62c9688544165e4554a35f8
|
7
|
+
data.tar.gz: 9a50ae1ab857027e4577cee72803bfadb2e22a3acdcb1d24b528cc257fc946431e2134688d696dfed207f083a302df07a7c66a35bdf4a3ae6975cc0131c6f38c
|
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.4.0.
|
10
|
+
- Package version: 2.4.0.dev1615346638
|
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.4.0.
|
27
|
+
gem install ./pulp_container_client-2.4.0.dev1615346638.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.4.0.
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.4.0.dev1615346638.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.4.0.
|
36
|
+
gem 'pulp_container_client', '~> 2.4.0.dev1615346638'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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\") |
|
8
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
10
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
8
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
9
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
|
+
**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
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
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]
|
@@ -18,10 +18,10 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
22
|
-
repository_version: null,
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_labels: null,
|
23
22
|
name: null,
|
24
|
-
|
23
|
+
repository_version: null,
|
24
|
+
base_path: null,
|
25
25
|
repository: null,
|
26
26
|
content_guard: null,
|
27
27
|
private: null,
|
@@ -4,14 +4,14 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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\") |
|
8
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
9
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
11
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
8
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
9
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
|
+
**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
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
13
|
-
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
14
12
|
**pulp_href** | **String** | | [optional] [readonly]
|
13
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
14
|
+
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
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
|
-
pulp_created: null,
|
27
|
-
repository_version: null,
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_labels: null,
|
28
26
|
name: null,
|
29
|
-
|
27
|
+
repository_version: null,
|
28
|
+
base_path: null,
|
30
29
|
repository: null,
|
31
|
-
content_guard: null,
|
32
30
|
pulp_href: null,
|
31
|
+
pulp_created: null,
|
32
|
+
content_guard: null,
|
33
33
|
registry_path: null,
|
34
34
|
namespace: null,
|
35
35
|
private: null,
|
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
|
|
10
10
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
11
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
14
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
15
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
16
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
|
|
20
22
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
21
23
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
22
24
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
25
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
23
26
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
24
27
|
**upstream_name** | **String** | Name of the upstream repository |
|
25
28
|
**include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
|
@@ -37,6 +40,8 @@ instance = PulpContainerClient::ContainerContainerRemote.new(name: null,
|
|
37
40
|
client_key: null,
|
38
41
|
tls_validation: null,
|
39
42
|
proxy_url: null,
|
43
|
+
proxy_username: null,
|
44
|
+
proxy_password: null,
|
40
45
|
username: null,
|
41
46
|
password: null,
|
42
47
|
pulp_labels: null,
|
@@ -46,6 +51,7 @@ instance = PulpContainerClient::ContainerContainerRemote.new(name: null,
|
|
46
51
|
connect_timeout: null,
|
47
52
|
sock_connect_timeout: null,
|
48
53
|
sock_read_timeout: null,
|
54
|
+
headers: null,
|
49
55
|
rate_limit: null,
|
50
56
|
upstream_name: null,
|
51
57
|
include_tags: null,
|
@@ -10,11 +10,8 @@ Name | Type | Description | Notes
|
|
10
10
|
**url** | **String** | The URL of an external content source. |
|
11
11
|
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
12
12
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
13
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
14
13
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
16
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
14
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
18
15
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
16
|
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
20
17
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
@@ -23,6 +20,7 @@ Name | Type | Description | Notes
|
|
23
20
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
24
21
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
25
22
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
23
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
26
24
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
27
25
|
**upstream_name** | **String** | Name of the upstream repository |
|
28
26
|
**include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
|
@@ -39,11 +37,8 @@ instance = PulpContainerClient::ContainerContainerRemoteResponse.new(pulp_href:
|
|
39
37
|
url: null,
|
40
38
|
ca_cert: null,
|
41
39
|
client_cert: null,
|
42
|
-
client_key: null,
|
43
40
|
tls_validation: null,
|
44
41
|
proxy_url: null,
|
45
|
-
username: null,
|
46
|
-
password: null,
|
47
42
|
pulp_labels: null,
|
48
43
|
pulp_last_updated: null,
|
49
44
|
download_concurrency: null,
|
@@ -52,6 +47,7 @@ instance = PulpContainerClient::ContainerContainerRemoteResponse.new(pulp_href:
|
|
52
47
|
connect_timeout: null,
|
53
48
|
sock_connect_timeout: null,
|
54
49
|
sock_read_timeout: null,
|
50
|
+
headers: null,
|
55
51
|
rate_limit: null,
|
56
52
|
upstream_name: null,
|
57
53
|
include_tags: null,
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**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]
|
8
|
-
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
9
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
10
7
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
8
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
9
|
+
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
10
|
+
**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
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
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]
|
@@ -18,10 +18,10 @@ Name | Type | Description | Notes
|
|
18
18
|
```ruby
|
19
19
|
require 'PulpContainerClient'
|
20
20
|
|
21
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
22
|
-
repository_version: null,
|
21
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(pulp_labels: null,
|
23
22
|
name: null,
|
24
|
-
|
23
|
+
repository_version: null,
|
24
|
+
base_path: null,
|
25
25
|
repository: null,
|
26
26
|
content_guard: null,
|
27
27
|
private: null,
|
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
|
|
10
10
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
11
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
14
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
15
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
16
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
|
|
20
22
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
21
23
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
22
24
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
25
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
23
26
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
24
27
|
**upstream_name** | **String** | Name of the upstream repository | [optional]
|
25
28
|
**include_tags** | **Array<String>** | A list of tags to include during sync. Wildcards *, ? are recognized. 'include_tags' is evaluated before 'exclude_tags'. | [optional]
|
@@ -37,6 +40,8 @@ instance = PulpContainerClient::PatchedcontainerContainerRemote.new(name: null,
|
|
37
40
|
client_key: null,
|
38
41
|
tls_validation: null,
|
39
42
|
proxy_url: null,
|
43
|
+
proxy_username: null,
|
44
|
+
proxy_password: null,
|
40
45
|
username: null,
|
41
46
|
password: null,
|
42
47
|
pulp_labels: null,
|
@@ -46,6 +51,7 @@ instance = PulpContainerClient::PatchedcontainerContainerRemote.new(name: null,
|
|
46
51
|
connect_timeout: null,
|
47
52
|
sock_connect_timeout: null,
|
48
53
|
sock_read_timeout: null,
|
54
|
+
headers: null,
|
49
55
|
rate_limit: null,
|
50
56
|
upstream_name: null,
|
51
57
|
include_tags: null,
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
-
|
19
|
-
attr_accessor :base_path
|
20
|
-
|
21
|
-
# RepositoryVersion to be served
|
22
|
-
attr_accessor :repository_version
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
21
|
attr_accessor :name
|
26
22
|
|
27
|
-
|
23
|
+
# RepositoryVersion to be served
|
24
|
+
attr_accessor :repository_version
|
25
|
+
|
26
|
+
# 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
|
+
attr_accessor :base_path
|
28
28
|
|
29
29
|
# The latest RepositoryVersion for this Repository will be served.
|
30
30
|
attr_accessor :repository
|
@@ -41,10 +41,10 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'base_path' => :'base_path',
|
45
|
-
:'repository_version' => :'repository_version',
|
46
|
-
:'name' => :'name',
|
47
44
|
:'pulp_labels' => :'pulp_labels',
|
45
|
+
:'name' => :'name',
|
46
|
+
:'repository_version' => :'repository_version',
|
47
|
+
:'base_path' => :'base_path',
|
48
48
|
:'repository' => :'repository',
|
49
49
|
:'content_guard' => :'content_guard',
|
50
50
|
:'private' => :'private',
|
@@ -55,10 +55,10 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'repository_version' => :'String',
|
60
|
-
:'name' => :'String',
|
61
58
|
:'pulp_labels' => :'Object',
|
59
|
+
:'name' => :'String',
|
60
|
+
:'repository_version' => :'String',
|
61
|
+
:'base_path' => :'String',
|
62
62
|
:'repository' => :'String',
|
63
63
|
:'content_guard' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
@@ -90,20 +90,20 @@ 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_version')
|
98
|
-
self.repository_version = attributes[:'repository_version']
|
93
|
+
if attributes.key?(:'pulp_labels')
|
94
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
99
95
|
end
|
100
96
|
|
101
97
|
if attributes.key?(:'name')
|
102
98
|
self.name = attributes[:'name']
|
103
99
|
end
|
104
100
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
101
|
+
if attributes.key?(:'repository_version')
|
102
|
+
self.repository_version = attributes[:'repository_version']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'base_path')
|
106
|
+
self.base_path = attributes[:'base_path']
|
107
107
|
end
|
108
108
|
|
109
109
|
if attributes.key?(:'repository')
|
@@ -127,22 +127,22 @@ module PulpContainerClient
|
|
127
127
|
# @return Array for valid properties with the reasons
|
128
128
|
def list_invalid_properties
|
129
129
|
invalid_properties = Array.new
|
130
|
-
if @base_path.nil?
|
131
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
130
|
if @name.nil?
|
135
131
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
136
132
|
end
|
137
133
|
|
134
|
+
if @base_path.nil?
|
135
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
136
|
+
end
|
137
|
+
|
138
138
|
invalid_properties
|
139
139
|
end
|
140
140
|
|
141
141
|
# Check to see if the all the properties in the model are valid
|
142
142
|
# @return true if the model is valid
|
143
143
|
def valid?
|
144
|
-
return false if @base_path.nil?
|
145
144
|
return false if @name.nil?
|
145
|
+
return false if @base_path.nil?
|
146
146
|
true
|
147
147
|
end
|
148
148
|
|
@@ -151,10 +151,10 @@ module PulpContainerClient
|
|
151
151
|
def ==(o)
|
152
152
|
return true if self.equal?(o)
|
153
153
|
self.class == o.class &&
|
154
|
-
base_path == o.base_path &&
|
155
|
-
repository_version == o.repository_version &&
|
156
|
-
name == o.name &&
|
157
154
|
pulp_labels == o.pulp_labels &&
|
155
|
+
name == o.name &&
|
156
|
+
repository_version == o.repository_version &&
|
157
|
+
base_path == o.base_path &&
|
158
158
|
repository == o.repository &&
|
159
159
|
content_guard == o.content_guard &&
|
160
160
|
private == o.private &&
|
@@ -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
|
+
[pulp_labels, name, repository_version, base_path, repository, content_guard, 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 :base_path
|
18
|
+
attr_accessor :pulp_labels
|
20
19
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
20
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
21
|
+
attr_accessor :name
|
23
22
|
|
24
23
|
# RepositoryVersion to be served
|
25
24
|
attr_accessor :repository_version
|
26
25
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
29
|
-
|
30
|
-
attr_accessor :pulp_labels
|
26
|
+
# 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
|
+
attr_accessor :base_path
|
31
28
|
|
32
29
|
# The latest RepositoryVersion for this Repository will be served.
|
33
30
|
attr_accessor :repository
|
34
31
|
|
32
|
+
attr_accessor :pulp_href
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
36
|
+
|
35
37
|
# An optional content-guard. If none is specified, a default one will be used.
|
36
38
|
attr_accessor :content_guard
|
37
39
|
|
38
|
-
attr_accessor :pulp_href
|
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
|
-
:'base_path' => :'base_path',
|
56
|
-
:'pulp_created' => :'pulp_created',
|
57
|
-
:'repository_version' => :'repository_version',
|
58
|
-
:'name' => :'name',
|
59
55
|
:'pulp_labels' => :'pulp_labels',
|
56
|
+
:'name' => :'name',
|
57
|
+
:'repository_version' => :'repository_version',
|
58
|
+
:'base_path' => :'base_path',
|
60
59
|
:'repository' => :'repository',
|
61
|
-
:'content_guard' => :'content_guard',
|
62
60
|
:'pulp_href' => :'pulp_href',
|
61
|
+
:'pulp_created' => :'pulp_created',
|
62
|
+
:'content_guard' => :'content_guard',
|
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
|
-
:'base_path' => :'String',
|
74
|
-
:'pulp_created' => :'DateTime',
|
75
|
-
:'repository_version' => :'String',
|
76
|
-
:'name' => :'String',
|
77
73
|
:'pulp_labels' => :'Object',
|
74
|
+
:'name' => :'String',
|
75
|
+
:'repository_version' => :'String',
|
76
|
+
:'base_path' => :'String',
|
78
77
|
:'repository' => :'String',
|
79
|
-
:'content_guard' => :'String',
|
80
78
|
:'pulp_href' => :'String',
|
79
|
+
:'pulp_created' => :'DateTime',
|
80
|
+
:'content_guard' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
83
83
|
:'private' => :'Boolean',
|
@@ -109,38 +109,38 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'pulp_labels')
|
113
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
114
114
|
end
|
115
115
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
116
|
+
if attributes.key?(:'name')
|
117
|
+
self.name = attributes[:'name']
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.key?(:'repository_version')
|
121
121
|
self.repository_version = attributes[:'repository_version']
|
122
122
|
end
|
123
123
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
126
|
-
end
|
127
|
-
|
128
|
-
if attributes.key?(:'pulp_labels')
|
129
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
124
|
+
if attributes.key?(:'base_path')
|
125
|
+
self.base_path = attributes[:'base_path']
|
130
126
|
end
|
131
127
|
|
132
128
|
if attributes.key?(:'repository')
|
133
129
|
self.repository = attributes[:'repository']
|
134
130
|
end
|
135
131
|
|
136
|
-
if attributes.key?(:'content_guard')
|
137
|
-
self.content_guard = attributes[:'content_guard']
|
138
|
-
end
|
139
|
-
|
140
132
|
if attributes.key?(:'pulp_href')
|
141
133
|
self.pulp_href = attributes[:'pulp_href']
|
142
134
|
end
|
143
135
|
|
136
|
+
if attributes.key?(:'pulp_created')
|
137
|
+
self.pulp_created = attributes[:'pulp_created']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'content_guard')
|
141
|
+
self.content_guard = attributes[:'content_guard']
|
142
|
+
end
|
143
|
+
|
144
144
|
if attributes.key?(:'registry_path')
|
145
145
|
self.registry_path = attributes[:'registry_path']
|
146
146
|
end
|
@@ -162,22 +162,22 @@ module PulpContainerClient
|
|
162
162
|
# @return Array for valid properties with the reasons
|
163
163
|
def list_invalid_properties
|
164
164
|
invalid_properties = Array.new
|
165
|
-
if @base_path.nil?
|
166
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @name.nil?
|
170
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @base_path.nil?
|
170
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
invalid_properties
|
174
174
|
end
|
175
175
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
177
177
|
# @return true if the model is valid
|
178
178
|
def valid?
|
179
|
-
return false if @base_path.nil?
|
180
179
|
return false if @name.nil?
|
180
|
+
return false if @base_path.nil?
|
181
181
|
true
|
182
182
|
end
|
183
183
|
|
@@ -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
|
-
base_path == o.base_path &&
|
190
|
-
pulp_created == o.pulp_created &&
|
191
|
-
repository_version == o.repository_version &&
|
192
|
-
name == o.name &&
|
193
189
|
pulp_labels == o.pulp_labels &&
|
190
|
+
name == o.name &&
|
191
|
+
repository_version == o.repository_version &&
|
192
|
+
base_path == o.base_path &&
|
194
193
|
repository == o.repository &&
|
195
|
-
content_guard == o.content_guard &&
|
196
194
|
pulp_href == o.pulp_href &&
|
195
|
+
pulp_created == o.pulp_created &&
|
196
|
+
content_guard == o.content_guard &&
|
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
|
+
[pulp_labels, name, repository_version, base_path, repository, pulp_href, pulp_created, content_guard, registry_path, namespace, private, description].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|