pulp_container_client 2.27.12 → 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 +6 -6
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +16 -16
- data/docs/ContainerContainerNamespace.md +3 -1
- data/docs/ContainerContainerNamespaceResponse.md +3 -1
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
- 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 +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- 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/distributions_pull_through_api.rb +8 -4
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +76 -76
- 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 +55 -55
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +76 -76
- data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +66 -66
- 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 +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
- 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/distributions_pull_through_api_spec.rb +4 -2
- data/spec/api/pulp_container_namespaces_api_spec.rb +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +11 -11
- data/spec/models/container_container_distribution_spec.rb +6 -6
- 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 +11 -11
- 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 +4 -4
- 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 +6 -6
- data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
- metadata +62 -62
|
@@ -16,42 +16,42 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class ContainerContainerDistributionResponse
|
|
19
|
-
attr_accessor :pulp_href
|
|
20
|
-
|
|
21
|
-
# Timestamp of creation.
|
|
22
|
-
attr_accessor :pulp_created
|
|
23
|
-
|
|
24
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
25
|
-
attr_accessor :content_guard
|
|
26
|
-
|
|
27
19
|
# Whether this distribution should be shown in the content app.
|
|
28
20
|
attr_accessor :hidden
|
|
29
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
|
+
|
|
30
25
|
# The Pulp Resource Name (PRN).
|
|
31
26
|
attr_accessor :prn
|
|
32
27
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
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
|
|
35
34
|
|
|
36
35
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
37
36
|
attr_accessor :name
|
|
38
37
|
|
|
39
|
-
attr_accessor :pulp_labels
|
|
40
|
-
|
|
41
38
|
# The latest RepositoryVersion for this Repository will be served.
|
|
42
39
|
attr_accessor :repository
|
|
43
40
|
|
|
44
|
-
#
|
|
45
|
-
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
|
|
43
|
+
|
|
44
|
+
# The Pulp Resource Name (PRN) of the associated optional content guard.
|
|
45
|
+
attr_accessor :content_guard_prn
|
|
46
46
|
|
|
47
47
|
# RepositoryVersion to be served
|
|
48
48
|
attr_accessor :repository_version
|
|
49
49
|
|
|
50
|
-
# Timestamp of
|
|
51
|
-
attr_accessor :
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
52
52
|
|
|
53
|
-
#
|
|
54
|
-
attr_accessor :
|
|
53
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
54
|
+
attr_accessor :content_guard
|
|
55
55
|
|
|
56
56
|
# The Registry hostname/name/ to use with docker pull command defined by this distribution.
|
|
57
57
|
attr_accessor :registry_path
|
|
@@ -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
|
-
:'pulp_href' => :'pulp_href',
|
|
75
|
-
:'pulp_created' => :'pulp_created',
|
|
76
|
-
:'content_guard' => :'content_guard',
|
|
77
74
|
:'hidden' => :'hidden',
|
|
75
|
+
:'base_path' => :'base_path',
|
|
78
76
|
:'prn' => :'prn',
|
|
79
|
-
:'
|
|
80
|
-
:'name' => :'name',
|
|
77
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
81
78
|
:'pulp_labels' => :'pulp_labels',
|
|
79
|
+
:'pulp_href' => :'pulp_href',
|
|
80
|
+
:'name' => :'name',
|
|
82
81
|
:'repository' => :'repository',
|
|
83
|
-
:'base_path' => :'base_path',
|
|
84
|
-
:'repository_version' => :'repository_version',
|
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
82
|
:'no_content_change_since' => :'no_content_change_since',
|
|
83
|
+
:'content_guard_prn' => :'content_guard_prn',
|
|
84
|
+
:'repository_version' => :'repository_version',
|
|
85
|
+
:'pulp_created' => :'pulp_created',
|
|
86
|
+
:'content_guard' => :'content_guard',
|
|
87
87
|
:'registry_path' => :'registry_path',
|
|
88
88
|
:'remote' => :'remote',
|
|
89
89
|
:'namespace' => :'namespace',
|
|
@@ -100,19 +100,19 @@ module PulpContainerClient
|
|
|
100
100
|
# Attribute type mapping.
|
|
101
101
|
def self.openapi_types
|
|
102
102
|
{
|
|
103
|
-
:'pulp_href' => :'String',
|
|
104
|
-
:'pulp_created' => :'Time',
|
|
105
|
-
:'content_guard' => :'String',
|
|
106
103
|
:'hidden' => :'Boolean',
|
|
104
|
+
:'base_path' => :'String',
|
|
107
105
|
:'prn' => :'String',
|
|
108
|
-
:'
|
|
109
|
-
:'name' => :'String',
|
|
106
|
+
:'pulp_last_updated' => :'Time',
|
|
110
107
|
:'pulp_labels' => :'Hash<String, String>',
|
|
108
|
+
:'pulp_href' => :'String',
|
|
109
|
+
:'name' => :'String',
|
|
111
110
|
:'repository' => :'String',
|
|
112
|
-
:'base_path' => :'String',
|
|
113
|
-
:'repository_version' => :'String',
|
|
114
|
-
:'pulp_last_updated' => :'Time',
|
|
115
111
|
:'no_content_change_since' => :'String',
|
|
112
|
+
:'content_guard_prn' => :'String',
|
|
113
|
+
:'repository_version' => :'String',
|
|
114
|
+
:'pulp_created' => :'Time',
|
|
115
|
+
:'content_guard' => :'String',
|
|
116
116
|
:'registry_path' => :'String',
|
|
117
117
|
:'remote' => :'String',
|
|
118
118
|
:'namespace' => :'String',
|
|
@@ -145,36 +145,24 @@ module PulpContainerClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'pulp_href')
|
|
149
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
if attributes.key?(:'pulp_created')
|
|
153
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
if attributes.key?(:'content_guard')
|
|
157
|
-
self.content_guard = attributes[:'content_guard']
|
|
158
|
-
end
|
|
159
|
-
|
|
160
148
|
if attributes.key?(:'hidden')
|
|
161
149
|
self.hidden = attributes[:'hidden']
|
|
162
150
|
else
|
|
163
151
|
self.hidden = false
|
|
164
152
|
end
|
|
165
153
|
|
|
166
|
-
if attributes.key?(:'
|
|
167
|
-
self.
|
|
154
|
+
if attributes.key?(:'base_path')
|
|
155
|
+
self.base_path = attributes[:'base_path']
|
|
156
|
+
else
|
|
157
|
+
self.base_path = nil
|
|
168
158
|
end
|
|
169
159
|
|
|
170
|
-
if attributes.key?(:'
|
|
171
|
-
self.
|
|
160
|
+
if attributes.key?(:'prn')
|
|
161
|
+
self.prn = attributes[:'prn']
|
|
172
162
|
end
|
|
173
163
|
|
|
174
|
-
if attributes.key?(:'
|
|
175
|
-
self.
|
|
176
|
-
else
|
|
177
|
-
self.name = nil
|
|
164
|
+
if attributes.key?(:'pulp_last_updated')
|
|
165
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
178
166
|
end
|
|
179
167
|
|
|
180
168
|
if attributes.key?(:'pulp_labels')
|
|
@@ -183,26 +171,38 @@ module PulpContainerClient
|
|
|
183
171
|
end
|
|
184
172
|
end
|
|
185
173
|
|
|
174
|
+
if attributes.key?(:'pulp_href')
|
|
175
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'name')
|
|
179
|
+
self.name = attributes[:'name']
|
|
180
|
+
else
|
|
181
|
+
self.name = nil
|
|
182
|
+
end
|
|
183
|
+
|
|
186
184
|
if attributes.key?(:'repository')
|
|
187
185
|
self.repository = attributes[:'repository']
|
|
188
186
|
end
|
|
189
187
|
|
|
190
|
-
if attributes.key?(:'
|
|
191
|
-
self.
|
|
192
|
-
|
|
193
|
-
|
|
188
|
+
if attributes.key?(:'no_content_change_since')
|
|
189
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'content_guard_prn')
|
|
193
|
+
self.content_guard_prn = attributes[:'content_guard_prn']
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
if attributes.key?(:'repository_version')
|
|
197
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?(:'registry_path')
|
|
@@ -231,14 +231,14 @@ module PulpContainerClient
|
|
|
231
231
|
def list_invalid_properties
|
|
232
232
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
233
233
|
invalid_properties = Array.new
|
|
234
|
-
if @name.nil?
|
|
235
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
236
|
-
end
|
|
237
|
-
|
|
238
234
|
if @base_path.nil?
|
|
239
235
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
240
236
|
end
|
|
241
237
|
|
|
238
|
+
if @name.nil?
|
|
239
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
240
|
+
end
|
|
241
|
+
|
|
242
242
|
invalid_properties
|
|
243
243
|
end
|
|
244
244
|
|
|
@@ -246,8 +246,8 @@ module PulpContainerClient
|
|
|
246
246
|
# @return true if the model is valid
|
|
247
247
|
def valid?
|
|
248
248
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
249
|
-
return false if @name.nil?
|
|
250
249
|
return false if @base_path.nil?
|
|
250
|
+
return false if @name.nil?
|
|
251
251
|
true
|
|
252
252
|
end
|
|
253
253
|
|
|
@@ -256,19 +256,19 @@ module PulpContainerClient
|
|
|
256
256
|
def ==(o)
|
|
257
257
|
return true if self.equal?(o)
|
|
258
258
|
self.class == o.class &&
|
|
259
|
-
pulp_href == o.pulp_href &&
|
|
260
|
-
pulp_created == o.pulp_created &&
|
|
261
|
-
content_guard == o.content_guard &&
|
|
262
259
|
hidden == o.hidden &&
|
|
260
|
+
base_path == o.base_path &&
|
|
263
261
|
prn == o.prn &&
|
|
264
|
-
|
|
265
|
-
name == o.name &&
|
|
262
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
266
263
|
pulp_labels == o.pulp_labels &&
|
|
264
|
+
pulp_href == o.pulp_href &&
|
|
265
|
+
name == o.name &&
|
|
267
266
|
repository == o.repository &&
|
|
268
|
-
base_path == o.base_path &&
|
|
269
|
-
repository_version == o.repository_version &&
|
|
270
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
271
267
|
no_content_change_since == o.no_content_change_since &&
|
|
268
|
+
content_guard_prn == o.content_guard_prn &&
|
|
269
|
+
repository_version == o.repository_version &&
|
|
270
|
+
pulp_created == o.pulp_created &&
|
|
271
|
+
content_guard == o.content_guard &&
|
|
272
272
|
registry_path == o.registry_path &&
|
|
273
273
|
remote == o.remote &&
|
|
274
274
|
namespace == o.namespace &&
|
|
@@ -285,7 +285,7 @@ module PulpContainerClient
|
|
|
285
285
|
# Calculates hash code according to all attributes.
|
|
286
286
|
# @return [Integer] Hash code
|
|
287
287
|
def hash
|
|
288
|
-
[
|
|
288
|
+
[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, registry_path, remote, namespace, private, description].hash
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
# Builds the object from hash
|
|
@@ -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
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
|
20
|
-
attr_accessor :content_guard
|
|
21
|
-
|
|
22
19
|
# Whether this distribution should be shown in the content app.
|
|
23
20
|
attr_accessor :hidden
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
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
|
|
27
24
|
|
|
28
25
|
attr_accessor :pulp_labels
|
|
29
26
|
|
|
27
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
30
|
# The latest RepositoryVersion for this Repository will be served.
|
|
31
31
|
attr_accessor :repository
|
|
32
32
|
|
|
33
|
-
# The registry path exposed by this pull-through distribution.
|
|
34
|
-
attr_accessor :base_path
|
|
35
|
-
|
|
36
33
|
# RepositoryVersion to be served
|
|
37
34
|
attr_accessor :repository_version
|
|
38
35
|
|
|
36
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
37
|
+
attr_accessor :content_guard
|
|
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
|
-
:'content_guard' => :'content_guard',
|
|
55
54
|
:'hidden' => :'hidden',
|
|
56
|
-
:'
|
|
55
|
+
:'base_path' => :'base_path',
|
|
57
56
|
:'pulp_labels' => :'pulp_labels',
|
|
57
|
+
:'name' => :'name',
|
|
58
58
|
:'repository' => :'repository',
|
|
59
|
-
:'base_path' => :'base_path',
|
|
60
59
|
:'repository_version' => :'repository_version',
|
|
60
|
+
:'content_guard' => :'content_guard',
|
|
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
|
-
:'content_guard' => :'String',
|
|
77
76
|
:'hidden' => :'Boolean',
|
|
78
|
-
:'
|
|
77
|
+
:'base_path' => :'String',
|
|
79
78
|
:'pulp_labels' => :'Hash<String, String>',
|
|
79
|
+
:'name' => :'String',
|
|
80
80
|
:'repository' => :'String',
|
|
81
|
-
:'base_path' => :'String',
|
|
82
81
|
:'repository_version' => :'String',
|
|
82
|
+
:'content_guard' => :'String',
|
|
83
83
|
:'remote' => :'String',
|
|
84
84
|
:'distributions' => :'Array<String>',
|
|
85
85
|
:'private' => :'Boolean',
|
|
@@ -111,20 +111,16 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'content_guard')
|
|
115
|
-
self.content_guard = attributes[:'content_guard']
|
|
116
|
-
end
|
|
117
|
-
|
|
118
114
|
if attributes.key?(:'hidden')
|
|
119
115
|
self.hidden = attributes[:'hidden']
|
|
120
116
|
else
|
|
121
117
|
self.hidden = false
|
|
122
118
|
end
|
|
123
119
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
126
122
|
else
|
|
127
|
-
self.
|
|
123
|
+
self.base_path = nil
|
|
128
124
|
end
|
|
129
125
|
|
|
130
126
|
if attributes.key?(:'pulp_labels')
|
|
@@ -133,20 +129,24 @@ module PulpContainerClient
|
|
|
133
129
|
end
|
|
134
130
|
end
|
|
135
131
|
|
|
136
|
-
if attributes.key?(:'
|
|
137
|
-
self.
|
|
132
|
+
if attributes.key?(:'name')
|
|
133
|
+
self.name = attributes[:'name']
|
|
134
|
+
else
|
|
135
|
+
self.name = nil
|
|
138
136
|
end
|
|
139
137
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
self.
|
|
142
|
-
else
|
|
143
|
-
self.base_path = nil
|
|
138
|
+
if attributes.key?(:'repository')
|
|
139
|
+
self.repository = attributes[:'repository']
|
|
144
140
|
end
|
|
145
141
|
|
|
146
142
|
if attributes.key?(:'repository_version')
|
|
147
143
|
self.repository_version = attributes[:'repository_version']
|
|
148
144
|
end
|
|
149
145
|
|
|
146
|
+
if attributes.key?(:'content_guard')
|
|
147
|
+
self.content_guard = attributes[:'content_guard']
|
|
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)
|
|
@@ -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
|
-
content_guard == o.content_guard &&
|
|
260
259
|
hidden == o.hidden &&
|
|
261
|
-
|
|
260
|
+
base_path == o.base_path &&
|
|
262
261
|
pulp_labels == o.pulp_labels &&
|
|
262
|
+
name == o.name &&
|
|
263
263
|
repository == o.repository &&
|
|
264
|
-
base_path == o.base_path &&
|
|
265
264
|
repository_version == o.repository_version &&
|
|
265
|
+
content_guard == o.content_guard &&
|
|
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
|