pulp_container_client 2.20.4 → 2.20.5

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  11. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +35 -35
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +46 -46
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +35 -35
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +46 -46
  16. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  17. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +42 -42
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +52 -52
  20. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  21. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  22. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +35 -35
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +35 -35
  24. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  25. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  26. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  27. data/lib/pulp_container_client/version.rb +1 -1
  28. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  29. data/spec/models/container_container_distribution_spec.rb +5 -5
  30. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
  31. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  33. data/spec/models/container_container_push_repository_spec.rb +5 -5
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  37. metadata +64 -64
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ attr_accessor :pulp_labels
19
+
20
+ # 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
- :'pulp_labels' => :'pulp_labels',
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
- :'pulp_labels' => :'Hash<String, String>',
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?
106
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
107
111
  end
@@ -114,23 +118,29 @@ module PulpContainerClient
114
118
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
119
  end
116
120
 
117
- if !@description.nil? && @description.to_s.length < 1
118
- invalid_properties.push('invalid value for "description", the character length must be great 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 !@description.nil? && @description.to_s.length < 1
127
128
  return false if @name.nil?
128
129
  return false if @name.to_s.length < 1
129
130
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
130
- return false if !@description.nil? && @description.to_s.length < 1
131
131
  true
132
132
  end
133
133
 
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] description Value to be assigned
136
+ def description=(description)
137
+ if !description.nil? && description.to_s.length < 1
138
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
139
+ end
140
+
141
+ @description = description
142
+ end
143
+
134
144
  # Custom attribute writer method with validation
135
145
  # @param [Object] name Value to be assigned
136
146
  def name=(name)
@@ -155,26 +165,16 @@ module PulpContainerClient
155
165
  @retain_repo_versions = retain_repo_versions
156
166
  end
157
167
 
158
- # Custom attribute writer method with validation
159
- # @param [Object] description Value to be assigned
160
- def description=(description)
161
- if !description.nil? && description.to_s.length < 1
162
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
163
- end
164
-
165
- @description = description
166
- end
167
-
168
168
  # Checks equality by comparing each attribute.
169
169
  # @param [Object] Object to be compared
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ pulp_labels == o.pulp_labels &&
174
+ description == o.description &&
173
175
  name == o.name &&
174
176
  manifest_signing_service == o.manifest_signing_service &&
175
- pulp_labels == o.pulp_labels &&
176
- retain_repo_versions == o.retain_repo_versions &&
177
- description == o.description
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
- [name, manifest_signing_service, pulp_labels, retain_repo_versions, description].hash
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,70 +15,70 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ attr_accessor :versions_href
19
+
20
+ attr_accessor :pulp_labels
21
+
18
22
  # Timestamp of creation.
19
23
  attr_accessor :pulp_created
20
24
 
25
+ # 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.
26
+ attr_accessor :pulp_last_updated
27
+
28
+ attr_accessor :pulp_href
29
+
30
+ # An optional description.
31
+ attr_accessor :description
32
+
21
33
  # A unique name for this repository.
22
34
  attr_accessor :name
23
35
 
24
36
  # A reference to an associated signing service.
25
37
  attr_accessor :manifest_signing_service
26
38
 
27
- attr_accessor :versions_href
28
-
29
- # 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.
30
- attr_accessor :pulp_last_updated
31
-
32
- attr_accessor :pulp_labels
33
-
34
39
  # Retain X versions of the repository. Default is null which retains all versions.
35
40
  attr_accessor :retain_repo_versions
36
41
 
37
- attr_accessor :pulp_href
38
-
39
42
  attr_accessor :latest_version_href
40
43
 
41
- # An optional description.
42
- attr_accessor :description
43
-
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
+ :'versions_href' => :'versions_href',
48
+ :'pulp_labels' => :'pulp_labels',
47
49
  :'pulp_created' => :'pulp_created',
50
+ :'pulp_last_updated' => :'pulp_last_updated',
51
+ :'pulp_href' => :'pulp_href',
52
+ :'description' => :'description',
48
53
  :'name' => :'name',
49
54
  :'manifest_signing_service' => :'manifest_signing_service',
50
- :'versions_href' => :'versions_href',
51
- :'pulp_last_updated' => :'pulp_last_updated',
52
- :'pulp_labels' => :'pulp_labels',
53
55
  :'retain_repo_versions' => :'retain_repo_versions',
54
- :'pulp_href' => :'pulp_href',
55
- :'latest_version_href' => :'latest_version_href',
56
- :'description' => :'description'
56
+ :'latest_version_href' => :'latest_version_href'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
+ :'versions_href' => :'String',
64
+ :'pulp_labels' => :'Hash<String, String>',
63
65
  :'pulp_created' => :'DateTime',
66
+ :'pulp_last_updated' => :'DateTime',
67
+ :'pulp_href' => :'String',
68
+ :'description' => :'String',
64
69
  :'name' => :'String',
65
70
  :'manifest_signing_service' => :'String',
66
- :'versions_href' => :'String',
67
- :'pulp_last_updated' => :'DateTime',
68
- :'pulp_labels' => :'Hash<String, String>',
69
71
  :'retain_repo_versions' => :'Integer',
70
- :'pulp_href' => :'String',
71
- :'latest_version_href' => :'String',
72
- :'description' => :'String'
72
+ :'latest_version_href' => :'String'
73
73
  }
74
74
  end
75
75
 
76
76
  # List of attributes with nullable: true
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
+ :'description',
79
80
  :'manifest_signing_service',
80
81
  :'retain_repo_versions',
81
- :'description'
82
82
  ])
83
83
  end
84
84
 
@@ -97,47 +97,47 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
+ if attributes.key?(:'versions_href')
101
+ self.versions_href = attributes[:'versions_href']
102
+ end
103
+
104
+ if attributes.key?(:'pulp_labels')
105
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
+ self.pulp_labels = value
107
+ end
108
+ end
109
+
100
110
  if attributes.key?(:'pulp_created')
101
111
  self.pulp_created = attributes[:'pulp_created']
102
112
  end
103
113
 
104
- if attributes.key?(:'name')
105
- self.name = attributes[:'name']
114
+ if attributes.key?(:'pulp_last_updated')
115
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
106
116
  end
107
117
 
108
- if attributes.key?(:'manifest_signing_service')
109
- self.manifest_signing_service = attributes[:'manifest_signing_service']
118
+ if attributes.key?(:'pulp_href')
119
+ self.pulp_href = attributes[:'pulp_href']
110
120
  end
111
121
 
112
- if attributes.key?(:'versions_href')
113
- self.versions_href = attributes[:'versions_href']
122
+ if attributes.key?(:'description')
123
+ self.description = attributes[:'description']
114
124
  end
115
125
 
116
- if attributes.key?(:'pulp_last_updated')
117
- self.pulp_last_updated = attributes[:'pulp_last_updated']
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
118
128
  end
119
129
 
120
- if attributes.key?(:'pulp_labels')
121
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
- self.pulp_labels = value
123
- end
130
+ if attributes.key?(:'manifest_signing_service')
131
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
124
132
  end
125
133
 
126
134
  if attributes.key?(:'retain_repo_versions')
127
135
  self.retain_repo_versions = attributes[:'retain_repo_versions']
128
136
  end
129
137
 
130
- if attributes.key?(:'pulp_href')
131
- self.pulp_href = attributes[:'pulp_href']
132
- end
133
-
134
138
  if attributes.key?(:'latest_version_href')
135
139
  self.latest_version_href = attributes[:'latest_version_href']
136
140
  end
137
-
138
- if attributes.key?(:'description')
139
- self.description = attributes[:'description']
140
- end
141
141
  end
142
142
 
143
143
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -178,16 +178,16 @@ module PulpContainerClient
178
178
  def ==(o)
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
+ versions_href == o.versions_href &&
182
+ pulp_labels == o.pulp_labels &&
181
183
  pulp_created == o.pulp_created &&
184
+ pulp_last_updated == o.pulp_last_updated &&
185
+ pulp_href == o.pulp_href &&
186
+ description == o.description &&
182
187
  name == o.name &&
183
188
  manifest_signing_service == o.manifest_signing_service &&
184
- versions_href == o.versions_href &&
185
- pulp_last_updated == o.pulp_last_updated &&
186
- pulp_labels == o.pulp_labels &&
187
189
  retain_repo_versions == o.retain_repo_versions &&
188
- pulp_href == o.pulp_href &&
189
- latest_version_href == o.latest_version_href &&
190
- description == o.description
190
+ latest_version_href == o.latest_version_href
191
191
  end
192
192
 
193
193
  # @see the `==` method
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [pulp_created, name, manifest_signing_service, versions_href, pulp_last_updated, pulp_labels, retain_repo_versions, pulp_href, latest_version_href, description].hash
202
+ [versions_href, pulp_labels, pulp_created, pulp_last_updated, pulp_href, description, name, manifest_signing_service, retain_repo_versions, latest_version_href].hash
203
203
  end
204
204
 
205
205
  # 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
@@ -301,20 +301,20 @@ module PulpContainerClient
301
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
302
  end
303
303
 
304
- if !@total_timeout.nil? && @total_timeout < 0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
304
+ if !@total_timeout.nil? && @total_timeout < 0.0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
306
  end
307
307
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
308
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
309
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
310
  end
311
311
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
312
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
314
  end
315
315
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
318
  end
319
319
 
320
320
  if @upstream_name.nil?
@@ -330,10 +330,10 @@ module PulpContainerClient
330
330
  return false if @name.nil?
331
331
  return false if @url.nil?
332
332
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
333
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
334
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
335
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
336
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
337
337
  return false if @upstream_name.nil?
338
338
  true
339
339
  end
@@ -351,8 +351,8 @@ module PulpContainerClient
351
351
  # Custom attribute writer method with validation
352
352
  # @param [Object] total_timeout Value to be assigned
353
353
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
354
+ if !total_timeout.nil? && total_timeout < 0.0
355
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
356
356
  end
357
357
 
358
358
  @total_timeout = total_timeout
@@ -361,8 +361,8 @@ module PulpContainerClient
361
361
  # Custom attribute writer method with validation
362
362
  # @param [Object] connect_timeout Value to be assigned
363
363
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
364
+ if !connect_timeout.nil? && connect_timeout < 0.0
365
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
366
366
  end
367
367
 
368
368
  @connect_timeout = connect_timeout
@@ -371,8 +371,8 @@ module PulpContainerClient
371
371
  # Custom attribute writer method with validation
372
372
  # @param [Object] sock_connect_timeout Value to be assigned
373
373
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
374
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
376
376
  end
377
377
 
378
378
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +381,8 @@ module PulpContainerClient
381
381
  # Custom attribute writer method with validation
382
382
  # @param [Object] sock_read_timeout Value to be assigned
383
383
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
384
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
385
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout