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
|
@@ -44,6 +44,9 @@ module PulpContainerClient
|
|
|
44
44
|
# Signing key ID
|
|
45
45
|
attr_accessor :key_id
|
|
46
46
|
|
|
47
|
+
# Signing key fingerprint
|
|
48
|
+
attr_accessor :fingerprint
|
|
49
|
+
|
|
47
50
|
# Timestamp of a signature
|
|
48
51
|
attr_accessor :timestamp
|
|
49
52
|
|
|
@@ -66,6 +69,7 @@ module PulpContainerClient
|
|
|
66
69
|
:'digest' => :'digest',
|
|
67
70
|
:'type' => :'type',
|
|
68
71
|
:'key_id' => :'key_id',
|
|
72
|
+
:'fingerprint' => :'fingerprint',
|
|
69
73
|
:'timestamp' => :'timestamp',
|
|
70
74
|
:'creator' => :'creator',
|
|
71
75
|
:'signed_manifest' => :'signed_manifest'
|
|
@@ -90,6 +94,7 @@ module PulpContainerClient
|
|
|
90
94
|
:'digest' => :'String',
|
|
91
95
|
:'type' => :'String',
|
|
92
96
|
:'key_id' => :'String',
|
|
97
|
+
:'fingerprint' => :'String',
|
|
93
98
|
:'timestamp' => :'Integer',
|
|
94
99
|
:'creator' => :'String',
|
|
95
100
|
:'signed_manifest' => :'String'
|
|
@@ -99,6 +104,7 @@ module PulpContainerClient
|
|
|
99
104
|
# List of attributes with nullable: true
|
|
100
105
|
def self.openapi_nullable
|
|
101
106
|
Set.new([
|
|
107
|
+
:'fingerprint',
|
|
102
108
|
])
|
|
103
109
|
end
|
|
104
110
|
|
|
@@ -167,6 +173,12 @@ module PulpContainerClient
|
|
|
167
173
|
self.key_id = nil
|
|
168
174
|
end
|
|
169
175
|
|
|
176
|
+
if attributes.key?(:'fingerprint')
|
|
177
|
+
self.fingerprint = attributes[:'fingerprint']
|
|
178
|
+
else
|
|
179
|
+
self.fingerprint = nil
|
|
180
|
+
end
|
|
181
|
+
|
|
170
182
|
if attributes.key?(:'timestamp')
|
|
171
183
|
self.timestamp = attributes[:'timestamp']
|
|
172
184
|
else
|
|
@@ -251,6 +263,7 @@ module PulpContainerClient
|
|
|
251
263
|
digest == o.digest &&
|
|
252
264
|
type == o.type &&
|
|
253
265
|
key_id == o.key_id &&
|
|
266
|
+
fingerprint == o.fingerprint &&
|
|
254
267
|
timestamp == o.timestamp &&
|
|
255
268
|
creator == o.creator &&
|
|
256
269
|
signed_manifest == o.signed_manifest
|
|
@@ -265,7 +278,7 @@ module PulpContainerClient
|
|
|
265
278
|
# Calculates hash code according to all attributes.
|
|
266
279
|
# @return [Integer] Hash code
|
|
267
280
|
def hash
|
|
268
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, digest, type, key_id, timestamp, creator, signed_manifest].hash
|
|
281
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, name, digest, type, key_id, fingerprint, timestamp, creator, signed_manifest].hash
|
|
269
282
|
end
|
|
270
283
|
|
|
271
284
|
# Builds the object from hash
|
|
@@ -16,26 +16,26 @@ require 'time'
|
|
|
16
16
|
module PulpContainerClient
|
|
17
17
|
# A serializer for ContainerDistribution.
|
|
18
18
|
class PatchedcontainerContainerDistribution
|
|
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
|
# Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
|
|
40
40
|
attr_accessor :private
|
|
41
41
|
|
|
@@ -45,13 +45,13 @@ module PulpContainerClient
|
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
46
|
def self.attribute_map
|
|
47
47
|
{
|
|
48
|
+
:'hidden' => :'hidden',
|
|
49
|
+
:'base_path' => :'base_path',
|
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
|
51
|
+
:'name' => :'name',
|
|
48
52
|
:'repository' => :'repository',
|
|
49
53
|
:'repository_version' => :'repository_version',
|
|
50
|
-
:'name' => :'name',
|
|
51
|
-
:'base_path' => :'base_path',
|
|
52
54
|
:'content_guard' => :'content_guard',
|
|
53
|
-
:'hidden' => :'hidden',
|
|
54
|
-
:'pulp_labels' => :'pulp_labels',
|
|
55
55
|
:'private' => :'private',
|
|
56
56
|
:'description' => :'description'
|
|
57
57
|
}
|
|
@@ -65,13 +65,13 @@ module PulpContainerClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
+
:'hidden' => :'Boolean',
|
|
69
|
+
:'base_path' => :'String',
|
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
+
:'name' => :'String',
|
|
68
72
|
:'repository' => :'String',
|
|
69
73
|
:'repository_version' => :'String',
|
|
70
|
-
:'name' => :'String',
|
|
71
|
-
:'base_path' => :'String',
|
|
72
74
|
:'content_guard' => :'String',
|
|
73
|
-
:'hidden' => :'Boolean',
|
|
74
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
75
75
|
:'private' => :'Boolean',
|
|
76
76
|
:'description' => :'String'
|
|
77
77
|
}
|
|
@@ -101,36 +101,36 @@ module PulpContainerClient
|
|
|
101
101
|
h[k.to_sym] = v
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
104
|
+
if attributes.key?(:'hidden')
|
|
105
|
+
self.hidden = attributes[:'hidden']
|
|
106
|
+
else
|
|
107
|
+
self.hidden = false
|
|
106
108
|
end
|
|
107
109
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
110
|
+
if attributes.key?(:'base_path')
|
|
111
|
+
self.base_path = attributes[:'base_path']
|
|
110
112
|
end
|
|
111
113
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
|
|
114
|
+
if attributes.key?(:'pulp_labels')
|
|
115
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
116
|
+
self.pulp_labels = value
|
|
117
|
+
end
|
|
114
118
|
end
|
|
115
119
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
120
|
+
if attributes.key?(:'name')
|
|
121
|
+
self.name = attributes[:'name']
|
|
118
122
|
end
|
|
119
123
|
|
|
120
|
-
if attributes.key?(:'
|
|
121
|
-
self.
|
|
124
|
+
if attributes.key?(:'repository')
|
|
125
|
+
self.repository = attributes[:'repository']
|
|
122
126
|
end
|
|
123
127
|
|
|
124
|
-
if attributes.key?(:'
|
|
125
|
-
self.
|
|
126
|
-
else
|
|
127
|
-
self.hidden = false
|
|
128
|
+
if attributes.key?(:'repository_version')
|
|
129
|
+
self.repository_version = attributes[:'repository_version']
|
|
128
130
|
end
|
|
129
131
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
|
|
132
|
-
self.pulp_labels = value
|
|
133
|
-
end
|
|
132
|
+
if attributes.key?(:'content_guard')
|
|
133
|
+
self.content_guard = attributes[:'content_guard']
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if attributes.key?(:'private')
|
|
@@ -147,14 +147,14 @@ module PulpContainerClient
|
|
|
147
147
|
def list_invalid_properties
|
|
148
148
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
149
149
|
invalid_properties = Array.new
|
|
150
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
151
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
150
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
155
151
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
156
152
|
end
|
|
157
153
|
|
|
154
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
155
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
158
|
if !@description.nil? && @description.to_s.length < 1
|
|
159
159
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
160
160
|
end
|
|
@@ -166,26 +166,12 @@ module PulpContainerClient
|
|
|
166
166
|
# @return true if the model is valid
|
|
167
167
|
def valid?
|
|
168
168
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
169
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
170
169
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
170
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
171
171
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
172
172
|
true
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
# Custom attribute writer method with validation
|
|
176
|
-
# @param [Object] name Value to be assigned
|
|
177
|
-
def name=(name)
|
|
178
|
-
if name.nil?
|
|
179
|
-
fail ArgumentError, 'name cannot be nil'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if name.to_s.length < 1
|
|
183
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
@name = name
|
|
187
|
-
end
|
|
188
|
-
|
|
189
175
|
# Custom attribute writer method with validation
|
|
190
176
|
# @param [Object] base_path Value to be assigned
|
|
191
177
|
def base_path=(base_path)
|
|
@@ -200,6 +186,20 @@ module PulpContainerClient
|
|
|
200
186
|
@base_path = base_path
|
|
201
187
|
end
|
|
202
188
|
|
|
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
|
# Custom attribute writer method with validation
|
|
204
204
|
# @param [Object] description Value to be assigned
|
|
205
205
|
def description=(description)
|
|
@@ -215,13 +215,13 @@ module PulpContainerClient
|
|
|
215
215
|
def ==(o)
|
|
216
216
|
return true if self.equal?(o)
|
|
217
217
|
self.class == o.class &&
|
|
218
|
+
hidden == o.hidden &&
|
|
219
|
+
base_path == o.base_path &&
|
|
220
|
+
pulp_labels == o.pulp_labels &&
|
|
221
|
+
name == o.name &&
|
|
218
222
|
repository == o.repository &&
|
|
219
223
|
repository_version == o.repository_version &&
|
|
220
|
-
name == o.name &&
|
|
221
|
-
base_path == o.base_path &&
|
|
222
224
|
content_guard == o.content_guard &&
|
|
223
|
-
hidden == o.hidden &&
|
|
224
|
-
pulp_labels == o.pulp_labels &&
|
|
225
225
|
private == o.private &&
|
|
226
226
|
description == o.description
|
|
227
227
|
end
|
|
@@ -235,7 +235,7 @@ module PulpContainerClient
|
|
|
235
235
|
# Calculates hash code according to all attributes.
|
|
236
236
|
# @return [Integer] Hash code
|
|
237
237
|
def hash
|
|
238
|
-
[
|
|
238
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, private, description].hash
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
|
@@ -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 PatchedcontainerContainerPullThroughDistribution
|
|
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,36 +111,36 @@ module PulpContainerClient
|
|
|
111
111
|
h[k.to_sym] = v
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
if attributes.key?(:'
|
|
115
|
-
self.
|
|
114
|
+
if attributes.key?(:'hidden')
|
|
115
|
+
self.hidden = attributes[:'hidden']
|
|
116
|
+
else
|
|
117
|
+
self.hidden = false
|
|
116
118
|
end
|
|
117
119
|
|
|
118
|
-
if attributes.key?(:'
|
|
119
|
-
self.
|
|
120
|
+
if attributes.key?(:'base_path')
|
|
121
|
+
self.base_path = attributes[:'base_path']
|
|
120
122
|
end
|
|
121
123
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
|
|
124
|
+
if attributes.key?(:'pulp_labels')
|
|
125
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
|
+
self.pulp_labels = value
|
|
127
|
+
end
|
|
124
128
|
end
|
|
125
129
|
|
|
126
|
-
if attributes.key?(:'
|
|
127
|
-
self.
|
|
130
|
+
if attributes.key?(:'name')
|
|
131
|
+
self.name = attributes[:'name']
|
|
128
132
|
end
|
|
129
133
|
|
|
130
|
-
if attributes.key?(:'
|
|
131
|
-
self.
|
|
134
|
+
if attributes.key?(:'repository')
|
|
135
|
+
self.repository = attributes[:'repository']
|
|
132
136
|
end
|
|
133
137
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
136
|
-
else
|
|
137
|
-
self.hidden = false
|
|
138
|
+
if attributes.key?(:'repository_version')
|
|
139
|
+
self.repository_version = attributes[:'repository_version']
|
|
138
140
|
end
|
|
139
141
|
|
|
140
|
-
if attributes.key?(:'
|
|
141
|
-
|
|
142
|
-
self.pulp_labels = value
|
|
143
|
-
end
|
|
142
|
+
if attributes.key?(:'content_guard')
|
|
143
|
+
self.content_guard = attributes[:'content_guard']
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
if attributes.key?(:'remote')
|
|
@@ -167,14 +167,14 @@ module PulpContainerClient
|
|
|
167
167
|
def list_invalid_properties
|
|
168
168
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
169
169
|
invalid_properties = Array.new
|
|
170
|
-
if !@name.nil? && @name.to_s.length < 1
|
|
171
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
172
|
-
end
|
|
173
|
-
|
|
174
170
|
if !@base_path.nil? && @base_path.to_s.length < 1
|
|
175
171
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
176
172
|
end
|
|
177
173
|
|
|
174
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
175
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
178
|
if !@description.nil? && @description.to_s.length < 1
|
|
179
179
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
180
180
|
end
|
|
@@ -186,26 +186,12 @@ module PulpContainerClient
|
|
|
186
186
|
# @return true if the model is valid
|
|
187
187
|
def valid?
|
|
188
188
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
189
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
190
189
|
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
|
190
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
191
191
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
192
192
|
true
|
|
193
193
|
end
|
|
194
194
|
|
|
195
|
-
# Custom attribute writer method with validation
|
|
196
|
-
# @param [Object] name Value to be assigned
|
|
197
|
-
def name=(name)
|
|
198
|
-
if name.nil?
|
|
199
|
-
fail ArgumentError, 'name cannot be nil'
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if name.to_s.length < 1
|
|
203
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
@name = name
|
|
207
|
-
end
|
|
208
|
-
|
|
209
195
|
# Custom attribute writer method with validation
|
|
210
196
|
# @param [Object] base_path Value to be assigned
|
|
211
197
|
def base_path=(base_path)
|
|
@@ -220,6 +206,20 @@ module PulpContainerClient
|
|
|
220
206
|
@base_path = base_path
|
|
221
207
|
end
|
|
222
208
|
|
|
209
|
+
# Custom attribute writer method with validation
|
|
210
|
+
# @param [Object] name Value to be assigned
|
|
211
|
+
def name=(name)
|
|
212
|
+
if name.nil?
|
|
213
|
+
fail ArgumentError, 'name cannot be nil'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if name.to_s.length < 1
|
|
217
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
@name = name
|
|
221
|
+
end
|
|
222
|
+
|
|
223
223
|
# Custom attribute writer method with validation
|
|
224
224
|
# @param [Object] description Value to be assigned
|
|
225
225
|
def description=(description)
|
|
@@ -235,13 +235,13 @@ module PulpContainerClient
|
|
|
235
235
|
def ==(o)
|
|
236
236
|
return true if self.equal?(o)
|
|
237
237
|
self.class == o.class &&
|
|
238
|
+
hidden == o.hidden &&
|
|
239
|
+
base_path == o.base_path &&
|
|
240
|
+
pulp_labels == o.pulp_labels &&
|
|
241
|
+
name == o.name &&
|
|
238
242
|
repository == o.repository &&
|
|
239
243
|
repository_version == o.repository_version &&
|
|
240
|
-
name == o.name &&
|
|
241
|
-
base_path == o.base_path &&
|
|
242
244
|
content_guard == o.content_guard &&
|
|
243
|
-
hidden == o.hidden &&
|
|
244
|
-
pulp_labels == o.pulp_labels &&
|
|
245
245
|
remote == o.remote &&
|
|
246
246
|
distributions == o.distributions &&
|
|
247
247
|
private == o.private &&
|
|
@@ -257,7 +257,7 @@ module PulpContainerClient
|
|
|
257
257
|
# Calculates hash code according to all attributes.
|
|
258
258
|
# @return [Integer] Hash code
|
|
259
259
|
def hash
|
|
260
|
-
[
|
|
260
|
+
[hidden, base_path, pulp_labels, name, repository, repository_version, content_guard, remote, distributions, private, description].hash
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
# Builds the object from hash
|