pulp_container_client 2.14.18 → 2.15.0.dev1676084742
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.
Potentially problematic release.
This version of pulp_container_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +6 -6
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
- data/docs/ContainerContainerRemoteResponseHiddenFields.md +2 -2
- data/docs/ContentBlobsApi.md +1 -1
- data/docs/ContentManifestsApi.md +1 -1
- data/docs/ContentSignaturesApi.md +1 -1
- data/docs/ContentTagsApi.md +1 -1
- data/docs/DistributionsContainerApi.md +5 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/docs/PulpContainerNamespacesApi.md +1 -1
- data/docs/RemotesContainerApi.md +1 -1
- data/docs/RepositoriesContainerApi.md +17 -1
- data/docs/RepositoriesContainerPushApi.md +17 -1
- data/docs/RepositoriesContainerPushVersionsApi.md +1 -1
- data/docs/RepositoriesContainerVersionsApi.md +1 -1
- data/docs/TokenApi.md +1 -1
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +24 -0
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +24 -0
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
- 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 +47 -47
- data/lib/pulp_container_client/models/container_container_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_container_client/models/nested_role.rb +19 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/distributions_container_api_spec.rb +2 -0
- data/spec/api/repositories_container_api_spec.rb +8 -0
- data/spec/api/repositories_container_push_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +8 -8
- data/spec/models/container_container_push_repository_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +63 -63
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistribution
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
20
|
+
|
21
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
22
|
+
attr_accessor :name
|
23
|
+
|
18
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\")
|
19
25
|
attr_accessor :base_path
|
20
26
|
|
21
27
|
attr_accessor :pulp_labels
|
22
28
|
|
23
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
29
|
# An optional content-guard. If none is specified, a default one will be used.
|
27
30
|
attr_accessor :content_guard
|
28
31
|
|
29
|
-
# The latest RepositoryVersion for this Repository will be served.
|
30
|
-
attr_accessor :repository
|
31
|
-
|
32
32
|
# RepositoryVersion to be served
|
33
33
|
attr_accessor :repository_version
|
34
34
|
|
@@ -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
|
+
:'repository' => :'repository',
|
45
|
+
:'name' => :'name',
|
44
46
|
:'base_path' => :'base_path',
|
45
47
|
:'pulp_labels' => :'pulp_labels',
|
46
|
-
:'name' => :'name',
|
47
48
|
:'content_guard' => :'content_guard',
|
48
|
-
:'repository' => :'repository',
|
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
|
+
:'repository' => :'String',
|
59
|
+
:'name' => :'String',
|
58
60
|
:'base_path' => :'String',
|
59
61
|
:'pulp_labels' => :'Hash<String, String>',
|
60
|
-
:'name' => :'String',
|
61
62
|
:'content_guard' => :'String',
|
62
|
-
:'repository' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
65
65
|
:'description' => :'String'
|
@@ -90,6 +90,14 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
+
if attributes.key?(:'repository')
|
94
|
+
self.repository = attributes[:'repository']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'name')
|
98
|
+
self.name = attributes[:'name']
|
99
|
+
end
|
100
|
+
|
93
101
|
if attributes.key?(:'base_path')
|
94
102
|
self.base_path = attributes[:'base_path']
|
95
103
|
end
|
@@ -100,18 +108,10 @@ module PulpContainerClient
|
|
100
108
|
end
|
101
109
|
end
|
102
110
|
|
103
|
-
if attributes.key?(:'name')
|
104
|
-
self.name = attributes[:'name']
|
105
|
-
end
|
106
|
-
|
107
111
|
if attributes.key?(:'content_guard')
|
108
112
|
self.content_guard = attributes[:'content_guard']
|
109
113
|
end
|
110
114
|
|
111
|
-
if attributes.key?(:'repository')
|
112
|
-
self.repository = attributes[:'repository']
|
113
|
-
end
|
114
|
-
|
115
115
|
if attributes.key?(:'repository_version')
|
116
116
|
self.repository_version = attributes[:'repository_version']
|
117
117
|
end
|
@@ -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
|
+
repository == o.repository &&
|
210
|
+
name == o.name &&
|
209
211
|
base_path == o.base_path &&
|
210
212
|
pulp_labels == o.pulp_labels &&
|
211
|
-
name == o.name &&
|
212
213
|
content_guard == o.content_guard &&
|
213
|
-
repository == o.repository &&
|
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
|
+
[repository, name, base_path, pulp_labels, content_guard, repository_version, private, description].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -15,25 +15,25 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class ContainerContainerDistributionResponse
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
attr_accessor :pulp_labels
|
18
|
+
# The latest RepositoryVersion for this Repository will be served.
|
19
|
+
attr_accessor :repository
|
22
20
|
|
23
21
|
attr_accessor :pulp_href
|
24
22
|
|
25
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
26
24
|
attr_accessor :name
|
27
25
|
|
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
|
+
attr_accessor :base_path
|
28
|
+
|
29
|
+
attr_accessor :pulp_labels
|
30
|
+
|
28
31
|
# Timestamp of creation.
|
29
32
|
attr_accessor :pulp_created
|
30
33
|
|
31
34
|
# An optional content-guard. If none is specified, a default one will be used.
|
32
35
|
attr_accessor :content_guard
|
33
36
|
|
34
|
-
# The latest RepositoryVersion for this Repository will be served.
|
35
|
-
attr_accessor :repository
|
36
|
-
|
37
37
|
# RepositoryVersion to be served
|
38
38
|
attr_accessor :repository_version
|
39
39
|
|
@@ -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
|
-
:'pulp_labels' => :'pulp_labels',
|
55
|
+
:'repository' => :'repository',
|
57
56
|
:'pulp_href' => :'pulp_href',
|
58
57
|
:'name' => :'name',
|
58
|
+
:'base_path' => :'base_path',
|
59
|
+
:'pulp_labels' => :'pulp_labels',
|
59
60
|
:'pulp_created' => :'pulp_created',
|
60
61
|
:'content_guard' => :'content_guard',
|
61
|
-
:'repository' => :'repository',
|
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
|
-
:'pulp_labels' => :'Hash<String, String>',
|
73
|
+
:'repository' => :'String',
|
75
74
|
:'pulp_href' => :'String',
|
76
75
|
:'name' => :'String',
|
76
|
+
:'base_path' => :'String',
|
77
|
+
:'pulp_labels' => :'Hash<String, String>',
|
77
78
|
:'pulp_created' => :'DateTime',
|
78
79
|
:'content_guard' => :'String',
|
79
|
-
:'repository' => :'String',
|
80
80
|
:'repository_version' => :'String',
|
81
81
|
:'registry_path' => :'String',
|
82
82
|
:'namespace' => :'String',
|
@@ -109,14 +109,8 @@ module PulpContainerClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
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
|
112
|
+
if attributes.key?(:'repository')
|
113
|
+
self.repository = attributes[:'repository']
|
120
114
|
end
|
121
115
|
|
122
116
|
if attributes.key?(:'pulp_href')
|
@@ -127,6 +121,16 @@ module PulpContainerClient
|
|
127
121
|
self.name = attributes[:'name']
|
128
122
|
end
|
129
123
|
|
124
|
+
if attributes.key?(:'base_path')
|
125
|
+
self.base_path = attributes[:'base_path']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'pulp_labels')
|
129
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
130
|
+
self.pulp_labels = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
130
134
|
if attributes.key?(:'pulp_created')
|
131
135
|
self.pulp_created = attributes[:'pulp_created']
|
132
136
|
end
|
@@ -135,10 +139,6 @@ module PulpContainerClient
|
|
135
139
|
self.content_guard = attributes[:'content_guard']
|
136
140
|
end
|
137
141
|
|
138
|
-
if attributes.key?(:'repository')
|
139
|
-
self.repository = attributes[:'repository']
|
140
|
-
end
|
141
|
-
|
142
142
|
if attributes.key?(:'repository_version')
|
143
143
|
self.repository_version = attributes[:'repository_version']
|
144
144
|
end
|
@@ -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,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
|
-
pulp_labels == o.pulp_labels &&
|
191
|
+
repository == o.repository &&
|
193
192
|
pulp_href == o.pulp_href &&
|
194
193
|
name == o.name &&
|
194
|
+
base_path == o.base_path &&
|
195
|
+
pulp_labels == o.pulp_labels &&
|
195
196
|
pulp_created == o.pulp_created &&
|
196
197
|
content_guard == o.content_guard &&
|
197
|
-
repository == o.repository &&
|
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
|
+
[repository, pulp_href, name, base_path, pulp_labels, pulp_created, content_guard, 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
|
-
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
19
|
-
attr_accessor :retain_repo_versions
|
20
|
-
|
21
18
|
# An optional description.
|
22
19
|
attr_accessor :description
|
23
20
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
26
21
|
# A unique name for this repository.
|
27
22
|
attr_accessor :name
|
28
23
|
|
29
24
|
# A reference to an associated signing service.
|
30
25
|
attr_accessor :manifest_signing_service
|
31
26
|
|
27
|
+
attr_accessor :pulp_labels
|
28
|
+
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
30
|
+
attr_accessor :retain_repo_versions
|
31
|
+
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
36
35
|
:'description' => :'description',
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
38
36
|
:'name' => :'name',
|
39
|
-
:'manifest_signing_service' => :'manifest_signing_service'
|
37
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
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
|
-
:'retain_repo_versions' => :'Integer',
|
47
46
|
:'description' => :'String',
|
48
|
-
:'pulp_labels' => :'Hash<String, String>',
|
49
47
|
:'name' => :'String',
|
50
|
-
:'manifest_signing_service' => :'String'
|
48
|
+
:'manifest_signing_service' => :'String',
|
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
|
-
:'retain_repo_versions',
|
58
57
|
:'description',
|
59
|
-
:'manifest_signing_service'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,20 +75,10 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'retain_repo_versions')
|
79
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'description')
|
83
79
|
self.description = attributes[:'description']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.key?(:'pulp_labels')
|
87
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
88
|
-
self.pulp_labels = value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
82
|
if attributes.key?(:'name')
|
93
83
|
self.name = attributes[:'name']
|
94
84
|
end
|
@@ -96,16 +86,22 @@ module PulpContainerClient
|
|
96
86
|
if attributes.key?(:'manifest_signing_service')
|
97
87
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
88
|
end
|
89
|
+
|
90
|
+
if attributes.key?(:'pulp_labels')
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
92
|
+
self.pulp_labels = value
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'retain_repo_versions')
|
97
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
98
|
+
end
|
99
99
|
end
|
100
100
|
|
101
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
-
|
109
105
|
if !@description.nil? && @description.to_s.length < 1
|
110
106
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
111
107
|
end
|
@@ -118,29 +114,23 @@ module PulpContainerClient
|
|
118
114
|
invalid_properties.push('invalid value for "name", 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
|
|
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
|
128
127
|
return false if !@description.nil? && @description.to_s.length < 1
|
129
128
|
return false if @name.nil?
|
130
129
|
return false if @name.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
|
-
|
144
134
|
# Custom attribute writer method with validation
|
145
135
|
# @param [Object] description Value to be assigned
|
146
136
|
def description=(description)
|
@@ -165,16 +155,26 @@ module PulpContainerClient
|
|
165
155
|
@name = name
|
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
|
-
retain_repo_versions == o.retain_repo_versions &&
|
174
173
|
description == o.description &&
|
175
|
-
pulp_labels == o.pulp_labels &&
|
176
174
|
name == o.name &&
|
177
|
-
manifest_signing_service == o.manifest_signing_service
|
175
|
+
manifest_signing_service == o.manifest_signing_service &&
|
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
|
+
[description, name, manifest_signing_service, pulp_labels, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|