pulp_container_client 2.14.4 → 2.14.6
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 +7 -5
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContentBlobsApi.md +6 -2
- data/docs/ContentManifestsApi.md +8 -4
- data/docs/ContentSignaturesApi.md +6 -2
- data/docs/ContentTagsApi.md +8 -4
- data/docs/DistributionsContainerApi.md +6 -2
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PulpContainerNamespacesApi.md +6 -2
- data/docs/RemotesContainerApi.md +6 -2
- data/docs/RepositoriesContainerApi.md +6 -2
- data/docs/RepositoriesContainerPushApi.md +6 -2
- data/docs/RepositoriesContainerPushVersionsApi.md +4 -2
- data/docs/RepositoriesContainerVersionsApi.md +4 -2
- data/lib/pulp_container_client/api/content_blobs_api.rb +8 -2
- data/lib/pulp_container_client/api/content_manifests_api.rb +10 -4
- data/lib/pulp_container_client/api/content_signatures_api.rb +8 -2
- data/lib/pulp_container_client/api/content_tags_api.rb +10 -4
- data/lib/pulp_container_client/api/distributions_container_api.rb +8 -2
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +8 -2
- data/lib/pulp_container_client/api/remotes_container_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +8 -2
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +5 -2
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +5 -2
- data/lib/pulp_container_client/models/container_container_distribution.rb +48 -48
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +37 -37
- data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +54 -54
- data/lib/pulp_container_client/models/container_container_remote.rb +1 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +39 -39
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +1 -1
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +3 -1
- data/spec/api/content_manifests_api_spec.rb +4 -2
- data/spec/api/content_signatures_api_spec.rb +3 -1
- data/spec/api/content_tags_api_spec.rb +4 -2
- data/spec/api/distributions_container_api_spec.rb +3 -1
- data/spec/api/pulp_container_namespaces_api_spec.rb +3 -1
- data/spec/api/remotes_container_api_spec.rb +3 -1
- data/spec/api/repositories_container_api_spec.rb +3 -1
- data/spec/api/repositories_container_push_api_spec.rb +3 -1
- data/spec/api/repositories_container_push_versions_api_spec.rb +2 -1
- data/spec/api/repositories_container_versions_api_spec.rb +2 -1
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +9 -9
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +47 -47
|
@@ -15,19 +15,19 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistribution
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
19
|
+
attr_accessor :content_guard
|
|
20
|
+
|
|
21
|
+
attr_accessor :pulp_labels
|
|
20
22
|
|
|
21
23
|
# The latest RepositoryVersion for this Repository will be served.
|
|
22
24
|
attr_accessor :repository
|
|
23
25
|
|
|
24
|
-
attr_accessor :pulp_labels
|
|
25
|
-
|
|
26
26
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
27
27
|
attr_accessor :base_path
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
attr_accessor :
|
|
29
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
30
|
+
attr_accessor :name
|
|
31
31
|
|
|
32
32
|
# RepositoryVersion to be served
|
|
33
33
|
attr_accessor :repository_version
|
|
@@ -41,11 +41,11 @@ module PulpContainerClient
|
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
42
|
def self.attribute_map
|
|
43
43
|
{
|
|
44
|
-
:'
|
|
45
|
-
:'repository' => :'repository',
|
|
44
|
+
:'content_guard' => :'content_guard',
|
|
46
45
|
:'pulp_labels' => :'pulp_labels',
|
|
46
|
+
:'repository' => :'repository',
|
|
47
47
|
:'base_path' => :'base_path',
|
|
48
|
-
:'
|
|
48
|
+
:'name' => :'name',
|
|
49
49
|
:'repository_version' => :'repository_version',
|
|
50
50
|
:'private' => :'private',
|
|
51
51
|
:'description' => :'description'
|
|
@@ -55,11 +55,11 @@ module PulpContainerClient
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
-
:'
|
|
59
|
-
:'repository' => :'String',
|
|
58
|
+
:'content_guard' => :'String',
|
|
60
59
|
:'pulp_labels' => :'Hash<String, String>',
|
|
60
|
+
:'repository' => :'String',
|
|
61
61
|
:'base_path' => :'String',
|
|
62
|
-
:'
|
|
62
|
+
:'name' => :'String',
|
|
63
63
|
:'repository_version' => :'String',
|
|
64
64
|
:'private' => :'Boolean',
|
|
65
65
|
:'description' => :'String'
|
|
@@ -90,12 +90,8 @@ module PulpContainerClient
|
|
|
90
90
|
h[k.to_sym] = v
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if attributes.key?(:'
|
|
94
|
-
self.
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
if attributes.key?(:'repository')
|
|
98
|
-
self.repository = attributes[:'repository']
|
|
93
|
+
if attributes.key?(:'content_guard')
|
|
94
|
+
self.content_guard = attributes[:'content_guard']
|
|
99
95
|
end
|
|
100
96
|
|
|
101
97
|
if attributes.key?(:'pulp_labels')
|
|
@@ -104,12 +100,16 @@ module PulpContainerClient
|
|
|
104
100
|
end
|
|
105
101
|
end
|
|
106
102
|
|
|
103
|
+
if attributes.key?(:'repository')
|
|
104
|
+
self.repository = attributes[:'repository']
|
|
105
|
+
end
|
|
106
|
+
|
|
107
107
|
if attributes.key?(:'base_path')
|
|
108
108
|
self.base_path = attributes[:'base_path']
|
|
109
109
|
end
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
111
|
+
if attributes.key?(:'name')
|
|
112
|
+
self.name = attributes[:'name']
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
if attributes.key?(:'repository_version')
|
|
@@ -129,14 +129,6 @@ module PulpContainerClient
|
|
|
129
129
|
# @return Array for valid properties with the reasons
|
|
130
130
|
def list_invalid_properties
|
|
131
131
|
invalid_properties = Array.new
|
|
132
|
-
if @name.nil?
|
|
133
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
if @name.to_s.length < 1
|
|
137
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
138
|
-
end
|
|
139
|
-
|
|
140
132
|
if @base_path.nil?
|
|
141
133
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
142
134
|
end
|
|
@@ -145,6 +137,14 @@ module PulpContainerClient
|
|
|
145
137
|
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
|
146
138
|
end
|
|
147
139
|
|
|
140
|
+
if @name.nil?
|
|
141
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if @name.to_s.length < 1
|
|
145
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
146
|
+
end
|
|
147
|
+
|
|
148
148
|
if !@description.nil? && @description.to_s.length < 1
|
|
149
149
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
150
150
|
end
|
|
@@ -155,28 +155,14 @@ module PulpContainerClient
|
|
|
155
155
|
# Check to see if the all the properties in the model are valid
|
|
156
156
|
# @return true if the model is valid
|
|
157
157
|
def valid?
|
|
158
|
-
return false if @name.nil?
|
|
159
|
-
return false if @name.to_s.length < 1
|
|
160
158
|
return false if @base_path.nil?
|
|
161
159
|
return false if @base_path.to_s.length < 1
|
|
160
|
+
return false if @name.nil?
|
|
161
|
+
return false if @name.to_s.length < 1
|
|
162
162
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
163
163
|
true
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
# Custom attribute writer method with validation
|
|
167
|
-
# @param [Object] name Value to be assigned
|
|
168
|
-
def name=(name)
|
|
169
|
-
if name.nil?
|
|
170
|
-
fail ArgumentError, 'name cannot be nil'
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if name.to_s.length < 1
|
|
174
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
@name = name
|
|
178
|
-
end
|
|
179
|
-
|
|
180
166
|
# Custom attribute writer method with validation
|
|
181
167
|
# @param [Object] base_path Value to be assigned
|
|
182
168
|
def base_path=(base_path)
|
|
@@ -191,6 +177,20 @@ module PulpContainerClient
|
|
|
191
177
|
@base_path = base_path
|
|
192
178
|
end
|
|
193
179
|
|
|
180
|
+
# Custom attribute writer method with validation
|
|
181
|
+
# @param [Object] name Value to be assigned
|
|
182
|
+
def name=(name)
|
|
183
|
+
if name.nil?
|
|
184
|
+
fail ArgumentError, 'name cannot be nil'
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
if name.to_s.length < 1
|
|
188
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@name = name
|
|
192
|
+
end
|
|
193
|
+
|
|
194
194
|
# Custom attribute writer method with validation
|
|
195
195
|
# @param [Object] description Value to be assigned
|
|
196
196
|
def description=(description)
|
|
@@ -206,11 +206,11 @@ module PulpContainerClient
|
|
|
206
206
|
def ==(o)
|
|
207
207
|
return true if self.equal?(o)
|
|
208
208
|
self.class == o.class &&
|
|
209
|
-
|
|
210
|
-
repository == o.repository &&
|
|
209
|
+
content_guard == o.content_guard &&
|
|
211
210
|
pulp_labels == o.pulp_labels &&
|
|
211
|
+
repository == o.repository &&
|
|
212
212
|
base_path == o.base_path &&
|
|
213
|
-
|
|
213
|
+
name == o.name &&
|
|
214
214
|
repository_version == o.repository_version &&
|
|
215
215
|
private == o.private &&
|
|
216
216
|
description == o.description
|
|
@@ -225,7 +225,7 @@ module PulpContainerClient
|
|
|
225
225
|
# Calculates hash code according to all attributes.
|
|
226
226
|
# @return [Integer] Hash code
|
|
227
227
|
def hash
|
|
228
|
-
[
|
|
228
|
+
[content_guard, pulp_labels, repository, base_path, name, repository_version, private, description].hash
|
|
229
229
|
end
|
|
230
230
|
|
|
231
231
|
# Builds the object from hash
|
|
@@ -15,24 +15,24 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# A serializer for ContainerDistribution.
|
|
17
17
|
class ContainerContainerDistributionResponse
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# Timestamp of creation.
|
|
19
|
+
attr_accessor :pulp_created
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
|
22
|
+
attr_accessor :content_guard
|
|
23
23
|
|
|
24
24
|
attr_accessor :pulp_labels
|
|
25
25
|
|
|
26
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
27
|
+
attr_accessor :repository
|
|
28
|
+
|
|
26
29
|
attr_accessor :pulp_href
|
|
27
30
|
|
|
28
31
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
29
32
|
attr_accessor :base_path
|
|
30
33
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
33
|
-
|
|
34
|
-
# Timestamp of creation.
|
|
35
|
-
attr_accessor :pulp_created
|
|
34
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
|
35
|
+
attr_accessor :name
|
|
36
36
|
|
|
37
37
|
# RepositoryVersion to be served
|
|
38
38
|
attr_accessor :repository_version
|
|
@@ -52,13 +52,13 @@ module PulpContainerClient
|
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
53
|
def self.attribute_map
|
|
54
54
|
{
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
55
|
+
:'pulp_created' => :'pulp_created',
|
|
56
|
+
:'content_guard' => :'content_guard',
|
|
57
57
|
:'pulp_labels' => :'pulp_labels',
|
|
58
|
+
:'repository' => :'repository',
|
|
58
59
|
:'pulp_href' => :'pulp_href',
|
|
59
60
|
:'base_path' => :'base_path',
|
|
60
|
-
:'
|
|
61
|
-
:'pulp_created' => :'pulp_created',
|
|
61
|
+
:'name' => :'name',
|
|
62
62
|
:'repository_version' => :'repository_version',
|
|
63
63
|
:'registry_path' => :'registry_path',
|
|
64
64
|
:'namespace' => :'namespace',
|
|
@@ -70,13 +70,13 @@ module PulpContainerClient
|
|
|
70
70
|
# Attribute type mapping.
|
|
71
71
|
def self.openapi_types
|
|
72
72
|
{
|
|
73
|
-
:'
|
|
74
|
-
:'
|
|
73
|
+
:'pulp_created' => :'DateTime',
|
|
74
|
+
:'content_guard' => :'String',
|
|
75
75
|
:'pulp_labels' => :'Hash<String, String>',
|
|
76
|
+
:'repository' => :'String',
|
|
76
77
|
:'pulp_href' => :'String',
|
|
77
78
|
:'base_path' => :'String',
|
|
78
|
-
:'
|
|
79
|
-
:'pulp_created' => :'DateTime',
|
|
79
|
+
:'name' => :'String',
|
|
80
80
|
:'repository_version' => :'String',
|
|
81
81
|
:'registry_path' => :'String',
|
|
82
82
|
:'namespace' => :'String',
|
|
@@ -109,12 +109,12 @@ module PulpContainerClient
|
|
|
109
109
|
h[k.to_sym] = v
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
112
|
+
if attributes.key?(:'pulp_created')
|
|
113
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
-
if attributes.key?(:'
|
|
117
|
-
self.
|
|
116
|
+
if attributes.key?(:'content_guard')
|
|
117
|
+
self.content_guard = attributes[:'content_guard']
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
if attributes.key?(:'pulp_labels')
|
|
@@ -123,6 +123,10 @@ module PulpContainerClient
|
|
|
123
123
|
end
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
+
if attributes.key?(:'repository')
|
|
127
|
+
self.repository = attributes[:'repository']
|
|
128
|
+
end
|
|
129
|
+
|
|
126
130
|
if attributes.key?(:'pulp_href')
|
|
127
131
|
self.pulp_href = attributes[:'pulp_href']
|
|
128
132
|
end
|
|
@@ -131,12 +135,8 @@ module PulpContainerClient
|
|
|
131
135
|
self.base_path = attributes[:'base_path']
|
|
132
136
|
end
|
|
133
137
|
|
|
134
|
-
if attributes.key?(:'
|
|
135
|
-
self.
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
if attributes.key?(:'pulp_created')
|
|
139
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
138
|
+
if attributes.key?(:'name')
|
|
139
|
+
self.name = attributes[:'name']
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
if attributes.key?(:'repository_version')
|
|
@@ -164,22 +164,22 @@ module PulpContainerClient
|
|
|
164
164
|
# @return Array for valid properties with the reasons
|
|
165
165
|
def list_invalid_properties
|
|
166
166
|
invalid_properties = Array.new
|
|
167
|
-
if @name.nil?
|
|
168
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
169
|
-
end
|
|
170
|
-
|
|
171
167
|
if @base_path.nil?
|
|
172
168
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
|
173
169
|
end
|
|
174
170
|
|
|
171
|
+
if @name.nil?
|
|
172
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
173
|
+
end
|
|
174
|
+
|
|
175
175
|
invalid_properties
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
# Check to see if the all the properties in the model are valid
|
|
179
179
|
# @return true if the model is valid
|
|
180
180
|
def valid?
|
|
181
|
-
return false if @name.nil?
|
|
182
181
|
return false if @base_path.nil?
|
|
182
|
+
return false if @name.nil?
|
|
183
183
|
true
|
|
184
184
|
end
|
|
185
185
|
|
|
@@ -188,13 +188,13 @@ module PulpContainerClient
|
|
|
188
188
|
def ==(o)
|
|
189
189
|
return true if self.equal?(o)
|
|
190
190
|
self.class == o.class &&
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
pulp_created == o.pulp_created &&
|
|
192
|
+
content_guard == o.content_guard &&
|
|
193
193
|
pulp_labels == o.pulp_labels &&
|
|
194
|
+
repository == o.repository &&
|
|
194
195
|
pulp_href == o.pulp_href &&
|
|
195
196
|
base_path == o.base_path &&
|
|
196
|
-
|
|
197
|
-
pulp_created == o.pulp_created &&
|
|
197
|
+
name == o.name &&
|
|
198
198
|
repository_version == o.repository_version &&
|
|
199
199
|
registry_path == o.registry_path &&
|
|
200
200
|
namespace == o.namespace &&
|
|
@@ -211,7 +211,7 @@ module PulpContainerClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[
|
|
214
|
+
[pulp_created, content_guard, pulp_labels, repository, pulp_href, base_path, name, repository_version, registry_path, namespace, private, description].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|
|
@@ -15,48 +15,48 @@ require 'date'
|
|
|
15
15
|
module PulpContainerClient
|
|
16
16
|
# Serializer for Container Push Repositories.
|
|
17
17
|
class ContainerContainerPushRepository
|
|
18
|
-
# A
|
|
19
|
-
attr_accessor :
|
|
18
|
+
# A reference to an associated signing service.
|
|
19
|
+
attr_accessor :manifest_signing_service
|
|
20
20
|
|
|
21
21
|
attr_accessor :pulp_labels
|
|
22
22
|
|
|
23
|
-
# An optional description.
|
|
24
|
-
attr_accessor :description
|
|
25
|
-
|
|
26
23
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
27
24
|
attr_accessor :retain_repo_versions
|
|
28
25
|
|
|
29
|
-
# A
|
|
30
|
-
attr_accessor :
|
|
26
|
+
# A unique name for this repository.
|
|
27
|
+
attr_accessor :name
|
|
28
|
+
|
|
29
|
+
# An optional description.
|
|
30
|
+
attr_accessor :description
|
|
31
31
|
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
33
|
def self.attribute_map
|
|
34
34
|
{
|
|
35
|
-
:'
|
|
35
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
|
36
36
|
:'pulp_labels' => :'pulp_labels',
|
|
37
|
-
:'description' => :'description',
|
|
38
37
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
39
|
-
:'
|
|
38
|
+
:'name' => :'name',
|
|
39
|
+
:'description' => :'description'
|
|
40
40
|
}
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
# Attribute type mapping.
|
|
44
44
|
def self.openapi_types
|
|
45
45
|
{
|
|
46
|
-
:'
|
|
46
|
+
:'manifest_signing_service' => :'String',
|
|
47
47
|
:'pulp_labels' => :'Hash<String, String>',
|
|
48
|
-
:'description' => :'String',
|
|
49
48
|
:'retain_repo_versions' => :'Integer',
|
|
50
|
-
:'
|
|
49
|
+
:'name' => :'String',
|
|
50
|
+
:'description' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
# List of attributes with nullable: true
|
|
55
55
|
def self.openapi_nullable
|
|
56
56
|
Set.new([
|
|
57
|
-
:'
|
|
57
|
+
:'manifest_signing_service',
|
|
58
58
|
:'retain_repo_versions',
|
|
59
|
-
:'
|
|
59
|
+
:'description'
|
|
60
60
|
])
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -75,8 +75,8 @@ module PulpContainerClient
|
|
|
75
75
|
h[k.to_sym] = v
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
if attributes.key?(:'
|
|
79
|
-
self.
|
|
78
|
+
if attributes.key?(:'manifest_signing_service')
|
|
79
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
if attributes.key?(:'pulp_labels')
|
|
@@ -85,16 +85,16 @@ module PulpContainerClient
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
if attributes.key?(:'description')
|
|
89
|
-
self.description = attributes[:'description']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
88
|
if attributes.key?(:'retain_repo_versions')
|
|
93
89
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
94
90
|
end
|
|
95
91
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
92
|
+
if attributes.key?(:'name')
|
|
93
|
+
self.name = attributes[:'name']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'description')
|
|
97
|
+
self.description = attributes[:'description']
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -102,6 +102,10 @@ module PulpContainerClient
|
|
|
102
102
|
# @return Array for valid properties with the reasons
|
|
103
103
|
def list_invalid_properties
|
|
104
104
|
invalid_properties = Array.new
|
|
105
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
106
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
107
|
+
end
|
|
108
|
+
|
|
105
109
|
if @name.nil?
|
|
106
110
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
107
111
|
end
|
|
@@ -114,23 +118,29 @@ module PulpContainerClient
|
|
|
114
118
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
115
119
|
end
|
|
116
120
|
|
|
117
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
118
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
121
|
invalid_properties
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Check to see if the all the properties in the model are valid
|
|
125
125
|
# @return true if the model is valid
|
|
126
126
|
def valid?
|
|
127
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
127
128
|
return false if @name.nil?
|
|
128
129
|
return false if @name.to_s.length < 1
|
|
129
130
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
130
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
131
131
|
true
|
|
132
132
|
end
|
|
133
133
|
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
136
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
137
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@retain_repo_versions = retain_repo_versions
|
|
142
|
+
end
|
|
143
|
+
|
|
134
144
|
# Custom attribute writer method with validation
|
|
135
145
|
# @param [Object] name Value to be assigned
|
|
136
146
|
def name=(name)
|
|
@@ -155,26 +165,16 @@ module PulpContainerClient
|
|
|
155
165
|
@description = description
|
|
156
166
|
end
|
|
157
167
|
|
|
158
|
-
# Custom attribute writer method with validation
|
|
159
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
|
160
|
-
def retain_repo_versions=(retain_repo_versions)
|
|
161
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
162
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
163
|
-
end
|
|
164
|
-
|
|
165
|
-
@retain_repo_versions = retain_repo_versions
|
|
166
|
-
end
|
|
167
|
-
|
|
168
168
|
# Checks equality by comparing each attribute.
|
|
169
169
|
# @param [Object] Object to be compared
|
|
170
170
|
def ==(o)
|
|
171
171
|
return true if self.equal?(o)
|
|
172
172
|
self.class == o.class &&
|
|
173
|
-
|
|
173
|
+
manifest_signing_service == o.manifest_signing_service &&
|
|
174
174
|
pulp_labels == o.pulp_labels &&
|
|
175
|
-
description == o.description &&
|
|
176
175
|
retain_repo_versions == o.retain_repo_versions &&
|
|
177
|
-
|
|
176
|
+
name == o.name &&
|
|
177
|
+
description == o.description
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
# @see the `==` method
|
|
@@ -186,7 +186,7 @@ module PulpContainerClient
|
|
|
186
186
|
# Calculates hash code according to all attributes.
|
|
187
187
|
# @return [Integer] Hash code
|
|
188
188
|
def hash
|
|
189
|
-
[
|
|
189
|
+
[manifest_signing_service, pulp_labels, retain_repo_versions, name, description].hash
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
# Builds the object from hash
|