pulp_container_client 2.29.2 → 2.30.0
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 +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- 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 +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
- 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 +71 -71
- data/lib/pulp_container_client/models/container_container_push_repository.rb +54 -54
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +51 -51
- 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 +50 -50
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +3 -3
- 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 +3 -3
- metadata +1 -1
|
@@ -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
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
22
|
+
# RepositoryVersion to be served
|
|
23
|
+
attr_accessor :repository_version
|
|
24
|
+
|
|
19
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
20
26
|
attr_accessor :repository
|
|
21
27
|
|
|
22
28
|
# Whether this distribution should be shown in the content app.
|
|
23
29
|
attr_accessor :hidden
|
|
24
30
|
|
|
31
|
+
# The registry path exposed by this pull-through distribution.
|
|
32
|
+
attr_accessor :base_path
|
|
33
|
+
|
|
25
34
|
attr_accessor :pulp_labels
|
|
26
35
|
|
|
27
36
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
37
|
attr_accessor :name
|
|
29
38
|
|
|
30
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
31
|
-
attr_accessor :content_guard
|
|
32
|
-
|
|
33
|
-
# The registry path exposed by this pull-through distribution.
|
|
34
|
-
attr_accessor :base_path
|
|
35
|
-
|
|
36
|
-
# RepositoryVersion to be served
|
|
37
|
-
attr_accessor :repository_version
|
|
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
|
+
:'content_guard' => :'content_guard',
|
|
55
|
+
:'repository_version' => :'repository_version',
|
|
54
56
|
:'repository' => :'repository',
|
|
55
57
|
:'hidden' => :'hidden',
|
|
58
|
+
:'base_path' => :'base_path',
|
|
56
59
|
:'pulp_labels' => :'pulp_labels',
|
|
57
60
|
:'name' => :'name',
|
|
58
|
-
:'content_guard' => :'content_guard',
|
|
59
|
-
:'base_path' => :'base_path',
|
|
60
|
-
:'repository_version' => :'repository_version',
|
|
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
|
+
:'content_guard' => :'String',
|
|
77
|
+
:'repository_version' => :'String',
|
|
76
78
|
:'repository' => :'String',
|
|
77
79
|
:'hidden' => :'Boolean',
|
|
80
|
+
:'base_path' => :'String',
|
|
78
81
|
:'pulp_labels' => :'Hash<String, String>',
|
|
79
82
|
:'name' => :'String',
|
|
80
|
-
:'content_guard' => :'String',
|
|
81
|
-
:'base_path' => :'String',
|
|
82
|
-
:'repository_version' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -90,8 +90,8 @@ module PulpContainerClient
|
|
|
90
90
|
# List of attributes with nullable: true
|
|
91
91
|
def self.openapi_nullable
|
|
92
92
|
Set.new([
|
|
93
|
-
:'repository',
|
|
94
93
|
:'repository_version',
|
|
94
|
+
:'repository',
|
|
95
95
|
:'description'
|
|
96
96
|
])
|
|
97
97
|
end
|
|
@@ -111,6 +111,14 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
if attributes.key?(:'content_guard')
|
|
115
|
+
self.content_guard = attributes[:'content_guard']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'repository_version')
|
|
119
|
+
self.repository_version = attributes[:'repository_version']
|
|
120
|
+
end
|
|
121
|
+
|
|
114
122
|
if attributes.key?(:'repository')
|
|
115
123
|
self.repository = attributes[:'repository']
|
|
116
124
|
end
|
|
@@ -121,6 +129,12 @@ module PulpContainerClient
|
|
|
121
129
|
self.hidden = false
|
|
122
130
|
end
|
|
123
131
|
|
|
132
|
+
if attributes.key?(:'base_path')
|
|
133
|
+
self.base_path = attributes[:'base_path']
|
|
134
|
+
else
|
|
135
|
+
self.base_path = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
124
138
|
if attributes.key?(:'pulp_labels')
|
|
125
139
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
140
|
self.pulp_labels = value
|
|
@@ -133,20 +147,6 @@ module PulpContainerClient
|
|
|
133
147
|
self.name = nil
|
|
134
148
|
end
|
|
135
149
|
|
|
136
|
-
if attributes.key?(:'content_guard')
|
|
137
|
-
self.content_guard = attributes[:'content_guard']
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
if attributes.key?(:'base_path')
|
|
141
|
-
self.base_path = attributes[:'base_path']
|
|
142
|
-
else
|
|
143
|
-
self.base_path = nil
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if attributes.key?(:'repository_version')
|
|
147
|
-
self.repository_version = attributes[:'repository_version']
|
|
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
|
+
content_guard == o.content_guard &&
|
|
260
|
+
repository_version == o.repository_version &&
|
|
259
261
|
repository == o.repository &&
|
|
260
262
|
hidden == o.hidden &&
|
|
263
|
+
base_path == o.base_path &&
|
|
261
264
|
pulp_labels == o.pulp_labels &&
|
|
262
265
|
name == o.name &&
|
|
263
|
-
content_guard == o.content_guard &&
|
|
264
|
-
base_path == o.base_path &&
|
|
265
|
-
repository_version == o.repository_version &&
|
|
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
|
+
[content_guard, repository_version, repository, hidden, base_path, pulp_labels, 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,39 +16,39 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
|
18
18
|
class ContainerContainerPullThroughDistributionResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
+
attr_accessor :content_guard
|
|
21
|
+
|
|
22
|
+
# RepositoryVersion to be served
|
|
23
|
+
attr_accessor :repository_version
|
|
21
24
|
|
|
22
25
|
# The latest RepositoryVersion for this Repository will be served.
|
|
23
26
|
attr_accessor :repository
|
|
24
27
|
|
|
25
|
-
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
26
|
-
attr_accessor :no_content_change_since
|
|
27
|
-
|
|
28
28
|
# Whether this distribution should be shown in the content app.
|
|
29
29
|
attr_accessor :hidden
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
34
|
-
attr_accessor :name
|
|
31
|
+
# 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.
|
|
32
|
+
attr_accessor :pulp_last_updated
|
|
35
33
|
|
|
36
34
|
attr_accessor :pulp_href
|
|
37
35
|
|
|
38
|
-
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
39
|
-
attr_accessor :content_guard_prn
|
|
40
|
-
|
|
41
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
42
|
-
attr_accessor :content_guard
|
|
43
|
-
|
|
44
36
|
# The registry path exposed by this pull-through distribution.
|
|
45
37
|
attr_accessor :base_path
|
|
46
38
|
|
|
39
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
40
|
+
attr_accessor :no_content_change_since
|
|
41
|
+
|
|
42
|
+
attr_accessor :pulp_labels
|
|
43
|
+
|
|
44
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
45
|
+
attr_accessor :content_guard_prn
|
|
46
|
+
|
|
47
47
|
# Timestamp of creation.
|
|
48
48
|
attr_accessor :pulp_created
|
|
49
49
|
|
|
50
|
-
#
|
|
51
|
-
attr_accessor :
|
|
50
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
51
|
+
attr_accessor :name
|
|
52
52
|
|
|
53
53
|
# The Pulp Resource Name (PRN).
|
|
54
54
|
attr_accessor :prn
|
|
@@ -71,18 +71,18 @@ module PulpContainerClient
|
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
|
-
:'
|
|
74
|
+
:'content_guard' => :'content_guard',
|
|
75
|
+
:'repository_version' => :'repository_version',
|
|
75
76
|
:'repository' => :'repository',
|
|
76
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
77
77
|
:'hidden' => :'hidden',
|
|
78
|
-
:'
|
|
79
|
-
:'name' => :'name',
|
|
78
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
80
79
|
:'pulp_href' => :'pulp_href',
|
|
81
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
82
|
-
:'content_guard' => :'content_guard',
|
|
83
80
|
:'base_path' => :'base_path',
|
|
81
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
82
|
+
:'pulp_labels' => :'pulp_labels',
|
|
83
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
84
84
|
:'pulp_created' => :'pulp_created',
|
|
85
|
-
:'
|
|
85
|
+
:'name' => :'name',
|
|
86
86
|
:'prn' => :'prn',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
@@ -100,18 +100,18 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'
|
|
103
|
+
:'content_guard' => :'String',
|
|
104
|
+
:'repository_version' => :'String',
|
|
104
105
|
:'repository' => :'String',
|
|
105
|
-
:'no_content_change_since' => :'String',
|
|
106
106
|
:'hidden' => :'Boolean',
|
|
107
|
-
:'
|
|
108
|
-
:'name' => :'String',
|
|
107
|
+
:'pulp_last_updated' => :'Time',
|
|
109
108
|
:'pulp_href' => :'String',
|
|
110
|
-
:'content_guard_prn' => :'String',
|
|
111
|
-
:'content_guard' => :'String',
|
|
112
109
|
:'base_path' => :'String',
|
|
110
|
+
:'no_content_change_since' => :'String',
|
|
111
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
112
|
+
:'content_guard_prn' => :'String',
|
|
113
113
|
:'pulp_created' => :'Time',
|
|
114
|
-
:'
|
|
114
|
+
:'name' => :'String',
|
|
115
115
|
:'prn' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
@@ -124,8 +124,8 @@ module PulpContainerClient
|
|
|
124
124
|
# List of attributes with nullable: true
|
|
125
125
|
def self.openapi_nullable
|
|
126
126
|
Set.new([
|
|
127
|
-
:'repository',
|
|
128
127
|
:'repository_version',
|
|
128
|
+
:'repository',
|
|
129
129
|
:'description'
|
|
130
130
|
])
|
|
131
131
|
end
|
|
@@ -145,16 +145,16 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'content_guard')
|
|
149
|
+
self.content_guard = attributes[:'content_guard']
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
152
|
+
if attributes.key?(:'repository_version')
|
|
153
|
+
self.repository_version = attributes[:'repository_version']
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
self.
|
|
156
|
+
if attributes.key?(:'repository')
|
|
157
|
+
self.repository = attributes[:'repository']
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
if attributes.key?(:'hidden')
|
|
@@ -163,42 +163,42 @@ module PulpContainerClient
|
|
|
163
163
|
self.hidden = false
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
|
|
168
|
-
self.pulp_labels = value
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if attributes.key?(:'name')
|
|
173
|
-
self.name = attributes[:'name']
|
|
174
|
-
else
|
|
175
|
-
self.name = nil
|
|
166
|
+
if attributes.key?(:'pulp_last_updated')
|
|
167
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
176
168
|
end
|
|
177
169
|
|
|
178
170
|
if attributes.key?(:'pulp_href')
|
|
179
171
|
self.pulp_href = attributes[:'pulp_href']
|
|
180
172
|
end
|
|
181
173
|
|
|
182
|
-
if attributes.key?(:'content_guard_prn')
|
|
183
|
-
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
if attributes.key?(:'content_guard')
|
|
187
|
-
self.content_guard = attributes[:'content_guard']
|
|
188
|
-
end
|
|
189
|
-
|
|
190
174
|
if attributes.key?(:'base_path')
|
|
191
175
|
self.base_path = attributes[:'base_path']
|
|
192
176
|
else
|
|
193
177
|
self.base_path = nil
|
|
194
178
|
end
|
|
195
179
|
|
|
180
|
+
if attributes.key?(:'no_content_change_since')
|
|
181
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if attributes.key?(:'pulp_labels')
|
|
185
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
186
|
+
self.pulp_labels = value
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'content_guard_prn')
|
|
191
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
192
|
+
end
|
|
193
|
+
|
|
196
194
|
if attributes.key?(:'pulp_created')
|
|
197
195
|
self.pulp_created = attributes[:'pulp_created']
|
|
198
196
|
end
|
|
199
197
|
|
|
200
|
-
if attributes.key?(:'
|
|
201
|
-
self.
|
|
198
|
+
if attributes.key?(:'name')
|
|
199
|
+
self.name = attributes[:'name']
|
|
200
|
+
else
|
|
201
|
+
self.name = nil
|
|
202
202
|
end
|
|
203
203
|
|
|
204
204
|
if attributes.key?(:'prn')
|
|
@@ -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,18 +265,18 @@ module PulpContainerClient
|
|
|
265
265
|
def ==(o)
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
|
-
|
|
268
|
+
content_guard == o.content_guard &&
|
|
269
|
+
repository_version == o.repository_version &&
|
|
269
270
|
repository == o.repository &&
|
|
270
|
-
no_content_change_since == o.no_content_change_since &&
|
|
271
271
|
hidden == o.hidden &&
|
|
272
|
-
|
|
273
|
-
name == o.name &&
|
|
272
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
274
273
|
pulp_href == o.pulp_href &&
|
|
275
|
-
content_guard_prn == o.content_guard_prn &&
|
|
276
|
-
content_guard == o.content_guard &&
|
|
277
274
|
base_path == o.base_path &&
|
|
275
|
+
no_content_change_since == o.no_content_change_since &&
|
|
276
|
+
pulp_labels == o.pulp_labels &&
|
|
277
|
+
content_guard_prn == o.content_guard_prn &&
|
|
278
278
|
pulp_created == o.pulp_created &&
|
|
279
|
-
|
|
279
|
+
name == o.name &&
|
|
280
280
|
prn == o.prn &&
|
|
281
281
|
remote == o.remote &&
|
|
282
282
|
distributions == o.distributions &&
|
|
@@ -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
|
+
[content_guard, repository_version, repository, hidden, pulp_last_updated, pulp_href, base_path, no_content_change_since, pulp_labels, content_guard_prn, pulp_created, name, prn, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|