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