pulp_container_client 2.27.11 → 2.27.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 +6 -6
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/DistributionsPullThroughApi.md +10 -10
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
- data/lib/pulp_container_client/models/container_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +80 -80
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +80 -80
- data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -60
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +41 -41
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -4
- data/spec/models/container_container_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
- metadata +59 -59
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,43 +16,43 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
attr_accessor :pulp_href
|
|
19
|
+
# RepositoryVersion to be served
|
|
20
|
+
attr_accessor :repository_version
|
|
25
21
|
|
|
26
|
-
# Timestamp
|
|
27
|
-
attr_accessor :
|
|
22
|
+
# Timestamp of creation.
|
|
23
|
+
attr_accessor :pulp_created
|
|
28
24
|
|
|
29
25
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
30
26
|
attr_accessor :content_guard_prn
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
attr_accessor :prn
|
|
34
|
-
|
|
35
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
36
|
-
attr_accessor :repository
|
|
37
|
-
|
|
38
|
-
# Timestamp of creation.
|
|
39
|
-
attr_accessor :pulp_created
|
|
28
|
+
attr_accessor :pulp_href
|
|
40
29
|
|
|
41
30
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
42
31
|
attr_accessor :name
|
|
43
32
|
|
|
44
|
-
#
|
|
45
|
-
attr_accessor :
|
|
33
|
+
# The registry path exposed by this pull-through distribution.
|
|
34
|
+
attr_accessor :base_path
|
|
46
35
|
|
|
47
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
48
37
|
attr_accessor :content_guard
|
|
49
38
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
39
|
+
# Whether this distribution should be shown in the content app.
|
|
40
|
+
attr_accessor :hidden
|
|
52
41
|
|
|
53
42
|
# 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.
|
|
54
43
|
attr_accessor :pulp_last_updated
|
|
55
44
|
|
|
45
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
46
|
+
attr_accessor :no_content_change_since
|
|
47
|
+
|
|
48
|
+
attr_accessor :pulp_labels
|
|
49
|
+
|
|
50
|
+
# The Pulp Resource Name (PRN).
|
|
51
|
+
attr_accessor :prn
|
|
52
|
+
|
|
53
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
54
|
+
attr_accessor :repository
|
|
55
|
+
|
|
56
56
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
57
57
|
attr_accessor :remote
|
|
58
58
|
|
|
@@ -71,19 +71,19 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'
|
|
75
|
-
:'pulp_labels' => :'pulp_labels',
|
|
76
|
-
:'pulp_href' => :'pulp_href',
|
|
77
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
78
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
79
|
-
:'prn' => :'prn',
|
|
80
|
-
:'repository' => :'repository',
|
|
74
|
+
:'repository_version' => :'repository_version',
|
|
81
75
|
:'pulp_created' => :'pulp_created',
|
|
76
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
77
|
+
:'pulp_href' => :'pulp_href',
|
|
82
78
|
:'name' => :'name',
|
|
83
|
-
:'repository_version' => :'repository_version',
|
|
84
|
-
:'content_guard' => :'content_guard',
|
|
85
79
|
:'base_path' => :'base_path',
|
|
80
|
+
:'content_guard' => :'content_guard',
|
|
81
|
+
:'hidden' => :'hidden',
|
|
86
82
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
83
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
84
|
+
:'pulp_labels' => :'pulp_labels',
|
|
85
|
+
:'prn' => :'prn',
|
|
86
|
+
:'repository' => :'repository',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -100,19 +100,19 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'
|
|
104
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
105
|
-
:'pulp_href' => :'String',
|
|
106
|
-
:'no_content_change_since' => :'String',
|
|
107
|
-
:'content_guard_prn' => :'String',
|
|
108
|
-
:'prn' => :'String',
|
|
109
|
-
:'repository' => :'String',
|
|
103
|
+
:'repository_version' => :'String',
|
|
110
104
|
:'pulp_created' => :'Time',
|
|
105
|
+
:'content_guard_prn' => :'String',
|
|
106
|
+
:'pulp_href' => :'String',
|
|
111
107
|
:'name' => :'String',
|
|
112
|
-
:'repository_version' => :'String',
|
|
113
|
-
:'content_guard' => :'String',
|
|
114
108
|
:'base_path' => :'String',
|
|
109
|
+
:'content_guard' => :'String',
|
|
110
|
+
:'hidden' => :'Boolean',
|
|
115
111
|
:'pulp_last_updated' => :'Time',
|
|
112
|
+
:'no_content_change_since' => :'String',
|
|
113
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
114
|
+
:'prn' => :'String',
|
|
115
|
+
:'repository' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -124,8 +124,8 @@ module PulpContainerClient
|
|
|
124
124
|
# List of attributes with nullable: true
|
|
125
125
|
def self.openapi_nullable
|
|
126
126
|
Set.new([
|
|
127
|
-
:'repository',
|
|
128
127
|
:'repository_version',
|
|
128
|
+
:'repository',
|
|
129
129
|
:'description'
|
|
130
130
|
])
|
|
131
131
|
end
|
|
@@ -145,40 +145,20 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
150
|
-
else
|
|
151
|
-
self.hidden = false
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if attributes.key?(:'pulp_labels')
|
|
155
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
156
|
-
self.pulp_labels = value
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
if attributes.key?(:'pulp_href')
|
|
161
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
148
|
+
if attributes.key?(:'repository_version')
|
|
149
|
+
self.repository_version = attributes[:'repository_version']
|
|
162
150
|
end
|
|
163
151
|
|
|
164
|
-
if attributes.key?(:'
|
|
165
|
-
self.
|
|
152
|
+
if attributes.key?(:'pulp_created')
|
|
153
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
166
154
|
end
|
|
167
155
|
|
|
168
156
|
if attributes.key?(:'content_guard_prn')
|
|
169
157
|
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
170
158
|
end
|
|
171
159
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if attributes.key?(:'repository')
|
|
177
|
-
self.repository = attributes[:'repository']
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
if attributes.key?(:'pulp_created')
|
|
181
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
160
|
+
if attributes.key?(:'pulp_href')
|
|
161
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
182
162
|
end
|
|
183
163
|
|
|
184
164
|
if attributes.key?(:'name')
|
|
@@ -187,24 +167,44 @@ module PulpContainerClient
|
|
|
187
167
|
self.name = nil
|
|
188
168
|
end
|
|
189
169
|
|
|
190
|
-
if attributes.key?(:'
|
|
191
|
-
self.
|
|
170
|
+
if attributes.key?(:'base_path')
|
|
171
|
+
self.base_path = attributes[:'base_path']
|
|
172
|
+
else
|
|
173
|
+
self.base_path = nil
|
|
192
174
|
end
|
|
193
175
|
|
|
194
176
|
if attributes.key?(:'content_guard')
|
|
195
177
|
self.content_guard = attributes[:'content_guard']
|
|
196
178
|
end
|
|
197
179
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
self.
|
|
180
|
+
if attributes.key?(:'hidden')
|
|
181
|
+
self.hidden = attributes[:'hidden']
|
|
200
182
|
else
|
|
201
|
-
self.
|
|
183
|
+
self.hidden = false
|
|
202
184
|
end
|
|
203
185
|
|
|
204
186
|
if attributes.key?(:'pulp_last_updated')
|
|
205
187
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
206
188
|
end
|
|
207
189
|
|
|
190
|
+
if attributes.key?(:'no_content_change_since')
|
|
191
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'pulp_labels')
|
|
195
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
196
|
+
self.pulp_labels = value
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
if attributes.key?(:'prn')
|
|
201
|
+
self.prn = attributes[:'prn']
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'repository')
|
|
205
|
+
self.repository = attributes[:'repository']
|
|
206
|
+
end
|
|
207
|
+
|
|
208
208
|
if attributes.key?(:'remote')
|
|
209
209
|
self.remote = attributes[:'remote']
|
|
210
210
|
else
|
|
@@ -265,19 +265,19 @@ module PulpContainerClient
|
|
|
265
265
|
def ==(o)
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
|
-
|
|
269
|
-
pulp_labels == o.pulp_labels &&
|
|
270
|
-
pulp_href == o.pulp_href &&
|
|
271
|
-
no_content_change_since == o.no_content_change_since &&
|
|
272
|
-
content_guard_prn == o.content_guard_prn &&
|
|
273
|
-
prn == o.prn &&
|
|
274
|
-
repository == o.repository &&
|
|
268
|
+
repository_version == o.repository_version &&
|
|
275
269
|
pulp_created == o.pulp_created &&
|
|
270
|
+
content_guard_prn == o.content_guard_prn &&
|
|
271
|
+
pulp_href == o.pulp_href &&
|
|
276
272
|
name == o.name &&
|
|
277
|
-
repository_version == o.repository_version &&
|
|
278
|
-
content_guard == o.content_guard &&
|
|
279
273
|
base_path == o.base_path &&
|
|
274
|
+
content_guard == o.content_guard &&
|
|
275
|
+
hidden == o.hidden &&
|
|
280
276
|
pulp_last_updated == o.pulp_last_updated &&
|
|
277
|
+
no_content_change_since == o.no_content_change_since &&
|
|
278
|
+
pulp_labels == o.pulp_labels &&
|
|
279
|
+
prn == o.prn &&
|
|
280
|
+
repository == o.repository &&
|
|
281
281
|
remote == o.remote &&
|
|
282
282
|
distributions == o.distributions &&
|
|
283
283
|
namespace == o.namespace &&
|
|
@@ -294,7 +294,7 @@ module PulpContainerClient
|
|
|
294
294
|
# Calculates hash code according to all attributes.
|
|
295
295
|
# @return [Integer] Hash code
|
|
296
296
|
def hash
|
|
297
|
-
[
|
|
297
|
+
[repository_version, pulp_created, content_guard_prn, pulp_href, name, base_path, content_guard, hidden, pulp_last_updated, no_content_change_since, pulp_labels, prn, repository, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|
|
@@ -16,13 +16,11 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
attr_accessor :pulp_labels
|
|
20
|
-
|
|
21
19
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
22
20
|
attr_accessor :retain_repo_versions
|
|
23
21
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
22
|
+
# A reference to an associated signing service.
|
|
23
|
+
attr_accessor :manifest_signing_service
|
|
26
24
|
|
|
27
25
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
28
26
|
attr_accessor :retain_checkpoints
|
|
@@ -30,18 +28,20 @@ module PulpContainerClient
|
|
|
30
28
|
# A unique name for this repository.
|
|
31
29
|
attr_accessor :name
|
|
32
30
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
31
|
+
# An optional description.
|
|
32
|
+
attr_accessor :description
|
|
33
|
+
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
35
|
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'pulp_labels' => :'pulp_labels',
|
|
40
39
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
|
-
:'
|
|
40
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
42
41
|
:'retain_checkpoints' => :'retain_checkpoints',
|
|
43
42
|
:'name' => :'name',
|
|
44
|
-
:'
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'pulp_labels' => :'pulp_labels'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,12 +53,12 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
57
56
|
:'retain_repo_versions' => :'Integer',
|
|
58
|
-
:'
|
|
57
|
+
:'manifest_signing_service' => :'String',
|
|
59
58
|
:'retain_checkpoints' => :'Integer',
|
|
60
59
|
:'name' => :'String',
|
|
61
|
-
:'
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
@@ -66,9 +66,9 @@ module PulpContainerClient
|
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
68
|
:'retain_repo_versions',
|
|
69
|
-
:'
|
|
69
|
+
:'manifest_signing_service',
|
|
70
70
|
:'retain_checkpoints',
|
|
71
|
-
:'
|
|
71
|
+
:'description',
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,18 +87,12 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'pulp_labels')
|
|
91
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
|
-
self.pulp_labels = value
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
|
|
96
90
|
if attributes.key?(:'retain_repo_versions')
|
|
97
91
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
92
|
end
|
|
99
93
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
94
|
+
if attributes.key?(:'manifest_signing_service')
|
|
95
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
102
96
|
end
|
|
103
97
|
|
|
104
98
|
if attributes.key?(:'retain_checkpoints')
|
|
@@ -111,8 +105,14 @@ module PulpContainerClient
|
|
|
111
105
|
self.name = nil
|
|
112
106
|
end
|
|
113
107
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
108
|
+
if attributes.key?(:'description')
|
|
109
|
+
self.description = attributes[:'description']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'pulp_labels')
|
|
113
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
114
|
+
self.pulp_labels = value
|
|
115
|
+
end
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -125,10 +125,6 @@ module PulpContainerClient
|
|
|
125
125
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
129
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
128
|
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
133
129
|
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
134
130
|
end
|
|
@@ -141,6 +137,10 @@ module PulpContainerClient
|
|
|
141
137
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
142
138
|
end
|
|
143
139
|
|
|
140
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
141
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -149,10 +149,10 @@ module PulpContainerClient
|
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
151
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
152
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
153
152
|
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
154
153
|
return false if @name.nil?
|
|
155
154
|
return false if @name.to_s.length < 1
|
|
155
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -166,16 +166,6 @@ module PulpContainerClient
|
|
|
166
166
|
@retain_repo_versions = retain_repo_versions
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
# Custom attribute writer method with validation
|
|
170
|
-
# @param [Object] description Value to be assigned
|
|
171
|
-
def description=(description)
|
|
172
|
-
if !description.nil? && description.to_s.length < 1
|
|
173
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
@description = description
|
|
177
|
-
end
|
|
178
|
-
|
|
179
169
|
# Custom attribute writer method with validation
|
|
180
170
|
# @param [Object] retain_checkpoints Value to be assigned
|
|
181
171
|
def retain_checkpoints=(retain_checkpoints)
|
|
@@ -200,17 +190,27 @@ module PulpContainerClient
|
|
|
200
190
|
@name = name
|
|
201
191
|
end
|
|
202
192
|
|
|
193
|
+
# Custom attribute writer method with validation
|
|
194
|
+
# @param [Object] description Value to be assigned
|
|
195
|
+
def description=(description)
|
|
196
|
+
if !description.nil? && description.to_s.length < 1
|
|
197
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
@description = description
|
|
201
|
+
end
|
|
202
|
+
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
pulp_labels == o.pulp_labels &&
|
|
209
208
|
retain_repo_versions == o.retain_repo_versions &&
|
|
210
|
-
|
|
209
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
211
210
|
retain_checkpoints == o.retain_checkpoints &&
|
|
212
211
|
name == o.name &&
|
|
213
|
-
|
|
212
|
+
description == o.description &&
|
|
213
|
+
pulp_labels == o.pulp_labels
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[retain_repo_versions, manifest_signing_service, retain_checkpoints, name, description, pulp_labels].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|