pulp_container_client 2.22.0 → 2.22.1

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 +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +5 -5
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  9. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +52 -52
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +45 -45
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +52 -52
  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 +43 -43
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
  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 +36 -36
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +36 -36
  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 +43 -43
  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 +5 -5
  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 +5 -5
  32. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  33. data/spec/models/container_container_push_repository_spec.rb +4 -4
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  37. metadata +64 -64
@@ -335,20 +335,20 @@ module PulpContainerClient
335
335
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
336
336
  end
337
337
 
338
- if !@total_timeout.nil? && @total_timeout < 0
339
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
338
+ if !@total_timeout.nil? && @total_timeout < 0.0
339
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
340
340
  end
341
341
 
342
- if !@connect_timeout.nil? && @connect_timeout < 0
343
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
342
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
343
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
344
344
  end
345
345
 
346
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
347
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
346
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
347
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
348
348
  end
349
349
 
350
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
351
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
350
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
351
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
352
352
  end
353
353
 
354
354
  invalid_properties
@@ -370,10 +370,10 @@ module PulpContainerClient
370
370
  return false if !@username.nil? && @username.to_s.length < 1
371
371
  return false if !@password.nil? && @password.to_s.length < 1
372
372
  return false if !@download_concurrency.nil? && @download_concurrency < 1
373
- return false if !@total_timeout.nil? && @total_timeout < 0
374
- return false if !@connect_timeout.nil? && @connect_timeout < 0
375
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
376
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
373
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
374
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
375
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
376
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
377
377
  true
378
378
  end
379
379
 
@@ -498,8 +498,8 @@ module PulpContainerClient
498
498
  # Custom attribute writer method with validation
499
499
  # @param [Object] total_timeout Value to be assigned
500
500
  def total_timeout=(total_timeout)
501
- if !total_timeout.nil? && total_timeout < 0
502
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
501
+ if !total_timeout.nil? && total_timeout < 0.0
502
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
503
503
  end
504
504
 
505
505
  @total_timeout = total_timeout
@@ -508,8 +508,8 @@ module PulpContainerClient
508
508
  # Custom attribute writer method with validation
509
509
  # @param [Object] connect_timeout Value to be assigned
510
510
  def connect_timeout=(connect_timeout)
511
- if !connect_timeout.nil? && connect_timeout < 0
512
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
511
+ if !connect_timeout.nil? && connect_timeout < 0.0
512
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
513
513
  end
514
514
 
515
515
  @connect_timeout = connect_timeout
@@ -518,8 +518,8 @@ module PulpContainerClient
518
518
  # Custom attribute writer method with validation
519
519
  # @param [Object] sock_connect_timeout Value to be assigned
520
520
  def sock_connect_timeout=(sock_connect_timeout)
521
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
522
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
521
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
522
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
523
523
  end
524
524
 
525
525
  @sock_connect_timeout = sock_connect_timeout
@@ -528,8 +528,8 @@ module PulpContainerClient
528
528
  # Custom attribute writer method with validation
529
529
  # @param [Object] sock_read_timeout Value to be assigned
530
530
  def sock_read_timeout=(sock_read_timeout)
531
- if !sock_read_timeout.nil? && sock_read_timeout < 0
532
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
531
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
532
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
533
533
  end
534
534
 
535
535
  @sock_read_timeout = sock_read_timeout
@@ -291,20 +291,20 @@ module PulpContainerClient
291
291
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
292
292
  end
293
293
 
294
- if !@total_timeout.nil? && @total_timeout < 0
295
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
294
+ if !@total_timeout.nil? && @total_timeout < 0.0
295
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
296
296
  end
297
297
 
298
- if !@connect_timeout.nil? && @connect_timeout < 0
299
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
298
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
299
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
300
300
  end
301
301
 
302
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
303
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
302
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
303
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
304
304
  end
305
305
 
306
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
307
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
306
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
307
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
308
308
  end
309
309
 
310
310
  invalid_properties
@@ -316,10 +316,10 @@ module PulpContainerClient
316
316
  return false if @name.nil?
317
317
  return false if @url.nil?
318
318
  return false if !@download_concurrency.nil? && @download_concurrency < 1
319
- return false if !@total_timeout.nil? && @total_timeout < 0
320
- return false if !@connect_timeout.nil? && @connect_timeout < 0
321
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
322
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
319
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
320
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
321
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
322
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
323
323
  true
324
324
  end
325
325
 
@@ -336,8 +336,8 @@ module PulpContainerClient
336
336
  # Custom attribute writer method with validation
337
337
  # @param [Object] total_timeout Value to be assigned
338
338
  def total_timeout=(total_timeout)
339
- if !total_timeout.nil? && total_timeout < 0
340
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
339
+ if !total_timeout.nil? && total_timeout < 0.0
340
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
341
341
  end
342
342
 
343
343
  @total_timeout = total_timeout
@@ -346,8 +346,8 @@ module PulpContainerClient
346
346
  # Custom attribute writer method with validation
347
347
  # @param [Object] connect_timeout Value to be assigned
348
348
  def connect_timeout=(connect_timeout)
349
- if !connect_timeout.nil? && connect_timeout < 0
350
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
349
+ if !connect_timeout.nil? && connect_timeout < 0.0
350
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
351
351
  end
352
352
 
353
353
  @connect_timeout = connect_timeout
@@ -356,8 +356,8 @@ module PulpContainerClient
356
356
  # Custom attribute writer method with validation
357
357
  # @param [Object] sock_connect_timeout Value to be assigned
358
358
  def sock_connect_timeout=(sock_connect_timeout)
359
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
360
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
359
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
360
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
361
361
  end
362
362
 
363
363
  @sock_connect_timeout = sock_connect_timeout
@@ -366,8 +366,8 @@ module PulpContainerClient
366
366
  # Custom attribute writer method with validation
367
367
  # @param [Object] sock_read_timeout Value to be assigned
368
368
  def sock_read_timeout=(sock_read_timeout)
369
- if !sock_read_timeout.nil? && sock_read_timeout < 0
370
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
369
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
370
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
371
371
  end
372
372
 
373
373
  @sock_read_timeout = sock_read_timeout
@@ -15,48 +15,48 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # An optional description.
19
- attr_accessor :description
20
-
21
- attr_accessor :pulp_labels
22
-
23
18
  # A unique name for this repository.
24
19
  attr_accessor :name
25
20
 
21
+ # A reference to an associated signing service.
22
+ attr_accessor :manifest_signing_service
23
+
24
+ # An optional description.
25
+ attr_accessor :description
26
+
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
- # A reference to an associated signing service.
30
- attr_accessor :manifest_signing_service
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
- :'description' => :'description',
36
- :'pulp_labels' => :'pulp_labels',
37
35
  :'name' => :'name',
36
+ :'manifest_signing_service' => :'manifest_signing_service',
37
+ :'description' => :'description',
38
38
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'manifest_signing_service' => :'manifest_signing_service'
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
- :'description' => :'String',
47
- :'pulp_labels' => :'Hash<String, String>',
48
46
  :'name' => :'String',
47
+ :'manifest_signing_service' => :'String',
48
+ :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
50
- :'manifest_signing_service' => :'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
+ :'manifest_signing_service',
57
58
  :'description',
58
59
  :'retain_repo_versions',
59
- :'manifest_signing_service'
60
60
  ])
61
61
  end
62
62
 
@@ -75,26 +75,26 @@ 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?(:'name')
79
+ self.name = attributes[:'name']
80
80
  end
81
81
 
82
- if attributes.key?(:'pulp_labels')
83
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
- self.pulp_labels = value
85
- end
82
+ if attributes.key?(:'manifest_signing_service')
83
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
86
84
  end
87
85
 
88
- if attributes.key?(:'name')
89
- self.name = attributes[:'name']
86
+ if attributes.key?(:'description')
87
+ self.description = attributes[:'description']
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?(:'manifest_signing_service')
97
- self.manifest_signing_service = attributes[:'manifest_signing_service']
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
 
@@ -102,10 +102,6 @@ module PulpContainerClient
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
-
109
105
  if @name.nil?
110
106
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
107
  end
@@ -114,6 +110,10 @@ module PulpContainerClient
114
110
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
115
111
  end
116
112
 
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,23 +124,13 @@ 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
128
127
  return false if @name.nil?
129
128
  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
-
144
134
  # Custom attribute writer method with validation
145
135
  # @param [Object] name Value to be assigned
146
136
  def name=(name)
@@ -155,6 +145,16 @@ module PulpContainerClient
155
145
  @name = name
156
146
  end
157
147
 
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
- description == o.description &&
174
- pulp_labels == o.pulp_labels &&
175
173
  name == o.name &&
174
+ manifest_signing_service == o.manifest_signing_service &&
175
+ description == o.description &&
176
176
  retain_repo_versions == o.retain_repo_versions &&
177
- manifest_signing_service == o.manifest_signing_service
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
- [description, pulp_labels, name, retain_repo_versions, manifest_signing_service].hash
189
+ [name, manifest_signing_service, description, retain_repo_versions, pulp_labels].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,48 +15,48 @@ 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
20
-
21
- # An optional description.
22
- attr_accessor :description
23
-
24
- attr_accessor :pulp_labels
25
-
26
18
  attr_accessor :versions_href
27
19
 
28
- # The Pulp Resource Name (PRN).
29
- attr_accessor :prn
30
-
31
20
  # A unique name for this repository.
32
21
  attr_accessor :name
33
22
 
23
+ # A reference to an associated signing service.
24
+ attr_accessor :manifest_signing_service
25
+
26
+ # An optional description.
27
+ attr_accessor :description
28
+
34
29
  # Retain X versions of the repository. Default is null which retains all versions.
35
30
  attr_accessor :retain_repo_versions
36
31
 
37
- # A reference to an associated signing service.
38
- attr_accessor :manifest_signing_service
32
+ attr_accessor :pulp_labels
39
33
 
40
34
  attr_accessor :pulp_href
41
35
 
42
36
  attr_accessor :latest_version_href
43
37
 
38
+ # Timestamp of creation.
39
+ attr_accessor :pulp_created
40
+
41
+ # The Pulp Resource Name (PRN).
42
+ attr_accessor :prn
43
+
44
44
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
45
45
  attr_accessor :pulp_last_updated
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'pulp_created' => :'pulp_created',
51
- :'description' => :'description',
52
- :'pulp_labels' => :'pulp_labels',
53
50
  :'versions_href' => :'versions_href',
54
- :'prn' => :'prn',
55
51
  :'name' => :'name',
56
- :'retain_repo_versions' => :'retain_repo_versions',
57
52
  :'manifest_signing_service' => :'manifest_signing_service',
53
+ :'description' => :'description',
54
+ :'retain_repo_versions' => :'retain_repo_versions',
55
+ :'pulp_labels' => :'pulp_labels',
58
56
  :'pulp_href' => :'pulp_href',
59
57
  :'latest_version_href' => :'latest_version_href',
58
+ :'pulp_created' => :'pulp_created',
59
+ :'prn' => :'prn',
60
60
  :'pulp_last_updated' => :'pulp_last_updated'
61
61
  }
62
62
  end
@@ -64,16 +64,16 @@ module PulpContainerClient
64
64
  # Attribute type mapping.
65
65
  def self.openapi_types
66
66
  {
67
- :'pulp_created' => :'DateTime',
68
- :'description' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
67
  :'versions_href' => :'String',
71
- :'prn' => :'String',
72
68
  :'name' => :'String',
73
- :'retain_repo_versions' => :'Integer',
74
69
  :'manifest_signing_service' => :'String',
70
+ :'description' => :'String',
71
+ :'retain_repo_versions' => :'Integer',
72
+ :'pulp_labels' => :'Hash<String, String>',
75
73
  :'pulp_href' => :'String',
76
74
  :'latest_version_href' => :'String',
75
+ :'pulp_created' => :'DateTime',
76
+ :'prn' => :'String',
77
77
  :'pulp_last_updated' => :'DateTime'
78
78
  }
79
79
  end
@@ -81,9 +81,9 @@ module PulpContainerClient
81
81
  # List of attributes with nullable: true
82
82
  def self.openapi_nullable
83
83
  Set.new([
84
+ :'manifest_signing_service',
84
85
  :'description',
85
86
  :'retain_repo_versions',
86
- :'manifest_signing_service',
87
87
  ])
88
88
  end
89
89
 
@@ -102,38 +102,30 @@ module PulpContainerClient
102
102
  h[k.to_sym] = v
103
103
  }
104
104
 
105
- if attributes.key?(:'pulp_created')
106
- self.pulp_created = attributes[:'pulp_created']
107
- end
108
-
109
- if attributes.key?(:'description')
110
- self.description = attributes[:'description']
111
- end
112
-
113
- if attributes.key?(:'pulp_labels')
114
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
115
- self.pulp_labels = value
116
- end
117
- end
118
-
119
105
  if attributes.key?(:'versions_href')
120
106
  self.versions_href = attributes[:'versions_href']
121
107
  end
122
108
 
123
- if attributes.key?(:'prn')
124
- self.prn = attributes[:'prn']
125
- end
126
-
127
109
  if attributes.key?(:'name')
128
110
  self.name = attributes[:'name']
129
111
  end
130
112
 
113
+ if attributes.key?(:'manifest_signing_service')
114
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
115
+ end
116
+
117
+ if attributes.key?(:'description')
118
+ self.description = attributes[:'description']
119
+ end
120
+
131
121
  if attributes.key?(:'retain_repo_versions')
132
122
  self.retain_repo_versions = attributes[:'retain_repo_versions']
133
123
  end
134
124
 
135
- if attributes.key?(:'manifest_signing_service')
136
- self.manifest_signing_service = attributes[:'manifest_signing_service']
125
+ if attributes.key?(:'pulp_labels')
126
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
127
+ self.pulp_labels = value
128
+ end
137
129
  end
138
130
 
139
131
  if attributes.key?(:'pulp_href')
@@ -144,6 +136,14 @@ module PulpContainerClient
144
136
  self.latest_version_href = attributes[:'latest_version_href']
145
137
  end
146
138
 
139
+ if attributes.key?(:'pulp_created')
140
+ self.pulp_created = attributes[:'pulp_created']
141
+ end
142
+
143
+ if attributes.key?(:'prn')
144
+ self.prn = attributes[:'prn']
145
+ end
146
+
147
147
  if attributes.key?(:'pulp_last_updated')
148
148
  self.pulp_last_updated = attributes[:'pulp_last_updated']
149
149
  end
@@ -187,16 +187,16 @@ module PulpContainerClient
187
187
  def ==(o)
188
188
  return true if self.equal?(o)
189
189
  self.class == o.class &&
190
- pulp_created == o.pulp_created &&
191
- description == o.description &&
192
- pulp_labels == o.pulp_labels &&
193
190
  versions_href == o.versions_href &&
194
- prn == o.prn &&
195
191
  name == o.name &&
196
- retain_repo_versions == o.retain_repo_versions &&
197
192
  manifest_signing_service == o.manifest_signing_service &&
193
+ description == o.description &&
194
+ retain_repo_versions == o.retain_repo_versions &&
195
+ pulp_labels == o.pulp_labels &&
198
196
  pulp_href == o.pulp_href &&
199
197
  latest_version_href == o.latest_version_href &&
198
+ pulp_created == o.pulp_created &&
199
+ prn == o.prn &&
200
200
  pulp_last_updated == o.pulp_last_updated
201
201
  end
202
202
 
@@ -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, description, pulp_labels, versions_href, prn, name, retain_repo_versions, manifest_signing_service, pulp_href, latest_version_href, pulp_last_updated].hash
212
+ [versions_href, name, manifest_signing_service, description, retain_repo_versions, pulp_labels, pulp_href, latest_version_href, pulp_created, prn, 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
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