pulp_container_client 2.14.12 → 2.14.13
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 +4 -4
- data/docs/ContainerContainerDistribution.md +3 -3
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +30 -30
- data/lib/pulp_container_client/models/container_container_push_repository.rb +53 -53
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +11 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
- 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 +3 -3
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +3 -3
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +49 -49
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22504d454b29366af9f1c68a110c188c8dd1efe485b8b7aed8d681983e2445d9
|
|
4
|
+
data.tar.gz: 401133e31eb00f46e956c6400aace4692032add3461f94eac9cbfa2504e87404
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 261b8b2a8a68dcf54c1784e9cbdaba6f05820625f777eee9582043c05fb7effd4f81c8c490c29da4590ce3a746b3dbdb92250a3264a8274fe7e1bf24aeb32d3b
|
|
7
|
+
data.tar.gz: 63fb7c15065197829ff1d5f16ce6bc29279a42940f71b16d5a6f54d0c1b544a6fd74da98cfc6c4d75de96e4cc7797845dddf18758d3ed0ca60f719f362ffbc99
|
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.14.
|
|
10
|
+
- Package version: 2.14.13
|
|
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.14.
|
|
27
|
+
gem install ./pulp_container_client-2.14.13.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_container_client-2.14.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_container_client-2.14.13.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.14.
|
|
36
|
+
gem 'pulp_container_client', '~> 2.14.13'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
8
7
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
9
8
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
10
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
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
@@ -18,9 +18,9 @@ Name | Type | Description | Notes
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpContainerClient::ContainerContainerDistribution.new(
|
|
22
|
-
content_guard: null,
|
|
21
|
+
instance = PulpContainerClient::ContainerContainerDistribution.new(content_guard: null,
|
|
23
22
|
repository: null,
|
|
23
|
+
name: null,
|
|
24
24
|
base_path: null,
|
|
25
25
|
pulp_labels: null,
|
|
26
26
|
repository_version: null,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
9
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
10
7
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
11
8
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
12
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
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
13
12
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
13
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
14
14
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
15
15
|
**registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
|
|
16
16
|
**namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
|
|
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
|
|
|
22
22
|
```ruby
|
|
23
23
|
require 'PulpContainerClient'
|
|
24
24
|
|
|
25
|
-
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(
|
|
26
|
-
name: null,
|
|
27
|
-
pulp_href: null,
|
|
28
|
-
content_guard: null,
|
|
25
|
+
instance = PulpContainerClient::ContainerContainerDistributionResponse.new(content_guard: null,
|
|
29
26
|
repository: null,
|
|
27
|
+
name: null,
|
|
30
28
|
base_path: null,
|
|
29
|
+
pulp_created: null,
|
|
31
30
|
pulp_labels: null,
|
|
31
|
+
pulp_href: null,
|
|
32
32
|
repository_version: null,
|
|
33
33
|
registry_path: null,
|
|
34
34
|
namespace: null,
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name for this repository. |
|
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
|
9
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
10
|
-
**
|
|
8
|
+
**description** | **String** | An optional description. | [optional]
|
|
9
|
+
**name** | **String** | A unique name for this repository. |
|
|
11
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
11
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
|
12
12
|
|
|
13
13
|
## Code Sample
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'PulpContainerClient'
|
|
17
17
|
|
|
18
|
-
instance = PulpContainerClient::ContainerContainerPushRepository.new(
|
|
18
|
+
instance = PulpContainerClient::ContainerContainerPushRepository.new(retain_repo_versions: null,
|
|
19
19
|
description: null,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
name: null,
|
|
21
|
+
pulp_labels: null,
|
|
22
|
+
manifest_signing_service: null)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
|
|
@@ -4,30 +4,30 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
8
|
-
**latest_version_href** | **String** | | [optional] [readonly]
|
|
9
7
|
**versions_href** | **String** | | [optional] [readonly]
|
|
10
|
-
**name** | **String** | A unique name for this repository. |
|
|
11
|
-
**description** | **String** | An optional description. | [optional]
|
|
12
|
-
**pulp_href** | **String** | | [optional] [readonly]
|
|
13
8
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
14
|
-
**
|
|
9
|
+
**description** | **String** | An optional description. | [optional]
|
|
10
|
+
**latest_version_href** | **String** | | [optional] [readonly]
|
|
11
|
+
**name** | **String** | A unique name for this repository. |
|
|
12
|
+
**pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
|
|
15
13
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
14
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
|
15
|
+
**pulp_href** | **String** | | [optional] [readonly]
|
|
16
16
|
|
|
17
17
|
## Code Sample
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
20
|
require 'PulpContainerClient'
|
|
21
21
|
|
|
22
|
-
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(
|
|
22
|
+
instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(versions_href: null,
|
|
23
|
+
retain_repo_versions: null,
|
|
24
|
+
description: null,
|
|
23
25
|
latest_version_href: null,
|
|
24
|
-
versions_href: null,
|
|
25
26
|
name: null,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
retain_repo_versions: null,
|
|
27
|
+
pulp_created: null,
|
|
28
|
+
pulp_labels: null,
|
|
29
29
|
manifest_signing_service: null,
|
|
30
|
-
|
|
30
|
+
pulp_href: null)
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
8
7
|
**content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
|
|
9
8
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
9
|
+
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
10
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
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
12
12
|
**repository_version** | **String** | RepositoryVersion to be served | [optional]
|
|
@@ -18,9 +18,9 @@ Name | Type | Description | Notes
|
|
|
18
18
|
```ruby
|
|
19
19
|
require 'PulpContainerClient'
|
|
20
20
|
|
|
21
|
-
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
|
|
22
|
-
content_guard: null,
|
|
21
|
+
instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(content_guard: null,
|
|
23
22
|
repository: null,
|
|
23
|
+
name: null,
|
|
24
24
|
base_path: null,
|
|
25
25
|
pulp_labels: null,
|
|
26
26
|
repository_version: null,
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | A unique name for this repository. | [optional]
|
|
8
|
-
**description** | **String** | An optional description. | [optional]
|
|
9
7
|
**retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional]
|
|
10
|
-
**
|
|
8
|
+
**description** | **String** | An optional description. | [optional]
|
|
9
|
+
**name** | **String** | A unique name for this repository. | [optional]
|
|
11
10
|
**pulp_labels** | **Hash<String, String>** | | [optional]
|
|
11
|
+
**manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
|
|
12
12
|
|
|
13
13
|
## Code Sample
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
16
16
|
require 'PulpContainerClient'
|
|
17
17
|
|
|
18
|
-
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
|
|
18
|
+
instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
|
|
19
19
|
description: null,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
name: null,
|
|
21
|
+
pulp_labels: null,
|
|
22
|
+
manifest_signing_service: null)
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
|
|
@@ -15,15 +15,15 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistribution
|
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
22
19
|
attr_accessor :content_guard
|
|
23
20
|
|
|
24
21
|
# The latest RepositoryVersion for this Repository will be served.
|
|
25
22
|
attr_accessor :repository
|
|
26
23
|
|
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
27
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
28
28
|
attr_accessor :base_path
|
|
29
29
|
|
|
@@ -41,9 +41,9 @@ module PulpContainerClient
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
-
:'name' => :'name',
|
|
45
44
|
:'content_guard' => :'content_guard',
|
|
46
45
|
:'repository' => :'repository',
|
|
46
|
+
:'name' => :'name',
|
|
47
47
|
:'base_path' => :'base_path',
|
|
48
48
|
:'pulp_labels' => :'pulp_labels',
|
|
49
49
|
:'repository_version' => :'repository_version',
|
|
@@ -55,9 +55,9 @@ module PulpContainerClient
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
-
:'name' => :'String',
|
|
59
58
|
:'content_guard' => :'String',
|
|
60
59
|
:'repository' => :'String',
|
|
60
|
+
:'name' => :'String',
|
|
61
61
|
:'base_path' => :'String',
|
|
62
62
|
:'pulp_labels' => :'Hash<String, String>',
|
|
63
63
|
:'repository_version' => :'String',
|
|
@@ -90,10 +90,6 @@ module PulpContainerClient
|
|
|
90
90
|
h[k.to_sym] = v
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'name')
|
|
94
|
-
self.name = attributes[:'name']
|
|
95
|
-
end
|
|
96
|
-
|
|
97
93
|
if attributes.key?(:'content_guard')
|
|
98
94
|
self.content_guard = attributes[:'content_guard']
|
|
99
95
|
end
|
|
@@ -102,6 +98,10 @@ module PulpContainerClient
|
|
|
102
98
|
self.repository = attributes[:'repository']
|
|
103
99
|
end
|
|
104
100
|
|
|
101
|
+
if attributes.key?(:'name')
|
|
102
|
+
self.name = attributes[:'name']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
105
|
if attributes.key?(:'base_path')
|
|
106
106
|
self.base_path = attributes[:'base_path']
|
|
107
107
|
end
|
|
@@ -206,9 +206,9 @@ module PulpContainerClient
|
|
|
206
206
|
def ==(o)
|
|
207
207
|
return true if self.equal?(o)
|
|
208
208
|
self.class == o.class &&
|
|
209
|
-
name == o.name &&
|
|
210
209
|
content_guard == o.content_guard &&
|
|
211
210
|
repository == o.repository &&
|
|
211
|
+
name == o.name &&
|
|
212
212
|
base_path == o.base_path &&
|
|
213
213
|
pulp_labels == o.pulp_labels &&
|
|
214
214
|
repository_version == o.repository_version &&
|
|
@@ -225,7 +225,7 @@ module PulpContainerClient
|
|
|
225
225
|
# Calculates hash code according to all attributes.
|
|
226
226
|
# @return [Integer] Hash code
|
|
227
227
|
def hash
|
|
228
|
-
[
|
|
228
|
+
[content_guard, repository, name, base_path, pulp_labels, repository_version, private, description].hash
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
# Builds the object from hash
|
|
@@ -15,25 +15,25 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
# Timestamp of creation.
|
|
19
|
-
attr_accessor :pulp_created
|
|
20
|
-
|
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
-
attr_accessor :name
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_href
|
|
25
|
-
|
|
26
18
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
27
19
|
attr_accessor :content_guard
|
|
28
20
|
|
|
29
21
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
22
|
attr_accessor :repository
|
|
31
23
|
|
|
24
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
32
27
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
33
28
|
attr_accessor :base_path
|
|
34
29
|
|
|
30
|
+
# Timestamp of creation.
|
|
31
|
+
attr_accessor :pulp_created
|
|
32
|
+
|
|
35
33
|
attr_accessor :pulp_labels
|
|
36
34
|
|
|
35
|
+
attr_accessor :pulp_href
|
|
36
|
+
|
|
37
37
|
# RepositoryVersion to be served
|
|
38
38
|
attr_accessor :repository_version
|
|
39
39
|
|
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
53
|
def self.attribute_map
|
|
54
54
|
{
|
|
55
|
-
:'pulp_created' => :'pulp_created',
|
|
56
|
-
:'name' => :'name',
|
|
57
|
-
:'pulp_href' => :'pulp_href',
|
|
58
55
|
:'content_guard' => :'content_guard',
|
|
59
56
|
:'repository' => :'repository',
|
|
57
|
+
:'name' => :'name',
|
|
60
58
|
:'base_path' => :'base_path',
|
|
59
|
+
:'pulp_created' => :'pulp_created',
|
|
61
60
|
:'pulp_labels' => :'pulp_labels',
|
|
61
|
+
:'pulp_href' => :'pulp_href',
|
|
62
62
|
:'repository_version' => :'repository_version',
|
|
63
63
|
:'registry_path' => :'registry_path',
|
|
64
64
|
:'namespace' => :'namespace',
|
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'pulp_created' => :'DateTime',
|
|
74
|
-
:'name' => :'String',
|
|
75
|
-
:'pulp_href' => :'String',
|
|
76
73
|
:'content_guard' => :'String',
|
|
77
74
|
:'repository' => :'String',
|
|
75
|
+
:'name' => :'String',
|
|
78
76
|
:'base_path' => :'String',
|
|
77
|
+
:'pulp_created' => :'DateTime',
|
|
79
78
|
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'pulp_href' => :'String',
|
|
80
80
|
:'repository_version' => :'String',
|
|
81
81
|
:'registry_path' => :'String',
|
|
82
82
|
:'namespace' => :'String',
|
|
@@ -109,18 +109,6 @@ module PulpContainerClient
|
|
|
109
109
|
h[k.to_sym] = v
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'pulp_created')
|
|
113
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'name')
|
|
117
|
-
self.name = attributes[:'name']
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
if attributes.key?(:'pulp_href')
|
|
121
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
122
|
-
end
|
|
123
|
-
|
|
124
112
|
if attributes.key?(:'content_guard')
|
|
125
113
|
self.content_guard = attributes[:'content_guard']
|
|
126
114
|
end
|
|
@@ -129,16 +117,28 @@ module PulpContainerClient
|
|
|
129
117
|
self.repository = attributes[:'repository']
|
|
130
118
|
end
|
|
131
119
|
|
|
120
|
+
if attributes.key?(:'name')
|
|
121
|
+
self.name = attributes[:'name']
|
|
122
|
+
end
|
|
123
|
+
|
|
132
124
|
if attributes.key?(:'base_path')
|
|
133
125
|
self.base_path = attributes[:'base_path']
|
|
134
126
|
end
|
|
135
127
|
|
|
128
|
+
if attributes.key?(:'pulp_created')
|
|
129
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
130
|
+
end
|
|
131
|
+
|
|
136
132
|
if attributes.key?(:'pulp_labels')
|
|
137
133
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
138
134
|
self.pulp_labels = value
|
|
139
135
|
end
|
|
140
136
|
end
|
|
141
137
|
|
|
138
|
+
if attributes.key?(:'pulp_href')
|
|
139
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
142
|
if attributes.key?(:'repository_version')
|
|
143
143
|
self.repository_version = attributes[:'repository_version']
|
|
144
144
|
end
|
|
@@ -188,13 +188,13 @@ module PulpContainerClient
|
|
|
188
188
|
def ==(o)
|
|
189
189
|
return true if self.equal?(o)
|
|
190
190
|
self.class == o.class &&
|
|
191
|
-
pulp_created == o.pulp_created &&
|
|
192
|
-
name == o.name &&
|
|
193
|
-
pulp_href == o.pulp_href &&
|
|
194
191
|
content_guard == o.content_guard &&
|
|
195
192
|
repository == o.repository &&
|
|
193
|
+
name == o.name &&
|
|
196
194
|
base_path == o.base_path &&
|
|
195
|
+
pulp_created == o.pulp_created &&
|
|
197
196
|
pulp_labels == o.pulp_labels &&
|
|
197
|
+
pulp_href == o.pulp_href &&
|
|
198
198
|
repository_version == o.repository_version &&
|
|
199
199
|
registry_path == o.registry_path &&
|
|
200
200
|
namespace == o.namespace &&
|
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[
|
|
214
|
+
[content_guard, repository, name, base_path, pulp_created, pulp_labels, pulp_href, repository_version, registry_path, namespace, private, description].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
19
|
+
attr_accessor :retain_repo_versions
|
|
20
20
|
|
|
21
21
|
# An optional description.
|
|
22
22
|
attr_accessor :description
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# A unique name for this repository.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
attr_accessor :pulp_labels
|
|
26
28
|
|
|
27
29
|
# A reference to an associated signing service.
|
|
28
30
|
attr_accessor :manifest_signing_service
|
|
29
31
|
|
|
30
|
-
attr_accessor :pulp_labels
|
|
31
|
-
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'name' => :'name',
|
|
36
|
-
:'description' => :'description',
|
|
37
35
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
36
|
+
:'description' => :'description',
|
|
37
|
+
:'name' => :'name',
|
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'name' => :'String',
|
|
47
|
-
:'description' => :'String',
|
|
48
46
|
:'retain_repo_versions' => :'Integer',
|
|
49
|
-
:'
|
|
50
|
-
:'
|
|
47
|
+
:'description' => :'String',
|
|
48
|
+
:'name' => :'String',
|
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
50
|
+
:'manifest_signing_service' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'description',
|
|
58
57
|
:'retain_repo_versions',
|
|
59
|
-
:'
|
|
58
|
+
:'description',
|
|
59
|
+
:'manifest_signing_service'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,20 +75,16 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
78
|
+
if attributes.key?(:'retain_repo_versions')
|
|
79
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
if attributes.key?(:'description')
|
|
83
83
|
self.description = attributes[:'description']
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
self.
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
if attributes.key?(:'manifest_signing_service')
|
|
91
|
-
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
86
|
+
if attributes.key?(:'name')
|
|
87
|
+
self.name = attributes[:'name']
|
|
92
88
|
end
|
|
93
89
|
|
|
94
90
|
if attributes.key?(:'pulp_labels')
|
|
@@ -96,26 +92,30 @@ module PulpContainerClient
|
|
|
96
92
|
self.pulp_labels = value
|
|
97
93
|
end
|
|
98
94
|
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'manifest_signing_service')
|
|
97
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
98
|
+
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
102
|
# @return Array for valid properties with the reasons
|
|
103
103
|
def list_invalid_properties
|
|
104
104
|
invalid_properties = Array.new
|
|
105
|
-
if
|
|
106
|
-
invalid_properties.push('invalid value for "
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
if @name.to_s.length < 1
|
|
110
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
107
|
end
|
|
112
108
|
|
|
113
109
|
if !@description.nil? && @description.to_s.length < 1
|
|
114
110
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
115
111
|
end
|
|
116
112
|
|
|
117
|
-
if
|
|
118
|
-
invalid_properties.push('invalid value for "
|
|
113
|
+
if @name.nil?
|
|
114
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if @name.to_s.length < 1
|
|
118
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
invalid_properties
|
|
@@ -124,25 +124,21 @@ module PulpContainerClient
|
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
|
125
125
|
# @return true if the model is valid
|
|
126
126
|
def valid?
|
|
127
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
128
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
127
129
|
return false if @name.nil?
|
|
128
130
|
return false if @name.to_s.length < 1
|
|
129
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
130
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object]
|
|
136
|
-
def
|
|
137
|
-
if
|
|
138
|
-
fail ArgumentError, '
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
if name.to_s.length < 1
|
|
142
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
135
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
136
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
137
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
143
139
|
end
|
|
144
140
|
|
|
145
|
-
@
|
|
141
|
+
@retain_repo_versions = retain_repo_versions
|
|
146
142
|
end
|
|
147
143
|
|
|
148
144
|
# Custom attribute writer method with validation
|
|
@@ -156,13 +152,17 @@ module PulpContainerClient
|
|
|
156
152
|
end
|
|
157
153
|
|
|
158
154
|
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object]
|
|
160
|
-
def
|
|
161
|
-
if
|
|
162
|
-
fail ArgumentError, '
|
|
155
|
+
# @param [Object] name Value to be assigned
|
|
156
|
+
def name=(name)
|
|
157
|
+
if name.nil?
|
|
158
|
+
fail ArgumentError, 'name cannot be nil'
|
|
163
159
|
end
|
|
164
160
|
|
|
165
|
-
|
|
161
|
+
if name.to_s.length < 1
|
|
162
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
@name = name
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
# Checks equality by comparing each attribute.
|
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
-
name == o.name &&
|
|
174
|
-
description == o.description &&
|
|
175
173
|
retain_repo_versions == o.retain_repo_versions &&
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
description == o.description &&
|
|
175
|
+
name == o.name &&
|
|
176
|
+
pulp_labels == o.pulp_labels &&
|
|
177
|
+
manifest_signing_service == o.manifest_signing_service
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# @see the `==` method
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
|
186
186
|
# Calculates hash code according to all attributes.
|
|
187
187
|
# @return [Integer] Hash code
|
|
188
188
|
def hash
|
|
189
|
-
[
|
|
189
|
+
[retain_repo_versions, description, name, pulp_labels, manifest_signing_service].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|