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