pulp_container_client 2.27.5 → 2.27.6
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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- data/docs/DistributionsContainerApi.md +2 -2
- data/docs/DistributionsPullThroughApi.md +2 -2
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/lib/pulp_container_client/models/container_container_distribution.rb +66 -66
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +89 -89
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +66 -66
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +89 -89
- data/lib/pulp_container_client/models/container_container_push_repository.rb +47 -47
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +86 -86
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +58 -58
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +47 -47
- 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 +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
- metadata +60 -60
|
@@ -16,25 +16,25 @@ 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 :
|
|
21
|
-
|
|
22
|
-
attr_accessor :pulp_labels
|
|
23
|
-
|
|
24
|
-
# RepositoryVersion to be served
|
|
25
|
-
attr_accessor :repository_version
|
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
20
|
+
attr_accessor :name
|
|
26
21
|
|
|
27
22
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
28
23
|
attr_accessor :content_guard
|
|
29
24
|
|
|
25
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
26
|
+
attr_accessor :repository
|
|
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
|
+
|
|
30
31
|
# Whether this distribution should be shown in the content app.
|
|
31
32
|
attr_accessor :hidden
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :name
|
|
34
|
+
attr_accessor :pulp_labels
|
|
35
35
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
36
|
+
# RepositoryVersion to be served
|
|
37
|
+
attr_accessor :repository_version
|
|
38
38
|
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
@@ -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
|
+
:'name' => :'name',
|
|
55
|
+
:'content_guard' => :'content_guard',
|
|
56
|
+
:'repository' => :'repository',
|
|
54
57
|
:'base_path' => :'base_path',
|
|
58
|
+
:'hidden' => :'hidden',
|
|
55
59
|
:'pulp_labels' => :'pulp_labels',
|
|
56
60
|
:'repository_version' => :'repository_version',
|
|
57
|
-
:'content_guard' => :'content_guard',
|
|
58
|
-
:'hidden' => :'hidden',
|
|
59
|
-
:'name' => :'name',
|
|
60
|
-
:'repository' => :'repository',
|
|
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
|
+
:'name' => :'String',
|
|
77
|
+
:'content_guard' => :'String',
|
|
78
|
+
:'repository' => :'String',
|
|
76
79
|
:'base_path' => :'String',
|
|
80
|
+
:'hidden' => :'Boolean',
|
|
77
81
|
:'pulp_labels' => :'Hash<String, String>',
|
|
78
82
|
:'repository_version' => :'String',
|
|
79
|
-
:'content_guard' => :'String',
|
|
80
|
-
:'hidden' => :'Boolean',
|
|
81
|
-
:'name' => :'String',
|
|
82
|
-
:'repository' => :'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_version',
|
|
94
93
|
:'repository',
|
|
94
|
+
:'repository_version',
|
|
95
95
|
:'description'
|
|
96
96
|
])
|
|
97
97
|
end
|
|
@@ -111,24 +111,24 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
114
|
+
if attributes.key?(:'name')
|
|
115
|
+
self.name = attributes[:'name']
|
|
116
116
|
else
|
|
117
|
-
self.
|
|
117
|
+
self.name = nil
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
|
|
122
|
-
self.pulp_labels = value
|
|
123
|
-
end
|
|
120
|
+
if attributes.key?(:'content_guard')
|
|
121
|
+
self.content_guard = attributes[:'content_guard']
|
|
124
122
|
end
|
|
125
123
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
124
|
+
if attributes.key?(:'repository')
|
|
125
|
+
self.repository = attributes[:'repository']
|
|
128
126
|
end
|
|
129
127
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
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?(:'hidden')
|
|
@@ -137,14 +137,14 @@ module PulpContainerClient
|
|
|
137
137
|
self.hidden = false
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
if attributes.key?(:'pulp_labels')
|
|
141
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
142
|
+
self.pulp_labels = value
|
|
143
|
+
end
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
if attributes.key?(:'
|
|
147
|
-
self.
|
|
146
|
+
if attributes.key?(:'repository_version')
|
|
147
|
+
self.repository_version = attributes[:'repository_version']
|
|
148
148
|
end
|
|
149
149
|
|
|
150
150
|
if attributes.key?(:'remote')
|
|
@@ -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
|
+
name == o.name &&
|
|
260
|
+
content_guard == o.content_guard &&
|
|
261
|
+
repository == o.repository &&
|
|
259
262
|
base_path == o.base_path &&
|
|
263
|
+
hidden == o.hidden &&
|
|
260
264
|
pulp_labels == o.pulp_labels &&
|
|
261
265
|
repository_version == o.repository_version &&
|
|
262
|
-
content_guard == o.content_guard &&
|
|
263
|
-
hidden == o.hidden &&
|
|
264
|
-
name == o.name &&
|
|
265
|
-
repository == o.repository &&
|
|
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
|
+
[name, content_guard, repository, base_path, hidden, pulp_labels, repository_version, 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
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# The Pulp Resource Name (PRN).
|
|
23
|
-
attr_accessor :prn
|
|
24
|
-
|
|
25
|
-
# 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.
|
|
26
|
-
attr_accessor :pulp_last_updated
|
|
27
|
-
|
|
28
|
-
attr_accessor :pulp_labels
|
|
19
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
20
|
+
attr_accessor :name
|
|
29
21
|
|
|
30
22
|
# Timestamp of creation.
|
|
31
23
|
attr_accessor :pulp_created
|
|
32
24
|
|
|
33
|
-
|
|
34
|
-
attr_accessor :repository_version
|
|
25
|
+
attr_accessor :pulp_href
|
|
35
26
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
27
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
28
|
+
attr_accessor :content_guard_prn
|
|
38
29
|
|
|
39
30
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
40
31
|
attr_accessor :content_guard
|
|
41
32
|
|
|
42
|
-
#
|
|
43
|
-
attr_accessor :
|
|
44
|
-
|
|
45
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
46
|
-
attr_accessor :name
|
|
47
|
-
|
|
48
|
-
attr_accessor :pulp_href
|
|
33
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
34
|
+
attr_accessor :no_content_change_since
|
|
49
35
|
|
|
50
36
|
# The latest RepositoryVersion for this Repository will be served.
|
|
51
37
|
attr_accessor :repository
|
|
52
38
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
39
|
+
# 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.
|
|
40
|
+
attr_accessor :pulp_last_updated
|
|
41
|
+
|
|
42
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
43
|
+
attr_accessor :base_path
|
|
44
|
+
|
|
45
|
+
# The Pulp Resource Name (PRN).
|
|
46
|
+
attr_accessor :prn
|
|
47
|
+
|
|
48
|
+
# Whether this distribution should be shown in the content app.
|
|
49
|
+
attr_accessor :hidden
|
|
50
|
+
|
|
51
|
+
attr_accessor :pulp_labels
|
|
52
|
+
|
|
53
|
+
# RepositoryVersion to be served
|
|
54
|
+
attr_accessor :repository_version
|
|
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
|
+
:'name' => :'name',
|
|
75
|
+
:'pulp_created' => :'pulp_created',
|
|
76
|
+
:'pulp_href' => :'pulp_href',
|
|
77
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
78
|
+
:'content_guard' => :'content_guard',
|
|
79
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
80
|
+
:'repository' => :'repository',
|
|
81
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
74
82
|
:'base_path' => :'base_path',
|
|
75
83
|
:'prn' => :'prn',
|
|
76
|
-
:'
|
|
84
|
+
:'hidden' => :'hidden',
|
|
77
85
|
:'pulp_labels' => :'pulp_labels',
|
|
78
|
-
:'pulp_created' => :'pulp_created',
|
|
79
86
|
:'repository_version' => :'repository_version',
|
|
80
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
81
|
-
:'content_guard' => :'content_guard',
|
|
82
|
-
:'hidden' => :'hidden',
|
|
83
|
-
:'name' => :'name',
|
|
84
|
-
:'pulp_href' => :'pulp_href',
|
|
85
|
-
:'repository' => :'repository',
|
|
86
|
-
:'content_guard_prn' => :'content_guard_prn',
|
|
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
|
+
:'name' => :'String',
|
|
104
|
+
:'pulp_created' => :'Time',
|
|
105
|
+
:'pulp_href' => :'String',
|
|
106
|
+
:'content_guard_prn' => :'String',
|
|
107
|
+
:'content_guard' => :'String',
|
|
108
|
+
:'no_content_change_since' => :'String',
|
|
109
|
+
:'repository' => :'String',
|
|
110
|
+
:'pulp_last_updated' => :'Time',
|
|
103
111
|
:'base_path' => :'String',
|
|
104
112
|
:'prn' => :'String',
|
|
105
|
-
:'
|
|
113
|
+
:'hidden' => :'Boolean',
|
|
106
114
|
:'pulp_labels' => :'Hash<String, String>',
|
|
107
|
-
:'pulp_created' => :'Time',
|
|
108
115
|
:'repository_version' => :'String',
|
|
109
|
-
:'no_content_change_since' => :'String',
|
|
110
|
-
:'content_guard' => :'String',
|
|
111
|
-
:'hidden' => :'Boolean',
|
|
112
|
-
:'name' => :'String',
|
|
113
|
-
:'pulp_href' => :'String',
|
|
114
|
-
:'repository' => :'String',
|
|
115
|
-
:'content_guard_prn' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'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_version',
|
|
128
127
|
:'repository',
|
|
128
|
+
:'repository_version',
|
|
129
129
|
:'description'
|
|
130
130
|
])
|
|
131
131
|
end
|
|
@@ -145,64 +145,64 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'name')
|
|
149
|
+
self.name = attributes[:'name']
|
|
150
150
|
else
|
|
151
|
-
self.
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if attributes.key?(:'prn')
|
|
155
|
-
self.prn = attributes[:'prn']
|
|
151
|
+
self.name = nil
|
|
156
152
|
end
|
|
157
153
|
|
|
158
|
-
if attributes.key?(:'
|
|
159
|
-
self.
|
|
154
|
+
if attributes.key?(:'pulp_created')
|
|
155
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
160
156
|
end
|
|
161
157
|
|
|
162
|
-
if attributes.key?(:'
|
|
163
|
-
|
|
164
|
-
self.pulp_labels = value
|
|
165
|
-
end
|
|
158
|
+
if attributes.key?(:'pulp_href')
|
|
159
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
166
160
|
end
|
|
167
161
|
|
|
168
|
-
if attributes.key?(:'
|
|
169
|
-
self.
|
|
162
|
+
if attributes.key?(:'content_guard_prn')
|
|
163
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
170
164
|
end
|
|
171
165
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
166
|
+
if attributes.key?(:'content_guard')
|
|
167
|
+
self.content_guard = attributes[:'content_guard']
|
|
174
168
|
end
|
|
175
169
|
|
|
176
170
|
if attributes.key?(:'no_content_change_since')
|
|
177
171
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
178
172
|
end
|
|
179
173
|
|
|
180
|
-
if attributes.key?(:'
|
|
181
|
-
self.
|
|
174
|
+
if attributes.key?(:'repository')
|
|
175
|
+
self.repository = attributes[:'repository']
|
|
182
176
|
end
|
|
183
177
|
|
|
184
|
-
if attributes.key?(:'
|
|
185
|
-
self.
|
|
186
|
-
else
|
|
187
|
-
self.hidden = false
|
|
178
|
+
if attributes.key?(:'pulp_last_updated')
|
|
179
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
188
180
|
end
|
|
189
181
|
|
|
190
|
-
if attributes.key?(:'
|
|
191
|
-
self.
|
|
182
|
+
if attributes.key?(:'base_path')
|
|
183
|
+
self.base_path = attributes[:'base_path']
|
|
192
184
|
else
|
|
193
|
-
self.
|
|
185
|
+
self.base_path = nil
|
|
194
186
|
end
|
|
195
187
|
|
|
196
|
-
if attributes.key?(:'
|
|
197
|
-
self.
|
|
188
|
+
if attributes.key?(:'prn')
|
|
189
|
+
self.prn = attributes[:'prn']
|
|
198
190
|
end
|
|
199
191
|
|
|
200
|
-
if attributes.key?(:'
|
|
201
|
-
self.
|
|
192
|
+
if attributes.key?(:'hidden')
|
|
193
|
+
self.hidden = attributes[:'hidden']
|
|
194
|
+
else
|
|
195
|
+
self.hidden = false
|
|
202
196
|
end
|
|
203
197
|
|
|
204
|
-
if attributes.key?(:'
|
|
205
|
-
|
|
198
|
+
if attributes.key?(:'pulp_labels')
|
|
199
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
200
|
+
self.pulp_labels = value
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'repository_version')
|
|
205
|
+
self.repository_version = attributes[:'repository_version']
|
|
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
|
+
name == o.name &&
|
|
269
|
+
pulp_created == o.pulp_created &&
|
|
270
|
+
pulp_href == o.pulp_href &&
|
|
271
|
+
content_guard_prn == o.content_guard_prn &&
|
|
272
|
+
content_guard == o.content_guard &&
|
|
273
|
+
no_content_change_since == o.no_content_change_since &&
|
|
274
|
+
repository == o.repository &&
|
|
275
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
268
276
|
base_path == o.base_path &&
|
|
269
277
|
prn == o.prn &&
|
|
270
|
-
|
|
278
|
+
hidden == o.hidden &&
|
|
271
279
|
pulp_labels == o.pulp_labels &&
|
|
272
|
-
pulp_created == o.pulp_created &&
|
|
273
280
|
repository_version == o.repository_version &&
|
|
274
|
-
no_content_change_since == o.no_content_change_since &&
|
|
275
|
-
content_guard == o.content_guard &&
|
|
276
|
-
hidden == o.hidden &&
|
|
277
|
-
name == o.name &&
|
|
278
|
-
pulp_href == o.pulp_href &&
|
|
279
|
-
repository == o.repository &&
|
|
280
|
-
content_guard_prn == o.content_guard_prn &&
|
|
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
|
+
[name, pulp_created, pulp_href, content_guard_prn, content_guard, no_content_change_since, repository, pulp_last_updated, base_path, prn, hidden, pulp_labels, repository_version, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|