pulp_container_client 2.20.3 → 2.20.5

Sign up to get free protection for your applications and to get access to all the features.
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 +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  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 +53 -53
  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 +51 -51
  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 +44 -44
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
  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 +7 -7
  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 +67 -67
@@ -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
@@ -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
- # Retain X versions of the repository. Default is null which retains all versions.
22
- attr_accessor :retain_repo_versions
23
-
24
23
  # A unique name for this repository.
25
24
  attr_accessor :name
26
25
 
27
26
  # A reference to an associated signing service.
28
27
  attr_accessor :manifest_signing_service
29
28
 
30
- attr_accessor :pulp_labels
29
+ # Retain X versions of the repository. Default is null which retains all versions.
30
+ attr_accessor :retain_repo_versions
31
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',
35
36
  :'description' => :'description',
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
37
  :'name' => :'name',
38
38
  :'manifest_signing_service' => :'manifest_signing_service',
39
- :'pulp_labels' => :'pulp_labels'
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>',
46
47
  :'description' => :'String',
47
- :'retain_repo_versions' => :'Integer',
48
48
  :'name' => :'String',
49
49
  :'manifest_signing_service' => :'String',
50
- :'pulp_labels' => :'Hash<String, 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
- :'retain_repo_versions',
59
58
  :'manifest_signing_service',
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -75,12 +75,14 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'description')
79
- self.description = attributes[:'description']
78
+ if attributes.key?(:'pulp_labels')
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
80
82
  end
81
83
 
82
- if attributes.key?(:'retain_repo_versions')
83
- self.retain_repo_versions = attributes[:'retain_repo_versions']
84
+ if attributes.key?(:'description')
85
+ self.description = attributes[:'description']
84
86
  end
85
87
 
86
88
  if attributes.key?(:'name')
@@ -91,10 +93,8 @@ module PulpContainerClient
91
93
  self.manifest_signing_service = attributes[:'manifest_signing_service']
92
94
  end
93
95
 
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
98
98
  end
99
99
  end
100
100
 
@@ -106,10 +106,6 @@ module PulpContainerClient
106
106
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
107
107
  end
108
108
 
109
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
110
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
111
- end
112
-
113
109
  if @name.nil?
114
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
115
111
  end
@@ -118,6 +114,10 @@ module PulpContainerClient
118
114
  invalid_properties.push('invalid value for "name", 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
 
@@ -125,9 +125,9 @@ module PulpContainerClient
125
125
  # @return true if the model is valid
126
126
  def valid?
127
127
  return false if !@description.nil? && @description.to_s.length < 1
128
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
129
128
  return false if @name.nil?
130
129
  return false if @name.to_s.length < 1
130
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
131
  true
132
132
  end
133
133
 
@@ -141,16 +141,6 @@ module PulpContainerClient
141
141
  @description = description
142
142
  end
143
143
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] retain_repo_versions Value to be assigned
146
- def retain_repo_versions=(retain_repo_versions)
147
- if !retain_repo_versions.nil? && retain_repo_versions < 1
148
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
149
- end
150
-
151
- @retain_repo_versions = retain_repo_versions
152
- end
153
-
154
144
  # Custom attribute writer method with validation
155
145
  # @param [Object] name Value to be assigned
156
146
  def name=(name)
@@ -165,16 +155,26 @@ module PulpContainerClient
165
155
  @name = name
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
+ pulp_labels == o.pulp_labels &&
173
174
  description == o.description &&
174
- retain_repo_versions == o.retain_repo_versions &&
175
175
  name == o.name &&
176
176
  manifest_signing_service == o.manifest_signing_service &&
177
- pulp_labels == o.pulp_labels
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
- [description, retain_repo_versions, name, manifest_signing_service, pulp_labels].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,21 +15,20 @@ 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 :versions_href
20
19
 
21
- attr_accessor :latest_version_href
20
+ attr_accessor :pulp_labels
22
21
 
23
- # An optional description.
24
- attr_accessor :description
22
+ # Timestamp of creation.
23
+ attr_accessor :pulp_created
25
24
 
26
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.
27
26
  attr_accessor :pulp_last_updated
28
27
 
29
- attr_accessor :versions_href
28
+ attr_accessor :pulp_href
30
29
 
31
- # Retain X versions of the repository. Default is null which retains all versions.
32
- attr_accessor :retain_repo_versions
30
+ # An optional description.
31
+ attr_accessor :description
33
32
 
34
33
  # A unique name for this repository.
35
34
  attr_accessor :name
@@ -37,39 +36,40 @@ module PulpContainerClient
37
36
  # A reference to an associated signing service.
38
37
  attr_accessor :manifest_signing_service
39
38
 
40
- attr_accessor :pulp_href
39
+ # Retain X versions of the repository. Default is null which retains all versions.
40
+ attr_accessor :retain_repo_versions
41
41
 
42
- attr_accessor :pulp_labels
42
+ attr_accessor :latest_version_href
43
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',
48
- :'latest_version_href' => :'latest_version_href',
49
- :'description' => :'description',
50
50
  :'pulp_last_updated' => :'pulp_last_updated',
51
- :'versions_href' => :'versions_href',
52
- :'retain_repo_versions' => :'retain_repo_versions',
51
+ :'pulp_href' => :'pulp_href',
52
+ :'description' => :'description',
53
53
  :'name' => :'name',
54
54
  :'manifest_signing_service' => :'manifest_signing_service',
55
- :'pulp_href' => :'pulp_href',
56
- :'pulp_labels' => :'pulp_labels'
55
+ :'retain_repo_versions' => :'retain_repo_versions',
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',
64
- :'latest_version_href' => :'String',
65
- :'description' => :'String',
66
66
  :'pulp_last_updated' => :'DateTime',
67
- :'versions_href' => :'String',
68
- :'retain_repo_versions' => :'Integer',
67
+ :'pulp_href' => :'String',
68
+ :'description' => :'String',
69
69
  :'name' => :'String',
70
70
  :'manifest_signing_service' => :'String',
71
- :'pulp_href' => :'String',
72
- :'pulp_labels' => :'Hash<String, String>'
71
+ :'retain_repo_versions' => :'Integer',
72
+ :'latest_version_href' => :'String'
73
73
  }
74
74
  end
75
75
 
@@ -77,8 +77,8 @@ module PulpContainerClient
77
77
  def self.openapi_nullable
78
78
  Set.new([
79
79
  :'description',
80
- :'retain_repo_versions',
81
80
  :'manifest_signing_service',
81
+ :'retain_repo_versions',
82
82
  ])
83
83
  end
84
84
 
@@ -97,28 +97,30 @@ 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?(:'versions_href')
101
+ self.versions_href = attributes[:'versions_href']
102
102
  end
103
103
 
104
- if attributes.key?(:'latest_version_href')
105
- self.latest_version_href = attributes[:'latest_version_href']
104
+ if attributes.key?(:'pulp_labels')
105
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
+ self.pulp_labels = value
107
+ end
106
108
  end
107
109
 
108
- if attributes.key?(:'description')
109
- self.description = attributes[:'description']
110
+ if attributes.key?(:'pulp_created')
111
+ self.pulp_created = attributes[:'pulp_created']
110
112
  end
111
113
 
112
114
  if attributes.key?(:'pulp_last_updated')
113
115
  self.pulp_last_updated = attributes[:'pulp_last_updated']
114
116
  end
115
117
 
116
- if attributes.key?(:'versions_href')
117
- self.versions_href = attributes[:'versions_href']
118
+ if attributes.key?(:'pulp_href')
119
+ self.pulp_href = attributes[:'pulp_href']
118
120
  end
119
121
 
120
- if attributes.key?(:'retain_repo_versions')
121
- self.retain_repo_versions = attributes[:'retain_repo_versions']
122
+ if attributes.key?(:'description')
123
+ self.description = attributes[:'description']
122
124
  end
123
125
 
124
126
  if attributes.key?(:'name')
@@ -129,14 +131,12 @@ module PulpContainerClient
129
131
  self.manifest_signing_service = attributes[:'manifest_signing_service']
130
132
  end
131
133
 
132
- if attributes.key?(:'pulp_href')
133
- self.pulp_href = attributes[:'pulp_href']
134
+ if attributes.key?(:'retain_repo_versions')
135
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
134
136
  end
135
137
 
136
- if attributes.key?(:'pulp_labels')
137
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
138
- self.pulp_labels = value
139
- end
138
+ if attributes.key?(:'latest_version_href')
139
+ self.latest_version_href = attributes[:'latest_version_href']
140
140
  end
141
141
  end
142
142
 
@@ -144,22 +144,22 @@ module PulpContainerClient
144
144
  # @return Array for valid properties with the reasons
145
145
  def list_invalid_properties
146
146
  invalid_properties = Array.new
147
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
148
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
149
- end
150
-
151
147
  if @name.nil?
152
148
  invalid_properties.push('invalid value for "name", name cannot be nil.')
153
149
  end
154
150
 
151
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
153
+ end
154
+
155
155
  invalid_properties
156
156
  end
157
157
 
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
162
161
  return false if @name.nil?
162
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
163
163
  true
164
164
  end
165
165
 
@@ -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 &&
182
- latest_version_href == o.latest_version_href &&
183
- description == o.description &&
184
184
  pulp_last_updated == o.pulp_last_updated &&
185
- versions_href == o.versions_href &&
186
- retain_repo_versions == o.retain_repo_versions &&
185
+ pulp_href == o.pulp_href &&
186
+ description == o.description &&
187
187
  name == o.name &&
188
188
  manifest_signing_service == o.manifest_signing_service &&
189
- pulp_href == o.pulp_href &&
190
- pulp_labels == o.pulp_labels
189
+ retain_repo_versions == o.retain_repo_versions &&
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, latest_version_href, description, pulp_last_updated, versions_href, retain_repo_versions, name, manifest_signing_service, pulp_href, pulp_labels].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