pulp_container_client 2.14.5 → 2.14.7
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 +7 -7
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- 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 +7 -7
- 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 +49 -49
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +38 -38
- 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 +41 -41
- 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 +40 -40
- 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 +5 -5
- 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 +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- metadata +49 -49
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
20
|
+
|
18
21
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
22
|
attr_accessor :base_path
|
20
23
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
24
|
+
# The latest RepositoryVersion for this Repository will be served.
|
25
|
+
attr_accessor :repository
|
23
26
|
|
24
27
|
attr_accessor :pulp_labels
|
25
28
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
28
|
-
|
29
|
-
# The latest RepositoryVersion for this Repository will be served.
|
30
|
-
attr_accessor :repository
|
29
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
30
|
+
attr_accessor :content_guard
|
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
|
-
:'base_path' => :'base_path',
|
45
|
-
:'content_guard' => :'content_guard',
|
46
|
-
:'pulp_labels' => :'pulp_labels',
|
47
44
|
:'name' => :'name',
|
45
|
+
:'base_path' => :'base_path',
|
48
46
|
:'repository' => :'repository',
|
47
|
+
:'pulp_labels' => :'pulp_labels',
|
48
|
+
:'content_guard' => :'content_guard',
|
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
|
-
:'base_path' => :'String',
|
59
|
-
:'content_guard' => :'String',
|
60
|
-
:'pulp_labels' => :'Hash<String, String>',
|
61
58
|
:'name' => :'String',
|
59
|
+
:'base_path' => :'String',
|
62
60
|
:'repository' => :'String',
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
62
|
+
:'content_guard' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,12 +90,16 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
+
if attributes.key?(:'name')
|
94
|
+
self.name = attributes[:'name']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.key?(:'base_path')
|
94
98
|
self.base_path = attributes[:'base_path']
|
95
99
|
end
|
96
100
|
|
97
|
-
if attributes.key?(:'
|
98
|
-
self.
|
101
|
+
if attributes.key?(:'repository')
|
102
|
+
self.repository = attributes[:'repository']
|
99
103
|
end
|
100
104
|
|
101
105
|
if attributes.key?(:'pulp_labels')
|
@@ -104,12 +108,8 @@ module PulpContainerClient
|
|
104
108
|
end
|
105
109
|
end
|
106
110
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
109
|
-
end
|
110
|
-
|
111
|
-
if attributes.key?(:'repository')
|
112
|
-
self.repository = attributes[:'repository']
|
111
|
+
if attributes.key?(:'content_guard')
|
112
|
+
self.content_guard = attributes[:'content_guard']
|
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 @base_path.nil?
|
133
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @base_path.to_s.length < 1
|
137
|
-
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
138
|
-
end
|
139
|
-
|
140
132
|
if @name.nil?
|
141
133
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
142
134
|
end
|
@@ -145,6 +137,14 @@ module PulpContainerClient
|
|
145
137
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
146
138
|
end
|
147
139
|
|
140
|
+
if @base_path.nil?
|
141
|
+
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if @base_path.to_s.length < 1
|
145
|
+
invalid_properties.push('invalid value for "base_path", 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 @base_path.nil?
|
159
|
-
return false if @base_path.to_s.length < 1
|
160
158
|
return false if @name.nil?
|
161
159
|
return false if @name.to_s.length < 1
|
160
|
+
return false if @base_path.nil?
|
161
|
+
return false if @base_path.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] base_path Value to be assigned
|
168
|
-
def base_path=(base_path)
|
169
|
-
if base_path.nil?
|
170
|
-
fail ArgumentError, 'base_path cannot be nil'
|
171
|
-
end
|
172
|
-
|
173
|
-
if base_path.to_s.length < 1
|
174
|
-
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
175
|
-
end
|
176
|
-
|
177
|
-
@base_path = base_path
|
178
|
-
end
|
179
|
-
|
180
166
|
# Custom attribute writer method with validation
|
181
167
|
# @param [Object] name Value to be assigned
|
182
168
|
def name=(name)
|
@@ -191,6 +177,20 @@ module PulpContainerClient
|
|
191
177
|
@name = name
|
192
178
|
end
|
193
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] base_path Value to be assigned
|
182
|
+
def base_path=(base_path)
|
183
|
+
if base_path.nil?
|
184
|
+
fail ArgumentError, 'base_path cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
if base_path.to_s.length < 1
|
188
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
191
|
+
@base_path = base_path
|
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
|
-
base_path == o.base_path &&
|
210
|
-
content_guard == o.content_guard &&
|
211
|
-
pulp_labels == o.pulp_labels &&
|
212
209
|
name == o.name &&
|
210
|
+
base_path == o.base_path &&
|
213
211
|
repository == o.repository &&
|
212
|
+
pulp_labels == o.pulp_labels &&
|
213
|
+
content_guard == o.content_guard &&
|
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
|
-
[base_path,
|
228
|
+
[name, base_path, repository, pulp_labels, content_guard, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,21 +15,21 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
19
|
+
attr_accessor :name
|
20
|
+
|
18
21
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
19
22
|
attr_accessor :base_path
|
20
23
|
|
21
|
-
|
22
|
-
attr_accessor :content_guard
|
23
|
-
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
27
|
-
attr_accessor :name
|
24
|
+
attr_accessor :pulp_href
|
28
25
|
|
29
26
|
# The latest RepositoryVersion for this Repository will be served.
|
30
27
|
attr_accessor :repository
|
31
28
|
|
32
|
-
attr_accessor :
|
29
|
+
attr_accessor :pulp_labels
|
30
|
+
|
31
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
32
|
+
attr_accessor :content_guard
|
33
33
|
|
34
34
|
# Timestamp of creation.
|
35
35
|
attr_accessor :pulp_created
|
@@ -52,12 +52,12 @@ module PulpContainerClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'base_path' => :'base_path',
|
56
|
-
:'content_guard' => :'content_guard',
|
57
|
-
:'pulp_labels' => :'pulp_labels',
|
58
55
|
:'name' => :'name',
|
59
|
-
:'
|
56
|
+
:'base_path' => :'base_path',
|
60
57
|
:'pulp_href' => :'pulp_href',
|
58
|
+
:'repository' => :'repository',
|
59
|
+
:'pulp_labels' => :'pulp_labels',
|
60
|
+
:'content_guard' => :'content_guard',
|
61
61
|
:'pulp_created' => :'pulp_created',
|
62
62
|
:'repository_version' => :'repository_version',
|
63
63
|
:'registry_path' => :'registry_path',
|
@@ -70,12 +70,12 @@ module PulpContainerClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'base_path' => :'String',
|
74
|
-
:'content_guard' => :'String',
|
75
|
-
:'pulp_labels' => :'Hash<String, String>',
|
76
73
|
:'name' => :'String',
|
77
|
-
:'
|
74
|
+
:'base_path' => :'String',
|
78
75
|
:'pulp_href' => :'String',
|
76
|
+
:'repository' => :'String',
|
77
|
+
:'pulp_labels' => :'Hash<String, String>',
|
78
|
+
:'content_guard' => :'String',
|
79
79
|
:'pulp_created' => :'DateTime',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
@@ -109,12 +109,20 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
+
if attributes.key?(:'name')
|
113
|
+
self.name = attributes[:'name']
|
114
|
+
end
|
115
|
+
|
112
116
|
if attributes.key?(:'base_path')
|
113
117
|
self.base_path = attributes[:'base_path']
|
114
118
|
end
|
115
119
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
120
|
+
if attributes.key?(:'pulp_href')
|
121
|
+
self.pulp_href = attributes[:'pulp_href']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'repository')
|
125
|
+
self.repository = attributes[:'repository']
|
118
126
|
end
|
119
127
|
|
120
128
|
if attributes.key?(:'pulp_labels')
|
@@ -123,16 +131,8 @@ module PulpContainerClient
|
|
123
131
|
end
|
124
132
|
end
|
125
133
|
|
126
|
-
if attributes.key?(:'
|
127
|
-
self.
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.key?(:'repository')
|
131
|
-
self.repository = attributes[:'repository']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'pulp_href')
|
135
|
-
self.pulp_href = attributes[:'pulp_href']
|
134
|
+
if attributes.key?(:'content_guard')
|
135
|
+
self.content_guard = attributes[:'content_guard']
|
136
136
|
end
|
137
137
|
|
138
138
|
if attributes.key?(:'pulp_created')
|
@@ -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 @base_path.nil?
|
168
|
-
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
169
|
-
end
|
170
|
-
|
171
167
|
if @name.nil?
|
172
168
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
173
169
|
end
|
174
170
|
|
171
|
+
if @base_path.nil?
|
172
|
+
invalid_properties.push('invalid value for "base_path", base_path 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 @base_path.nil?
|
182
181
|
return false if @name.nil?
|
182
|
+
return false if @base_path.nil?
|
183
183
|
true
|
184
184
|
end
|
185
185
|
|
@@ -188,12 +188,12 @@ module PulpContainerClient
|
|
188
188
|
def ==(o)
|
189
189
|
return true if self.equal?(o)
|
190
190
|
self.class == o.class &&
|
191
|
-
base_path == o.base_path &&
|
192
|
-
content_guard == o.content_guard &&
|
193
|
-
pulp_labels == o.pulp_labels &&
|
194
191
|
name == o.name &&
|
195
|
-
|
192
|
+
base_path == o.base_path &&
|
196
193
|
pulp_href == o.pulp_href &&
|
194
|
+
repository == o.repository &&
|
195
|
+
pulp_labels == o.pulp_labels &&
|
196
|
+
content_guard == o.content_guard &&
|
197
197
|
pulp_created == o.pulp_created &&
|
198
198
|
repository_version == o.repository_version &&
|
199
199
|
registry_path == o.registry_path &&
|
@@ -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
|
+
[name, base_path, pulp_href, repository, pulp_labels, content_guard, pulp_created, 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
|
-
attr_accessor :pulp_labels
|
19
|
-
|
20
18
|
# A unique name for this repository.
|
21
19
|
attr_accessor :name
|
22
20
|
|
21
|
+
# An optional description.
|
22
|
+
attr_accessor :description
|
23
|
+
|
23
24
|
# A reference to an associated signing service.
|
24
25
|
attr_accessor :manifest_signing_service
|
25
26
|
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
26
29
|
# Retain X versions of the repository. Default is null which retains all versions.
|
27
30
|
attr_accessor :retain_repo_versions
|
28
31
|
|
29
|
-
# An optional description.
|
30
|
-
attr_accessor :description
|
31
|
-
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'pulp_labels' => :'pulp_labels',
|
36
35
|
:'name' => :'name',
|
36
|
+
:'description' => :'description',
|
37
37
|
:'manifest_signing_service' => :'manifest_signing_service',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
39
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# Attribute type mapping.
|
44
44
|
def self.openapi_types
|
45
45
|
{
|
46
|
-
:'pulp_labels' => :'Hash<String, String>',
|
47
46
|
:'name' => :'String',
|
47
|
+
:'description' => :'String',
|
48
48
|
:'manifest_signing_service' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'pulp_labels' => :'Hash<String, String>',
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
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
|
+
:'description',
|
57
58
|
:'manifest_signing_service',
|
58
|
-
:'retain_repo_versions'
|
59
|
-
:'description'
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,26 +75,26 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'pulp_labels')
|
79
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
80
|
-
self.pulp_labels = value
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
78
|
if attributes.key?(:'name')
|
85
79
|
self.name = attributes[:'name']
|
86
80
|
end
|
87
81
|
|
82
|
+
if attributes.key?(:'description')
|
83
|
+
self.description = attributes[:'description']
|
84
|
+
end
|
85
|
+
|
88
86
|
if attributes.key?(:'manifest_signing_service')
|
89
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
90
88
|
end
|
91
89
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
|
90
|
+
if attributes.key?(:'pulp_labels')
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
92
|
+
self.pulp_labels = value
|
93
|
+
end
|
94
94
|
end
|
95
95
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
self.
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
@@ -110,14 +110,14 @@ module PulpContainerClient
|
|
110
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
111
111
|
end
|
112
112
|
|
113
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
113
|
if !@description.nil? && @description.to_s.length < 1
|
118
114
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
119
115
|
end
|
120
116
|
|
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
|
|
@@ -126,8 +126,8 @@ module PulpContainerClient
|
|
126
126
|
def valid?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @name.to_s.length < 1
|
129
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
129
|
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
|
|
@@ -145,16 +145,6 @@ module PulpContainerClient
|
|
145
145
|
@name = name
|
146
146
|
end
|
147
147
|
|
148
|
-
# Custom attribute writer method with validation
|
149
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
150
|
-
def retain_repo_versions=(retain_repo_versions)
|
151
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
152
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
153
|
-
end
|
154
|
-
|
155
|
-
@retain_repo_versions = retain_repo_versions
|
156
|
-
end
|
157
|
-
|
158
148
|
# Custom attribute writer method with validation
|
159
149
|
# @param [Object] description Value to be assigned
|
160
150
|
def description=(description)
|
@@ -165,16 +155,26 @@ module PulpContainerClient
|
|
165
155
|
@description = description
|
166
156
|
end
|
167
157
|
|
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
|
-
pulp_labels == o.pulp_labels &&
|
174
173
|
name == o.name &&
|
174
|
+
description == o.description &&
|
175
175
|
manifest_signing_service == o.manifest_signing_service &&
|
176
|
-
|
177
|
-
|
176
|
+
pulp_labels == o.pulp_labels &&
|
177
|
+
retain_repo_versions == o.retain_repo_versions
|
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
|
+
[name, description, manifest_signing_service, pulp_labels, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|