pulp_container_client 2.27.11 → 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 +4 -4
- data/docs/ContainerContainerDistributionResponse.md +12 -12
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +4 -4
- data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- 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 +4 -4
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +67 -67
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +67 -67
- data/lib/pulp_container_client/models/container_container_push_repository.rb +58 -58
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +67 -67
- 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 +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +40 -40
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +51 -51
- 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 +5 -5
- 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 +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +11 -11
- 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 +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
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +58 -58
|
@@ -19,23 +19,23 @@ module PulpContainerClient
|
|
|
19
19
|
# Whether this distribution should be shown in the content app.
|
|
20
20
|
attr_accessor :hidden
|
|
21
21
|
|
|
22
|
-
|
|
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
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
attr_accessor :repository
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
26
|
|
|
27
27
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
28
|
attr_accessor :name
|
|
29
29
|
|
|
30
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
31
|
+
attr_accessor :repository
|
|
32
|
+
|
|
30
33
|
# RepositoryVersion to be served
|
|
31
34
|
attr_accessor :repository_version
|
|
32
35
|
|
|
33
36
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
34
37
|
attr_accessor :content_guard
|
|
35
38
|
|
|
36
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
37
|
-
attr_accessor :base_path
|
|
38
|
-
|
|
39
39
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
40
40
|
attr_accessor :remote
|
|
41
41
|
|
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
54
|
:'hidden' => :'hidden',
|
|
55
|
+
:'base_path' => :'base_path',
|
|
55
56
|
:'pulp_labels' => :'pulp_labels',
|
|
56
|
-
:'repository' => :'repository',
|
|
57
57
|
:'name' => :'name',
|
|
58
|
+
:'repository' => :'repository',
|
|
58
59
|
:'repository_version' => :'repository_version',
|
|
59
60
|
:'content_guard' => :'content_guard',
|
|
60
|
-
:'base_path' => :'base_path',
|
|
61
61
|
:'remote' => :'remote',
|
|
62
62
|
:'distributions' => :'distributions',
|
|
63
63
|
:'private' => :'private',
|
|
@@ -74,12 +74,12 @@ module PulpContainerClient
|
|
|
74
74
|
def self.openapi_types
|
|
75
75
|
{
|
|
76
76
|
:'hidden' => :'Boolean',
|
|
77
|
+
:'base_path' => :'String',
|
|
77
78
|
:'pulp_labels' => :'Hash<String, String>',
|
|
78
|
-
:'repository' => :'String',
|
|
79
79
|
:'name' => :'String',
|
|
80
|
+
:'repository' => :'String',
|
|
80
81
|
:'repository_version' => :'String',
|
|
81
82
|
:'content_guard' => :'String',
|
|
82
|
-
:'base_path' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -117,22 +117,28 @@ module PulpContainerClient
|
|
|
117
117
|
self.hidden = false
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
122
|
+
else
|
|
123
|
+
self.base_path = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
120
126
|
if attributes.key?(:'pulp_labels')
|
|
121
127
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
128
|
self.pulp_labels = value
|
|
123
129
|
end
|
|
124
130
|
end
|
|
125
131
|
|
|
126
|
-
if attributes.key?(:'repository')
|
|
127
|
-
self.repository = attributes[:'repository']
|
|
128
|
-
end
|
|
129
|
-
|
|
130
132
|
if attributes.key?(:'name')
|
|
131
133
|
self.name = attributes[:'name']
|
|
132
134
|
else
|
|
133
135
|
self.name = nil
|
|
134
136
|
end
|
|
135
137
|
|
|
138
|
+
if attributes.key?(:'repository')
|
|
139
|
+
self.repository = attributes[:'repository']
|
|
140
|
+
end
|
|
141
|
+
|
|
136
142
|
if attributes.key?(:'repository_version')
|
|
137
143
|
self.repository_version = attributes[:'repository_version']
|
|
138
144
|
end
|
|
@@ -141,12 +147,6 @@ module PulpContainerClient
|
|
|
141
147
|
self.content_guard = attributes[:'content_guard']
|
|
142
148
|
end
|
|
143
149
|
|
|
144
|
-
if attributes.key?(:'base_path')
|
|
145
|
-
self.base_path = attributes[:'base_path']
|
|
146
|
-
else
|
|
147
|
-
self.base_path = nil
|
|
148
|
-
end
|
|
149
|
-
|
|
150
150
|
if attributes.key?(:'remote')
|
|
151
151
|
self.remote = attributes[:'remote']
|
|
152
152
|
else
|
|
@@ -173,14 +173,6 @@ module PulpContainerClient
|
|
|
173
173
|
def list_invalid_properties
|
|
174
174
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
175
175
|
invalid_properties = Array.new
|
|
176
|
-
if @name.nil?
|
|
177
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
if @name.to_s.length < 1
|
|
181
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
182
|
-
end
|
|
183
|
-
|
|
184
176
|
if @base_path.nil?
|
|
185
177
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
186
178
|
end
|
|
@@ -189,6 +181,14 @@ module PulpContainerClient
|
|
|
189
181
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
190
182
|
end
|
|
191
183
|
|
|
184
|
+
if @name.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if @name.to_s.length < 1
|
|
189
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
190
|
+
end
|
|
191
|
+
|
|
192
192
|
if @remote.nil?
|
|
193
193
|
invalid_properties.push('invalid value for "remote", remote cannot be nil.')
|
|
194
194
|
end
|
|
@@ -204,29 +204,15 @@ module PulpContainerClient
|
|
|
204
204
|
# @return true if the model is valid
|
|
205
205
|
def valid?
|
|
206
206
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
207
|
-
return false if @name.nil?
|
|
208
|
-
return false if @name.to_s.length < 1
|
|
209
207
|
return false if @base_path.nil?
|
|
210
208
|
return false if @base_path.to_s.length < 1
|
|
209
|
+
return false if @name.nil?
|
|
210
|
+
return false if @name.to_s.length < 1
|
|
211
211
|
return false if @remote.nil?
|
|
212
212
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
213
213
|
true
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
# Custom attribute writer method with validation
|
|
217
|
-
# @param [Object] name Value to be assigned
|
|
218
|
-
def name=(name)
|
|
219
|
-
if name.nil?
|
|
220
|
-
fail ArgumentError, 'name cannot be nil'
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if name.to_s.length < 1
|
|
224
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
@name = name
|
|
228
|
-
end
|
|
229
|
-
|
|
230
216
|
# Custom attribute writer method with validation
|
|
231
217
|
# @param [Object] base_path Value to be assigned
|
|
232
218
|
def base_path=(base_path)
|
|
@@ -241,6 +227,20 @@ module PulpContainerClient
|
|
|
241
227
|
@base_path = base_path
|
|
242
228
|
end
|
|
243
229
|
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] name Value to be assigned
|
|
232
|
+
def name=(name)
|
|
233
|
+
if name.nil?
|
|
234
|
+
fail ArgumentError, 'name cannot be nil'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if name.to_s.length < 1
|
|
238
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
@name = name
|
|
242
|
+
end
|
|
243
|
+
|
|
244
244
|
# Custom attribute writer method with validation
|
|
245
245
|
# @param [Object] description Value to be assigned
|
|
246
246
|
def description=(description)
|
|
@@ -257,12 +257,12 @@ module PulpContainerClient
|
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
259
|
hidden == o.hidden &&
|
|
260
|
+
base_path == o.base_path &&
|
|
260
261
|
pulp_labels == o.pulp_labels &&
|
|
261
|
-
repository == o.repository &&
|
|
262
262
|
name == o.name &&
|
|
263
|
+
repository == o.repository &&
|
|
263
264
|
repository_version == o.repository_version &&
|
|
264
265
|
content_guard == o.content_guard &&
|
|
265
|
-
base_path == o.base_path &&
|
|
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
|
-
[hidden,
|
|
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
|
@@ -19,40 +19,40 @@ module PulpContainerClient
|
|
|
19
19
|
# Whether this distribution should be shown in the content app.
|
|
20
20
|
attr_accessor :hidden
|
|
21
21
|
|
|
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
|
+
# The Pulp Resource Name (PRN).
|
|
26
|
+
attr_accessor :prn
|
|
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
|
+
|
|
22
31
|
attr_accessor :pulp_labels
|
|
23
32
|
|
|
24
33
|
attr_accessor :pulp_href
|
|
25
34
|
|
|
35
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
36
|
+
attr_accessor :name
|
|
37
|
+
|
|
38
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
39
|
+
attr_accessor :repository
|
|
40
|
+
|
|
26
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.
|
|
27
42
|
attr_accessor :no_content_change_since
|
|
28
43
|
|
|
29
44
|
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
30
45
|
attr_accessor :content_guard_prn
|
|
31
46
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
34
|
-
|
|
35
|
-
# The latest RepositoryVersion for this Repository will be served.
|
|
36
|
-
attr_accessor :repository
|
|
47
|
+
# RepositoryVersion to be served
|
|
48
|
+
attr_accessor :repository_version
|
|
37
49
|
|
|
38
50
|
# Timestamp of creation.
|
|
39
51
|
attr_accessor :pulp_created
|
|
40
52
|
|
|
41
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
|
42
|
-
attr_accessor :name
|
|
43
|
-
|
|
44
|
-
# RepositoryVersion to be served
|
|
45
|
-
attr_accessor :repository_version
|
|
46
|
-
|
|
47
53
|
# An optional content-guard. If none is specified, a default one will be used.
|
|
48
54
|
attr_accessor :content_guard
|
|
49
55
|
|
|
50
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
51
|
-
attr_accessor :base_path
|
|
52
|
-
|
|
53
|
-
# 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.
|
|
54
|
-
attr_accessor :pulp_last_updated
|
|
55
|
-
|
|
56
56
|
# Remote that can be used to fetch content when using pull-through caching.
|
|
57
57
|
attr_accessor :remote
|
|
58
58
|
|
|
@@ -72,18 +72,18 @@ module PulpContainerClient
|
|
|
72
72
|
def self.attribute_map
|
|
73
73
|
{
|
|
74
74
|
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
76
|
+
:'prn' => :'prn',
|
|
77
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
75
78
|
:'pulp_labels' => :'pulp_labels',
|
|
76
79
|
:'pulp_href' => :'pulp_href',
|
|
80
|
+
:'name' => :'name',
|
|
81
|
+
:'repository' => :'repository',
|
|
77
82
|
:'no_content_change_since' => :'no_content_change_since',
|
|
78
83
|
:'content_guard_prn' => :'content_guard_prn',
|
|
79
|
-
:'prn' => :'prn',
|
|
80
|
-
:'repository' => :'repository',
|
|
81
|
-
:'pulp_created' => :'pulp_created',
|
|
82
|
-
:'name' => :'name',
|
|
83
84
|
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
84
86
|
:'content_guard' => :'content_guard',
|
|
85
|
-
:'base_path' => :'base_path',
|
|
86
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
87
87
|
:'remote' => :'remote',
|
|
88
88
|
:'distributions' => :'distributions',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -101,18 +101,18 @@ module PulpContainerClient
|
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
103
|
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
105
|
+
:'prn' => :'String',
|
|
106
|
+
:'pulp_last_updated' => :'Time',
|
|
104
107
|
:'pulp_labels' => :'Hash<String, String>',
|
|
105
108
|
:'pulp_href' => :'String',
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
:'repository' => :'String',
|
|
106
111
|
:'no_content_change_since' => :'String',
|
|
107
112
|
:'content_guard_prn' => :'String',
|
|
108
|
-
:'prn' => :'String',
|
|
109
|
-
:'repository' => :'String',
|
|
110
|
-
:'pulp_created' => :'Time',
|
|
111
|
-
:'name' => :'String',
|
|
112
113
|
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
113
115
|
:'content_guard' => :'String',
|
|
114
|
-
:'base_path' => :'String',
|
|
115
|
-
:'pulp_last_updated' => :'Time',
|
|
116
116
|
:'remote' => :'String',
|
|
117
117
|
:'distributions' => :'Array<String>',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -151,6 +151,20 @@ module PulpContainerClient
|
|
|
151
151
|
self.hidden = false
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
+
if attributes.key?(:'base_path')
|
|
155
|
+
self.base_path = attributes[:'base_path']
|
|
156
|
+
else
|
|
157
|
+
self.base_path = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'prn')
|
|
161
|
+
self.prn = attributes[:'prn']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'pulp_last_updated')
|
|
165
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
166
|
+
end
|
|
167
|
+
|
|
154
168
|
if attributes.key?(:'pulp_labels')
|
|
155
169
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
156
170
|
self.pulp_labels = value
|
|
@@ -161,48 +175,34 @@ module PulpContainerClient
|
|
|
161
175
|
self.pulp_href = attributes[:'pulp_href']
|
|
162
176
|
end
|
|
163
177
|
|
|
164
|
-
if attributes.key?(:'
|
|
165
|
-
self.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if attributes.key?(:'content_guard_prn')
|
|
169
|
-
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
if attributes.key?(:'prn')
|
|
173
|
-
self.prn = attributes[:'prn']
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
180
|
+
else
|
|
181
|
+
self.name = nil
|
|
174
182
|
end
|
|
175
183
|
|
|
176
184
|
if attributes.key?(:'repository')
|
|
177
185
|
self.repository = attributes[:'repository']
|
|
178
186
|
end
|
|
179
187
|
|
|
180
|
-
if attributes.key?(:'
|
|
181
|
-
self.
|
|
188
|
+
if attributes.key?(:'no_content_change_since')
|
|
189
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
182
190
|
end
|
|
183
191
|
|
|
184
|
-
if attributes.key?(:'
|
|
185
|
-
self.
|
|
186
|
-
else
|
|
187
|
-
self.name = nil
|
|
192
|
+
if attributes.key?(:'content_guard_prn')
|
|
193
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
188
194
|
end
|
|
189
195
|
|
|
190
196
|
if attributes.key?(:'repository_version')
|
|
191
197
|
self.repository_version = attributes[:'repository_version']
|
|
192
198
|
end
|
|
193
199
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
self.
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
if attributes.key?(:'base_path')
|
|
199
|
-
self.base_path = attributes[:'base_path']
|
|
200
|
-
else
|
|
201
|
-
self.base_path = nil
|
|
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
|
|
@@ -266,18 +266,18 @@ module PulpContainerClient
|
|
|
266
266
|
return true if self.equal?(o)
|
|
267
267
|
self.class == o.class &&
|
|
268
268
|
hidden == o.hidden &&
|
|
269
|
+
base_path == o.base_path &&
|
|
270
|
+
prn == o.prn &&
|
|
271
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
269
272
|
pulp_labels == o.pulp_labels &&
|
|
270
273
|
pulp_href == o.pulp_href &&
|
|
274
|
+
name == o.name &&
|
|
275
|
+
repository == o.repository &&
|
|
271
276
|
no_content_change_since == o.no_content_change_since &&
|
|
272
277
|
content_guard_prn == o.content_guard_prn &&
|
|
273
|
-
prn == o.prn &&
|
|
274
|
-
repository == o.repository &&
|
|
275
|
-
pulp_created == o.pulp_created &&
|
|
276
|
-
name == o.name &&
|
|
277
278
|
repository_version == o.repository_version &&
|
|
279
|
+
pulp_created == o.pulp_created &&
|
|
278
280
|
content_guard == o.content_guard &&
|
|
279
|
-
base_path == o.base_path &&
|
|
280
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
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
|
-
[hidden,
|
|
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
|
|
@@ -16,32 +16,32 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# Serializer for Container Push Repositories.
|
|
18
18
|
class ContainerContainerPushRepository
|
|
19
|
-
|
|
19
|
+
# A reference to an associated signing service.
|
|
20
|
+
attr_accessor :manifest_signing_service
|
|
20
21
|
|
|
21
22
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
22
23
|
attr_accessor :retain_repo_versions
|
|
23
24
|
|
|
25
|
+
attr_accessor :pulp_labels
|
|
26
|
+
|
|
27
|
+
# A unique name for this repository.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
24
30
|
# An optional description.
|
|
25
31
|
attr_accessor :description
|
|
26
32
|
|
|
27
33
|
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
28
34
|
attr_accessor :retain_checkpoints
|
|
29
35
|
|
|
30
|
-
# A unique name for this repository.
|
|
31
|
-
attr_accessor :name
|
|
32
|
-
|
|
33
|
-
# A reference to an associated signing service.
|
|
34
|
-
attr_accessor :manifest_signing_service
|
|
35
|
-
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
39
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
40
40
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
41
|
-
:'
|
|
42
|
-
:'retain_checkpoints' => :'retain_checkpoints',
|
|
41
|
+
:'pulp_labels' => :'pulp_labels',
|
|
43
42
|
:'name' => :'name',
|
|
44
|
-
:'
|
|
43
|
+
:'description' => :'description',
|
|
44
|
+
:'retain_checkpoints' => :'retain_checkpoints'
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
@@ -53,22 +53,22 @@ module PulpContainerClient
|
|
|
53
53
|
# Attribute type mapping.
|
|
54
54
|
def self.openapi_types
|
|
55
55
|
{
|
|
56
|
-
:'
|
|
56
|
+
:'manifest_signing_service' => :'String',
|
|
57
57
|
:'retain_repo_versions' => :'Integer',
|
|
58
|
-
:'
|
|
59
|
-
:'retain_checkpoints' => :'Integer',
|
|
58
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
60
59
|
:'name' => :'String',
|
|
61
|
-
:'
|
|
60
|
+
:'description' => :'String',
|
|
61
|
+
:'retain_checkpoints' => :'Integer'
|
|
62
62
|
}
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# List of attributes with nullable: true
|
|
66
66
|
def self.openapi_nullable
|
|
67
67
|
Set.new([
|
|
68
|
+
:'manifest_signing_service',
|
|
68
69
|
:'retain_repo_versions',
|
|
69
70
|
:'description',
|
|
70
|
-
:'retain_checkpoints'
|
|
71
|
-
:'manifest_signing_service'
|
|
71
|
+
:'retain_checkpoints'
|
|
72
72
|
])
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -87,22 +87,18 @@ module PulpContainerClient
|
|
|
87
87
|
h[k.to_sym] = v
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'
|
|
91
|
-
|
|
92
|
-
self.pulp_labels = value
|
|
93
|
-
end
|
|
90
|
+
if attributes.key?(:'manifest_signing_service')
|
|
91
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
if attributes.key?(:'retain_repo_versions')
|
|
97
95
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
98
96
|
end
|
|
99
97
|
|
|
100
|
-
if attributes.key?(:'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if attributes.key?(:'retain_checkpoints')
|
|
105
|
-
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
98
|
+
if attributes.key?(:'pulp_labels')
|
|
99
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
100
|
+
self.pulp_labels = value
|
|
101
|
+
end
|
|
106
102
|
end
|
|
107
103
|
|
|
108
104
|
if attributes.key?(:'name')
|
|
@@ -111,8 +107,12 @@ module PulpContainerClient
|
|
|
111
107
|
self.name = nil
|
|
112
108
|
end
|
|
113
109
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
110
|
+
if attributes.key?(:'description')
|
|
111
|
+
self.description = attributes[:'description']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'retain_checkpoints')
|
|
115
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
|
|
@@ -125,14 +125,6 @@ module PulpContainerClient
|
|
|
125
125
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
if !@description.nil? && @description.to_s.length < 1
|
|
129
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
133
|
-
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
134
|
-
end
|
|
135
|
-
|
|
136
128
|
if @name.nil?
|
|
137
129
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
138
130
|
end
|
|
@@ -141,6 +133,14 @@ module PulpContainerClient
|
|
|
141
133
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
142
134
|
end
|
|
143
135
|
|
|
136
|
+
if !@description.nil? && @description.to_s.length < 1
|
|
137
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
141
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
144
|
invalid_properties
|
|
145
145
|
end
|
|
146
146
|
|
|
@@ -149,10 +149,10 @@ module PulpContainerClient
|
|
|
149
149
|
def valid?
|
|
150
150
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
151
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
152
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
|
153
|
-
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
154
152
|
return false if @name.nil?
|
|
155
153
|
return false if @name.to_s.length < 1
|
|
154
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
|
155
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
156
156
|
true
|
|
157
157
|
end
|
|
158
158
|
|
|
@@ -166,6 +166,20 @@ module PulpContainerClient
|
|
|
166
166
|
@retain_repo_versions = retain_repo_versions
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
# Custom attribute writer method with validation
|
|
170
|
+
# @param [Object] name Value to be assigned
|
|
171
|
+
def name=(name)
|
|
172
|
+
if name.nil?
|
|
173
|
+
fail ArgumentError, 'name cannot be nil'
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if name.to_s.length < 1
|
|
177
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
@name = name
|
|
181
|
+
end
|
|
182
|
+
|
|
169
183
|
# Custom attribute writer method with validation
|
|
170
184
|
# @param [Object] description Value to be assigned
|
|
171
185
|
def description=(description)
|
|
@@ -186,31 +200,17 @@ module PulpContainerClient
|
|
|
186
200
|
@retain_checkpoints = retain_checkpoints
|
|
187
201
|
end
|
|
188
202
|
|
|
189
|
-
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object] name Value to be assigned
|
|
191
|
-
def name=(name)
|
|
192
|
-
if name.nil?
|
|
193
|
-
fail ArgumentError, 'name cannot be nil'
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
if name.to_s.length < 1
|
|
197
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
@name = name
|
|
201
|
-
end
|
|
202
|
-
|
|
203
203
|
# Checks equality by comparing each attribute.
|
|
204
204
|
# @param [Object] Object to be compared
|
|
205
205
|
def ==(o)
|
|
206
206
|
return true if self.equal?(o)
|
|
207
207
|
self.class == o.class &&
|
|
208
|
-
|
|
208
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
209
209
|
retain_repo_versions == o.retain_repo_versions &&
|
|
210
|
-
|
|
211
|
-
retain_checkpoints == o.retain_checkpoints &&
|
|
210
|
+
pulp_labels == o.pulp_labels &&
|
|
212
211
|
name == o.name &&
|
|
213
|
-
|
|
212
|
+
description == o.description &&
|
|
213
|
+
retain_checkpoints == o.retain_checkpoints
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
# @see the `==` method
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
|
222
222
|
# Calculates hash code according to all attributes.
|
|
223
223
|
# @return [Integer] Hash code
|
|
224
224
|
def hash
|
|
225
|
-
[
|
|
225
|
+
[manifest_signing_service, retain_repo_versions, pulp_labels, name, description, retain_checkpoints].hash
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
# Builds the object from hash
|