pulp_container_client 2.20.4 → 2.20.6

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 +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPushRepository.md +4 -4
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +54 -54
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
  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 +35 -35
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -47
  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 +45 -45
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
  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 +35 -35
  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 +9 -9
  29. data/spec/models/container_container_distribution_spec.rb +6 -6
  30. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  31. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  32. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  33. data/spec/models/container_container_push_repository_spec.rb +3 -3
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  37. metadata +65 -65
@@ -311,20 +311,20 @@ module PulpContainerClient
311
311
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
312
312
  end
313
313
 
314
- if !@total_timeout.nil? && @total_timeout < 0
315
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
314
+ if !@total_timeout.nil? && @total_timeout < 0.0
315
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
316
316
  end
317
317
 
318
- if !@connect_timeout.nil? && @connect_timeout < 0
319
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
318
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
319
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
320
320
  end
321
321
 
322
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
323
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
322
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
323
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
324
324
  end
325
325
 
326
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
327
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
326
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
327
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
328
328
  end
329
329
 
330
330
  invalid_properties
@@ -346,10 +346,10 @@ module PulpContainerClient
346
346
  return false if !@username.nil? && @username.to_s.length < 1
347
347
  return false if !@password.nil? && @password.to_s.length < 1
348
348
  return false if !@download_concurrency.nil? && @download_concurrency < 1
349
- return false if !@total_timeout.nil? && @total_timeout < 0
350
- return false if !@connect_timeout.nil? && @connect_timeout < 0
351
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
352
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
349
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
350
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
351
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
352
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
353
353
  true
354
354
  end
355
355
 
@@ -474,8 +474,8 @@ module PulpContainerClient
474
474
  # Custom attribute writer method with validation
475
475
  # @param [Object] total_timeout Value to be assigned
476
476
  def total_timeout=(total_timeout)
477
- if !total_timeout.nil? && total_timeout < 0
478
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
477
+ if !total_timeout.nil? && total_timeout < 0.0
478
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
479
479
  end
480
480
 
481
481
  @total_timeout = total_timeout
@@ -484,8 +484,8 @@ module PulpContainerClient
484
484
  # Custom attribute writer method with validation
485
485
  # @param [Object] connect_timeout Value to be assigned
486
486
  def connect_timeout=(connect_timeout)
487
- if !connect_timeout.nil? && connect_timeout < 0
488
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
487
+ if !connect_timeout.nil? && connect_timeout < 0.0
488
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
489
489
  end
490
490
 
491
491
  @connect_timeout = connect_timeout
@@ -494,8 +494,8 @@ module PulpContainerClient
494
494
  # Custom attribute writer method with validation
495
495
  # @param [Object] sock_connect_timeout Value to be assigned
496
496
  def sock_connect_timeout=(sock_connect_timeout)
497
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
498
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
497
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
498
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
499
499
  end
500
500
 
501
501
  @sock_connect_timeout = sock_connect_timeout
@@ -504,8 +504,8 @@ module PulpContainerClient
504
504
  # Custom attribute writer method with validation
505
505
  # @param [Object] sock_read_timeout Value to be assigned
506
506
  def sock_read_timeout=(sock_read_timeout)
507
- if !sock_read_timeout.nil? && sock_read_timeout < 0
508
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
507
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
508
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
509
509
  end
510
510
 
511
511
  @sock_read_timeout = sock_read_timeout
@@ -258,20 +258,20 @@ module PulpContainerClient
258
258
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
259
259
  end
260
260
 
261
- if !@total_timeout.nil? && @total_timeout < 0
262
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
261
+ if !@total_timeout.nil? && @total_timeout < 0.0
262
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
263
263
  end
264
264
 
265
- if !@connect_timeout.nil? && @connect_timeout < 0
266
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
265
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
266
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
267
267
  end
268
268
 
269
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
270
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
269
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
270
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
271
271
  end
272
272
 
273
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
274
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
273
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
274
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
275
275
  end
276
276
 
277
277
  invalid_properties
@@ -283,10 +283,10 @@ module PulpContainerClient
283
283
  return false if @name.nil?
284
284
  return false if @url.nil?
285
285
  return false if !@download_concurrency.nil? && @download_concurrency < 1
286
- return false if !@total_timeout.nil? && @total_timeout < 0
287
- return false if !@connect_timeout.nil? && @connect_timeout < 0
288
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
289
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
286
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
287
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
288
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
289
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
290
290
  true
291
291
  end
292
292
 
@@ -303,8 +303,8 @@ module PulpContainerClient
303
303
  # Custom attribute writer method with validation
304
304
  # @param [Object] total_timeout Value to be assigned
305
305
  def total_timeout=(total_timeout)
306
- if !total_timeout.nil? && total_timeout < 0
307
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
306
+ if !total_timeout.nil? && total_timeout < 0.0
307
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
308
308
  end
309
309
 
310
310
  @total_timeout = total_timeout
@@ -313,8 +313,8 @@ module PulpContainerClient
313
313
  # Custom attribute writer method with validation
314
314
  # @param [Object] connect_timeout Value to be assigned
315
315
  def connect_timeout=(connect_timeout)
316
- if !connect_timeout.nil? && connect_timeout < 0
317
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
316
+ if !connect_timeout.nil? && connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
318
318
  end
319
319
 
320
320
  @connect_timeout = connect_timeout
@@ -323,8 +323,8 @@ module PulpContainerClient
323
323
  # Custom attribute writer method with validation
324
324
  # @param [Object] sock_connect_timeout Value to be assigned
325
325
  def sock_connect_timeout=(sock_connect_timeout)
326
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
327
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
326
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
327
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
328
328
  end
329
329
 
330
330
  @sock_connect_timeout = sock_connect_timeout
@@ -333,8 +333,8 @@ module PulpContainerClient
333
333
  # Custom attribute writer method with validation
334
334
  # @param [Object] sock_read_timeout Value to be assigned
335
335
  def sock_read_timeout=(sock_read_timeout)
336
- if !sock_read_timeout.nil? && sock_read_timeout < 0
337
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
336
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
337
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
338
338
  end
339
339
 
340
340
  @sock_read_timeout = sock_read_timeout
@@ -18,25 +18,25 @@ module PulpContainerClient
18
18
  # A unique name for this repository.
19
19
  attr_accessor :name
20
20
 
21
+ # An optional description.
22
+ attr_accessor :description
23
+
21
24
  # A reference to an associated signing service.
22
25
  attr_accessor :manifest_signing_service
23
26
 
24
- attr_accessor :pulp_labels
25
-
26
27
  # Retain X versions of the repository. Default is null which retains all versions.
27
28
  attr_accessor :retain_repo_versions
28
29
 
29
- # An optional description.
30
- attr_accessor :description
30
+ attr_accessor :pulp_labels
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'name' => :'name',
36
+ :'description' => :'description',
36
37
  :'manifest_signing_service' => :'manifest_signing_service',
37
- :'pulp_labels' => :'pulp_labels',
38
38
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'description' => :'description'
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
@@ -44,19 +44,19 @@ module PulpContainerClient
44
44
  def self.openapi_types
45
45
  {
46
46
  :'name' => :'String',
47
+ :'description' => :'String',
47
48
  :'manifest_signing_service' => :'String',
48
- :'pulp_labels' => :'Hash<String, String>',
49
49
  :'retain_repo_versions' => :'Integer',
50
- :'description' => :'String'
50
+ :'pulp_labels' => :'Hash<String, 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
+ :'description',
57
58
  :'manifest_signing_service',
58
59
  :'retain_repo_versions',
59
- :'description'
60
60
  ])
61
61
  end
62
62
 
@@ -79,22 +79,22 @@ module PulpContainerClient
79
79
  self.name = attributes[:'name']
80
80
  end
81
81
 
82
- if attributes.key?(:'manifest_signing_service')
83
- self.manifest_signing_service = attributes[:'manifest_signing_service']
82
+ if attributes.key?(:'description')
83
+ self.description = attributes[:'description']
84
84
  end
85
85
 
86
- if attributes.key?(:'pulp_labels')
87
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
88
- self.pulp_labels = value
89
- end
86
+ if attributes.key?(:'manifest_signing_service')
87
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
90
88
  end
91
89
 
92
90
  if attributes.key?(:'retain_repo_versions')
93
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
94
92
  end
95
93
 
96
- if attributes.key?(:'description')
97
- self.description = attributes[:'description']
94
+ if attributes.key?(:'pulp_labels')
95
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
+ self.pulp_labels = value
97
+ end
98
98
  end
99
99
  end
100
100
 
@@ -110,14 +110,14 @@ module PulpContainerClient
110
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
111
111
  end
112
112
 
113
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
115
- end
116
-
117
113
  if !@description.nil? && @description.to_s.length < 1
118
114
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
119
115
  end
120
116
 
117
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
119
+ end
120
+
121
121
  invalid_properties
122
122
  end
123
123
 
@@ -126,8 +126,8 @@ module PulpContainerClient
126
126
  def valid?
127
127
  return false if @name.nil?
128
128
  return false if @name.to_s.length < 1
129
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
130
129
  return false if !@description.nil? && @description.to_s.length < 1
130
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
@@ -145,16 +145,6 @@ module PulpContainerClient
145
145
  @name = name
146
146
  end
147
147
 
148
- # Custom attribute writer method with validation
149
- # @param [Object] retain_repo_versions Value to be assigned
150
- def retain_repo_versions=(retain_repo_versions)
151
- if !retain_repo_versions.nil? && retain_repo_versions < 1
152
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
153
- end
154
-
155
- @retain_repo_versions = retain_repo_versions
156
- end
157
-
158
148
  # Custom attribute writer method with validation
159
149
  # @param [Object] description Value to be assigned
160
150
  def description=(description)
@@ -165,16 +155,26 @@ module PulpContainerClient
165
155
  @description = description
166
156
  end
167
157
 
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] retain_repo_versions Value to be assigned
160
+ def retain_repo_versions=(retain_repo_versions)
161
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
162
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
163
+ end
164
+
165
+ @retain_repo_versions = retain_repo_versions
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
173
  name == o.name &&
174
+ description == o.description &&
174
175
  manifest_signing_service == o.manifest_signing_service &&
175
- pulp_labels == o.pulp_labels &&
176
176
  retain_repo_versions == o.retain_repo_versions &&
177
- description == o.description
177
+ pulp_labels == o.pulp_labels
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
+ [name, description, manifest_signing_service, retain_repo_versions, pulp_labels].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
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ attr_accessor :latest_version_href
19
+
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
20
22
 
21
23
  # A unique name for this repository.
22
24
  attr_accessor :name
23
25
 
24
- # A reference to an associated signing service.
25
- attr_accessor :manifest_signing_service
26
+ # An optional description.
27
+ attr_accessor :description
26
28
 
27
29
  attr_accessor :versions_href
28
30
 
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
+ # Timestamp of creation.
32
+ attr_accessor :pulp_created
31
33
 
32
- attr_accessor :pulp_labels
34
+ # A reference to an associated signing service.
35
+ attr_accessor :manifest_signing_service
33
36
 
34
37
  # Retain X versions of the repository. Default is null which retains all versions.
35
38
  attr_accessor :retain_repo_versions
36
39
 
37
40
  attr_accessor :pulp_href
38
41
 
39
- attr_accessor :latest_version_href
40
-
41
- # An optional description.
42
- attr_accessor :description
42
+ attr_accessor :pulp_labels
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'pulp_created' => :'pulp_created',
47
+ :'latest_version_href' => :'latest_version_href',
48
+ :'pulp_last_updated' => :'pulp_last_updated',
48
49
  :'name' => :'name',
49
- :'manifest_signing_service' => :'manifest_signing_service',
50
+ :'description' => :'description',
50
51
  :'versions_href' => :'versions_href',
51
- :'pulp_last_updated' => :'pulp_last_updated',
52
- :'pulp_labels' => :'pulp_labels',
52
+ :'pulp_created' => :'pulp_created',
53
+ :'manifest_signing_service' => :'manifest_signing_service',
53
54
  :'retain_repo_versions' => :'retain_repo_versions',
54
55
  :'pulp_href' => :'pulp_href',
55
- :'latest_version_href' => :'latest_version_href',
56
- :'description' => :'description'
56
+ :'pulp_labels' => :'pulp_labels'
57
57
  }
58
58
  end
59
59
 
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'pulp_created' => :'DateTime',
63
+ :'latest_version_href' => :'String',
64
+ :'pulp_last_updated' => :'DateTime',
64
65
  :'name' => :'String',
65
- :'manifest_signing_service' => :'String',
66
+ :'description' => :'String',
66
67
  :'versions_href' => :'String',
67
- :'pulp_last_updated' => :'DateTime',
68
- :'pulp_labels' => :'Hash<String, String>',
68
+ :'pulp_created' => :'DateTime',
69
+ :'manifest_signing_service' => :'String',
69
70
  :'retain_repo_versions' => :'Integer',
70
71
  :'pulp_href' => :'String',
71
- :'latest_version_href' => :'String',
72
- :'description' => :'String'
72
+ :'pulp_labels' => :'Hash<String, 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,30 +97,32 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'pulp_created')
101
- self.pulp_created = attributes[:'pulp_created']
100
+ if attributes.key?(:'latest_version_href')
101
+ self.latest_version_href = attributes[:'latest_version_href']
102
+ end
103
+
104
+ if attributes.key?(:'pulp_last_updated')
105
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
102
106
  end
103
107
 
104
108
  if attributes.key?(:'name')
105
109
  self.name = attributes[:'name']
106
110
  end
107
111
 
108
- if attributes.key?(:'manifest_signing_service')
109
- self.manifest_signing_service = attributes[:'manifest_signing_service']
112
+ if attributes.key?(:'description')
113
+ self.description = attributes[:'description']
110
114
  end
111
115
 
112
116
  if attributes.key?(:'versions_href')
113
117
  self.versions_href = attributes[:'versions_href']
114
118
  end
115
119
 
116
- if attributes.key?(:'pulp_last_updated')
117
- self.pulp_last_updated = attributes[:'pulp_last_updated']
120
+ if attributes.key?(:'pulp_created')
121
+ self.pulp_created = attributes[:'pulp_created']
118
122
  end
119
123
 
120
- if attributes.key?(:'pulp_labels')
121
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
- self.pulp_labels = value
123
- end
124
+ if attributes.key?(:'manifest_signing_service')
125
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
124
126
  end
125
127
 
126
128
  if attributes.key?(:'retain_repo_versions')
@@ -131,12 +133,10 @@ module PulpContainerClient
131
133
  self.pulp_href = attributes[:'pulp_href']
132
134
  end
133
135
 
134
- if attributes.key?(:'latest_version_href')
135
- self.latest_version_href = attributes[:'latest_version_href']
136
- end
137
-
138
- if attributes.key?(:'description')
139
- self.description = attributes[:'description']
136
+ if attributes.key?(:'pulp_labels')
137
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
+ self.pulp_labels = value
139
+ end
140
140
  end
141
141
  end
142
142
 
@@ -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
- pulp_created == o.pulp_created &&
181
+ latest_version_href == o.latest_version_href &&
182
+ pulp_last_updated == o.pulp_last_updated &&
182
183
  name == o.name &&
183
- manifest_signing_service == o.manifest_signing_service &&
184
+ description == o.description &&
184
185
  versions_href == o.versions_href &&
185
- pulp_last_updated == o.pulp_last_updated &&
186
- pulp_labels == o.pulp_labels &&
186
+ pulp_created == o.pulp_created &&
187
+ manifest_signing_service == o.manifest_signing_service &&
187
188
  retain_repo_versions == o.retain_repo_versions &&
188
189
  pulp_href == o.pulp_href &&
189
- latest_version_href == o.latest_version_href &&
190
- description == o.description
190
+ pulp_labels == o.pulp_labels
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
+ [latest_version_href, pulp_last_updated, name, description, versions_href, pulp_created, manifest_signing_service, retain_repo_versions, pulp_href, pulp_labels].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