pulp_container_client 2.19.10 → 2.19.12
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +13 -13
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +13 -13
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/lib/pulp_container_client/models/container_container_distribution.rb +32 -32
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +32 -32
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository.rb +32 -32
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +32 -32
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +32 -32
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_distribution_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
- data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- data/spec/models/container_container_push_repository_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
- metadata +60 -60
|
@@ -15,61 +15,61 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
|
18
|
+
attr_accessor :latest_version_href
|
|
19
|
+
|
|
18
20
|
# A unique name for this repository.
|
|
19
21
|
attr_accessor :name
|
|
20
22
|
|
|
21
23
|
# A reference to an associated signing service.
|
|
22
24
|
attr_accessor :manifest_signing_service
|
|
23
25
|
|
|
24
|
-
# Timestamp of creation.
|
|
25
|
-
attr_accessor :pulp_created
|
|
26
|
-
|
|
27
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
|
-
attr_accessor :retain_repo_versions
|
|
29
|
-
|
|
30
|
-
attr_accessor :pulp_labels
|
|
31
|
-
|
|
32
|
-
attr_accessor :latest_version_href
|
|
33
|
-
|
|
34
26
|
# An optional description.
|
|
35
27
|
attr_accessor :description
|
|
36
28
|
|
|
37
29
|
attr_accessor :versions_href
|
|
38
30
|
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
attr_accessor :pulp_href
|
|
34
|
+
|
|
39
35
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
40
36
|
attr_accessor :pulp_last_updated
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
39
|
+
attr_accessor :retain_repo_versions
|
|
40
|
+
|
|
41
|
+
# Timestamp of creation.
|
|
42
|
+
attr_accessor :pulp_created
|
|
43
43
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
+
:'latest_version_href' => :'latest_version_href',
|
|
47
48
|
:'name' => :'name',
|
|
48
49
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
49
|
-
:'pulp_created' => :'pulp_created',
|
|
50
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
|
51
|
-
:'pulp_labels' => :'pulp_labels',
|
|
52
|
-
:'latest_version_href' => :'latest_version_href',
|
|
53
50
|
:'description' => :'description',
|
|
54
51
|
:'versions_href' => :'versions_href',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
|
+
:'pulp_href' => :'pulp_href',
|
|
55
54
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
56
|
-
:'
|
|
55
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
|
56
|
+
:'pulp_created' => :'pulp_created'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
+
:'latest_version_href' => :'String',
|
|
63
64
|
:'name' => :'String',
|
|
64
65
|
:'manifest_signing_service' => :'String',
|
|
65
|
-
:'pulp_created' => :'DateTime',
|
|
66
|
-
:'retain_repo_versions' => :'Integer',
|
|
67
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
-
:'latest_version_href' => :'String',
|
|
69
66
|
:'description' => :'String',
|
|
70
67
|
:'versions_href' => :'String',
|
|
68
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
69
|
+
:'pulp_href' => :'String',
|
|
71
70
|
:'pulp_last_updated' => :'DateTime',
|
|
72
|
-
:'
|
|
71
|
+
:'retain_repo_versions' => :'Integer',
|
|
72
|
+
:'pulp_created' => :'DateTime'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -77,8 +77,8 @@ module PulpContainerClient
|
|
|
77
77
|
def self.openapi_nullable
|
|
78
78
|
Set.new([
|
|
79
79
|
:'manifest_signing_service',
|
|
80
|
-
:'retain_repo_versions',
|
|
81
80
|
:'description',
|
|
81
|
+
:'retain_repo_versions',
|
|
82
82
|
])
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -97,6 +97,10 @@ module PulpContainerClient
|
|
|
97
97
|
h[k.to_sym] = v
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
if attributes.key?(:'latest_version_href')
|
|
101
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
|
102
|
+
end
|
|
103
|
+
|
|
100
104
|
if attributes.key?(:'name')
|
|
101
105
|
self.name = attributes[:'name']
|
|
102
106
|
end
|
|
@@ -105,12 +109,12 @@ module PulpContainerClient
|
|
|
105
109
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
106
110
|
end
|
|
107
111
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
112
|
+
if attributes.key?(:'description')
|
|
113
|
+
self.description = attributes[:'description']
|
|
110
114
|
end
|
|
111
115
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
116
|
+
if attributes.key?(:'versions_href')
|
|
117
|
+
self.versions_href = attributes[:'versions_href']
|
|
114
118
|
end
|
|
115
119
|
|
|
116
120
|
if attributes.key?(:'pulp_labels')
|
|
@@ -119,24 +123,20 @@ module PulpContainerClient
|
|
|
119
123
|
end
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
self.
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'description')
|
|
127
|
-
self.description = attributes[:'description']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'versions_href')
|
|
131
|
-
self.versions_href = attributes[:'versions_href']
|
|
126
|
+
if attributes.key?(:'pulp_href')
|
|
127
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
132
128
|
end
|
|
133
129
|
|
|
134
130
|
if attributes.key?(:'pulp_last_updated')
|
|
135
131
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
136
132
|
end
|
|
137
133
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
self.
|
|
134
|
+
if attributes.key?(:'retain_repo_versions')
|
|
135
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'pulp_created')
|
|
139
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
@@ -178,16 +178,16 @@ module PulpContainerClient
|
|
|
178
178
|
def ==(o)
|
|
179
179
|
return true if self.equal?(o)
|
|
180
180
|
self.class == o.class &&
|
|
181
|
+
latest_version_href == o.latest_version_href &&
|
|
181
182
|
name == o.name &&
|
|
182
183
|
manifest_signing_service == o.manifest_signing_service &&
|
|
183
|
-
pulp_created == o.pulp_created &&
|
|
184
|
-
retain_repo_versions == o.retain_repo_versions &&
|
|
185
|
-
pulp_labels == o.pulp_labels &&
|
|
186
|
-
latest_version_href == o.latest_version_href &&
|
|
187
184
|
description == o.description &&
|
|
188
185
|
versions_href == o.versions_href &&
|
|
186
|
+
pulp_labels == o.pulp_labels &&
|
|
187
|
+
pulp_href == o.pulp_href &&
|
|
189
188
|
pulp_last_updated == o.pulp_last_updated &&
|
|
190
|
-
|
|
189
|
+
retain_repo_versions == o.retain_repo_versions &&
|
|
190
|
+
pulp_created == o.pulp_created
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
# @see the `==` method
|
|
@@ -199,7 +199,7 @@ module PulpContainerClient
|
|
|
199
199
|
# Calculates hash code according to all attributes.
|
|
200
200
|
# @return [Integer] Hash code
|
|
201
201
|
def hash
|
|
202
|
-
[name, manifest_signing_service,
|
|
202
|
+
[latest_version_href, name, manifest_signing_service, description, versions_href, pulp_labels, pulp_href, pulp_last_updated, retain_repo_versions, pulp_created].hash
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Builds the object from hash
|
|
@@ -15,23 +15,23 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class PatchedcontainerContainerDistribution
|
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
22
|
-
attr_accessor :content_guard
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
18
|
# Whether this distribution should be shown in the content app.
|
|
27
19
|
attr_accessor :hidden
|
|
28
20
|
|
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
29
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
25
|
attr_accessor :repository
|
|
31
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
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
32
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
|
+
attr_accessor :content_guard
|
|
34
|
+
|
|
35
35
|
# RepositoryVersion to be served
|
|
36
36
|
attr_accessor :repository_version
|
|
37
37
|
|
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'name' => :'name',
|
|
48
|
-
:'content_guard' => :'content_guard',
|
|
49
|
-
:'pulp_labels' => :'pulp_labels',
|
|
50
47
|
:'hidden' => :'hidden',
|
|
48
|
+
:'name' => :'name',
|
|
51
49
|
:'repository' => :'repository',
|
|
52
50
|
:'base_path' => :'base_path',
|
|
51
|
+
:'pulp_labels' => :'pulp_labels',
|
|
52
|
+
:'content_guard' => :'content_guard',
|
|
53
53
|
:'repository_version' => :'repository_version',
|
|
54
54
|
:'private' => :'private',
|
|
55
55
|
:'description' => :'description'
|
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
|
59
59
|
# Attribute type mapping.
|
|
60
60
|
def self.openapi_types
|
|
61
61
|
{
|
|
62
|
-
:'name' => :'String',
|
|
63
|
-
:'content_guard' => :'String',
|
|
64
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
65
62
|
:'hidden' => :'Boolean',
|
|
63
|
+
:'name' => :'String',
|
|
66
64
|
:'repository' => :'String',
|
|
67
65
|
:'base_path' => :'String',
|
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
67
|
+
:'content_guard' => :'String',
|
|
68
68
|
:'repository_version' => :'String',
|
|
69
69
|
:'private' => :'Boolean',
|
|
70
70
|
:'description' => :'String'
|
|
@@ -95,26 +95,16 @@ module PulpContainerClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'name')
|
|
99
|
-
self.name = attributes[:'name']
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
if attributes.key?(:'content_guard')
|
|
103
|
-
self.content_guard = attributes[:'content_guard']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'pulp_labels')
|
|
107
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
108
|
-
self.pulp_labels = value
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
98
|
if attributes.key?(:'hidden')
|
|
113
99
|
self.hidden = attributes[:'hidden']
|
|
114
100
|
else
|
|
115
101
|
self.hidden = false
|
|
116
102
|
end
|
|
117
103
|
|
|
104
|
+
if attributes.key?(:'name')
|
|
105
|
+
self.name = attributes[:'name']
|
|
106
|
+
end
|
|
107
|
+
|
|
118
108
|
if attributes.key?(:'repository')
|
|
119
109
|
self.repository = attributes[:'repository']
|
|
120
110
|
end
|
|
@@ -123,6 +113,16 @@ module PulpContainerClient
|
|
|
123
113
|
self.base_path = attributes[:'base_path']
|
|
124
114
|
end
|
|
125
115
|
|
|
116
|
+
if attributes.key?(:'pulp_labels')
|
|
117
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
118
|
+
self.pulp_labels = value
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'content_guard')
|
|
123
|
+
self.content_guard = attributes[:'content_guard']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
126
|
if attributes.key?(:'repository_version')
|
|
127
127
|
self.repository_version = attributes[:'repository_version']
|
|
128
128
|
end
|
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
|
199
199
|
def ==(o)
|
|
200
200
|
return true if self.equal?(o)
|
|
201
201
|
self.class == o.class &&
|
|
202
|
-
name == o.name &&
|
|
203
|
-
content_guard == o.content_guard &&
|
|
204
|
-
pulp_labels == o.pulp_labels &&
|
|
205
202
|
hidden == o.hidden &&
|
|
203
|
+
name == o.name &&
|
|
206
204
|
repository == o.repository &&
|
|
207
205
|
base_path == o.base_path &&
|
|
206
|
+
pulp_labels == o.pulp_labels &&
|
|
207
|
+
content_guard == o.content_guard &&
|
|
208
208
|
repository_version == o.repository_version &&
|
|
209
209
|
private == o.private &&
|
|
210
210
|
description == o.description
|
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
|
219
219
|
# Calculates hash code according to all attributes.
|
|
220
220
|
# @return [Integer] Hash code
|
|
221
221
|
def hash
|
|
222
|
-
[
|
|
222
|
+
[hidden, name, repository, base_path, pulp_labels, content_guard, repository_version, private, description].hash
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -15,23 +15,23 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
|
18
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
19
|
-
attr_accessor :name
|
|
20
|
-
|
|
21
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
22
|
-
attr_accessor :content_guard
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
18
|
# Whether this distribution should be shown in the content app.
|
|
27
19
|
attr_accessor :hidden
|
|
28
20
|
|
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
29
24
|
# The latest RepositoryVersion for this Repository will be served.
|
|
30
25
|
attr_accessor :repository
|
|
31
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
|
+
attr_accessor :pulp_labels
|
|
31
|
+
|
|
32
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
33
|
+
attr_accessor :content_guard
|
|
34
|
+
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
36
36
|
attr_accessor :remote
|
|
37
37
|
|
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
48
|
def self.attribute_map
|
|
49
49
|
{
|
|
50
|
-
:'name' => :'name',
|
|
51
|
-
:'content_guard' => :'content_guard',
|
|
52
|
-
:'pulp_labels' => :'pulp_labels',
|
|
53
50
|
:'hidden' => :'hidden',
|
|
51
|
+
:'name' => :'name',
|
|
54
52
|
:'repository' => :'repository',
|
|
55
53
|
:'base_path' => :'base_path',
|
|
54
|
+
:'pulp_labels' => :'pulp_labels',
|
|
55
|
+
:'content_guard' => :'content_guard',
|
|
56
56
|
:'remote' => :'remote',
|
|
57
57
|
:'distributions' => :'distributions',
|
|
58
58
|
:'private' => :'private',
|
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'name' => :'String',
|
|
67
|
-
:'content_guard' => :'String',
|
|
68
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
69
66
|
:'hidden' => :'Boolean',
|
|
67
|
+
:'name' => :'String',
|
|
70
68
|
:'repository' => :'String',
|
|
71
69
|
:'base_path' => :'String',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'content_guard' => :'String',
|
|
72
72
|
:'remote' => :'String',
|
|
73
73
|
:'distributions' => :'Array<String>',
|
|
74
74
|
:'private' => :'Boolean',
|
|
@@ -99,26 +99,16 @@ module PulpContainerClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'name')
|
|
103
|
-
self.name = attributes[:'name']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
if attributes.key?(:'content_guard')
|
|
107
|
-
self.content_guard = attributes[:'content_guard']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
if attributes.key?(:'pulp_labels')
|
|
111
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
112
|
-
self.pulp_labels = value
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
|
|
116
102
|
if attributes.key?(:'hidden')
|
|
117
103
|
self.hidden = attributes[:'hidden']
|
|
118
104
|
else
|
|
119
105
|
self.hidden = false
|
|
120
106
|
end
|
|
121
107
|
|
|
108
|
+
if attributes.key?(:'name')
|
|
109
|
+
self.name = attributes[:'name']
|
|
110
|
+
end
|
|
111
|
+
|
|
122
112
|
if attributes.key?(:'repository')
|
|
123
113
|
self.repository = attributes[:'repository']
|
|
124
114
|
end
|
|
@@ -127,6 +117,16 @@ module PulpContainerClient
|
|
|
127
117
|
self.base_path = attributes[:'base_path']
|
|
128
118
|
end
|
|
129
119
|
|
|
120
|
+
if attributes.key?(:'pulp_labels')
|
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
|
+
self.pulp_labels = value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'content_guard')
|
|
127
|
+
self.content_guard = attributes[:'content_guard']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
130
|
if attributes.key?(:'remote')
|
|
131
131
|
self.remote = attributes[:'remote']
|
|
132
132
|
end
|
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
|
209
209
|
def ==(o)
|
|
210
210
|
return true if self.equal?(o)
|
|
211
211
|
self.class == o.class &&
|
|
212
|
-
name == o.name &&
|
|
213
|
-
content_guard == o.content_guard &&
|
|
214
|
-
pulp_labels == o.pulp_labels &&
|
|
215
212
|
hidden == o.hidden &&
|
|
213
|
+
name == o.name &&
|
|
216
214
|
repository == o.repository &&
|
|
217
215
|
base_path == o.base_path &&
|
|
216
|
+
pulp_labels == o.pulp_labels &&
|
|
217
|
+
content_guard == o.content_guard &&
|
|
218
218
|
remote == o.remote &&
|
|
219
219
|
distributions == o.distributions &&
|
|
220
220
|
private == o.private &&
|
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[
|
|
233
|
+
[hidden, name, repository, base_path, pulp_labels, content_guard, remote, distributions, private, description].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -21,22 +21,22 @@ module PulpContainerClient
|
|
|
21
21
|
# A reference to an associated signing service.
|
|
22
22
|
attr_accessor :manifest_signing_service
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# An optional description.
|
|
25
|
+
attr_accessor :description
|
|
26
26
|
|
|
27
27
|
attr_accessor :pulp_labels
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
|
30
|
+
attr_accessor :retain_repo_versions
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
35
|
:'name' => :'name',
|
|
36
36
|
:'manifest_signing_service' => :'manifest_signing_service',
|
|
37
|
-
:'
|
|
37
|
+
:'description' => :'description',
|
|
38
38
|
:'pulp_labels' => :'pulp_labels',
|
|
39
|
-
:'
|
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
@@ -45,9 +45,9 @@ module PulpContainerClient
|
|
|
45
45
|
{
|
|
46
46
|
:'name' => :'String',
|
|
47
47
|
:'manifest_signing_service' => :'String',
|
|
48
|
-
:'
|
|
48
|
+
:'description' => :'String',
|
|
49
49
|
:'pulp_labels' => :'Hash<String, String>',
|
|
50
|
-
:'
|
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
57
|
:'manifest_signing_service',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
58
|
+
:'description',
|
|
59
|
+
:'retain_repo_versions'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -83,8 +83,8 @@ module PulpContainerClient
|
|
|
83
83
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
self.
|
|
86
|
+
if attributes.key?(:'description')
|
|
87
|
+
self.description = attributes[:'description']
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
if attributes.key?(:'pulp_labels')
|
|
@@ -93,8 +93,8 @@ module PulpContainerClient
|
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -106,14 +106,14 @@ module PulpContainerClient
|
|
|
106
106
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
110
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
111
|
-
end
|
|
112
|
-
|
|
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
|
|
|
113
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
114
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
115
|
+
end
|
|
116
|
+
|
|
117
117
|
invalid_properties
|
|
118
118
|
end
|
|
119
119
|
|
|
@@ -121,8 +121,8 @@ module PulpContainerClient
|
|
|
121
121
|
# @return true if the model is valid
|
|
122
122
|
def valid?
|
|
123
123
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
124
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
125
124
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
125
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
126
126
|
true
|
|
127
127
|
end
|
|
128
128
|
|
|
@@ -136,16 +136,6 @@ module PulpContainerClient
|
|
|
136
136
|
@name = name
|
|
137
137
|
end
|
|
138
138
|
|
|
139
|
-
# Custom attribute writer method with validation
|
|
140
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
141
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
142
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
143
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
@retain_repo_versions = retain_repo_versions
|
|
147
|
-
end
|
|
148
|
-
|
|
149
139
|
# Custom attribute writer method with validation
|
|
150
140
|
# @param [Object] description Value to be assigned
|
|
151
141
|
def description=(description)
|
|
@@ -156,6 +146,16 @@ module PulpContainerClient
|
|
|
156
146
|
@description = description
|
|
157
147
|
end
|
|
158
148
|
|
|
149
|
+
# Custom attribute writer method with validation
|
|
150
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
151
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
152
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
153
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
@retain_repo_versions = retain_repo_versions
|
|
157
|
+
end
|
|
158
|
+
|
|
159
159
|
# Checks equality by comparing each attribute.
|
|
160
160
|
# @param [Object] Object to be compared
|
|
161
161
|
def ==(o)
|
|
@@ -163,9 +163,9 @@ module PulpContainerClient
|
|
|
163
163
|
self.class == o.class &&
|
|
164
164
|
name == o.name &&
|
|
165
165
|
manifest_signing_service == o.manifest_signing_service &&
|
|
166
|
-
|
|
166
|
+
description == o.description &&
|
|
167
167
|
pulp_labels == o.pulp_labels &&
|
|
168
|
-
|
|
168
|
+
retain_repo_versions == o.retain_repo_versions
|
|
169
169
|
end
|
|
170
170
|
|
|
171
171
|
# @see the `==` method
|
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
|
177
177
|
# Calculates hash code according to all attributes.
|
|
178
178
|
# @return [Integer] Hash code
|
|
179
179
|
def hash
|
|
180
|
-
[name, manifest_signing_service,
|
|
180
|
+
[name, manifest_signing_service, description, pulp_labels, retain_repo_versions].hash
|
|
181
181
|
end
|
|
182
182
|
|
|
183
183
|
# Builds the object from hash
|
|
@@ -32,55 +32,55 @@ 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 "hidden"' 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 "name"' 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 "repository"' 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 "base_path"' 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_labels"' 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 "pulp_href"' 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 "pulp_last_updated"' 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 "content_guard"' 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
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
describe 'test attribute "
|
|
83
|
+
describe 'test attribute "pulp_created"' do
|
|
84
84
|
it 'should work' do
|
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
86
|
end
|