pulp_container_client 2.26.6 → 2.26.7
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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +3 -3
- data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- data/docs/PatchedcontainerContainerPushRepository.md +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +41 -41
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +41 -41
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +49 -49
- data/lib/pulp_container_client/models/container_container_push_repository.rb +16 -16
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -60
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +34 -34
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +34 -34
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +16 -16
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +2 -2
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_spec.rb +2 -2
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +2 -2
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +2 -2
|
@@ -16,16 +16,16 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistributionResponse
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
attr_accessor :pulp_href
|
|
20
|
+
|
|
21
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
22
|
+
attr_accessor :base_path
|
|
21
23
|
|
|
22
24
|
# 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.
|
|
23
25
|
attr_accessor :pulp_last_updated
|
|
24
26
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
27
|
-
|
|
28
|
-
attr_accessor :pulp_href
|
|
27
|
+
# Timestamp of creation.
|
|
28
|
+
attr_accessor :pulp_created
|
|
29
29
|
|
|
30
30
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
31
31
|
attr_accessor :content_guard
|
|
@@ -35,14 +35,14 @@ module PulpContainerClient
|
|
|
35
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
36
|
attr_accessor :no_content_change_since
|
|
37
37
|
|
|
38
|
+
# The Pulp Resource Name (PRN).
|
|
39
|
+
attr_accessor :prn
|
|
40
|
+
|
|
38
41
|
# Whether this distribution should be shown in the content app.
|
|
39
42
|
attr_accessor :hidden
|
|
40
43
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
43
|
-
|
|
44
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
45
|
-
attr_accessor :base_path
|
|
44
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
45
|
+
attr_accessor :name
|
|
46
46
|
|
|
47
47
|
# The latest RepositoryVersion for this Repository will be served.
|
|
48
48
|
attr_accessor :repository
|
|
@@ -68,16 +68,16 @@ module PulpContainerClient
|
|
|
68
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
69
69
|
def self.attribute_map
|
|
70
70
|
{
|
|
71
|
-
:'prn' => :'prn',
|
|
72
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
73
|
-
:'name' => :'name',
|
|
74
71
|
:'pulp_href' => :'pulp_href',
|
|
72
|
+
:'base_path' => :'base_path',
|
|
73
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
74
|
+
:'pulp_created' => :'pulp_created',
|
|
75
75
|
:'content_guard' => :'content_guard',
|
|
76
76
|
:'pulp_labels' => :'pulp_labels',
|
|
77
77
|
:'no_content_change_since' => :'no_content_change_since',
|
|
78
|
+
:'prn' => :'prn',
|
|
78
79
|
:'hidden' => :'hidden',
|
|
79
|
-
:'
|
|
80
|
-
:'base_path' => :'base_path',
|
|
80
|
+
:'name' => :'name',
|
|
81
81
|
:'repository' => :'repository',
|
|
82
82
|
:'repository_version' => :'repository_version',
|
|
83
83
|
:'registry_path' => :'registry_path',
|
|
@@ -96,16 +96,16 @@ module PulpContainerClient
|
|
|
96
96
|
# Attribute type mapping.
|
|
97
97
|
def self.openapi_types
|
|
98
98
|
{
|
|
99
|
-
:'prn' => :'String',
|
|
100
|
-
:'pulp_last_updated' => :'Time',
|
|
101
|
-
:'name' => :'String',
|
|
102
99
|
:'pulp_href' => :'String',
|
|
100
|
+
:'base_path' => :'String',
|
|
101
|
+
:'pulp_last_updated' => :'Time',
|
|
102
|
+
:'pulp_created' => :'Time',
|
|
103
103
|
:'content_guard' => :'String',
|
|
104
104
|
:'pulp_labels' => :'Hash<String, String>',
|
|
105
105
|
:'no_content_change_since' => :'String',
|
|
106
|
+
:'prn' => :'String',
|
|
106
107
|
:'hidden' => :'Boolean',
|
|
107
|
-
:'
|
|
108
|
-
:'base_path' => :'String',
|
|
108
|
+
:'name' => :'String',
|
|
109
109
|
:'repository' => :'String',
|
|
110
110
|
:'repository_version' => :'String',
|
|
111
111
|
:'registry_path' => :'String',
|
|
@@ -140,22 +140,22 @@ module PulpContainerClient
|
|
|
140
140
|
h[k.to_sym] = v
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
if attributes.key?(:'
|
|
144
|
-
self.
|
|
143
|
+
if attributes.key?(:'pulp_href')
|
|
144
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
if attributes.key?(:'
|
|
148
|
-
self.
|
|
147
|
+
if attributes.key?(:'base_path')
|
|
148
|
+
self.base_path = attributes[:'base_path']
|
|
149
|
+
else
|
|
150
|
+
self.base_path = nil
|
|
149
151
|
end
|
|
150
152
|
|
|
151
|
-
if attributes.key?(:'
|
|
152
|
-
self.
|
|
153
|
-
else
|
|
154
|
-
self.name = nil
|
|
153
|
+
if attributes.key?(:'pulp_last_updated')
|
|
154
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
if attributes.key?(:'
|
|
158
|
-
self.
|
|
157
|
+
if attributes.key?(:'pulp_created')
|
|
158
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if attributes.key?(:'content_guard')
|
|
@@ -172,20 +172,20 @@ module PulpContainerClient
|
|
|
172
172
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
+
if attributes.key?(:'prn')
|
|
176
|
+
self.prn = attributes[:'prn']
|
|
177
|
+
end
|
|
178
|
+
|
|
175
179
|
if attributes.key?(:'hidden')
|
|
176
180
|
self.hidden = attributes[:'hidden']
|
|
177
181
|
else
|
|
178
182
|
self.hidden = false
|
|
179
183
|
end
|
|
180
184
|
|
|
181
|
-
if attributes.key?(:'
|
|
182
|
-
self.
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'base_path')
|
|
186
|
-
self.base_path = attributes[:'base_path']
|
|
185
|
+
if attributes.key?(:'name')
|
|
186
|
+
self.name = attributes[:'name']
|
|
187
187
|
else
|
|
188
|
-
self.
|
|
188
|
+
self.name = nil
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
if attributes.key?(:'repository')
|
|
@@ -222,14 +222,14 @@ module PulpContainerClient
|
|
|
222
222
|
def list_invalid_properties
|
|
223
223
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
224
224
|
invalid_properties = Array.new
|
|
225
|
-
if @name.nil?
|
|
226
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
227
|
-
end
|
|
228
|
-
|
|
229
225
|
if @base_path.nil?
|
|
230
226
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
231
227
|
end
|
|
232
228
|
|
|
229
|
+
if @name.nil?
|
|
230
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
231
|
+
end
|
|
232
|
+
|
|
233
233
|
invalid_properties
|
|
234
234
|
end
|
|
235
235
|
|
|
@@ -237,8 +237,8 @@ module PulpContainerClient
|
|
|
237
237
|
# @return true if the model is valid
|
|
238
238
|
def valid?
|
|
239
239
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
240
|
-
return false if @name.nil?
|
|
241
240
|
return false if @base_path.nil?
|
|
241
|
+
return false if @name.nil?
|
|
242
242
|
true
|
|
243
243
|
end
|
|
244
244
|
|
|
@@ -247,16 +247,16 @@ module PulpContainerClient
|
|
|
247
247
|
def ==(o)
|
|
248
248
|
return true if self.equal?(o)
|
|
249
249
|
self.class == o.class &&
|
|
250
|
-
prn == o.prn &&
|
|
251
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
252
|
-
name == o.name &&
|
|
253
250
|
pulp_href == o.pulp_href &&
|
|
251
|
+
base_path == o.base_path &&
|
|
252
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
253
|
+
pulp_created == o.pulp_created &&
|
|
254
254
|
content_guard == o.content_guard &&
|
|
255
255
|
pulp_labels == o.pulp_labels &&
|
|
256
256
|
no_content_change_since == o.no_content_change_since &&
|
|
257
|
+
prn == o.prn &&
|
|
257
258
|
hidden == o.hidden &&
|
|
258
|
-
|
|
259
|
-
base_path == o.base_path &&
|
|
259
|
+
name == o.name &&
|
|
260
260
|
repository == o.repository &&
|
|
261
261
|
repository_version == o.repository_version &&
|
|
262
262
|
registry_path == o.registry_path &&
|
|
@@ -275,7 +275,7 @@ module PulpContainerClient
|
|
|
275
275
|
# Calculates hash code according to all attributes.
|
|
276
276
|
# @return [Integer] Hash code
|
|
277
277
|
def hash
|
|
278
|
-
[
|
|
278
|
+
[pulp_href, base_path, pulp_last_updated, pulp_created, content_guard, pulp_labels, no_content_change_since, prn, hidden, name, repository, repository_version, registry_path, remote, namespace, private, description].hash
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
# Builds the object from hash
|
|
@@ -16,8 +16,8 @@ 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 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
21
|
|
|
22
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
23
23
|
attr_accessor :content_guard
|
|
@@ -27,8 +27,8 @@ module PulpContainerClient
|
|
|
27
27
|
# Whether this distribution should be shown in the content app.
|
|
28
28
|
attr_accessor :hidden
|
|
29
29
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
30
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
31
|
+
attr_accessor :name
|
|
32
32
|
|
|
33
33
|
# The latest RepositoryVersion for this Repository will be served.
|
|
34
34
|
attr_accessor :repository
|
|
@@ -48,11 +48,11 @@ module PulpContainerClient
|
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
49
|
def self.attribute_map
|
|
50
50
|
{
|
|
51
|
-
:'
|
|
51
|
+
:'base_path' => :'base_path',
|
|
52
52
|
:'content_guard' => :'content_guard',
|
|
53
53
|
:'pulp_labels' => :'pulp_labels',
|
|
54
54
|
:'hidden' => :'hidden',
|
|
55
|
-
:'
|
|
55
|
+
:'name' => :'name',
|
|
56
56
|
:'repository' => :'repository',
|
|
57
57
|
:'remote' => :'remote',
|
|
58
58
|
:'distributions' => :'distributions',
|
|
@@ -69,11 +69,11 @@ module PulpContainerClient
|
|
|
69
69
|
# Attribute type mapping.
|
|
70
70
|
def self.openapi_types
|
|
71
71
|
{
|
|
72
|
-
:'
|
|
72
|
+
:'base_path' => :'String',
|
|
73
73
|
:'content_guard' => :'String',
|
|
74
74
|
:'pulp_labels' => :'Hash<String, String>',
|
|
75
75
|
:'hidden' => :'Boolean',
|
|
76
|
-
:'
|
|
76
|
+
:'name' => :'String',
|
|
77
77
|
:'repository' => :'String',
|
|
78
78
|
:'remote' => :'String',
|
|
79
79
|
:'distributions' => :'Array<String>',
|
|
@@ -105,10 +105,10 @@ module PulpContainerClient
|
|
|
105
105
|
h[k.to_sym] = v
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
108
|
+
if attributes.key?(:'base_path')
|
|
109
|
+
self.base_path = attributes[:'base_path']
|
|
110
110
|
else
|
|
111
|
-
self.
|
|
111
|
+
self.base_path = nil
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
if attributes.key?(:'content_guard')
|
|
@@ -127,10 +127,10 @@ module PulpContainerClient
|
|
|
127
127
|
self.hidden = false
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
132
132
|
else
|
|
133
|
-
self.
|
|
133
|
+
self.name = nil
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if attributes.key?(:'repository')
|
|
@@ -163,14 +163,6 @@ module PulpContainerClient
|
|
|
163
163
|
def list_invalid_properties
|
|
164
164
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
165
165
|
invalid_properties = Array.new
|
|
166
|
-
if @name.nil?
|
|
167
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
if @name.to_s.length < 1
|
|
171
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
172
|
-
end
|
|
173
|
-
|
|
174
166
|
if @base_path.nil?
|
|
175
167
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
176
168
|
end
|
|
@@ -179,6 +171,14 @@ module PulpContainerClient
|
|
|
179
171
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
180
172
|
end
|
|
181
173
|
|
|
174
|
+
if @name.nil?
|
|
175
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @name.to_s.length < 1
|
|
179
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
182
|
if @remote.nil?
|
|
183
183
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
184
184
|
end
|
|
@@ -194,29 +194,15 @@ module PulpContainerClient
|
|
|
194
194
|
# @return true if the model is valid
|
|
195
195
|
def valid?
|
|
196
196
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
197
|
-
return false if @name.nil?
|
|
198
|
-
return false if @name.to_s.length < 1
|
|
199
197
|
return false if @base_path.nil?
|
|
200
198
|
return false if @base_path.to_s.length < 1
|
|
199
|
+
return false if @name.nil?
|
|
200
|
+
return false if @name.to_s.length < 1
|
|
201
201
|
return false if @remote.nil?
|
|
202
202
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
203
203
|
true
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
-
# Custom attribute writer method with validation
|
|
207
|
-
# @param [Object] name Value to be assigned
|
|
208
|
-
def name=(name)
|
|
209
|
-
if name.nil?
|
|
210
|
-
fail ArgumentError, 'name cannot be nil'
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if name.to_s.length < 1
|
|
214
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
@name = name
|
|
218
|
-
end
|
|
219
|
-
|
|
220
206
|
# Custom attribute writer method with validation
|
|
221
207
|
# @param [Object] base_path Value to be assigned
|
|
222
208
|
def base_path=(base_path)
|
|
@@ -231,6 +217,20 @@ module PulpContainerClient
|
|
|
231
217
|
@base_path = base_path
|
|
232
218
|
end
|
|
233
219
|
|
|
220
|
+
# Custom attribute writer method with validation
|
|
221
|
+
# @param [Object] name Value to be assigned
|
|
222
|
+
def name=(name)
|
|
223
|
+
if name.nil?
|
|
224
|
+
fail ArgumentError, 'name cannot be nil'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if name.to_s.length < 1
|
|
228
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@name = name
|
|
232
|
+
end
|
|
233
|
+
|
|
234
234
|
# Custom attribute writer method with validation
|
|
235
235
|
# @param [Object] description Value to be assigned
|
|
236
236
|
def description=(description)
|
|
@@ -246,11 +246,11 @@ module PulpContainerClient
|
|
|
246
246
|
def ==(o)
|
|
247
247
|
return true if self.equal?(o)
|
|
248
248
|
self.class == o.class &&
|
|
249
|
-
|
|
249
|
+
base_path == o.base_path &&
|
|
250
250
|
content_guard == o.content_guard &&
|
|
251
251
|
pulp_labels == o.pulp_labels &&
|
|
252
252
|
hidden == o.hidden &&
|
|
253
|
-
|
|
253
|
+
name == o.name &&
|
|
254
254
|
repository == o.repository &&
|
|
255
255
|
remote == o.remote &&
|
|
256
256
|
distributions == o.distributions &&
|
|
@@ -267,7 +267,7 @@ module PulpContainerClient
|
|
|
267
267
|
# Calculates hash code according to all attributes.
|
|
268
268
|
# @return [Integer] Hash code
|
|
269
269
|
def hash
|
|
270
|
-
[
|
|
270
|
+
[base_path, content_guard, pulp_labels, hidden, name, repository, remote, distributions, private, description].hash
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
|
@@ -16,16 +16,16 @@ 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
|
-
|
|
19
|
+
attr_accessor :pulp_href
|
|
20
|
+
|
|
21
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
22
|
+
attr_accessor :base_path
|
|
21
23
|
|
|
22
24
|
# 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.
|
|
23
25
|
attr_accessor :pulp_last_updated
|
|
24
26
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
27
|
-
|
|
28
|
-
attr_accessor :pulp_href
|
|
27
|
+
# Timestamp of creation.
|
|
28
|
+
attr_accessor :pulp_created
|
|
29
29
|
|
|
30
30
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
31
31
|
attr_accessor :content_guard
|
|
@@ -35,14 +35,14 @@ module PulpContainerClient
|
|
|
35
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
36
|
attr_accessor :no_content_change_since
|
|
37
37
|
|
|
38
|
+
# The Pulp Resource Name (PRN).
|
|
39
|
+
attr_accessor :prn
|
|
40
|
+
|
|
38
41
|
# Whether this distribution should be shown in the content app.
|
|
39
42
|
attr_accessor :hidden
|
|
40
43
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
43
|
-
|
|
44
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
45
|
-
attr_accessor :base_path
|
|
44
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
45
|
+
attr_accessor :name
|
|
46
46
|
|
|
47
47
|
# The latest RepositoryVersion for this Repository will be served.
|
|
48
48
|
attr_accessor :repository
|
|
@@ -65,16 +65,16 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
66
66
|
def self.attribute_map
|
|
67
67
|
{
|
|
68
|
-
:'prn' => :'prn',
|
|
69
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
70
|
-
:'name' => :'name',
|
|
71
68
|
:'pulp_href' => :'pulp_href',
|
|
69
|
+
:'base_path' => :'base_path',
|
|
70
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
71
|
+
:'pulp_created' => :'pulp_created',
|
|
72
72
|
:'content_guard' => :'content_guard',
|
|
73
73
|
:'pulp_labels' => :'pulp_labels',
|
|
74
74
|
:'no_content_change_since' => :'no_content_change_since',
|
|
75
|
+
:'prn' => :'prn',
|
|
75
76
|
:'hidden' => :'hidden',
|
|
76
|
-
:'
|
|
77
|
-
:'base_path' => :'base_path',
|
|
77
|
+
:'name' => :'name',
|
|
78
78
|
:'repository' => :'repository',
|
|
79
79
|
:'remote' => :'remote',
|
|
80
80
|
:'distributions' => :'distributions',
|
|
@@ -92,16 +92,16 @@ module PulpContainerClient
|
|
|
92
92
|
# Attribute type mapping.
|
|
93
93
|
def self.openapi_types
|
|
94
94
|
{
|
|
95
|
-
:'prn' => :'String',
|
|
96
|
-
:'pulp_last_updated' => :'Time',
|
|
97
|
-
:'name' => :'String',
|
|
98
95
|
:'pulp_href' => :'String',
|
|
96
|
+
:'base_path' => :'String',
|
|
97
|
+
:'pulp_last_updated' => :'Time',
|
|
98
|
+
:'pulp_created' => :'Time',
|
|
99
99
|
:'content_guard' => :'String',
|
|
100
100
|
:'pulp_labels' => :'Hash<String, String>',
|
|
101
101
|
:'no_content_change_since' => :'String',
|
|
102
|
+
:'prn' => :'String',
|
|
102
103
|
:'hidden' => :'Boolean',
|
|
103
|
-
:'
|
|
104
|
-
:'base_path' => :'String',
|
|
104
|
+
:'name' => :'String',
|
|
105
105
|
:'repository' => :'String',
|
|
106
106
|
:'remote' => :'String',
|
|
107
107
|
:'distributions' => :'Array<String>',
|
|
@@ -134,22 +134,22 @@ module PulpContainerClient
|
|
|
134
134
|
h[k.to_sym] = v
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
if attributes.key?(:'
|
|
138
|
-
self.
|
|
137
|
+
if attributes.key?(:'pulp_href')
|
|
138
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
-
if attributes.key?(:'
|
|
142
|
-
self.
|
|
141
|
+
if attributes.key?(:'base_path')
|
|
142
|
+
self.base_path = attributes[:'base_path']
|
|
143
|
+
else
|
|
144
|
+
self.base_path = nil
|
|
143
145
|
end
|
|
144
146
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
147
|
-
else
|
|
148
|
-
self.name = nil
|
|
147
|
+
if attributes.key?(:'pulp_last_updated')
|
|
148
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
149
149
|
end
|
|
150
150
|
|
|
151
|
-
if attributes.key?(:'
|
|
152
|
-
self.
|
|
151
|
+
if attributes.key?(:'pulp_created')
|
|
152
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
if attributes.key?(:'content_guard')
|
|
@@ -166,20 +166,20 @@ module PulpContainerClient
|
|
|
166
166
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
if attributes.key?(:'prn')
|
|
170
|
+
self.prn = attributes[:'prn']
|
|
171
|
+
end
|
|
172
|
+
|
|
169
173
|
if attributes.key?(:'hidden')
|
|
170
174
|
self.hidden = attributes[:'hidden']
|
|
171
175
|
else
|
|
172
176
|
self.hidden = false
|
|
173
177
|
end
|
|
174
178
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'base_path')
|
|
180
|
-
self.base_path = attributes[:'base_path']
|
|
179
|
+
if attributes.key?(:'name')
|
|
180
|
+
self.name = attributes[:'name']
|
|
181
181
|
else
|
|
182
|
-
self.
|
|
182
|
+
self.name = nil
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
if attributes.key?(:'repository')
|
|
@@ -216,14 +216,14 @@ module PulpContainerClient
|
|
|
216
216
|
def list_invalid_properties
|
|
217
217
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
218
218
|
invalid_properties = Array.new
|
|
219
|
-
if @name.nil?
|
|
220
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
221
|
-
end
|
|
222
|
-
|
|
223
219
|
if @base_path.nil?
|
|
224
220
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
225
221
|
end
|
|
226
222
|
|
|
223
|
+
if @name.nil?
|
|
224
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
225
|
+
end
|
|
226
|
+
|
|
227
227
|
if @remote.nil?
|
|
228
228
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
229
229
|
end
|
|
@@ -235,8 +235,8 @@ module PulpContainerClient
|
|
|
235
235
|
# @return true if the model is valid
|
|
236
236
|
def valid?
|
|
237
237
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
238
|
-
return false if @name.nil?
|
|
239
238
|
return false if @base_path.nil?
|
|
239
|
+
return false if @name.nil?
|
|
240
240
|
return false if @remote.nil?
|
|
241
241
|
true
|
|
242
242
|
end
|
|
@@ -246,16 +246,16 @@ module PulpContainerClient
|
|
|
246
246
|
def ==(o)
|
|
247
247
|
return true if self.equal?(o)
|
|
248
248
|
self.class == o.class &&
|
|
249
|
-
prn == o.prn &&
|
|
250
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
251
|
-
name == o.name &&
|
|
252
249
|
pulp_href == o.pulp_href &&
|
|
250
|
+
base_path == o.base_path &&
|
|
251
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
252
|
+
pulp_created == o.pulp_created &&
|
|
253
253
|
content_guard == o.content_guard &&
|
|
254
254
|
pulp_labels == o.pulp_labels &&
|
|
255
255
|
no_content_change_since == o.no_content_change_since &&
|
|
256
|
+
prn == o.prn &&
|
|
256
257
|
hidden == o.hidden &&
|
|
257
|
-
|
|
258
|
-
base_path == o.base_path &&
|
|
258
|
+
name == o.name &&
|
|
259
259
|
repository == o.repository &&
|
|
260
260
|
remote == o.remote &&
|
|
261
261
|
distributions == o.distributions &&
|
|
@@ -273,7 +273,7 @@ module PulpContainerClient
|
|
|
273
273
|
# Calculates hash code according to all attributes.
|
|
274
274
|
# @return [Integer] Hash code
|
|
275
275
|
def hash
|
|
276
|
-
[
|
|
276
|
+
[pulp_href, base_path, pulp_last_updated, pulp_created, content_guard, pulp_labels, no_content_change_since, prn, hidden, name, repository, remote, distributions, namespace, private, description].hash
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
# Builds the object from hash
|