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