pulp_container_client 2.21.2 → 2.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  9. data/docs/ContainerManifestResponse.md +11 -3
  10. data/docs/ContentManifestsApi.md +2 -2
  11. data/docs/OCIBuildImage.md +4 -4
  12. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  14. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  15. data/docs/RepositoriesContainerApi.md +4 -4
  16. data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
  17. data/lib/pulp_container_client/api/repositories_container_api.rb +6 -6
  18. data/lib/pulp_container_client/models/container_container_distribution.rb +26 -26
  19. data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
  20. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +26 -26
  21. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +45 -45
  22. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  23. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
  24. data/lib/pulp_container_client/models/container_container_push_repository.rb +45 -45
  25. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  26. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  27. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  28. data/lib/pulp_container_client/models/container_manifest_response.rb +46 -6
  29. data/lib/pulp_container_client/models/oci_build_image.rb +16 -15
  30. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +26 -26
  31. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +26 -26
  32. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  33. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +45 -45
  34. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  35. data/lib/pulp_container_client/version.rb +1 -1
  36. data/spec/api/content_manifests_api_spec.rb +1 -1
  37. data/spec/api/repositories_container_api_spec.rb +2 -2
  38. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  39. data/spec/models/container_container_distribution_spec.rb +4 -4
  40. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
  41. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  42. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  43. data/spec/models/container_container_push_repository_spec.rb +5 -5
  44. data/spec/models/container_manifest_response_spec.rb +24 -0
  45. data/spec/models/oci_build_image_spec.rb +2 -2
  46. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  47. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  48. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  49. metadata +64 -64
@@ -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.0
295
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
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.')
296
296
  end
297
297
 
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.')
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.')
300
300
  end
301
301
 
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.')
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.')
304
304
  end
305
305
 
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.')
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.')
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.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
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
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.0
340
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
339
+ if !total_timeout.nil? && total_timeout < 0
340
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 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.0
350
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
349
+ if !connect_timeout.nil? && connect_timeout < 0
350
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 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.0
360
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
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.'
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.0
370
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
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.'
371
371
  end
372
372
 
373
373
  @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 ContainerContainerPushRepository
18
- # A unique name for this repository.
19
- attr_accessor :name
20
-
21
- # A reference to an associated signing service.
22
- attr_accessor :manifest_signing_service
18
+ # An optional description.
19
+ attr_accessor :description
23
20
 
24
21
  attr_accessor :pulp_labels
25
22
 
26
- # An optional description.
27
- attr_accessor :description
23
+ # A unique name for this repository.
24
+ attr_accessor :name
28
25
 
29
26
  # Retain X versions of the repository. Default is null which retains all versions.
30
27
  attr_accessor :retain_repo_versions
31
28
 
29
+ # A reference to an associated signing service.
30
+ attr_accessor :manifest_signing_service
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'name' => :'name',
36
- :'manifest_signing_service' => :'manifest_signing_service',
37
- :'pulp_labels' => :'pulp_labels',
38
35
  :'description' => :'description',
39
- :'retain_repo_versions' => :'retain_repo_versions'
36
+ :'pulp_labels' => :'pulp_labels',
37
+ :'name' => :'name',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
39
+ :'manifest_signing_service' => :'manifest_signing_service'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'name' => :'String',
47
- :'manifest_signing_service' => :'String',
48
- :'pulp_labels' => :'Hash<String, String>',
49
46
  :'description' => :'String',
50
- :'retain_repo_versions' => :'Integer'
47
+ :'pulp_labels' => :'Hash<String, String>',
48
+ :'name' => :'String',
49
+ :'retain_repo_versions' => :'Integer',
50
+ :'manifest_signing_service' => :'String'
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
- :'manifest_signing_service',
58
57
  :'description',
59
- :'retain_repo_versions'
58
+ :'retain_repo_versions',
59
+ :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,12 +75,8 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- end
81
-
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
78
+ if attributes.key?(:'description')
79
+ self.description = attributes[:'description']
84
80
  end
85
81
 
86
82
  if attributes.key?(:'pulp_labels')
@@ -89,19 +85,27 @@ module PulpContainerClient
89
85
  end
90
86
  end
91
87
 
92
- if attributes.key?(:'description')
93
- self.description = attributes[:'description']
88
+ if attributes.key?(:'name')
89
+ self.name = attributes[:'name']
94
90
  end
95
91
 
96
92
  if attributes.key?(:'retain_repo_versions')
97
93
  self.retain_repo_versions = attributes[:'retain_repo_versions']
98
94
  end
95
+
96
+ if attributes.key?(:'manifest_signing_service')
97
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
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
@@ -110,10 +114,6 @@ module PulpContainerClient
110
114
  invalid_properties.push('invalid value for "name", the character length must be great 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
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
118
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
119
  end
@@ -124,13 +124,23 @@ module PulpContainerClient
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
- return false if !@description.nil? && @description.to_s.length < 1
130
130
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] 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)
@@ -145,16 +155,6 @@ module PulpContainerClient
145
155
  @name = name
146
156
  end
147
157
 
148
- # Custom attribute writer method with validation
149
- # @param [Object] description Value to be assigned
150
- def description=(description)
151
- if !description.nil? && description.to_s.length < 1
152
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
153
- end
154
-
155
- @description = description
156
- end
157
-
158
158
  # Custom attribute writer method with validation
159
159
  # @param [Object] retain_repo_versions Value to be assigned
160
160
  def retain_repo_versions=(retain_repo_versions)
@@ -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
- name == o.name &&
174
- manifest_signing_service == o.manifest_signing_service &&
175
- pulp_labels == o.pulp_labels &&
176
173
  description == o.description &&
177
- retain_repo_versions == o.retain_repo_versions
174
+ pulp_labels == o.pulp_labels &&
175
+ name == o.name &&
176
+ retain_repo_versions == o.retain_repo_versions &&
177
+ manifest_signing_service == o.manifest_signing_service
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, description, retain_repo_versions].hash
189
+ [description, pulp_labels, name, retain_repo_versions, manifest_signing_service].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -18,46 +18,46 @@ module PulpContainerClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
+ # An optional description.
22
+ attr_accessor :description
23
+
24
+ attr_accessor :pulp_labels
25
+
26
+ attr_accessor :versions_href
27
+
21
28
  # The Pulp Resource Name (PRN).
22
29
  attr_accessor :prn
23
30
 
24
31
  # A unique name for this repository.
25
32
  attr_accessor :name
26
33
 
34
+ # Retain X versions of the repository. Default is null which retains all versions.
35
+ attr_accessor :retain_repo_versions
36
+
27
37
  # A reference to an associated signing service.
28
38
  attr_accessor :manifest_signing_service
29
39
 
40
+ attr_accessor :pulp_href
41
+
30
42
  attr_accessor :latest_version_href
31
43
 
32
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.
33
45
  attr_accessor :pulp_last_updated
34
46
 
35
- attr_accessor :pulp_href
36
-
37
- attr_accessor :versions_href
38
-
39
- attr_accessor :pulp_labels
40
-
41
- # An optional description.
42
- attr_accessor :description
43
-
44
- # Retain X versions of the repository. Default is null which retains all versions.
45
- attr_accessor :retain_repo_versions
46
-
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
50
  :'pulp_created' => :'pulp_created',
51
+ :'description' => :'description',
52
+ :'pulp_labels' => :'pulp_labels',
53
+ :'versions_href' => :'versions_href',
51
54
  :'prn' => :'prn',
52
55
  :'name' => :'name',
56
+ :'retain_repo_versions' => :'retain_repo_versions',
53
57
  :'manifest_signing_service' => :'manifest_signing_service',
54
- :'latest_version_href' => :'latest_version_href',
55
- :'pulp_last_updated' => :'pulp_last_updated',
56
58
  :'pulp_href' => :'pulp_href',
57
- :'versions_href' => :'versions_href',
58
- :'pulp_labels' => :'pulp_labels',
59
- :'description' => :'description',
60
- :'retain_repo_versions' => :'retain_repo_versions'
59
+ :'latest_version_href' => :'latest_version_href',
60
+ :'pulp_last_updated' => :'pulp_last_updated'
61
61
  }
62
62
  end
63
63
 
@@ -65,25 +65,25 @@ module PulpContainerClient
65
65
  def self.openapi_types
66
66
  {
67
67
  :'pulp_created' => :'DateTime',
68
+ :'description' => :'String',
69
+ :'pulp_labels' => :'Hash<String, String>',
70
+ :'versions_href' => :'String',
68
71
  :'prn' => :'String',
69
72
  :'name' => :'String',
73
+ :'retain_repo_versions' => :'Integer',
70
74
  :'manifest_signing_service' => :'String',
71
- :'latest_version_href' => :'String',
72
- :'pulp_last_updated' => :'DateTime',
73
75
  :'pulp_href' => :'String',
74
- :'versions_href' => :'String',
75
- :'pulp_labels' => :'Hash<String, String>',
76
- :'description' => :'String',
77
- :'retain_repo_versions' => :'Integer'
76
+ :'latest_version_href' => :'String',
77
+ :'pulp_last_updated' => :'DateTime'
78
78
  }
79
79
  end
80
80
 
81
81
  # List of attributes with nullable: true
82
82
  def self.openapi_nullable
83
83
  Set.new([
84
- :'manifest_signing_service',
85
84
  :'description',
86
- :'retain_repo_versions'
85
+ :'retain_repo_versions',
86
+ :'manifest_signing_service',
87
87
  ])
88
88
  end
89
89
 
@@ -106,46 +106,46 @@ module PulpContainerClient
106
106
  self.pulp_created = attributes[:'pulp_created']
107
107
  end
108
108
 
109
- if attributes.key?(:'prn')
110
- self.prn = attributes[:'prn']
109
+ if attributes.key?(:'description')
110
+ self.description = attributes[:'description']
111
111
  end
112
112
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
113
+ if attributes.key?(:'pulp_labels')
114
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
115
+ self.pulp_labels = value
116
+ end
115
117
  end
116
118
 
117
- if attributes.key?(:'manifest_signing_service')
118
- self.manifest_signing_service = attributes[:'manifest_signing_service']
119
+ if attributes.key?(:'versions_href')
120
+ self.versions_href = attributes[:'versions_href']
119
121
  end
120
122
 
121
- if attributes.key?(:'latest_version_href')
122
- self.latest_version_href = attributes[:'latest_version_href']
123
+ if attributes.key?(:'prn')
124
+ self.prn = attributes[:'prn']
123
125
  end
124
126
 
125
- if attributes.key?(:'pulp_last_updated')
126
- self.pulp_last_updated = attributes[:'pulp_last_updated']
127
+ if attributes.key?(:'name')
128
+ self.name = attributes[:'name']
127
129
  end
128
130
 
129
- if attributes.key?(:'pulp_href')
130
- self.pulp_href = attributes[:'pulp_href']
131
+ if attributes.key?(:'retain_repo_versions')
132
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
131
133
  end
132
134
 
133
- if attributes.key?(:'versions_href')
134
- self.versions_href = attributes[:'versions_href']
135
+ if attributes.key?(:'manifest_signing_service')
136
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
135
137
  end
136
138
 
137
- if attributes.key?(:'pulp_labels')
138
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
139
- self.pulp_labels = value
140
- end
139
+ if attributes.key?(:'pulp_href')
140
+ self.pulp_href = attributes[:'pulp_href']
141
141
  end
142
142
 
143
- if attributes.key?(:'description')
144
- self.description = attributes[:'description']
143
+ if attributes.key?(:'latest_version_href')
144
+ self.latest_version_href = attributes[:'latest_version_href']
145
145
  end
146
146
 
147
- if attributes.key?(:'retain_repo_versions')
148
- self.retain_repo_versions = attributes[:'retain_repo_versions']
147
+ if attributes.key?(:'pulp_last_updated')
148
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
149
149
  end
150
150
  end
151
151
 
@@ -188,16 +188,16 @@ module PulpContainerClient
188
188
  return true if self.equal?(o)
189
189
  self.class == o.class &&
190
190
  pulp_created == o.pulp_created &&
191
+ description == o.description &&
192
+ pulp_labels == o.pulp_labels &&
193
+ versions_href == o.versions_href &&
191
194
  prn == o.prn &&
192
195
  name == o.name &&
196
+ retain_repo_versions == o.retain_repo_versions &&
193
197
  manifest_signing_service == o.manifest_signing_service &&
194
- latest_version_href == o.latest_version_href &&
195
- pulp_last_updated == o.pulp_last_updated &&
196
198
  pulp_href == o.pulp_href &&
197
- versions_href == o.versions_href &&
198
- pulp_labels == o.pulp_labels &&
199
- description == o.description &&
200
- retain_repo_versions == o.retain_repo_versions
199
+ latest_version_href == o.latest_version_href &&
200
+ pulp_last_updated == o.pulp_last_updated
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
- [pulp_created, prn, name, manifest_signing_service, latest_version_href, pulp_last_updated, pulp_href, versions_href, pulp_labels, description, retain_repo_versions].hash
212
+ [pulp_created, description, pulp_labels, versions_href, prn, name, retain_repo_versions, manifest_signing_service, pulp_href, latest_version_href, pulp_last_updated].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.0
358
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
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.')
359
359
  end
360
360
 
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.')
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.')
363
363
  end
364
364
 
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.')
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.')
367
367
  end
368
368
 
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.')
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.')
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.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
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
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.0
536
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
535
+ if !total_timeout.nil? && total_timeout < 0
536
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 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.0
546
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
545
+ if !connect_timeout.nil? && connect_timeout < 0
546
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 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.0
556
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
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.'
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.0
566
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
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.'
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.0
314
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
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.')
315
315
  end
316
316
 
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.')
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.')
319
319
  end
320
320
 
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.')
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.')
323
323
  end
324
324
 
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.')
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.')
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.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
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
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.0
364
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
363
+ if !total_timeout.nil? && total_timeout < 0
364
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 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.0
374
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
373
+ if !connect_timeout.nil? && connect_timeout < 0
374
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 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.0
384
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
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.'
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.0
394
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
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.'
395
395
  end
396
396
 
397
397
  @sock_read_timeout = sock_read_timeout