pulp_container_client 2.20.4 → 2.20.5
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 +8 -8
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +8 -8
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
- data/docs/PatchedcontainerContainerDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +35 -35
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +46 -46
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +35 -35
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +46 -46
- data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
- 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 +52 -52
- data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
- data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
- data/lib/pulp_container_client/version.rb +1 -1
- 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_pull_through_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +10 -10
- 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_pull_through_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
- metadata +64 -64
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for ContainerDistribution.
|
17
17
|
class PatchedcontainerContainerDistribution
|
18
|
-
|
19
|
-
attr_accessor :hidden
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
21
|
attr_accessor :base_path
|
26
22
|
|
27
|
-
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
24
|
+
attr_accessor :content_guard
|
25
|
+
|
26
|
+
# Whether this distribution should be shown in the content app.
|
27
|
+
attr_accessor :hidden
|
28
28
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
34
34
|
|
35
35
|
# RepositoryVersion to be served
|
36
36
|
attr_accessor :repository_version
|
@@ -44,12 +44,12 @@ module PulpContainerClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'hidden' => :'hidden',
|
48
|
-
:'repository' => :'repository',
|
49
|
-
:'base_path' => :'base_path',
|
50
47
|
:'pulp_labels' => :'pulp_labels',
|
51
|
-
:'
|
48
|
+
:'base_path' => :'base_path',
|
52
49
|
:'content_guard' => :'content_guard',
|
50
|
+
:'hidden' => :'hidden',
|
51
|
+
:'name' => :'name',
|
52
|
+
:'repository' => :'repository',
|
53
53
|
:'repository_version' => :'repository_version',
|
54
54
|
:'private' => :'private',
|
55
55
|
:'description' => :'description'
|
@@ -59,12 +59,12 @@ module PulpContainerClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'hidden' => :'Boolean',
|
63
|
-
:'repository' => :'String',
|
64
|
-
:'base_path' => :'String',
|
65
62
|
:'pulp_labels' => :'Hash<String, String>',
|
66
|
-
:'
|
63
|
+
:'base_path' => :'String',
|
67
64
|
:'content_guard' => :'String',
|
65
|
+
:'hidden' => :'Boolean',
|
66
|
+
:'name' => :'String',
|
67
|
+
:'repository' => :'String',
|
68
68
|
:'repository_version' => :'String',
|
69
69
|
:'private' => :'Boolean',
|
70
70
|
:'description' => :'String'
|
@@ -95,32 +95,32 @@ module PulpContainerClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.key?(:'repository')
|
105
|
-
self.repository = attributes[:'repository']
|
98
|
+
if attributes.key?(:'pulp_labels')
|
99
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
100
|
+
self.pulp_labels = value
|
101
|
+
end
|
106
102
|
end
|
107
103
|
|
108
104
|
if attributes.key?(:'base_path')
|
109
105
|
self.base_path = attributes[:'base_path']
|
110
106
|
end
|
111
107
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
|
114
|
-
|
115
|
-
|
108
|
+
if attributes.key?(:'content_guard')
|
109
|
+
self.content_guard = attributes[:'content_guard']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'hidden')
|
113
|
+
self.hidden = attributes[:'hidden']
|
114
|
+
else
|
115
|
+
self.hidden = false
|
116
116
|
end
|
117
117
|
|
118
118
|
if attributes.key?(:'name')
|
119
119
|
self.name = attributes[:'name']
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'repository')
|
123
|
+
self.repository = attributes[:'repository']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'repository_version')
|
@@ -199,12 +199,12 @@ module PulpContainerClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
-
hidden == o.hidden &&
|
203
|
-
repository == o.repository &&
|
204
|
-
base_path == o.base_path &&
|
205
202
|
pulp_labels == o.pulp_labels &&
|
206
|
-
|
203
|
+
base_path == o.base_path &&
|
207
204
|
content_guard == o.content_guard &&
|
205
|
+
hidden == o.hidden &&
|
206
|
+
name == o.name &&
|
207
|
+
repository == o.repository &&
|
208
208
|
repository_version == o.repository_version &&
|
209
209
|
private == o.private &&
|
210
210
|
description == o.description
|
@@ -219,7 +219,7 @@ module PulpContainerClient
|
|
219
219
|
# Calculates hash code according to all attributes.
|
220
220
|
# @return [Integer] Hash code
|
221
221
|
def hash
|
222
|
-
[
|
222
|
+
[pulp_labels, base_path, content_guard, hidden, name, repository, repository_version, private, description].hash
|
223
223
|
end
|
224
224
|
|
225
225
|
# Builds the object from hash
|
data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb
CHANGED
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# A serializer for a specialized pull-through distribution referencing sub-distributions.
|
17
17
|
class PatchedcontainerContainerPullThroughDistribution
|
18
|
-
|
19
|
-
attr_accessor :hidden
|
20
|
-
|
21
|
-
# The latest RepositoryVersion for this Repository will be served.
|
22
|
-
attr_accessor :repository
|
18
|
+
attr_accessor :pulp_labels
|
23
19
|
|
24
20
|
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
25
21
|
attr_accessor :base_path
|
26
22
|
|
27
|
-
|
23
|
+
# An optional content-guard. If none is specified, a default one will be used.
|
24
|
+
attr_accessor :content_guard
|
25
|
+
|
26
|
+
# Whether this distribution should be shown in the content app.
|
27
|
+
attr_accessor :hidden
|
28
28
|
|
29
29
|
# A unique name. Ex, `rawhide` and `stable`.
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# The latest RepositoryVersion for this Repository will be served.
|
33
|
+
attr_accessor :repository
|
34
34
|
|
35
35
|
# Remote that can be used to fetch content when using pull-through caching.
|
36
36
|
attr_accessor :remote
|
@@ -47,12 +47,12 @@ module PulpContainerClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'hidden' => :'hidden',
|
51
|
-
:'repository' => :'repository',
|
52
|
-
:'base_path' => :'base_path',
|
53
50
|
:'pulp_labels' => :'pulp_labels',
|
54
|
-
:'
|
51
|
+
:'base_path' => :'base_path',
|
55
52
|
:'content_guard' => :'content_guard',
|
53
|
+
:'hidden' => :'hidden',
|
54
|
+
:'name' => :'name',
|
55
|
+
:'repository' => :'repository',
|
56
56
|
:'remote' => :'remote',
|
57
57
|
:'distributions' => :'distributions',
|
58
58
|
:'private' => :'private',
|
@@ -63,12 +63,12 @@ module PulpContainerClient
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
-
:'hidden' => :'Boolean',
|
67
|
-
:'repository' => :'String',
|
68
|
-
:'base_path' => :'String',
|
69
66
|
:'pulp_labels' => :'Hash<String, String>',
|
70
|
-
:'
|
67
|
+
:'base_path' => :'String',
|
71
68
|
:'content_guard' => :'String',
|
69
|
+
:'hidden' => :'Boolean',
|
70
|
+
:'name' => :'String',
|
71
|
+
:'repository' => :'String',
|
72
72
|
:'remote' => :'String',
|
73
73
|
:'distributions' => :'Array<String>',
|
74
74
|
:'private' => :'Boolean',
|
@@ -99,32 +99,32 @@ module PulpContainerClient
|
|
99
99
|
h[k.to_sym] = v
|
100
100
|
}
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'repository')
|
109
|
-
self.repository = attributes[:'repository']
|
102
|
+
if attributes.key?(:'pulp_labels')
|
103
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
104
|
+
self.pulp_labels = value
|
105
|
+
end
|
110
106
|
end
|
111
107
|
|
112
108
|
if attributes.key?(:'base_path')
|
113
109
|
self.base_path = attributes[:'base_path']
|
114
110
|
end
|
115
111
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
|
118
|
-
|
119
|
-
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'hidden')
|
117
|
+
self.hidden = attributes[:'hidden']
|
118
|
+
else
|
119
|
+
self.hidden = false
|
120
120
|
end
|
121
121
|
|
122
122
|
if attributes.key?(:'name')
|
123
123
|
self.name = attributes[:'name']
|
124
124
|
end
|
125
125
|
|
126
|
-
if attributes.key?(:'
|
127
|
-
self.
|
126
|
+
if attributes.key?(:'repository')
|
127
|
+
self.repository = attributes[:'repository']
|
128
128
|
end
|
129
129
|
|
130
130
|
if attributes.key?(:'remote')
|
@@ -209,12 +209,12 @@ module PulpContainerClient
|
|
209
209
|
def ==(o)
|
210
210
|
return true if self.equal?(o)
|
211
211
|
self.class == o.class &&
|
212
|
-
hidden == o.hidden &&
|
213
|
-
repository == o.repository &&
|
214
|
-
base_path == o.base_path &&
|
215
212
|
pulp_labels == o.pulp_labels &&
|
216
|
-
|
213
|
+
base_path == o.base_path &&
|
217
214
|
content_guard == o.content_guard &&
|
215
|
+
hidden == o.hidden &&
|
216
|
+
name == o.name &&
|
217
|
+
repository == o.repository &&
|
218
218
|
remote == o.remote &&
|
219
219
|
distributions == o.distributions &&
|
220
220
|
private == o.private &&
|
@@ -230,7 +230,7 @@ module PulpContainerClient
|
|
230
230
|
# Calculates hash code according to all attributes.
|
231
231
|
# @return [Integer] Hash code
|
232
232
|
def hash
|
233
|
-
[
|
233
|
+
[pulp_labels, base_path, content_guard, hidden, name, repository, remote, distributions, private, description].hash
|
234
234
|
end
|
235
235
|
|
236
236
|
# Builds the object from hash
|
@@ -303,20 +303,20 @@ module PulpContainerClient
|
|
303
303
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
304
304
|
end
|
305
305
|
|
306
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
307
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
306
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
307
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
308
308
|
end
|
309
309
|
|
310
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
311
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
310
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
311
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
312
312
|
end
|
313
313
|
|
314
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
315
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
314
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
315
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
316
316
|
end
|
317
317
|
|
318
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
319
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
318
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
319
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
320
320
|
end
|
321
321
|
|
322
322
|
invalid_properties
|
@@ -336,10 +336,10 @@ module PulpContainerClient
|
|
336
336
|
return false if !@username.nil? && @username.to_s.length < 1
|
337
337
|
return false if !@password.nil? && @password.to_s.length < 1
|
338
338
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
339
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
340
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
341
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
342
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
339
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
340
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
341
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
342
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
343
343
|
true
|
344
344
|
end
|
345
345
|
|
@@ -456,8 +456,8 @@ module PulpContainerClient
|
|
456
456
|
# Custom attribute writer method with validation
|
457
457
|
# @param [Object] total_timeout Value to be assigned
|
458
458
|
def total_timeout=(total_timeout)
|
459
|
-
if !total_timeout.nil? && total_timeout < 0
|
460
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
459
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
460
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
461
461
|
end
|
462
462
|
|
463
463
|
@total_timeout = total_timeout
|
@@ -466,8 +466,8 @@ module PulpContainerClient
|
|
466
466
|
# Custom attribute writer method with validation
|
467
467
|
# @param [Object] connect_timeout Value to be assigned
|
468
468
|
def connect_timeout=(connect_timeout)
|
469
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
470
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
469
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
470
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
471
471
|
end
|
472
472
|
|
473
473
|
@connect_timeout = connect_timeout
|
@@ -476,8 +476,8 @@ module PulpContainerClient
|
|
476
476
|
# Custom attribute writer method with validation
|
477
477
|
# @param [Object] sock_connect_timeout Value to be assigned
|
478
478
|
def sock_connect_timeout=(sock_connect_timeout)
|
479
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
480
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
479
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
480
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
481
481
|
end
|
482
482
|
|
483
483
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -486,8 +486,8 @@ module PulpContainerClient
|
|
486
486
|
# Custom attribute writer method with validation
|
487
487
|
# @param [Object] sock_read_timeout Value to be assigned
|
488
488
|
def sock_read_timeout=(sock_read_timeout)
|
489
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
490
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
489
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
490
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
491
491
|
end
|
492
492
|
|
493
493
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,48 +15,48 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class PatchedcontainerContainerPushRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
20
|
+
# An optional description.
|
21
|
+
attr_accessor :description
|
22
|
+
|
18
23
|
# A unique name for this repository.
|
19
24
|
attr_accessor :name
|
20
25
|
|
21
26
|
# A reference to an associated signing service.
|
22
27
|
attr_accessor :manifest_signing_service
|
23
28
|
|
24
|
-
attr_accessor :pulp_labels
|
25
|
-
|
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
|
+
:'description' => :'description',
|
35
37
|
:'name' => :'name',
|
36
38
|
:'manifest_signing_service' => :'manifest_signing_service',
|
37
|
-
:'
|
38
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
39
|
-
:'description' => :'description'
|
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
|
+
:'description' => :'String',
|
46
48
|
:'name' => :'String',
|
47
49
|
:'manifest_signing_service' => :'String',
|
48
|
-
:'
|
49
|
-
:'retain_repo_versions' => :'Integer',
|
50
|
-
:'description' => :'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,6 +75,16 @@ 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
|
+
if attributes.key?(:'description')
|
85
|
+
self.description = attributes[:'description']
|
86
|
+
end
|
87
|
+
|
78
88
|
if attributes.key?(:'name')
|
79
89
|
self.name = attributes[:'name']
|
80
90
|
end
|
@@ -83,25 +93,19 @@ module PulpContainerClient
|
|
83
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
84
94
|
end
|
85
95
|
|
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
96
|
if attributes.key?(:'retain_repo_versions')
|
93
97
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
94
98
|
end
|
95
|
-
|
96
|
-
if attributes.key?(:'description')
|
97
|
-
self.description = attributes[:'description']
|
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 !@description.nil? && @description.to_s.length < 1
|
106
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
107
|
+
end
|
108
|
+
|
105
109
|
if !@name.nil? && @name.to_s.length < 1
|
106
110
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
107
111
|
end
|
@@ -110,22 +114,28 @@ module PulpContainerClient
|
|
110
114
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
111
115
|
end
|
112
116
|
|
113
|
-
if !@description.nil? && @description.to_s.length < 1
|
114
|
-
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
115
|
-
end
|
116
|
-
|
117
117
|
invalid_properties
|
118
118
|
end
|
119
119
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
123
124
|
return false if !@name.nil? && @name.to_s.length < 1
|
124
125
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
|
-
return false if !@description.nil? && @description.to_s.length < 1
|
126
126
|
true
|
127
127
|
end
|
128
128
|
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] description Value to be assigned
|
131
|
+
def description=(description)
|
132
|
+
if !description.nil? && description.to_s.length < 1
|
133
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
134
|
+
end
|
135
|
+
|
136
|
+
@description = description
|
137
|
+
end
|
138
|
+
|
129
139
|
# Custom attribute writer method with validation
|
130
140
|
# @param [Object] name Value to be assigned
|
131
141
|
def name=(name)
|
@@ -146,26 +156,16 @@ module PulpContainerClient
|
|
146
156
|
@retain_repo_versions = retain_repo_versions
|
147
157
|
end
|
148
158
|
|
149
|
-
# Custom attribute writer method with validation
|
150
|
-
# @param [Object] description Value to be assigned
|
151
|
-
def description=(description)
|
152
|
-
if !description.nil? && description.to_s.length < 1
|
153
|
-
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
154
|
-
end
|
155
|
-
|
156
|
-
@description = description
|
157
|
-
end
|
158
|
-
|
159
159
|
# Checks equality by comparing each attribute.
|
160
160
|
# @param [Object] Object to be compared
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
pulp_labels == o.pulp_labels &&
|
165
|
+
description == o.description &&
|
164
166
|
name == o.name &&
|
165
167
|
manifest_signing_service == o.manifest_signing_service &&
|
166
|
-
|
167
|
-
retain_repo_versions == o.retain_repo_versions &&
|
168
|
-
description == o.description
|
168
|
+
retain_repo_versions == o.retain_repo_versions
|
169
169
|
end
|
170
170
|
|
171
171
|
# @see the `==` method
|
@@ -177,7 +177,7 @@ module PulpContainerClient
|
|
177
177
|
# Calculates hash code according to all attributes.
|
178
178
|
# @return [Integer] Hash code
|
179
179
|
def hash
|
180
|
-
[
|
180
|
+
[pulp_labels, description, name, manifest_signing_service, retain_repo_versions].hash
|
181
181
|
end
|
182
182
|
|
183
183
|
# Builds the object from hash
|
@@ -346,20 +346,20 @@ module PulpContainerClient
|
|
346
346
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
347
347
|
end
|
348
348
|
|
349
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
350
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
349
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
350
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
351
351
|
end
|
352
352
|
|
353
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
354
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
353
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
354
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
357
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
358
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
361
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
362
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
363
363
|
end
|
364
364
|
|
365
365
|
if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
@@ -387,10 +387,10 @@ module PulpContainerClient
|
|
387
387
|
return false if !@username.nil? && @username.to_s.length < 1
|
388
388
|
return false if !@password.nil? && @password.to_s.length < 1
|
389
389
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
390
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
392
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
393
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
390
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
391
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
392
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
393
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
394
394
|
return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
|
395
395
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
396
396
|
true
|
@@ -509,8 +509,8 @@ module PulpContainerClient
|
|
509
509
|
# Custom attribute writer method with validation
|
510
510
|
# @param [Object] total_timeout Value to be assigned
|
511
511
|
def total_timeout=(total_timeout)
|
512
|
-
if !total_timeout.nil? && total_timeout < 0
|
513
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
512
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
513
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
514
514
|
end
|
515
515
|
|
516
516
|
@total_timeout = total_timeout
|
@@ -519,8 +519,8 @@ module PulpContainerClient
|
|
519
519
|
# Custom attribute writer method with validation
|
520
520
|
# @param [Object] connect_timeout Value to be assigned
|
521
521
|
def connect_timeout=(connect_timeout)
|
522
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
523
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
522
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
523
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
524
524
|
end
|
525
525
|
|
526
526
|
@connect_timeout = connect_timeout
|
@@ -529,8 +529,8 @@ module PulpContainerClient
|
|
529
529
|
# Custom attribute writer method with validation
|
530
530
|
# @param [Object] sock_connect_timeout Value to be assigned
|
531
531
|
def sock_connect_timeout=(sock_connect_timeout)
|
532
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
533
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
532
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
533
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
534
534
|
end
|
535
535
|
|
536
536
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -539,8 +539,8 @@ module PulpContainerClient
|
|
539
539
|
# Custom attribute writer method with validation
|
540
540
|
# @param [Object] sock_read_timeout Value to be assigned
|
541
541
|
def sock_read_timeout=(sock_read_timeout)
|
542
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
543
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
542
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
543
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
544
544
|
end
|
545
545
|
|
546
546
|
@sock_read_timeout = sock_read_timeout
|