pulp_container_client 2.20.4 → 2.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -10
- data/docs/ContainerBlobResponse.md +2 -0
- data/docs/ContainerContainerDistribution.md +7 -7
- data/docs/ContainerContainerDistributionResponse.md +16 -12
- data/docs/ContainerContainerNamespaceResponse.md +2 -0
- data/docs/ContainerContainerPullThroughDistribution.md +7 -7
- data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -12
- data/docs/ContainerContainerPullThroughRemote.md +6 -2
- data/docs/ContainerContainerPullThroughRemoteResponse.md +8 -2
- data/docs/ContainerContainerPushRepository.md +7 -7
- data/docs/ContainerContainerPushRepositoryResponse.md +15 -13
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +2 -0
- data/docs/ContainerManifestResponse.md +2 -0
- data/docs/ContainerManifestSignatureResponse.md +2 -0
- data/docs/ContainerTagResponse.md +2 -0
- data/docs/ContentBlobsApi.md +10 -8
- data/docs/ContentManifestsApi.md +10 -8
- data/docs/ContentSignaturesApi.md +10 -8
- data/docs/ContentTagsApi.md +10 -8
- data/docs/DistributionsContainerApi.md +4 -2
- data/docs/DistributionsPullThroughApi.md +4 -2
- data/docs/OCIBuildImage.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
- data/docs/PatchedcontainerContainerPullThroughRemote.md +6 -2
- data/docs/PatchedcontainerContainerPushRepository.md +7 -7
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/{Policy762Enum.md → Policy692Enum.md} +2 -2
- data/docs/{Policy8e2Enum.md → Policy7e0Enum.md} +2 -2
- data/docs/PulpContainerNamespacesApi.md +4 -2
- data/docs/RemotesContainerApi.md +4 -2
- data/docs/RemotesPullThroughApi.md +4 -2
- data/docs/RepositoriesContainerApi.md +10 -8
- data/docs/RepositoriesContainerPushApi.md +8 -6
- data/docs/RepositoriesContainerPushVersionsApi.md +8 -6
- data/docs/RepositoriesContainerVersionsApi.md +8 -6
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +11 -8
- data/lib/pulp_container_client/api/content_manifests_api.rb +11 -8
- data/lib/pulp_container_client/api/content_signatures_api.rb +11 -8
- data/lib/pulp_container_client/api/content_tags_api.rb +11 -8
- data/lib/pulp_container_client/api/distributions_container_api.rb +5 -2
- data/lib/pulp_container_client/api/distributions_pull_through_api.rb +5 -2
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +5 -2
- data/lib/pulp_container_client/api/remotes_container_api.rb +5 -2
- data/lib/pulp_container_client/api/remotes_pull_through_api.rb +5 -2
- data/lib/pulp_container_client/api/repositories_container_api.rb +11 -8
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +9 -6
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +10 -7
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +10 -7
- data/lib/pulp_container_client/models/container_blob_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +74 -54
- data/lib/pulp_container_client/models/container_container_namespace_response.rb +11 -1
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +74 -54
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +32 -6
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +41 -5
- data/lib/pulp_container_client/models/container_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +60 -50
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +12 -2
- data/lib/pulp_container_client/models/container_container_repository_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_response.rb +11 -1
- data/lib/pulp_container_client/models/container_manifest_signature_response.rb +11 -1
- data/lib/pulp_container_client/models/container_tag_response.rb +11 -1
- data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +32 -6
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -46
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/{policy762_enum.rb → policy692_enum.rb} +3 -3
- data/lib/pulp_container_client/models/{policy8e2_enum.rb → policy7e0_enum.rb} +3 -3
- data/lib/pulp_container_client/models/repository_version_response.rb +12 -2
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +2 -2
- data/spec/api/content_blobs_api_spec.rb +5 -4
- data/spec/api/content_manifests_api_spec.rb +5 -4
- data/spec/api/content_signatures_api_spec.rb +5 -4
- data/spec/api/content_tags_api_spec.rb +5 -4
- data/spec/api/distributions_container_api_spec.rb +2 -1
- data/spec/api/distributions_pull_through_api_spec.rb +2 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +2 -1
- data/spec/api/remotes_container_api_spec.rb +2 -1
- data/spec/api/remotes_pull_through_api_spec.rb +2 -1
- data/spec/api/repositories_container_api_spec.rb +5 -4
- data/spec/api/repositories_container_push_api_spec.rb +4 -3
- data/spec/api/repositories_container_push_versions_api_spec.rb +4 -3
- data/spec/api/repositories_container_versions_api_spec.rb +4 -3
- data/spec/models/container_blob_response_spec.rb +6 -0
- data/spec/models/container_container_distribution_response_spec.rb +20 -8
- 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_pull_through_distribution_response_spec.rb +20 -8
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_remote_response_spec.rb +18 -0
- data/spec/models/container_container_pull_through_remote_spec.rb +12 -0
- data/spec/models/container_container_push_repository_response_spec.rb +14 -8
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/container_container_remote_response_spec.rb +6 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_manifest_response_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +6 -0
- data/spec/models/container_tag_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_pull_through_remote_spec.rb +12 -0
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/{policy762_enum_spec.rb → policy692_enum_spec.rb} +6 -6
- data/spec/models/{policy8e2_enum_spec.rb → policy7e0_enum_spec.rb} +6 -6
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +9 -9
@@ -15,30 +15,36 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
|
19
|
-
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
20
22
|
|
21
23
|
# Whether this distribution should be shown in the content app.
|
22
24
|
attr_accessor :hidden
|
23
25
|
|
26
|
+
attr_accessor :pulp_href
|
27
|
+
|
28
|
+
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
29
|
+
attr_accessor :no_content_change_since
|
30
|
+
|
31
|
+
# Timestamp of creation.
|
32
|
+
attr_accessor :pulp_created
|
33
|
+
|
24
34
|
# The latest RepositoryVersion for this Repository will be served.
|
25
35
|
attr_accessor :repository
|
26
36
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
37
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
+
attr_accessor :name
|
29
39
|
|
30
40
|
# 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.
|
31
41
|
attr_accessor :pulp_last_updated
|
32
42
|
|
33
|
-
|
34
|
-
|
35
|
-
attr_accessor :pulp_href
|
36
|
-
|
37
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
38
|
-
attr_accessor :name
|
43
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
44
|
+
attr_accessor :base_path
|
39
45
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
46
|
+
# The Pulp Resource Name (PRN).
|
47
|
+
attr_accessor :prn
|
42
48
|
|
43
49
|
# RepositoryVersion to be served
|
44
50
|
attr_accessor :repository_version
|
@@ -61,15 +67,17 @@ module PulpContainerClient
|
|
61
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
68
|
def self.attribute_map
|
63
69
|
{
|
64
|
-
:'pulp_created' => :'pulp_created',
|
65
|
-
:'hidden' => :'hidden',
|
66
|
-
:'repository' => :'repository',
|
67
|
-
:'base_path' => :'base_path',
|
68
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
69
70
|
:'pulp_labels' => :'pulp_labels',
|
71
|
+
:'content_guard' => :'content_guard',
|
72
|
+
:'hidden' => :'hidden',
|
70
73
|
:'pulp_href' => :'pulp_href',
|
74
|
+
:'no_content_change_since' => :'no_content_change_since',
|
75
|
+
:'pulp_created' => :'pulp_created',
|
76
|
+
:'repository' => :'repository',
|
71
77
|
:'name' => :'name',
|
72
|
-
:'
|
78
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
79
|
+
:'base_path' => :'base_path',
|
80
|
+
:'prn' => :'prn',
|
73
81
|
:'repository_version' => :'repository_version',
|
74
82
|
:'registry_path' => :'registry_path',
|
75
83
|
:'remote' => :'remote',
|
@@ -82,15 +90,17 @@ module PulpContainerClient
|
|
82
90
|
# Attribute type mapping.
|
83
91
|
def self.openapi_types
|
84
92
|
{
|
85
|
-
:'pulp_created' => :'DateTime',
|
86
|
-
:'hidden' => :'Boolean',
|
87
|
-
:'repository' => :'String',
|
88
|
-
:'base_path' => :'String',
|
89
|
-
:'pulp_last_updated' => :'DateTime',
|
90
93
|
:'pulp_labels' => :'Hash<String, String>',
|
94
|
+
:'content_guard' => :'String',
|
95
|
+
:'hidden' => :'Boolean',
|
91
96
|
:'pulp_href' => :'String',
|
97
|
+
:'no_content_change_since' => :'String',
|
98
|
+
:'pulp_created' => :'DateTime',
|
99
|
+
:'repository' => :'String',
|
92
100
|
:'name' => :'String',
|
93
|
-
:'
|
101
|
+
:'pulp_last_updated' => :'DateTime',
|
102
|
+
:'base_path' => :'String',
|
103
|
+
:'prn' => :'String',
|
94
104
|
:'repository_version' => :'String',
|
95
105
|
:'registry_path' => :'String',
|
96
106
|
:'remote' => :'String',
|
@@ -124,8 +134,14 @@ module PulpContainerClient
|
|
124
134
|
h[k.to_sym] = v
|
125
135
|
}
|
126
136
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
137
|
+
if attributes.key?(:'pulp_labels')
|
138
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
139
|
+
self.pulp_labels = value
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'content_guard')
|
144
|
+
self.content_guard = attributes[:'content_guard']
|
129
145
|
end
|
130
146
|
|
131
147
|
if attributes.key?(:'hidden')
|
@@ -134,34 +150,36 @@ module PulpContainerClient
|
|
134
150
|
self.hidden = false
|
135
151
|
end
|
136
152
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'base_path')
|
142
|
-
self.base_path = attributes[:'base_path']
|
153
|
+
if attributes.key?(:'pulp_href')
|
154
|
+
self.pulp_href = attributes[:'pulp_href']
|
143
155
|
end
|
144
156
|
|
145
|
-
if attributes.key?(:'
|
146
|
-
self.
|
157
|
+
if attributes.key?(:'no_content_change_since')
|
158
|
+
self.no_content_change_since = attributes[:'no_content_change_since']
|
147
159
|
end
|
148
160
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
|
151
|
-
self.pulp_labels = value
|
152
|
-
end
|
161
|
+
if attributes.key?(:'pulp_created')
|
162
|
+
self.pulp_created = attributes[:'pulp_created']
|
153
163
|
end
|
154
164
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
165
|
+
if attributes.key?(:'repository')
|
166
|
+
self.repository = attributes[:'repository']
|
157
167
|
end
|
158
168
|
|
159
169
|
if attributes.key?(:'name')
|
160
170
|
self.name = attributes[:'name']
|
161
171
|
end
|
162
172
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
173
|
+
if attributes.key?(:'pulp_last_updated')
|
174
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.key?(:'base_path')
|
178
|
+
self.base_path = attributes[:'base_path']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.key?(:'prn')
|
182
|
+
self.prn = attributes[:'prn']
|
165
183
|
end
|
166
184
|
|
167
185
|
if attributes.key?(:'repository_version')
|
@@ -193,22 +211,22 @@ module PulpContainerClient
|
|
193
211
|
# @return Array for valid properties with the reasons
|
194
212
|
def list_invalid_properties
|
195
213
|
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
214
|
if @name.nil?
|
201
215
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
202
216
|
end
|
203
217
|
|
218
|
+
if @base_path.nil?
|
219
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
220
|
+
end
|
221
|
+
|
204
222
|
invalid_properties
|
205
223
|
end
|
206
224
|
|
207
225
|
# Check to see if the all the properties in the model are valid
|
208
226
|
# @return true if the model is valid
|
209
227
|
def valid?
|
210
|
-
return false if @base_path.nil?
|
211
228
|
return false if @name.nil?
|
229
|
+
return false if @base_path.nil?
|
212
230
|
true
|
213
231
|
end
|
214
232
|
|
@@ -217,15 +235,17 @@ module PulpContainerClient
|
|
217
235
|
def ==(o)
|
218
236
|
return true if self.equal?(o)
|
219
237
|
self.class == o.class &&
|
220
|
-
pulp_created == o.pulp_created &&
|
221
|
-
hidden == o.hidden &&
|
222
|
-
repository == o.repository &&
|
223
|
-
base_path == o.base_path &&
|
224
|
-
pulp_last_updated == o.pulp_last_updated &&
|
225
238
|
pulp_labels == o.pulp_labels &&
|
239
|
+
content_guard == o.content_guard &&
|
240
|
+
hidden == o.hidden &&
|
226
241
|
pulp_href == o.pulp_href &&
|
242
|
+
no_content_change_since == o.no_content_change_since &&
|
243
|
+
pulp_created == o.pulp_created &&
|
244
|
+
repository == o.repository &&
|
227
245
|
name == o.name &&
|
228
|
-
|
246
|
+
pulp_last_updated == o.pulp_last_updated &&
|
247
|
+
base_path == o.base_path &&
|
248
|
+
prn == o.prn &&
|
229
249
|
repository_version == o.repository_version &&
|
230
250
|
registry_path == o.registry_path &&
|
231
251
|
remote == o.remote &&
|
@@ -243,7 +263,7 @@ module PulpContainerClient
|
|
243
263
|
# Calculates hash code according to all attributes.
|
244
264
|
# @return [Integer] Hash code
|
245
265
|
def hash
|
246
|
-
[
|
266
|
+
[pulp_labels, content_guard, hidden, pulp_href, no_content_change_since, pulp_created, repository, name, pulp_last_updated, base_path, prn, repository_version, registry_path, remote, namespace, private, description].hash
|
247
267
|
end
|
248
268
|
|
249
269
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module PulpContainerClient
|
|
17
17
|
class ContainerContainerNamespaceResponse
|
18
18
|
attr_accessor :pulp_href
|
19
19
|
|
20
|
+
# The Pulp Resource Name (PRN).
|
21
|
+
attr_accessor :prn
|
22
|
+
|
20
23
|
# Timestamp of creation.
|
21
24
|
attr_accessor :pulp_created
|
22
25
|
|
@@ -29,6 +32,7 @@ module PulpContainerClient
|
|
29
32
|
def self.attribute_map
|
30
33
|
{
|
31
34
|
:'pulp_href' => :'pulp_href',
|
35
|
+
:'prn' => :'prn',
|
32
36
|
:'pulp_created' => :'pulp_created',
|
33
37
|
:'pulp_last_updated' => :'pulp_last_updated',
|
34
38
|
:'name' => :'name'
|
@@ -39,6 +43,7 @@ module PulpContainerClient
|
|
39
43
|
def self.openapi_types
|
40
44
|
{
|
41
45
|
:'pulp_href' => :'String',
|
46
|
+
:'prn' => :'String',
|
42
47
|
:'pulp_created' => :'DateTime',
|
43
48
|
:'pulp_last_updated' => :'DateTime',
|
44
49
|
:'name' => :'String'
|
@@ -70,6 +75,10 @@ module PulpContainerClient
|
|
70
75
|
self.pulp_href = attributes[:'pulp_href']
|
71
76
|
end
|
72
77
|
|
78
|
+
if attributes.key?(:'prn')
|
79
|
+
self.prn = attributes[:'prn']
|
80
|
+
end
|
81
|
+
|
73
82
|
if attributes.key?(:'pulp_created')
|
74
83
|
self.pulp_created = attributes[:'pulp_created']
|
75
84
|
end
|
@@ -107,6 +116,7 @@ module PulpContainerClient
|
|
107
116
|
return true if self.equal?(o)
|
108
117
|
self.class == o.class &&
|
109
118
|
pulp_href == o.pulp_href &&
|
119
|
+
prn == o.prn &&
|
110
120
|
pulp_created == o.pulp_created &&
|
111
121
|
pulp_last_updated == o.pulp_last_updated &&
|
112
122
|
name == o.name
|
@@ -121,7 +131,7 @@ module PulpContainerClient
|
|
121
131
|
# Calculates hash code according to all attributes.
|
122
132
|
# @return [Integer] Hash code
|
123
133
|
def hash
|
124
|
-
[pulp_href, pulp_created, pulp_last_updated, name].hash
|
134
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name].hash
|
125
135
|
end
|
126
136
|
|
127
137
|
# Builds the object from hash
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class ContainerContainerPullThroughDistribution
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
20
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
21
|
+
attr_accessor :content_guard
|
22
|
+
|
18
23
|
# Whether this distribution should be shown in the content app.
|
19
24
|
attr_accessor :hidden
|
20
25
|
|
21
26
|
# The latest RepositoryVersion for this Repository will be served.
|
22
27
|
attr_accessor :repository
|
23
28
|
|
24
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
|
-
attr_accessor :base_path
|
26
|
-
|
27
|
-
attr_accessor :pulp_labels
|
28
|
-
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
30
|
attr_accessor :name
|
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
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
51
|
+
:'content_guard' => :'content_guard',
|
50
52
|
:'hidden' => :'hidden',
|
51
53
|
:'repository' => :'repository',
|
52
|
-
:'base_path' => :'base_path',
|
53
|
-
:'pulp_labels' => :'pulp_labels',
|
54
54
|
:'name' => :'name',
|
55
|
-
:'
|
55
|
+
:'base_path' => :'base_path',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
+
:'pulp_labels' => :'Hash<String, String>',
|
67
|
+
:'content_guard' => :'String',
|
66
68
|
:'hidden' => :'Boolean',
|
67
69
|
:'repository' => :'String',
|
68
|
-
:'base_path' => :'String',
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
70
70
|
:'name' => :'String',
|
71
|
-
:'
|
71
|
+
:'base_path' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,6 +99,16 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
+
if attributes.key?(:'pulp_labels')
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
|
+
self.pulp_labels = value
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'content_guard')
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
110
|
+
end
|
111
|
+
|
102
112
|
if attributes.key?(:'hidden')
|
103
113
|
self.hidden = attributes[:'hidden']
|
104
114
|
else
|
@@ -109,22 +119,12 @@ module PulpContainerClient
|
|
109
119
|
self.repository = attributes[:'repository']
|
110
120
|
end
|
111
121
|
|
112
|
-
if attributes.key?(:'base_path')
|
113
|
-
self.base_path = attributes[:'base_path']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'pulp_labels')
|
117
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
118
|
-
self.pulp_labels = value
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
122
|
if attributes.key?(:'name')
|
123
123
|
self.name = attributes[:'name']
|
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)
|
@@ -232,12 +232,12 @@ module PulpContainerClient
|
|
232
232
|
def ==(o)
|
233
233
|
return true if self.equal?(o)
|
234
234
|
self.class == o.class &&
|
235
|
+
pulp_labels == o.pulp_labels &&
|
236
|
+
content_guard == o.content_guard &&
|
235
237
|
hidden == o.hidden &&
|
236
238
|
repository == o.repository &&
|
237
|
-
base_path == o.base_path &&
|
238
|
-
pulp_labels == o.pulp_labels &&
|
239
239
|
name == o.name &&
|
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
|
-
[
|
256
|
+
[pulp_labels, content_guard, hidden, repository, name, base_path, remote, distributions, private, description].hash
|
257
257
|
end
|
258
258
|
|
259
259
|
# Builds the object from hash
|