pulp_container_client 2.27.8 → 2.28.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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +18 -18
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
- data/docs/ContainerContainerRemote.md +6 -2
- data/docs/ContainerContainerRemoteResponse.md +4 -4
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContentSignaturesApi.md +2 -2
- 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/docs/PatchedcontainerContainerRemote.md +6 -2
- data/docs/PulpContainerNamespacesApi.md +2 -2
- data/lib/pulp_container_client/api/content_signatures_api.rb +3 -3
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_namespace.rb +15 -4
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +15 -4
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +68 -68
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +85 -85
- data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +73 -73
- data/lib/pulp_container_client/models/container_container_remote.rb +29 -3
- data/lib/pulp_container_client/models/container_container_remote_response.rb +19 -19
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +14 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +61 -61
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +57 -57
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +29 -3
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_signatures_api_spec.rb +1 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/container_container_namespace_response_spec.rb +6 -0
- data/spec/models/container_container_namespace_spec.rb +6 -0
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
- data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
- data/spec/models/container_container_push_repository_response_spec.rb +12 -12
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/container_container_remote_response_spec.rb +2 -2
- data/spec/models/container_container_remote_spec.rb +12 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- 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 +5 -5
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +59 -59
|
@@ -18,10 +18,13 @@ module PulpContainerClient
|
|
|
18
18
|
class ContainerContainerNamespace
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
21
|
+
attr_accessor :pulp_labels
|
|
22
|
+
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
24
|
def self.attribute_map
|
|
23
25
|
{
|
|
24
|
-
:'name' => :'name'
|
|
26
|
+
:'name' => :'name',
|
|
27
|
+
:'pulp_labels' => :'pulp_labels'
|
|
25
28
|
}
|
|
26
29
|
end
|
|
27
30
|
|
|
@@ -33,7 +36,8 @@ module PulpContainerClient
|
|
|
33
36
|
# Attribute type mapping.
|
|
34
37
|
def self.openapi_types
|
|
35
38
|
{
|
|
36
|
-
:'name' => :'String'
|
|
39
|
+
:'name' => :'String',
|
|
40
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
@@ -63,6 +67,12 @@ module PulpContainerClient
|
|
|
63
67
|
else
|
|
64
68
|
self.name = nil
|
|
65
69
|
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
|
72
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
73
|
+
self.pulp_labels = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
66
76
|
end
|
|
67
77
|
|
|
68
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,7 +119,8 @@ module PulpContainerClient
|
|
|
109
119
|
def ==(o)
|
|
110
120
|
return true if self.equal?(o)
|
|
111
121
|
self.class == o.class &&
|
|
112
|
-
name == o.name
|
|
122
|
+
name == o.name &&
|
|
123
|
+
pulp_labels == o.pulp_labels
|
|
113
124
|
end
|
|
114
125
|
|
|
115
126
|
# @see the `==` method
|
|
@@ -121,7 +132,7 @@ module PulpContainerClient
|
|
|
121
132
|
# Calculates hash code according to all attributes.
|
|
122
133
|
# @return [Integer] Hash code
|
|
123
134
|
def hash
|
|
124
|
-
[name].hash
|
|
135
|
+
[name, pulp_labels].hash
|
|
125
136
|
end
|
|
126
137
|
|
|
127
138
|
# Builds the object from hash
|
|
@@ -29,6 +29,8 @@ module PulpContainerClient
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :name
|
|
31
31
|
|
|
32
|
+
attr_accessor :pulp_labels
|
|
33
|
+
|
|
32
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
35
|
def self.attribute_map
|
|
34
36
|
{
|
|
@@ -36,7 +38,8 @@ module PulpContainerClient
|
|
|
36
38
|
:'prn' => :'prn',
|
|
37
39
|
:'pulp_created' => :'pulp_created',
|
|
38
40
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
39
|
-
:'name' => :'name'
|
|
41
|
+
:'name' => :'name',
|
|
42
|
+
:'pulp_labels' => :'pulp_labels'
|
|
40
43
|
}
|
|
41
44
|
end
|
|
42
45
|
|
|
@@ -52,7 +55,8 @@ module PulpContainerClient
|
|
|
52
55
|
:'prn' => :'String',
|
|
53
56
|
:'pulp_created' => :'Time',
|
|
54
57
|
:'pulp_last_updated' => :'Time',
|
|
55
|
-
:'name' => :'String'
|
|
58
|
+
:'name' => :'String',
|
|
59
|
+
:'pulp_labels' => :'Hash<String, String>'
|
|
56
60
|
}
|
|
57
61
|
end
|
|
58
62
|
|
|
@@ -98,6 +102,12 @@ module PulpContainerClient
|
|
|
98
102
|
else
|
|
99
103
|
self.name = nil
|
|
100
104
|
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'pulp_labels')
|
|
107
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
108
|
+
self.pulp_labels = value
|
|
109
|
+
end
|
|
110
|
+
end
|
|
101
111
|
end
|
|
102
112
|
|
|
103
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -129,7 +139,8 @@ module PulpContainerClient
|
|
|
129
139
|
prn == o.prn &&
|
|
130
140
|
pulp_created == o.pulp_created &&
|
|
131
141
|
pulp_last_updated == o.pulp_last_updated &&
|
|
132
|
-
name == o.name
|
|
142
|
+
name == o.name &&
|
|
143
|
+
pulp_labels == o.pulp_labels
|
|
133
144
|
end
|
|
134
145
|
|
|
135
146
|
# @see the `==` method
|
|
@@ -141,7 +152,7 @@ module PulpContainerClient
|
|
|
141
152
|
# Calculates hash code according to all attributes.
|
|
142
153
|
# @return [Integer] Hash code
|
|
143
154
|
def hash
|
|
144
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name].hash
|
|
155
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, pulp_labels].hash
|
|
145
156
|
end
|
|
146
157
|
|
|
147
158
|
# Builds the object from hash
|
|
@@ -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
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
23
|
+
attr_accessor :base_path
|
|
24
|
+
|
|
25
|
+
attr_accessor :pulp_labels
|
|
24
26
|
|
|
25
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
26
28
|
attr_accessor :name
|
|
27
29
|
|
|
28
|
-
# The
|
|
29
|
-
attr_accessor :
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
32
|
+
|
|
33
|
+
# RepositoryVersion to be served
|
|
34
|
+
attr_accessor :repository_version
|
|
30
35
|
|
|
31
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
32
37
|
attr_accessor :content_guard
|
|
33
38
|
|
|
34
|
-
# Whether this distribution should be shown in the content app.
|
|
35
|
-
attr_accessor :hidden
|
|
36
|
-
|
|
37
|
-
attr_accessor :pulp_labels
|
|
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
|
+
:'hidden' => :'hidden',
|
|
55
|
+
:'base_path' => :'base_path',
|
|
56
|
+
:'pulp_labels' => :'pulp_labels',
|
|
57
|
+
:'name' => :'name',
|
|
54
58
|
:'repository' => :'repository',
|
|
55
59
|
:'repository_version' => :'repository_version',
|
|
56
|
-
:'name' => :'name',
|
|
57
|
-
:'base_path' => :'base_path',
|
|
58
60
|
:'content_guard' => :'content_guard',
|
|
59
|
-
:'hidden' => :'hidden',
|
|
60
|
-
:'pulp_labels' => :'pulp_labels',
|
|
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
|
+
:'hidden' => :'Boolean',
|
|
77
|
+
:'base_path' => :'String',
|
|
78
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'name' => :'String',
|
|
76
80
|
:'repository' => :'String',
|
|
77
81
|
:'repository_version' => :'String',
|
|
78
|
-
:'name' => :'String',
|
|
79
|
-
:'base_path' => :'String',
|
|
80
82
|
:'content_guard' => :'String',
|
|
81
|
-
:'hidden' => :'Boolean',
|
|
82
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,18 +111,10 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if attributes.key?(:'repository_version')
|
|
119
|
-
self.repository_version = attributes[:'repository_version']
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
if attributes.key?(:'name')
|
|
123
|
-
self.name = attributes[:'name']
|
|
114
|
+
if attributes.key?(:'hidden')
|
|
115
|
+
self.hidden = attributes[:'hidden']
|
|
124
116
|
else
|
|
125
|
-
self.
|
|
117
|
+
self.hidden = false
|
|
126
118
|
end
|
|
127
119
|
|
|
128
120
|
if attributes.key?(:'base_path')
|
|
@@ -131,20 +123,28 @@ module PulpContainerClient
|
|
|
131
123
|
self.base_path = nil
|
|
132
124
|
end
|
|
133
125
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
|
|
126
|
+
if attributes.key?(:'pulp_labels')
|
|
127
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
128
|
+
self.pulp_labels = value
|
|
129
|
+
end
|
|
136
130
|
end
|
|
137
131
|
|
|
138
|
-
if attributes.key?(:'
|
|
139
|
-
self.
|
|
132
|
+
if attributes.key?(:'name')
|
|
133
|
+
self.name = attributes[:'name']
|
|
140
134
|
else
|
|
141
|
-
self.
|
|
135
|
+
self.name = nil
|
|
142
136
|
end
|
|
143
137
|
|
|
144
|
-
if attributes.key?(:'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
138
|
+
if attributes.key?(:'repository')
|
|
139
|
+
self.repository = attributes[:'repository']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'repository_version')
|
|
143
|
+
self.repository_version = attributes[:'repository_version']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'content_guard')
|
|
147
|
+
self.content_guard = attributes[:'content_guard']
|
|
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 @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
|
+
hidden == o.hidden &&
|
|
260
|
+
base_path == o.base_path &&
|
|
261
|
+
pulp_labels == o.pulp_labels &&
|
|
262
|
+
name == o.name &&
|
|
259
263
|
repository == o.repository &&
|
|
260
264
|
repository_version == o.repository_version &&
|
|
261
|
-
name == o.name &&
|
|
262
|
-
base_path == o.base_path &&
|
|
263
265
|
content_guard == o.content_guard &&
|
|
264
|
-
hidden == o.hidden &&
|
|
265
|
-
pulp_labels == o.pulp_labels &&
|
|
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
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, 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,43 +16,43 @@ 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
|
+
# Whether this distribution should be shown in the content app.
|
|
20
|
+
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
23
|
+
attr_accessor :base_path
|
|
24
24
|
|
|
25
25
|
# The Pulp Resource Name (PRN).
|
|
26
26
|
attr_accessor :prn
|
|
27
27
|
|
|
28
|
+
# 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.
|
|
29
|
+
attr_accessor :pulp_last_updated
|
|
30
|
+
|
|
31
|
+
attr_accessor :pulp_labels
|
|
32
|
+
|
|
33
|
+
attr_accessor :pulp_href
|
|
34
|
+
|
|
28
35
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
29
36
|
attr_accessor :name
|
|
30
37
|
|
|
31
|
-
# The
|
|
32
|
-
attr_accessor :
|
|
38
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
39
|
+
attr_accessor :repository
|
|
33
40
|
|
|
34
|
-
# Timestamp
|
|
35
|
-
attr_accessor :
|
|
41
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
42
|
+
attr_accessor :no_content_change_since
|
|
36
43
|
|
|
37
44
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
38
45
|
attr_accessor :content_guard_prn
|
|
39
46
|
|
|
40
|
-
|
|
47
|
+
# RepositoryVersion to be served
|
|
48
|
+
attr_accessor :repository_version
|
|
49
|
+
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
41
52
|
|
|
42
53
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
43
54
|
attr_accessor :content_guard
|
|
44
55
|
|
|
45
|
-
# Whether this distribution should be shown in the content app.
|
|
46
|
-
attr_accessor :hidden
|
|
47
|
-
|
|
48
|
-
attr_accessor :pulp_labels
|
|
49
|
-
|
|
50
|
-
# 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.
|
|
51
|
-
attr_accessor :pulp_last_updated
|
|
52
|
-
|
|
53
|
-
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
54
|
-
attr_accessor :no_content_change_since
|
|
55
|
-
|
|
56
56
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
57
57
|
attr_accessor :remote
|
|
58
58
|
|
|
@@ -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
|
-
:'
|
|
75
|
-
:'
|
|
74
|
+
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
76
76
|
:'prn' => :'prn',
|
|
77
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
78
|
+
:'pulp_labels' => :'pulp_labels',
|
|
79
|
+
:'pulp_href' => :'pulp_href',
|
|
77
80
|
:'name' => :'name',
|
|
78
|
-
:'
|
|
79
|
-
:'
|
|
81
|
+
:'repository' => :'repository',
|
|
82
|
+
:'no_content_change_since' => :'no_content_change_since',
|
|
80
83
|
:'content_guard_prn' => :'content_guard_prn',
|
|
81
|
-
:'
|
|
84
|
+
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
82
86
|
:'content_guard' => :'content_guard',
|
|
83
|
-
:'hidden' => :'hidden',
|
|
84
|
-
:'pulp_labels' => :'pulp_labels',
|
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
|
-
:'no_content_change_since' => :'no_content_change_since',
|
|
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
|
-
:'
|
|
104
|
-
:'
|
|
103
|
+
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
105
105
|
:'prn' => :'String',
|
|
106
|
+
:'pulp_last_updated' => :'Time',
|
|
107
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
108
|
+
:'pulp_href' => :'String',
|
|
106
109
|
:'name' => :'String',
|
|
107
|
-
:'
|
|
108
|
-
:'
|
|
110
|
+
:'repository' => :'String',
|
|
111
|
+
:'no_content_change_since' => :'String',
|
|
109
112
|
:'content_guard_prn' => :'String',
|
|
110
|
-
:'
|
|
113
|
+
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
111
115
|
:'content_guard' => :'String',
|
|
112
|
-
:'hidden' => :'Boolean',
|
|
113
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
114
|
-
:'pulp_last_updated' => :'Time',
|
|
115
|
-
:'no_content_change_since' => :'String',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -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?(:'hidden')
|
|
149
|
+
self.hidden = attributes[:'hidden']
|
|
150
|
+
else
|
|
151
|
+
self.hidden = false
|
|
150
152
|
end
|
|
151
153
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
154
|
+
if attributes.key?(:'base_path')
|
|
155
|
+
self.base_path = attributes[:'base_path']
|
|
156
|
+
else
|
|
157
|
+
self.base_path = nil
|
|
154
158
|
end
|
|
155
159
|
|
|
156
160
|
if attributes.key?(:'prn')
|
|
157
161
|
self.prn = attributes[:'prn']
|
|
158
162
|
end
|
|
159
163
|
|
|
160
|
-
if attributes.key?(:'
|
|
161
|
-
self.
|
|
162
|
-
else
|
|
163
|
-
self.name = nil
|
|
164
|
+
if attributes.key?(:'pulp_last_updated')
|
|
165
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
164
166
|
end
|
|
165
167
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
if attributes.key?(:'pulp_labels')
|
|
169
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
170
|
+
self.pulp_labels = value
|
|
171
|
+
end
|
|
170
172
|
end
|
|
171
173
|
|
|
172
|
-
if attributes.key?(:'
|
|
173
|
-
self.
|
|
174
|
+
if attributes.key?(:'pulp_href')
|
|
175
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
174
176
|
end
|
|
175
177
|
|
|
176
|
-
if attributes.key?(:'
|
|
177
|
-
self.
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
180
|
+
else
|
|
181
|
+
self.name = nil
|
|
178
182
|
end
|
|
179
183
|
|
|
180
|
-
if attributes.key?(:'
|
|
181
|
-
self.
|
|
184
|
+
if attributes.key?(:'repository')
|
|
185
|
+
self.repository = attributes[:'repository']
|
|
182
186
|
end
|
|
183
187
|
|
|
184
|
-
if attributes.key?(:'
|
|
185
|
-
self.
|
|
188
|
+
if attributes.key?(:'no_content_change_since')
|
|
189
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
186
190
|
end
|
|
187
191
|
|
|
188
|
-
if attributes.key?(:'
|
|
189
|
-
self.
|
|
190
|
-
else
|
|
191
|
-
self.hidden = false
|
|
192
|
+
if attributes.key?(:'content_guard_prn')
|
|
193
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
192
194
|
end
|
|
193
195
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
|
|
196
|
-
self.pulp_labels = value
|
|
197
|
-
end
|
|
196
|
+
if attributes.key?(:'repository_version')
|
|
197
|
+
self.repository_version = attributes[:'repository_version']
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
if attributes.key?(:'
|
|
201
|
-
self.
|
|
200
|
+
if attributes.key?(:'pulp_created')
|
|
201
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
if attributes.key?(:'
|
|
205
|
-
self.
|
|
204
|
+
if attributes.key?(:'content_guard')
|
|
205
|
+
self.content_guard = attributes[:'content_guard']
|
|
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 @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,19 +265,19 @@ module PulpContainerClient
|
|
|
265
265
|
def ==(o)
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
hidden == o.hidden &&
|
|
269
|
+
base_path == o.base_path &&
|
|
270
270
|
prn == o.prn &&
|
|
271
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
272
|
+
pulp_labels == o.pulp_labels &&
|
|
273
|
+
pulp_href == o.pulp_href &&
|
|
271
274
|
name == o.name &&
|
|
272
|
-
|
|
273
|
-
|
|
275
|
+
repository == o.repository &&
|
|
276
|
+
no_content_change_since == o.no_content_change_since &&
|
|
274
277
|
content_guard_prn == o.content_guard_prn &&
|
|
275
|
-
|
|
278
|
+
repository_version == o.repository_version &&
|
|
279
|
+
pulp_created == o.pulp_created &&
|
|
276
280
|
content_guard == o.content_guard &&
|
|
277
|
-
hidden == o.hidden &&
|
|
278
|
-
pulp_labels == o.pulp_labels &&
|
|
279
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
280
|
-
no_content_change_since == o.no_content_change_since &&
|
|
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
|
+
[hidden, base_path, prn, pulp_last_updated, pulp_labels, pulp_href, name, repository, no_content_change_since, content_guard_prn, repository_version, pulp_created, content_guard, remote, distributions, namespace, private, description].hash
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
# Builds the object from hash
|