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