pulp_container_client 2.20.3 → 2.20.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository.rb +50 -50
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +62 -62
@@ -18,27 +18,27 @@ module PulpContainerClient
|
|
18
18
|
# Timestamp of creation.
|
19
19
|
attr_accessor :pulp_created
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# Whether this distribution should be shown in the content app.
|
22
|
+
attr_accessor :hidden
|
23
23
|
|
24
24
|
# The latest RepositoryVersion for this Repository will be served.
|
25
25
|
attr_accessor :repository
|
26
26
|
|
27
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
-
attr_accessor :name
|
29
|
-
|
30
27
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
31
28
|
attr_accessor :base_path
|
32
29
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
30
|
+
# 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.
|
31
|
+
attr_accessor :pulp_last_updated
|
32
|
+
|
33
|
+
attr_accessor :pulp_labels
|
35
34
|
|
36
35
|
attr_accessor :pulp_href
|
37
36
|
|
38
|
-
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
41
|
+
attr_accessor :content_guard
|
42
42
|
|
43
43
|
# RepositoryVersion to be served
|
44
44
|
attr_accessor :repository_version
|
@@ -62,14 +62,14 @@ module PulpContainerClient
|
|
62
62
|
def self.attribute_map
|
63
63
|
{
|
64
64
|
:'pulp_created' => :'pulp_created',
|
65
|
-
:'
|
65
|
+
:'hidden' => :'hidden',
|
66
66
|
:'repository' => :'repository',
|
67
|
-
:'name' => :'name',
|
68
67
|
:'base_path' => :'base_path',
|
69
|
-
:'
|
70
|
-
:'pulp_href' => :'pulp_href',
|
68
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
71
69
|
:'pulp_labels' => :'pulp_labels',
|
72
|
-
:'
|
70
|
+
:'pulp_href' => :'pulp_href',
|
71
|
+
:'name' => :'name',
|
72
|
+
:'content_guard' => :'content_guard',
|
73
73
|
:'repository_version' => :'repository_version',
|
74
74
|
:'registry_path' => :'registry_path',
|
75
75
|
:'remote' => :'remote',
|
@@ -83,14 +83,14 @@ module PulpContainerClient
|
|
83
83
|
def self.openapi_types
|
84
84
|
{
|
85
85
|
:'pulp_created' => :'DateTime',
|
86
|
-
:'
|
86
|
+
:'hidden' => :'Boolean',
|
87
87
|
:'repository' => :'String',
|
88
|
-
:'name' => :'String',
|
89
88
|
:'base_path' => :'String',
|
90
|
-
:'
|
91
|
-
:'pulp_href' => :'String',
|
89
|
+
:'pulp_last_updated' => :'DateTime',
|
92
90
|
:'pulp_labels' => :'Hash<String, String>',
|
93
|
-
:'
|
91
|
+
:'pulp_href' => :'String',
|
92
|
+
:'name' => :'String',
|
93
|
+
:'content_guard' => :'String',
|
94
94
|
:'repository_version' => :'String',
|
95
95
|
:'registry_path' => :'String',
|
96
96
|
:'remote' => :'String',
|
@@ -128,28 +128,22 @@ module PulpContainerClient
|
|
128
128
|
self.pulp_created = attributes[:'pulp_created']
|
129
129
|
end
|
130
130
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
131
|
+
if attributes.key?(:'hidden')
|
132
|
+
self.hidden = attributes[:'hidden']
|
133
|
+
else
|
134
|
+
self.hidden = false
|
133
135
|
end
|
134
136
|
|
135
137
|
if attributes.key?(:'repository')
|
136
138
|
self.repository = attributes[:'repository']
|
137
139
|
end
|
138
140
|
|
139
|
-
if attributes.key?(:'name')
|
140
|
-
self.name = attributes[:'name']
|
141
|
-
end
|
142
|
-
|
143
141
|
if attributes.key?(:'base_path')
|
144
142
|
self.base_path = attributes[:'base_path']
|
145
143
|
end
|
146
144
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.key?(:'pulp_href')
|
152
|
-
self.pulp_href = attributes[:'pulp_href']
|
145
|
+
if attributes.key?(:'pulp_last_updated')
|
146
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
153
147
|
end
|
154
148
|
|
155
149
|
if attributes.key?(:'pulp_labels')
|
@@ -158,10 +152,16 @@ module PulpContainerClient
|
|
158
152
|
end
|
159
153
|
end
|
160
154
|
|
161
|
-
if attributes.key?(:'
|
162
|
-
self.
|
163
|
-
|
164
|
-
|
155
|
+
if attributes.key?(:'pulp_href')
|
156
|
+
self.pulp_href = attributes[:'pulp_href']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'name')
|
160
|
+
self.name = attributes[:'name']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'content_guard')
|
164
|
+
self.content_guard = attributes[:'content_guard']
|
165
165
|
end
|
166
166
|
|
167
167
|
if attributes.key?(:'repository_version')
|
@@ -193,22 +193,22 @@ module PulpContainerClient
|
|
193
193
|
# @return Array for valid properties with the reasons
|
194
194
|
def list_invalid_properties
|
195
195
|
invalid_properties = Array.new
|
196
|
-
if @name.nil?
|
197
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
198
|
-
end
|
199
|
-
|
200
196
|
if @base_path.nil?
|
201
197
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
202
198
|
end
|
203
199
|
|
200
|
+
if @name.nil?
|
201
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
202
|
+
end
|
203
|
+
|
204
204
|
invalid_properties
|
205
205
|
end
|
206
206
|
|
207
207
|
# Check to see if the all the properties in the model are valid
|
208
208
|
# @return true if the model is valid
|
209
209
|
def valid?
|
210
|
-
return false if @name.nil?
|
211
210
|
return false if @base_path.nil?
|
211
|
+
return false if @name.nil?
|
212
212
|
true
|
213
213
|
end
|
214
214
|
|
@@ -218,14 +218,14 @@ module PulpContainerClient
|
|
218
218
|
return true if self.equal?(o)
|
219
219
|
self.class == o.class &&
|
220
220
|
pulp_created == o.pulp_created &&
|
221
|
-
|
221
|
+
hidden == o.hidden &&
|
222
222
|
repository == o.repository &&
|
223
|
-
name == o.name &&
|
224
223
|
base_path == o.base_path &&
|
225
|
-
|
226
|
-
pulp_href == o.pulp_href &&
|
224
|
+
pulp_last_updated == o.pulp_last_updated &&
|
227
225
|
pulp_labels == o.pulp_labels &&
|
228
|
-
|
226
|
+
pulp_href == o.pulp_href &&
|
227
|
+
name == o.name &&
|
228
|
+
content_guard == o.content_guard &&
|
229
229
|
repository_version == o.repository_version &&
|
230
230
|
registry_path == o.registry_path &&
|
231
231
|
remote == o.remote &&
|
@@ -243,7 +243,7 @@ module PulpContainerClient
|
|
243
243
|
# Calculates hash code according to all attributes.
|
244
244
|
# @return [Integer] Hash code
|
245
245
|
def hash
|
246
|
-
[pulp_created,
|
246
|
+
[pulp_created, hidden, repository, base_path, pulp_last_updated, pulp_labels, pulp_href, name, content_guard, repository_version, registry_path, remote, namespace, private, description].hash
|
247
247
|
end
|
248
248
|
|
249
249
|
# Builds the object from hash
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistribution
|
18
|
+
# Whether this distribution should be shown in the content app.
|
19
|
+
attr_accessor :hidden
|
20
|
+
|
18
21
|
# The latest RepositoryVersion for this Repository will be served.
|
19
22
|
attr_accessor :repository
|
20
23
|
|
21
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
24
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
25
|
attr_accessor :base_path
|
26
26
|
|
27
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
28
|
-
attr_accessor :content_guard
|
29
|
-
|
30
27
|
attr_accessor :pulp_labels
|
31
28
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
33
|
+
attr_accessor :content_guard
|
34
34
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
+
:'hidden' => :'hidden',
|
50
51
|
:'repository' => :'repository',
|
51
|
-
:'name' => :'name',
|
52
52
|
:'base_path' => :'base_path',
|
53
|
-
:'content_guard' => :'content_guard',
|
54
53
|
:'pulp_labels' => :'pulp_labels',
|
55
|
-
:'
|
54
|
+
:'name' => :'name',
|
55
|
+
:'content_guard' => :'content_guard',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
+
:'hidden' => :'Boolean',
|
66
67
|
:'repository' => :'String',
|
67
|
-
:'name' => :'String',
|
68
68
|
:'base_path' => :'String',
|
69
|
-
:'content_guard' => :'String',
|
70
69
|
:'pulp_labels' => :'Hash<String, String>',
|
71
|
-
:'
|
70
|
+
:'name' => :'String',
|
71
|
+
:'content_guard' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,32 +99,32 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
102
|
+
if attributes.key?(:'hidden')
|
103
|
+
self.hidden = attributes[:'hidden']
|
104
|
+
else
|
105
|
+
self.hidden = false
|
104
106
|
end
|
105
107
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
108
|
+
if attributes.key?(:'repository')
|
109
|
+
self.repository = attributes[:'repository']
|
108
110
|
end
|
109
111
|
|
110
112
|
if attributes.key?(:'base_path')
|
111
113
|
self.base_path = attributes[:'base_path']
|
112
114
|
end
|
113
115
|
|
114
|
-
if attributes.key?(:'content_guard')
|
115
|
-
self.content_guard = attributes[:'content_guard']
|
116
|
-
end
|
117
|
-
|
118
116
|
if attributes.key?(:'pulp_labels')
|
119
117
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
120
118
|
self.pulp_labels = value
|
121
119
|
end
|
122
120
|
end
|
123
121
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
126
|
-
|
127
|
-
|
122
|
+
if attributes.key?(:'name')
|
123
|
+
self.name = attributes[:'name']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'content_guard')
|
127
|
+
self.content_guard = attributes[:'content_guard']
|
128
128
|
end
|
129
129
|
|
130
130
|
if attributes.key?(:'remote')
|
@@ -150,14 +150,6 @@ module PulpContainerClient
|
|
150
150
|
# @return Array for valid properties with the reasons
|
151
151
|
def list_invalid_properties
|
152
152
|
invalid_properties = Array.new
|
153
|
-
if @name.nil?
|
154
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
155
|
-
end
|
156
|
-
|
157
|
-
if @name.to_s.length < 1
|
158
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
159
|
-
end
|
160
|
-
|
161
153
|
if @base_path.nil?
|
162
154
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
163
155
|
end
|
@@ -166,6 +158,14 @@ module PulpContainerClient
|
|
166
158
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
167
159
|
end
|
168
160
|
|
161
|
+
if @name.nil?
|
162
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @name.to_s.length < 1
|
166
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
167
|
+
end
|
168
|
+
|
169
169
|
if @remote.nil?
|
170
170
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
171
171
|
end
|
@@ -180,29 +180,15 @@ module PulpContainerClient
|
|
180
180
|
# Check to see if the all the properties in the model are valid
|
181
181
|
# @return true if the model is valid
|
182
182
|
def valid?
|
183
|
-
return false if @name.nil?
|
184
|
-
return false if @name.to_s.length < 1
|
185
183
|
return false if @base_path.nil?
|
186
184
|
return false if @base_path.to_s.length < 1
|
185
|
+
return false if @name.nil?
|
186
|
+
return false if @name.to_s.length < 1
|
187
187
|
return false if @remote.nil?
|
188
188
|
return false if !@description.nil? && @description.to_s.length < 1
|
189
189
|
true
|
190
190
|
end
|
191
191
|
|
192
|
-
# Custom attribute writer method with validation
|
193
|
-
# @param [Object] name Value to be assigned
|
194
|
-
def name=(name)
|
195
|
-
if name.nil?
|
196
|
-
fail ArgumentError, 'name cannot be nil'
|
197
|
-
end
|
198
|
-
|
199
|
-
if name.to_s.length < 1
|
200
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
201
|
-
end
|
202
|
-
|
203
|
-
@name = name
|
204
|
-
end
|
205
|
-
|
206
192
|
# Custom attribute writer method with validation
|
207
193
|
# @param [Object] base_path Value to be assigned
|
208
194
|
def base_path=(base_path)
|
@@ -217,6 +203,20 @@ module PulpContainerClient
|
|
217
203
|
@base_path = base_path
|
218
204
|
end
|
219
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
220
|
# Custom attribute writer method with validation
|
221
221
|
# @param [Object] description Value to be assigned
|
222
222
|
def description=(description)
|
@@ -232,12 +232,12 @@ module PulpContainerClient
|
|
232
232
|
def ==(o)
|
233
233
|
return true if self.equal?(o)
|
234
234
|
self.class == o.class &&
|
235
|
+
hidden == o.hidden &&
|
235
236
|
repository == o.repository &&
|
236
|
-
name == o.name &&
|
237
237
|
base_path == o.base_path &&
|
238
|
-
content_guard == o.content_guard &&
|
239
238
|
pulp_labels == o.pulp_labels &&
|
240
|
-
|
239
|
+
name == o.name &&
|
240
|
+
content_guard == o.content_guard &&
|
241
241
|
remote == o.remote &&
|
242
242
|
distributions == o.distributions &&
|
243
243
|
private == o.private &&
|
@@ -253,7 +253,7 @@ module PulpContainerClient
|
|
253
253
|
# Calculates hash code according to all attributes.
|
254
254
|
# @return [Integer] Hash code
|
255
255
|
def hash
|
256
|
-
[
|
256
|
+
[hidden, repository, base_path, pulp_labels, name, content_guard, remote, distributions, private, description].hash
|
257
257
|
end
|
258
258
|
|
259
259
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb
CHANGED
@@ -18,27 +18,27 @@ module PulpContainerClient
|
|
18
18
|
# Timestamp of creation.
|
19
19
|
attr_accessor :pulp_created
|
20
20
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
21
|
+
# Whether this distribution should be shown in the content app.
|
22
|
+
attr_accessor :hidden
|
23
23
|
|
24
24
|
# The latest RepositoryVersion for this Repository will be served.
|
25
25
|
attr_accessor :repository
|
26
26
|
|
27
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
28
|
-
attr_accessor :name
|
29
|
-
|
30
27
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
31
28
|
attr_accessor :base_path
|
32
29
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
30
|
+
# 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.
|
31
|
+
attr_accessor :pulp_last_updated
|
32
|
+
|
33
|
+
attr_accessor :pulp_labels
|
35
34
|
|
36
35
|
attr_accessor :pulp_href
|
37
36
|
|
38
|
-
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
40
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
41
|
+
attr_accessor :content_guard
|
42
42
|
|
43
43
|
# Remote that can be used to fetch content when using pull-through caching.
|
44
44
|
attr_accessor :remote
|
@@ -59,14 +59,14 @@ module PulpContainerClient
|
|
59
59
|
def self.attribute_map
|
60
60
|
{
|
61
61
|
:'pulp_created' => :'pulp_created',
|
62
|
-
:'
|
62
|
+
:'hidden' => :'hidden',
|
63
63
|
:'repository' => :'repository',
|
64
|
-
:'name' => :'name',
|
65
64
|
:'base_path' => :'base_path',
|
66
|
-
:'
|
67
|
-
:'pulp_href' => :'pulp_href',
|
65
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
68
66
|
:'pulp_labels' => :'pulp_labels',
|
69
|
-
:'
|
67
|
+
:'pulp_href' => :'pulp_href',
|
68
|
+
:'name' => :'name',
|
69
|
+
:'content_guard' => :'content_guard',
|
70
70
|
:'remote' => :'remote',
|
71
71
|
:'distributions' => :'distributions',
|
72
72
|
:'namespace' => :'namespace',
|
@@ -79,14 +79,14 @@ module PulpContainerClient
|
|
79
79
|
def self.openapi_types
|
80
80
|
{
|
81
81
|
:'pulp_created' => :'DateTime',
|
82
|
-
:'
|
82
|
+
:'hidden' => :'Boolean',
|
83
83
|
:'repository' => :'String',
|
84
|
-
:'name' => :'String',
|
85
84
|
:'base_path' => :'String',
|
86
|
-
:'
|
87
|
-
:'pulp_href' => :'String',
|
85
|
+
:'pulp_last_updated' => :'DateTime',
|
88
86
|
:'pulp_labels' => :'Hash<String, String>',
|
89
|
-
:'
|
87
|
+
:'pulp_href' => :'String',
|
88
|
+
:'name' => :'String',
|
89
|
+
:'content_guard' => :'String',
|
90
90
|
:'remote' => :'String',
|
91
91
|
:'distributions' => :'Array<String>',
|
92
92
|
:'namespace' => :'String',
|
@@ -122,28 +122,22 @@ module PulpContainerClient
|
|
122
122
|
self.pulp_created = attributes[:'pulp_created']
|
123
123
|
end
|
124
124
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
125
|
+
if attributes.key?(:'hidden')
|
126
|
+
self.hidden = attributes[:'hidden']
|
127
|
+
else
|
128
|
+
self.hidden = false
|
127
129
|
end
|
128
130
|
|
129
131
|
if attributes.key?(:'repository')
|
130
132
|
self.repository = attributes[:'repository']
|
131
133
|
end
|
132
134
|
|
133
|
-
if attributes.key?(:'name')
|
134
|
-
self.name = attributes[:'name']
|
135
|
-
end
|
136
|
-
|
137
135
|
if attributes.key?(:'base_path')
|
138
136
|
self.base_path = attributes[:'base_path']
|
139
137
|
end
|
140
138
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
143
|
-
end
|
144
|
-
|
145
|
-
if attributes.key?(:'pulp_href')
|
146
|
-
self.pulp_href = attributes[:'pulp_href']
|
139
|
+
if attributes.key?(:'pulp_last_updated')
|
140
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
147
141
|
end
|
148
142
|
|
149
143
|
if attributes.key?(:'pulp_labels')
|
@@ -152,10 +146,16 @@ module PulpContainerClient
|
|
152
146
|
end
|
153
147
|
end
|
154
148
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
157
|
-
|
158
|
-
|
149
|
+
if attributes.key?(:'pulp_href')
|
150
|
+
self.pulp_href = attributes[:'pulp_href']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'name')
|
154
|
+
self.name = attributes[:'name']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'content_guard')
|
158
|
+
self.content_guard = attributes[:'content_guard']
|
159
159
|
end
|
160
160
|
|
161
161
|
if attributes.key?(:'remote')
|
@@ -185,14 +185,14 @@ module PulpContainerClient
|
|
185
185
|
# @return Array for valid properties with the reasons
|
186
186
|
def list_invalid_properties
|
187
187
|
invalid_properties = Array.new
|
188
|
-
if @name.nil?
|
189
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
190
|
-
end
|
191
|
-
|
192
188
|
if @base_path.nil?
|
193
189
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
194
190
|
end
|
195
191
|
|
192
|
+
if @name.nil?
|
193
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
196
|
if @remote.nil?
|
197
197
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
198
198
|
end
|
@@ -203,8 +203,8 @@ module PulpContainerClient
|
|
203
203
|
# Check to see if the all the properties in the model are valid
|
204
204
|
# @return true if the model is valid
|
205
205
|
def valid?
|
206
|
-
return false if @name.nil?
|
207
206
|
return false if @base_path.nil?
|
207
|
+
return false if @name.nil?
|
208
208
|
return false if @remote.nil?
|
209
209
|
true
|
210
210
|
end
|
@@ -215,14 +215,14 @@ module PulpContainerClient
|
|
215
215
|
return true if self.equal?(o)
|
216
216
|
self.class == o.class &&
|
217
217
|
pulp_created == o.pulp_created &&
|
218
|
-
|
218
|
+
hidden == o.hidden &&
|
219
219
|
repository == o.repository &&
|
220
|
-
name == o.name &&
|
221
220
|
base_path == o.base_path &&
|
222
|
-
|
223
|
-
pulp_href == o.pulp_href &&
|
221
|
+
pulp_last_updated == o.pulp_last_updated &&
|
224
222
|
pulp_labels == o.pulp_labels &&
|
225
|
-
|
223
|
+
pulp_href == o.pulp_href &&
|
224
|
+
name == o.name &&
|
225
|
+
content_guard == o.content_guard &&
|
226
226
|
remote == o.remote &&
|
227
227
|
distributions == o.distributions &&
|
228
228
|
namespace == o.namespace &&
|
@@ -239,7 +239,7 @@ module PulpContainerClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[pulp_created,
|
242
|
+
[pulp_created, hidden, repository, base_path, pulp_last_updated, pulp_labels, pulp_href, name, content_guard, remote, distributions, namespace, private, description].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|