pulp_container_client 2.22.0 → 2.22.2
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 +4 -4
- data/docs/ContainerContainerDistribution.md +6 -6
- data/docs/ContainerContainerDistributionResponse.md +10 -10
- data/docs/ContainerContainerPullThroughDistribution.md +6 -6
- data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
- data/docs/ContainerContainerPushRepository.md +6 -6
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -14
- data/docs/PatchedcontainerContainerDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
- data/docs/PatchedcontainerContainerPushRepository.md +6 -6
- data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
- data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +25 -25
- data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +45 -45
- 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 +25 -25
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
- 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 +25 -25
- data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +25 -25
- 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 +25 -25
- 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 +8 -8
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
- 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 +4 -4
- 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 +4 -4
- metadata +65 -65
@@ -291,20 +291,20 @@ module PulpContainerClient
|
|
291
291
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
292
292
|
end
|
293
293
|
|
294
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
295
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
294
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
295
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
296
296
|
end
|
297
297
|
|
298
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
299
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
298
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
299
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
300
300
|
end
|
301
301
|
|
302
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
303
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
302
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
303
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
304
304
|
end
|
305
305
|
|
306
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
307
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
306
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
307
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
308
308
|
end
|
309
309
|
|
310
310
|
invalid_properties
|
@@ -316,10 +316,10 @@ module PulpContainerClient
|
|
316
316
|
return false if @name.nil?
|
317
317
|
return false if @url.nil?
|
318
318
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
319
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
320
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
321
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
322
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
319
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
320
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
321
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
322
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
323
323
|
true
|
324
324
|
end
|
325
325
|
|
@@ -336,8 +336,8 @@ module PulpContainerClient
|
|
336
336
|
# Custom attribute writer method with validation
|
337
337
|
# @param [Object] total_timeout Value to be assigned
|
338
338
|
def total_timeout=(total_timeout)
|
339
|
-
if !total_timeout.nil? && total_timeout < 0
|
340
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
339
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
340
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
341
341
|
end
|
342
342
|
|
343
343
|
@total_timeout = total_timeout
|
@@ -346,8 +346,8 @@ module PulpContainerClient
|
|
346
346
|
# Custom attribute writer method with validation
|
347
347
|
# @param [Object] connect_timeout Value to be assigned
|
348
348
|
def connect_timeout=(connect_timeout)
|
349
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
350
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
349
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
350
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
351
351
|
end
|
352
352
|
|
353
353
|
@connect_timeout = connect_timeout
|
@@ -356,8 +356,8 @@ module PulpContainerClient
|
|
356
356
|
# Custom attribute writer method with validation
|
357
357
|
# @param [Object] sock_connect_timeout Value to be assigned
|
358
358
|
def sock_connect_timeout=(sock_connect_timeout)
|
359
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
360
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
359
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
360
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
361
361
|
end
|
362
362
|
|
363
363
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -366,8 +366,8 @@ module PulpContainerClient
|
|
366
366
|
# Custom attribute writer method with validation
|
367
367
|
# @param [Object] sock_read_timeout Value to be assigned
|
368
368
|
def sock_read_timeout=(sock_read_timeout)
|
369
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
370
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
369
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
370
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
371
371
|
end
|
372
372
|
|
373
373
|
@sock_read_timeout = sock_read_timeout
|
@@ -15,39 +15,39 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# An optional description.
|
19
21
|
attr_accessor :description
|
20
22
|
|
21
|
-
attr_accessor :pulp_labels
|
22
|
-
|
23
23
|
# A unique name for this repository.
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
27
|
-
attr_accessor :retain_repo_versions
|
28
|
-
|
29
26
|
# A reference to an associated signing service.
|
30
27
|
attr_accessor :manifest_signing_service
|
31
28
|
|
29
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
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
|
-
:'description' => :'description',
|
36
35
|
:'pulp_labels' => :'pulp_labels',
|
36
|
+
:'description' => :'description',
|
37
37
|
:'name' => :'name',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'manifest_signing_service' => :'manifest_signing_service',
|
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
|
-
:'description' => :'String',
|
47
46
|
:'pulp_labels' => :'Hash<String, String>',
|
47
|
+
:'description' => :'String',
|
48
48
|
:'name' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'manifest_signing_service' => :'String',
|
50
|
+
:'retain_repo_versions' => :'Integer'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'description',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'manifest_signing_service',
|
59
|
+
:'retain_repo_versions'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,27 +75,27 @@ module PulpContainerClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'description')
|
79
|
-
self.description = attributes[:'description']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'pulp_labels')
|
83
79
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
84
80
|
self.pulp_labels = value
|
85
81
|
end
|
86
82
|
end
|
87
83
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
self.
|
84
|
+
if attributes.key?(:'description')
|
85
|
+
self.description = attributes[:'description']
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'name')
|
89
|
+
self.name = attributes[:'name']
|
94
90
|
end
|
95
91
|
|
96
92
|
if attributes.key?(:'manifest_signing_service')
|
97
93
|
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
98
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?
|
@@ -170,11 +170,11 @@ module PulpContainerClient
|
|
170
170
|
def ==(o)
|
171
171
|
return true if self.equal?(o)
|
172
172
|
self.class == o.class &&
|
173
|
-
description == o.description &&
|
174
173
|
pulp_labels == o.pulp_labels &&
|
174
|
+
description == o.description &&
|
175
175
|
name == o.name &&
|
176
|
-
|
177
|
-
|
176
|
+
manifest_signing_service == o.manifest_signing_service &&
|
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
|
+
[pulp_labels, description, name, manifest_signing_service, retain_repo_versions].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,66 +15,66 @@ require 'date'
|
|
15
15
|
module PulpContainerClient
|
16
16
|
# Serializer for Container Push Repositories.
|
17
17
|
class ContainerContainerPushRepositoryResponse
|
18
|
-
|
19
|
-
attr_accessor :pulp_created
|
18
|
+
attr_accessor :versions_href
|
20
19
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
20
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
21
|
+
attr_accessor :pulp_last_updated
|
23
22
|
|
24
23
|
attr_accessor :pulp_labels
|
25
24
|
|
26
|
-
|
25
|
+
# Timestamp of creation.
|
26
|
+
attr_accessor :pulp_created
|
27
|
+
|
28
|
+
attr_accessor :latest_version_href
|
27
29
|
|
28
30
|
# The Pulp Resource Name (PRN).
|
29
31
|
attr_accessor :prn
|
30
32
|
|
33
|
+
# An optional description.
|
34
|
+
attr_accessor :description
|
35
|
+
|
36
|
+
attr_accessor :pulp_href
|
37
|
+
|
31
38
|
# A unique name for this repository.
|
32
39
|
attr_accessor :name
|
33
40
|
|
34
|
-
# Retain X versions of the repository. Default is null which retains all versions.
|
35
|
-
attr_accessor :retain_repo_versions
|
36
|
-
|
37
41
|
# A reference to an associated signing service.
|
38
42
|
attr_accessor :manifest_signing_service
|
39
43
|
|
40
|
-
|
41
|
-
|
42
|
-
attr_accessor :latest_version_href
|
43
|
-
|
44
|
-
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
45
|
-
attr_accessor :pulp_last_updated
|
44
|
+
# Retain X versions of the repository. Default is null which retains all versions.
|
45
|
+
attr_accessor :retain_repo_versions
|
46
46
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'pulp_created' => :'pulp_created',
|
51
|
-
:'description' => :'description',
|
52
|
-
:'pulp_labels' => :'pulp_labels',
|
53
50
|
:'versions_href' => :'versions_href',
|
51
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
53
|
+
:'pulp_created' => :'pulp_created',
|
54
|
+
:'latest_version_href' => :'latest_version_href',
|
54
55
|
:'prn' => :'prn',
|
56
|
+
:'description' => :'description',
|
57
|
+
:'pulp_href' => :'pulp_href',
|
55
58
|
:'name' => :'name',
|
56
|
-
:'retain_repo_versions' => :'retain_repo_versions',
|
57
59
|
:'manifest_signing_service' => :'manifest_signing_service',
|
58
|
-
:'
|
59
|
-
:'latest_version_href' => :'latest_version_href',
|
60
|
-
:'pulp_last_updated' => :'pulp_last_updated'
|
60
|
+
:'retain_repo_versions' => :'retain_repo_versions'
|
61
61
|
}
|
62
62
|
end
|
63
63
|
|
64
64
|
# Attribute type mapping.
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
|
-
:'pulp_created' => :'DateTime',
|
68
|
-
:'description' => :'String',
|
69
|
-
:'pulp_labels' => :'Hash<String, String>',
|
70
67
|
:'versions_href' => :'String',
|
68
|
+
:'pulp_last_updated' => :'DateTime',
|
69
|
+
:'pulp_labels' => :'Hash<String, String>',
|
70
|
+
:'pulp_created' => :'DateTime',
|
71
|
+
:'latest_version_href' => :'String',
|
71
72
|
:'prn' => :'String',
|
73
|
+
:'description' => :'String',
|
74
|
+
:'pulp_href' => :'String',
|
72
75
|
:'name' => :'String',
|
73
|
-
:'retain_repo_versions' => :'Integer',
|
74
76
|
:'manifest_signing_service' => :'String',
|
75
|
-
:'
|
76
|
-
:'latest_version_href' => :'String',
|
77
|
-
:'pulp_last_updated' => :'DateTime'
|
77
|
+
:'retain_repo_versions' => :'Integer'
|
78
78
|
}
|
79
79
|
end
|
80
80
|
|
@@ -82,8 +82,8 @@ module PulpContainerClient
|
|
82
82
|
def self.openapi_nullable
|
83
83
|
Set.new([
|
84
84
|
:'description',
|
85
|
-
:'retain_repo_versions',
|
86
85
|
:'manifest_signing_service',
|
86
|
+
:'retain_repo_versions'
|
87
87
|
])
|
88
88
|
end
|
89
89
|
|
@@ -102,12 +102,12 @@ module PulpContainerClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'versions_href')
|
106
|
+
self.versions_href = attributes[:'versions_href']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
109
|
+
if attributes.key?(:'pulp_last_updated')
|
110
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
111
111
|
end
|
112
112
|
|
113
113
|
if attributes.key?(:'pulp_labels')
|
@@ -116,36 +116,36 @@ module PulpContainerClient
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
121
|
-
end
|
122
|
-
|
123
|
-
if attributes.key?(:'prn')
|
124
|
-
self.prn = attributes[:'prn']
|
119
|
+
if attributes.key?(:'pulp_created')
|
120
|
+
self.pulp_created = attributes[:'pulp_created']
|
125
121
|
end
|
126
122
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
self.
|
123
|
+
if attributes.key?(:'latest_version_href')
|
124
|
+
self.latest_version_href = attributes[:'latest_version_href']
|
129
125
|
end
|
130
126
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
self.
|
127
|
+
if attributes.key?(:'prn')
|
128
|
+
self.prn = attributes[:'prn']
|
133
129
|
end
|
134
130
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
self.
|
131
|
+
if attributes.key?(:'description')
|
132
|
+
self.description = attributes[:'description']
|
137
133
|
end
|
138
134
|
|
139
135
|
if attributes.key?(:'pulp_href')
|
140
136
|
self.pulp_href = attributes[:'pulp_href']
|
141
137
|
end
|
142
138
|
|
143
|
-
if attributes.key?(:'
|
144
|
-
self.
|
139
|
+
if attributes.key?(:'name')
|
140
|
+
self.name = attributes[:'name']
|
145
141
|
end
|
146
142
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
143
|
+
if attributes.key?(:'manifest_signing_service')
|
144
|
+
self.manifest_signing_service = attributes[:'manifest_signing_service']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'retain_repo_versions')
|
148
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -187,17 +187,17 @@ module PulpContainerClient
|
|
187
187
|
def ==(o)
|
188
188
|
return true if self.equal?(o)
|
189
189
|
self.class == o.class &&
|
190
|
-
pulp_created == o.pulp_created &&
|
191
|
-
description == o.description &&
|
192
|
-
pulp_labels == o.pulp_labels &&
|
193
190
|
versions_href == o.versions_href &&
|
191
|
+
pulp_last_updated == o.pulp_last_updated &&
|
192
|
+
pulp_labels == o.pulp_labels &&
|
193
|
+
pulp_created == o.pulp_created &&
|
194
|
+
latest_version_href == o.latest_version_href &&
|
194
195
|
prn == o.prn &&
|
196
|
+
description == o.description &&
|
197
|
+
pulp_href == o.pulp_href &&
|
195
198
|
name == o.name &&
|
196
|
-
retain_repo_versions == o.retain_repo_versions &&
|
197
199
|
manifest_signing_service == o.manifest_signing_service &&
|
198
|
-
|
199
|
-
latest_version_href == o.latest_version_href &&
|
200
|
-
pulp_last_updated == o.pulp_last_updated
|
200
|
+
retain_repo_versions == o.retain_repo_versions
|
201
201
|
end
|
202
202
|
|
203
203
|
# @see the `==` method
|
@@ -209,7 +209,7 @@ module PulpContainerClient
|
|
209
209
|
# Calculates hash code according to all attributes.
|
210
210
|
# @return [Integer] Hash code
|
211
211
|
def hash
|
212
|
-
[
|
212
|
+
[versions_href, pulp_last_updated, pulp_labels, pulp_created, latest_version_href, prn, description, pulp_href, name, manifest_signing_service, retain_repo_versions].hash
|
213
213
|
end
|
214
214
|
|
215
215
|
# Builds the object from hash
|
@@ -354,20 +354,20 @@ module PulpContainerClient
|
|
354
354
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
355
355
|
end
|
356
356
|
|
357
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
358
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
357
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
358
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
359
359
|
end
|
360
360
|
|
361
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
362
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
361
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
362
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
363
363
|
end
|
364
364
|
|
365
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
366
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
365
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
366
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
367
367
|
end
|
368
368
|
|
369
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
370
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
369
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
370
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
371
371
|
end
|
372
372
|
|
373
373
|
if @upstream_name.nil?
|
@@ -401,10 +401,10 @@ module PulpContainerClient
|
|
401
401
|
return false if !@username.nil? && @username.to_s.length < 1
|
402
402
|
return false if !@password.nil? && @password.to_s.length < 1
|
403
403
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
404
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
405
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
406
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
407
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
404
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
405
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
406
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
407
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
408
408
|
return false if @upstream_name.nil?
|
409
409
|
return false if @upstream_name.to_s.length < 1
|
410
410
|
return false if !@sigstore.nil? && @sigstore.to_s.length < 1
|
@@ -532,8 +532,8 @@ module PulpContainerClient
|
|
532
532
|
# Custom attribute writer method with validation
|
533
533
|
# @param [Object] total_timeout Value to be assigned
|
534
534
|
def total_timeout=(total_timeout)
|
535
|
-
if !total_timeout.nil? && total_timeout < 0
|
536
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
535
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
536
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
537
537
|
end
|
538
538
|
|
539
539
|
@total_timeout = total_timeout
|
@@ -542,8 +542,8 @@ module PulpContainerClient
|
|
542
542
|
# Custom attribute writer method with validation
|
543
543
|
# @param [Object] connect_timeout Value to be assigned
|
544
544
|
def connect_timeout=(connect_timeout)
|
545
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
546
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
545
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
546
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
547
547
|
end
|
548
548
|
|
549
549
|
@connect_timeout = connect_timeout
|
@@ -552,8 +552,8 @@ module PulpContainerClient
|
|
552
552
|
# Custom attribute writer method with validation
|
553
553
|
# @param [Object] sock_connect_timeout Value to be assigned
|
554
554
|
def sock_connect_timeout=(sock_connect_timeout)
|
555
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
556
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
555
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
556
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
557
557
|
end
|
558
558
|
|
559
559
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -562,8 +562,8 @@ module PulpContainerClient
|
|
562
562
|
# Custom attribute writer method with validation
|
563
563
|
# @param [Object] sock_read_timeout Value to be assigned
|
564
564
|
def sock_read_timeout=(sock_read_timeout)
|
565
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
566
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
565
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
566
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
567
567
|
end
|
568
568
|
|
569
569
|
@sock_read_timeout = sock_read_timeout
|
@@ -310,20 +310,20 @@ module PulpContainerClient
|
|
310
310
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
311
311
|
end
|
312
312
|
|
313
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
314
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
313
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
314
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
315
315
|
end
|
316
316
|
|
317
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
318
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
317
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
318
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
319
319
|
end
|
320
320
|
|
321
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
322
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
321
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
322
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
323
323
|
end
|
324
324
|
|
325
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
326
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
325
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
326
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
327
327
|
end
|
328
328
|
|
329
329
|
if @upstream_name.nil?
|
@@ -339,10 +339,10 @@ module PulpContainerClient
|
|
339
339
|
return false if @name.nil?
|
340
340
|
return false if @url.nil?
|
341
341
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
342
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
343
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
344
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
345
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
342
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
343
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
344
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
345
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
346
346
|
return false if @upstream_name.nil?
|
347
347
|
true
|
348
348
|
end
|
@@ -360,8 +360,8 @@ module PulpContainerClient
|
|
360
360
|
# Custom attribute writer method with validation
|
361
361
|
# @param [Object] total_timeout Value to be assigned
|
362
362
|
def total_timeout=(total_timeout)
|
363
|
-
if !total_timeout.nil? && total_timeout < 0
|
364
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
363
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
364
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
365
365
|
end
|
366
366
|
|
367
367
|
@total_timeout = total_timeout
|
@@ -370,8 +370,8 @@ module PulpContainerClient
|
|
370
370
|
# Custom attribute writer method with validation
|
371
371
|
# @param [Object] connect_timeout Value to be assigned
|
372
372
|
def connect_timeout=(connect_timeout)
|
373
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
374
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
373
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
374
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
375
375
|
end
|
376
376
|
|
377
377
|
@connect_timeout = connect_timeout
|
@@ -380,8 +380,8 @@ module PulpContainerClient
|
|
380
380
|
# Custom attribute writer method with validation
|
381
381
|
# @param [Object] sock_connect_timeout Value to be assigned
|
382
382
|
def sock_connect_timeout=(sock_connect_timeout)
|
383
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
384
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
383
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
384
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
385
385
|
end
|
386
386
|
|
387
387
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -390,8 +390,8 @@ module PulpContainerClient
|
|
390
390
|
# Custom attribute writer method with validation
|
391
391
|
# @param [Object] sock_read_timeout Value to be assigned
|
392
392
|
def sock_read_timeout=(sock_read_timeout)
|
393
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
394
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
393
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
394
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
395
395
|
end
|
396
396
|
|
397
397
|
@sock_read_timeout = sock_read_timeout
|