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