pulp_container_client 2.9.1 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContainerContainerDistribution.md +3 -3
- data/docs/ContainerContainerDistributionResponse.md +7 -7
- data/docs/ContainerContainerPushRepository.md +4 -4
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +3 -3
- data/docs/PatchedcontainerContainerPushRepository.md +4 -4
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +64 -11
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +27 -27
- data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
- data/lib/pulp_container_client/models/container_container_push_repository.rb +55 -21
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +36 -36
- data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
- data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
- data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +56 -11
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +46 -16
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
- data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
- data/lib/pulp_container_client/models/remove_image.rb +19 -0
- data/lib/pulp_container_client/models/tag_image.rb +28 -0
- data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/pulp_container_client.gemspec +1 -1
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +7 -7
- 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 +56 -50
@@ -91,15 +91,30 @@ module PulpContainerClient
|
|
91
91
|
# @return Array for valid properties with the reasons
|
92
92
|
def list_invalid_properties
|
93
93
|
invalid_properties = Array.new
|
94
|
+
if !@tag.nil? && @tag.to_s.length < 1
|
95
|
+
invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
|
96
|
+
end
|
97
|
+
|
94
98
|
invalid_properties
|
95
99
|
end
|
96
100
|
|
97
101
|
# Check to see if the all the properties in the model are valid
|
98
102
|
# @return true if the model is valid
|
99
103
|
def valid?
|
104
|
+
return false if !@tag.nil? && @tag.to_s.length < 1
|
100
105
|
true
|
101
106
|
end
|
102
107
|
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param [Object] tag Value to be assigned
|
110
|
+
def tag=(tag)
|
111
|
+
if !tag.nil? && tag.to_s.length < 1
|
112
|
+
fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
|
113
|
+
end
|
114
|
+
|
115
|
+
@tag = tag
|
116
|
+
end
|
117
|
+
|
103
118
|
# Checks equality by comparing each attribute.
|
104
119
|
# @param [Object] Object to be compared
|
105
120
|
def ==(o)
|
@@ -15,9 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
# An optional content-guard. If none is specified, a default one will be used.
|
19
|
-
attr_accessor :content_guard
|
20
|
-
|
21
18
|
attr_accessor :pulp_labels
|
22
19
|
|
23
20
|
# The latest RepositoryVersion for this Repository will be served.
|
@@ -26,6 +23,9 @@ module PulpContainerClient
|
|
26
23
|
# A unique name. Ex, `rawhide` and `stable`.
|
27
24
|
attr_accessor :name
|
28
25
|
|
26
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
27
|
+
attr_accessor :content_guard
|
28
|
+
|
29
29
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
30
30
|
attr_accessor :base_path
|
31
31
|
|
@@ -41,10 +41,10 @@ module PulpContainerClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'content_guard' => :'content_guard',
|
45
44
|
:'pulp_labels' => :'pulp_labels',
|
46
45
|
:'repository' => :'repository',
|
47
46
|
:'name' => :'name',
|
47
|
+
:'content_guard' => :'content_guard',
|
48
48
|
:'base_path' => :'base_path',
|
49
49
|
:'repository_version' => :'repository_version',
|
50
50
|
:'private' => :'private',
|
@@ -55,10 +55,10 @@ module PulpContainerClient
|
|
55
55
|
# Attribute type mapping.
|
56
56
|
def self.openapi_types
|
57
57
|
{
|
58
|
-
:'content_guard' => :'String',
|
59
58
|
:'pulp_labels' => :'Object',
|
60
59
|
:'repository' => :'String',
|
61
60
|
:'name' => :'String',
|
61
|
+
:'content_guard' => :'String',
|
62
62
|
:'base_path' => :'String',
|
63
63
|
:'repository_version' => :'String',
|
64
64
|
:'private' => :'Boolean',
|
@@ -90,10 +90,6 @@ module PulpContainerClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
-
if attributes.key?(:'content_guard')
|
94
|
-
self.content_guard = attributes[:'content_guard']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'pulp_labels')
|
98
94
|
self.pulp_labels = attributes[:'pulp_labels']
|
99
95
|
end
|
@@ -106,6 +102,10 @@ module PulpContainerClient
|
|
106
102
|
self.name = attributes[:'name']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'content_guard')
|
106
|
+
self.content_guard = attributes[:'content_guard']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'base_path')
|
110
110
|
self.base_path = attributes[:'base_path']
|
111
111
|
end
|
@@ -127,24 +127,69 @@ module PulpContainerClient
|
|
127
127
|
# @return Array for valid properties with the reasons
|
128
128
|
def list_invalid_properties
|
129
129
|
invalid_properties = Array.new
|
130
|
+
if !@name.nil? && @name.to_s.length < 1
|
131
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
132
|
+
end
|
133
|
+
|
134
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
135
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
136
|
+
end
|
137
|
+
|
138
|
+
if !@description.nil? && @description.to_s.length < 1
|
139
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
140
|
+
end
|
141
|
+
|
130
142
|
invalid_properties
|
131
143
|
end
|
132
144
|
|
133
145
|
# Check to see if the all the properties in the model are valid
|
134
146
|
# @return true if the model is valid
|
135
147
|
def valid?
|
148
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
149
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
150
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
136
151
|
true
|
137
152
|
end
|
138
153
|
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param [Object] name Value to be assigned
|
156
|
+
def name=(name)
|
157
|
+
if !name.nil? && name.to_s.length < 1
|
158
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@name = name
|
162
|
+
end
|
163
|
+
|
164
|
+
# Custom attribute writer method with validation
|
165
|
+
# @param [Object] base_path Value to be assigned
|
166
|
+
def base_path=(base_path)
|
167
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
168
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
169
|
+
end
|
170
|
+
|
171
|
+
@base_path = base_path
|
172
|
+
end
|
173
|
+
|
174
|
+
# Custom attribute writer method with validation
|
175
|
+
# @param [Object] description Value to be assigned
|
176
|
+
def description=(description)
|
177
|
+
if !description.nil? && description.to_s.length < 1
|
178
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
179
|
+
end
|
180
|
+
|
181
|
+
@description = description
|
182
|
+
end
|
183
|
+
|
139
184
|
# Checks equality by comparing each attribute.
|
140
185
|
# @param [Object] Object to be compared
|
141
186
|
def ==(o)
|
142
187
|
return true if self.equal?(o)
|
143
188
|
self.class == o.class &&
|
144
|
-
content_guard == o.content_guard &&
|
145
189
|
pulp_labels == o.pulp_labels &&
|
146
190
|
repository == o.repository &&
|
147
191
|
name == o.name &&
|
192
|
+
content_guard == o.content_guard &&
|
148
193
|
base_path == o.base_path &&
|
149
194
|
repository_version == o.repository_version &&
|
150
195
|
private == o.private &&
|
@@ -160,7 +205,7 @@ module PulpContainerClient
|
|
160
205
|
# Calculates hash code according to all attributes.
|
161
206
|
# @return [Integer] Hash code
|
162
207
|
def hash
|
163
|
-
[
|
208
|
+
[pulp_labels, repository, name, content_guard, base_path, repository_version, private, description].hash
|
164
209
|
end
|
165
210
|
|
166
211
|
# Builds the object from hash
|
@@ -15,9 +15,6 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
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
|
attr_accessor :pulp_labels
|
22
19
|
|
23
20
|
# A unique name for this repository.
|
@@ -26,31 +23,34 @@ module PulpContainerClient
|
|
26
23
|
# An optional description.
|
27
24
|
attr_accessor :description
|
28
25
|
|
26
|
+
# 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.
|
27
|
+
attr_accessor :retain_repo_versions
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
33
32
|
:'pulp_labels' => :'pulp_labels',
|
34
33
|
:'name' => :'name',
|
35
|
-
:'description' => :'description'
|
34
|
+
:'description' => :'description',
|
35
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'retain_repo_versions' => :'Integer',
|
43
42
|
:'pulp_labels' => :'Object',
|
44
43
|
:'name' => :'String',
|
45
|
-
:'description' => :'String'
|
44
|
+
:'description' => :'String',
|
45
|
+
:'retain_repo_versions' => :'Integer'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
49
49
|
# List of attributes with nullable: true
|
50
50
|
def self.openapi_nullable
|
51
51
|
Set.new([
|
52
|
-
:'
|
53
|
-
:'
|
52
|
+
:'description',
|
53
|
+
:'retain_repo_versions'
|
54
54
|
])
|
55
55
|
end
|
56
56
|
|
@@ -69,10 +69,6 @@ module PulpContainerClient
|
|
69
69
|
h[k.to_sym] = v
|
70
70
|
}
|
71
71
|
|
72
|
-
if attributes.key?(:'retain_repo_versions')
|
73
|
-
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
74
|
-
end
|
75
|
-
|
76
72
|
if attributes.key?(:'pulp_labels')
|
77
73
|
self.pulp_labels = attributes[:'pulp_labels']
|
78
74
|
end
|
@@ -84,12 +80,24 @@ module PulpContainerClient
|
|
84
80
|
if attributes.key?(:'description')
|
85
81
|
self.description = attributes[:'description']
|
86
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'retain_repo_versions')
|
85
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
86
|
+
end
|
87
87
|
end
|
88
88
|
|
89
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
+
if !@name.nil? && @name.to_s.length < 1
|
94
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if !@description.nil? && @description.to_s.length < 1
|
98
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
99
|
+
end
|
100
|
+
|
93
101
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
94
102
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
95
103
|
end
|
@@ -100,10 +108,32 @@ module PulpContainerClient
|
|
100
108
|
# Check to see if the all the properties in the model are valid
|
101
109
|
# @return true if the model is valid
|
102
110
|
def valid?
|
111
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
112
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
103
113
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
114
|
true
|
105
115
|
end
|
106
116
|
|
117
|
+
# Custom attribute writer method with validation
|
118
|
+
# @param [Object] name Value to be assigned
|
119
|
+
def name=(name)
|
120
|
+
if !name.nil? && name.to_s.length < 1
|
121
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
122
|
+
end
|
123
|
+
|
124
|
+
@name = name
|
125
|
+
end
|
126
|
+
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] description Value to be assigned
|
129
|
+
def description=(description)
|
130
|
+
if !description.nil? && description.to_s.length < 1
|
131
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
132
|
+
end
|
133
|
+
|
134
|
+
@description = description
|
135
|
+
end
|
136
|
+
|
107
137
|
# Custom attribute writer method with validation
|
108
138
|
# @param [Object] retain_repo_versions Value to be assigned
|
109
139
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -119,10 +149,10 @@ module PulpContainerClient
|
|
119
149
|
def ==(o)
|
120
150
|
return true if self.equal?(o)
|
121
151
|
self.class == o.class &&
|
122
|
-
retain_repo_versions == o.retain_repo_versions &&
|
123
152
|
pulp_labels == o.pulp_labels &&
|
124
153
|
name == o.name &&
|
125
|
-
description == o.description
|
154
|
+
description == o.description &&
|
155
|
+
retain_repo_versions == o.retain_repo_versions
|
126
156
|
end
|
127
157
|
|
128
158
|
# @see the `==` method
|
@@ -134,7 +164,7 @@ module PulpContainerClient
|
|
134
164
|
# Calculates hash code according to all attributes.
|
135
165
|
# @return [Integer] Hash code
|
136
166
|
def hash
|
137
|
-
[
|
167
|
+
[pulp_labels, name, description, retain_repo_versions].hash
|
138
168
|
end
|
139
169
|
|
140
170
|
# Builds the object from hash
|
@@ -74,7 +74,7 @@ module PulpContainerClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Name of the upstream repository
|
@@ -291,6 +291,46 @@ module PulpContainerClient
|
|
291
291
|
# @return Array for valid properties with the reasons
|
292
292
|
def list_invalid_properties
|
293
293
|
invalid_properties = Array.new
|
294
|
+
if !@name.nil? && @name.to_s.length < 1
|
295
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
296
|
+
end
|
297
|
+
|
298
|
+
if !@url.nil? && @url.to_s.length < 1
|
299
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
300
|
+
end
|
301
|
+
|
302
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
303
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
304
|
+
end
|
305
|
+
|
306
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
307
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
308
|
+
end
|
309
|
+
|
310
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
311
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
312
|
+
end
|
313
|
+
|
314
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
315
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
316
|
+
end
|
317
|
+
|
318
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
319
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
320
|
+
end
|
321
|
+
|
322
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
323
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
324
|
+
end
|
325
|
+
|
326
|
+
if !@username.nil? && @username.to_s.length < 1
|
327
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
328
|
+
end
|
329
|
+
|
330
|
+
if !@password.nil? && @password.to_s.length < 1
|
331
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
332
|
+
end
|
333
|
+
|
294
334
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
295
335
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
296
336
|
end
|
@@ -311,20 +351,135 @@ module PulpContainerClient
|
|
311
351
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
312
352
|
end
|
313
353
|
|
354
|
+
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
355
|
+
invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
|
356
|
+
end
|
357
|
+
|
314
358
|
invalid_properties
|
315
359
|
end
|
316
360
|
|
317
361
|
# Check to see if the all the properties in the model are valid
|
318
362
|
# @return true if the model is valid
|
319
363
|
def valid?
|
364
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
365
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
366
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
367
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
368
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
369
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
370
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
371
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
372
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
373
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
320
374
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
321
375
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
322
376
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
323
377
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
324
378
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
379
|
+
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
325
380
|
true
|
326
381
|
end
|
327
382
|
|
383
|
+
# Custom attribute writer method with validation
|
384
|
+
# @param [Object] name Value to be assigned
|
385
|
+
def name=(name)
|
386
|
+
if !name.nil? && name.to_s.length < 1
|
387
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
388
|
+
end
|
389
|
+
|
390
|
+
@name = name
|
391
|
+
end
|
392
|
+
|
393
|
+
# Custom attribute writer method with validation
|
394
|
+
# @param [Object] url Value to be assigned
|
395
|
+
def url=(url)
|
396
|
+
if !url.nil? && url.to_s.length < 1
|
397
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
398
|
+
end
|
399
|
+
|
400
|
+
@url = url
|
401
|
+
end
|
402
|
+
|
403
|
+
# Custom attribute writer method with validation
|
404
|
+
# @param [Object] ca_cert Value to be assigned
|
405
|
+
def ca_cert=(ca_cert)
|
406
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
407
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
408
|
+
end
|
409
|
+
|
410
|
+
@ca_cert = ca_cert
|
411
|
+
end
|
412
|
+
|
413
|
+
# Custom attribute writer method with validation
|
414
|
+
# @param [Object] client_cert Value to be assigned
|
415
|
+
def client_cert=(client_cert)
|
416
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
417
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
418
|
+
end
|
419
|
+
|
420
|
+
@client_cert = client_cert
|
421
|
+
end
|
422
|
+
|
423
|
+
# Custom attribute writer method with validation
|
424
|
+
# @param [Object] client_key Value to be assigned
|
425
|
+
def client_key=(client_key)
|
426
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
427
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
428
|
+
end
|
429
|
+
|
430
|
+
@client_key = client_key
|
431
|
+
end
|
432
|
+
|
433
|
+
# Custom attribute writer method with validation
|
434
|
+
# @param [Object] proxy_url Value to be assigned
|
435
|
+
def proxy_url=(proxy_url)
|
436
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
437
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
438
|
+
end
|
439
|
+
|
440
|
+
@proxy_url = proxy_url
|
441
|
+
end
|
442
|
+
|
443
|
+
# Custom attribute writer method with validation
|
444
|
+
# @param [Object] proxy_username Value to be assigned
|
445
|
+
def proxy_username=(proxy_username)
|
446
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
448
|
+
end
|
449
|
+
|
450
|
+
@proxy_username = proxy_username
|
451
|
+
end
|
452
|
+
|
453
|
+
# Custom attribute writer method with validation
|
454
|
+
# @param [Object] proxy_password Value to be assigned
|
455
|
+
def proxy_password=(proxy_password)
|
456
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
457
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
458
|
+
end
|
459
|
+
|
460
|
+
@proxy_password = proxy_password
|
461
|
+
end
|
462
|
+
|
463
|
+
# Custom attribute writer method with validation
|
464
|
+
# @param [Object] username Value to be assigned
|
465
|
+
def username=(username)
|
466
|
+
if !username.nil? && username.to_s.length < 1
|
467
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
468
|
+
end
|
469
|
+
|
470
|
+
@username = username
|
471
|
+
end
|
472
|
+
|
473
|
+
# Custom attribute writer method with validation
|
474
|
+
# @param [Object] password Value to be assigned
|
475
|
+
def password=(password)
|
476
|
+
if !password.nil? && password.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
478
|
+
end
|
479
|
+
|
480
|
+
@password = password
|
481
|
+
end
|
482
|
+
|
328
483
|
# Custom attribute writer method with validation
|
329
484
|
# @param [Object] download_concurrency Value to be assigned
|
330
485
|
def download_concurrency=(download_concurrency)
|
@@ -375,6 +530,16 @@ module PulpContainerClient
|
|
375
530
|
@sock_read_timeout = sock_read_timeout
|
376
531
|
end
|
377
532
|
|
533
|
+
# Custom attribute writer method with validation
|
534
|
+
# @param [Object] upstream_name Value to be assigned
|
535
|
+
def upstream_name=(upstream_name)
|
536
|
+
if !upstream_name.nil? && upstream_name.to_s.length < 1
|
537
|
+
fail ArgumentError, 'invalid value for "upstream_name", the character length must be great than or equal to 1.'
|
538
|
+
end
|
539
|
+
|
540
|
+
@upstream_name = upstream_name
|
541
|
+
end
|
542
|
+
|
378
543
|
# Checks equality by comparing each attribute.
|
379
544
|
# @param [Object] Object to be compared
|
380
545
|
def ==(o)
|
@@ -100,6 +100,14 @@ module PulpContainerClient
|
|
100
100
|
# @return Array for valid properties with the reasons
|
101
101
|
def list_invalid_properties
|
102
102
|
invalid_properties = Array.new
|
103
|
+
if !@name.nil? && @name.to_s.length < 1
|
104
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if !@description.nil? && @description.to_s.length < 1
|
108
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
109
|
+
end
|
110
|
+
|
103
111
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
104
112
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
105
113
|
end
|
@@ -110,10 +118,32 @@ module PulpContainerClient
|
|
110
118
|
# Check to see if the all the properties in the model are valid
|
111
119
|
# @return true if the model is valid
|
112
120
|
def valid?
|
121
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
122
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
113
123
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
114
124
|
true
|
115
125
|
end
|
116
126
|
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] name Value to be assigned
|
129
|
+
def name=(name)
|
130
|
+
if !name.nil? && name.to_s.length < 1
|
131
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
132
|
+
end
|
133
|
+
|
134
|
+
@name = name
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] description Value to be assigned
|
139
|
+
def description=(description)
|
140
|
+
if !description.nil? && description.to_s.length < 1
|
141
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
142
|
+
end
|
143
|
+
|
144
|
+
@description = description
|
145
|
+
end
|
146
|
+
|
117
147
|
# Custom attribute writer method with validation
|
118
148
|
# @param [Object] retain_repo_versions Value to be assigned
|
119
149
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -72,15 +72,45 @@ module PulpContainerClient
|
|
72
72
|
# @return Array for valid properties with the reasons
|
73
73
|
def list_invalid_properties
|
74
74
|
invalid_properties = Array.new
|
75
|
+
if !@name.nil? && @name.to_s.length < 1
|
76
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
77
|
+
end
|
78
|
+
|
79
|
+
if !@description.nil? && @description.to_s.length < 1
|
80
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
81
|
+
end
|
82
|
+
|
75
83
|
invalid_properties
|
76
84
|
end
|
77
85
|
|
78
86
|
# Check to see if the all the properties in the model are valid
|
79
87
|
# @return true if the model is valid
|
80
88
|
def valid?
|
89
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
90
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
81
91
|
true
|
82
92
|
end
|
83
93
|
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param [Object] name Value to be assigned
|
96
|
+
def name=(name)
|
97
|
+
if !name.nil? && name.to_s.length < 1
|
98
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
99
|
+
end
|
100
|
+
|
101
|
+
@name = name
|
102
|
+
end
|
103
|
+
|
104
|
+
# Custom attribute writer method with validation
|
105
|
+
# @param [Object] description Value to be assigned
|
106
|
+
def description=(description)
|
107
|
+
if !description.nil? && description.to_s.length < 1
|
108
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
109
|
+
end
|
110
|
+
|
111
|
+
@description = description
|
112
|
+
end
|
113
|
+
|
84
114
|
# Checks equality by comparing each attribute.
|
85
115
|
# @param [Object] Object to be compared
|
86
116
|
def ==(o)
|
@@ -66,6 +66,10 @@ module PulpContainerClient
|
|
66
66
|
invalid_properties.push('invalid value for "digest", digest cannot be nil.')
|
67
67
|
end
|
68
68
|
|
69
|
+
if @digest.to_s.length < 1
|
70
|
+
invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
|
71
|
+
end
|
72
|
+
|
69
73
|
invalid_properties
|
70
74
|
end
|
71
75
|
|
@@ -73,9 +77,24 @@ module PulpContainerClient
|
|
73
77
|
# @return true if the model is valid
|
74
78
|
def valid?
|
75
79
|
return false if @digest.nil?
|
80
|
+
return false if @digest.to_s.length < 1
|
76
81
|
true
|
77
82
|
end
|
78
83
|
|
84
|
+
# Custom attribute writer method with validation
|
85
|
+
# @param [Object] digest Value to be assigned
|
86
|
+
def digest=(digest)
|
87
|
+
if digest.nil?
|
88
|
+
fail ArgumentError, 'digest cannot be nil'
|
89
|
+
end
|
90
|
+
|
91
|
+
if digest.to_s.length < 1
|
92
|
+
fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
|
93
|
+
end
|
94
|
+
|
95
|
+
@digest = digest
|
96
|
+
end
|
97
|
+
|
79
98
|
# Checks equality by comparing each attribute.
|
80
99
|
# @param [Object] Object to be compared
|
81
100
|
def ==(o)
|