pulp_container_client 2.16.7 → 2.16.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) 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 +8 -8
  5. data/docs/ContainerContainerPushRepository.md +3 -3
  6. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  7. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  8. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  9. data/lib/pulp_container_client/models/container_container_distribution.rb +25 -25
  10. data/lib/pulp_container_client/models/container_container_distribution_response.rb +35 -35
  11. data/lib/pulp_container_client/models/container_container_push_repository.rb +14 -14
  12. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +37 -37
  13. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  14. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  15. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +25 -25
  16. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +14 -14
  17. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  18. data/lib/pulp_container_client/version.rb +1 -1
  19. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  20. data/spec/models/container_container_distribution_spec.rb +4 -4
  21. data/spec/models/container_container_push_repository_response_spec.rb +8 -8
  22. data/spec/models/container_container_push_repository_spec.rb +2 -2
  23. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  24. data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
  25. metadata +2 -2
@@ -15,56 +15,56 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ attr_accessor :latest_version_href
19
+
18
20
  # An optional description.
19
21
  attr_accessor :description
20
22
 
21
- attr_accessor :versions_href
23
+ # Retain X versions of the repository. Default is null which retains all versions.
24
+ attr_accessor :retain_repo_versions
22
25
 
23
26
  # Timestamp of creation.
24
27
  attr_accessor :pulp_created
25
28
 
26
- # Retain X versions of the repository. Default is null which retains all versions.
27
- attr_accessor :retain_repo_versions
29
+ attr_accessor :pulp_href
28
30
 
29
31
  # A unique name for this repository.
30
32
  attr_accessor :name
31
33
 
32
- attr_accessor :latest_version_href
33
-
34
- attr_accessor :pulp_labels
34
+ attr_accessor :versions_href
35
35
 
36
36
  # A reference to an associated signing service.
37
37
  attr_accessor :manifest_signing_service
38
38
 
39
- attr_accessor :pulp_href
39
+ attr_accessor :pulp_labels
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'latest_version_href' => :'latest_version_href',
44
45
  :'description' => :'description',
45
- :'versions_href' => :'versions_href',
46
- :'pulp_created' => :'pulp_created',
47
46
  :'retain_repo_versions' => :'retain_repo_versions',
47
+ :'pulp_created' => :'pulp_created',
48
+ :'pulp_href' => :'pulp_href',
48
49
  :'name' => :'name',
49
- :'latest_version_href' => :'latest_version_href',
50
- :'pulp_labels' => :'pulp_labels',
50
+ :'versions_href' => :'versions_href',
51
51
  :'manifest_signing_service' => :'manifest_signing_service',
52
- :'pulp_href' => :'pulp_href'
52
+ :'pulp_labels' => :'pulp_labels'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
+ :'latest_version_href' => :'String',
59
60
  :'description' => :'String',
60
- :'versions_href' => :'String',
61
- :'pulp_created' => :'DateTime',
62
61
  :'retain_repo_versions' => :'Integer',
62
+ :'pulp_created' => :'DateTime',
63
+ :'pulp_href' => :'String',
63
64
  :'name' => :'String',
64
- :'latest_version_href' => :'String',
65
- :'pulp_labels' => :'Hash<String, String>',
65
+ :'versions_href' => :'String',
66
66
  :'manifest_signing_service' => :'String',
67
- :'pulp_href' => :'String'
67
+ :'pulp_labels' => :'Hash<String, String>'
68
68
  }
69
69
  end
70
70
 
@@ -92,42 +92,42 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
+ if attributes.key?(:'latest_version_href')
96
+ self.latest_version_href = attributes[:'latest_version_href']
97
+ end
98
+
95
99
  if attributes.key?(:'description')
96
100
  self.description = attributes[:'description']
97
101
  end
98
102
 
99
- if attributes.key?(:'versions_href')
100
- self.versions_href = attributes[:'versions_href']
103
+ if attributes.key?(:'retain_repo_versions')
104
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
101
105
  end
102
106
 
103
107
  if attributes.key?(:'pulp_created')
104
108
  self.pulp_created = attributes[:'pulp_created']
105
109
  end
106
110
 
107
- if attributes.key?(:'retain_repo_versions')
108
- self.retain_repo_versions = attributes[:'retain_repo_versions']
111
+ if attributes.key?(:'pulp_href')
112
+ self.pulp_href = attributes[:'pulp_href']
109
113
  end
110
114
 
111
115
  if attributes.key?(:'name')
112
116
  self.name = attributes[:'name']
113
117
  end
114
118
 
115
- if attributes.key?(:'latest_version_href')
116
- self.latest_version_href = attributes[:'latest_version_href']
117
- end
118
-
119
- if attributes.key?(:'pulp_labels')
120
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
121
- self.pulp_labels = value
122
- end
119
+ if attributes.key?(:'versions_href')
120
+ self.versions_href = attributes[:'versions_href']
123
121
  end
124
122
 
125
123
  if attributes.key?(:'manifest_signing_service')
126
124
  self.manifest_signing_service = attributes[:'manifest_signing_service']
127
125
  end
128
126
 
129
- if attributes.key?(:'pulp_href')
130
- self.pulp_href = attributes[:'pulp_href']
127
+ if attributes.key?(:'pulp_labels')
128
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
129
+ self.pulp_labels = value
130
+ end
131
131
  end
132
132
  end
133
133
 
@@ -169,15 +169,15 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
+ latest_version_href == o.latest_version_href &&
172
173
  description == o.description &&
173
- versions_href == o.versions_href &&
174
- pulp_created == o.pulp_created &&
175
174
  retain_repo_versions == o.retain_repo_versions &&
175
+ pulp_created == o.pulp_created &&
176
+ pulp_href == o.pulp_href &&
176
177
  name == o.name &&
177
- latest_version_href == o.latest_version_href &&
178
- pulp_labels == o.pulp_labels &&
178
+ versions_href == o.versions_href &&
179
179
  manifest_signing_service == o.manifest_signing_service &&
180
- pulp_href == o.pulp_href
180
+ pulp_labels == o.pulp_labels
181
181
  end
182
182
 
183
183
  # @see the `==` method
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [description, versions_href, pulp_created, retain_repo_versions, name, latest_version_href, pulp_labels, manifest_signing_service, pulp_href].hash
192
+ [latest_version_href, description, retain_repo_versions, pulp_created, pulp_href, name, versions_href, manifest_signing_service, pulp_labels].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -354,20 +354,20 @@ module PulpContainerClient
354
354
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
355
355
  end
356
356
 
357
- if !@total_timeout.nil? && @total_timeout < 0.0
358
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
357
+ if !@total_timeout.nil? && @total_timeout < 0
358
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
359
359
  end
360
360
 
361
- if !@connect_timeout.nil? && @connect_timeout < 0.0
362
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
361
+ if !@connect_timeout.nil? && @connect_timeout < 0
362
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
363
363
  end
364
364
 
365
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
365
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
366
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
367
367
  end
368
368
 
369
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
370
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
369
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
370
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
371
371
  end
372
372
 
373
373
  if @upstream_name.nil?
@@ -401,10 +401,10 @@ module PulpContainerClient
401
401
  return false if !@username.nil? && @username.to_s.length < 1
402
402
  return false if !@password.nil? && @password.to_s.length < 1
403
403
  return false if !@download_concurrency.nil? && @download_concurrency < 1
404
- return false if !@total_timeout.nil? && @total_timeout < 0.0
405
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
406
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
407
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
404
+ return false if !@total_timeout.nil? && @total_timeout < 0
405
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
406
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
407
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
408
408
  return false if @upstream_name.nil?
409
409
  return false if @upstream_name.to_s.length < 1
410
410
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
@@ -532,8 +532,8 @@ module PulpContainerClient
532
532
  # Custom attribute writer method with validation
533
533
  # @param [Object] total_timeout Value to be assigned
534
534
  def total_timeout=(total_timeout)
535
- if !total_timeout.nil? && total_timeout < 0.0
536
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
535
+ if !total_timeout.nil? && total_timeout < 0
536
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
537
537
  end
538
538
 
539
539
  @total_timeout = total_timeout
@@ -542,8 +542,8 @@ module PulpContainerClient
542
542
  # Custom attribute writer method with validation
543
543
  # @param [Object] connect_timeout Value to be assigned
544
544
  def connect_timeout=(connect_timeout)
545
- if !connect_timeout.nil? && connect_timeout < 0.0
546
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
545
+ if !connect_timeout.nil? && connect_timeout < 0
546
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
547
547
  end
548
548
 
549
549
  @connect_timeout = connect_timeout
@@ -552,8 +552,8 @@ module PulpContainerClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] sock_connect_timeout Value to be assigned
554
554
  def sock_connect_timeout=(sock_connect_timeout)
555
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
556
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
555
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
556
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
557
557
  end
558
558
 
559
559
  @sock_connect_timeout = sock_connect_timeout
@@ -562,8 +562,8 @@ module PulpContainerClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] sock_read_timeout Value to be assigned
564
564
  def sock_read_timeout=(sock_read_timeout)
565
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
566
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
565
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
566
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
567
567
  end
568
568
 
569
569
  @sock_read_timeout = sock_read_timeout
@@ -301,20 +301,20 @@ module PulpContainerClient
301
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
302
  end
303
303
 
304
- if !@total_timeout.nil? && @total_timeout < 0.0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
304
+ if !@total_timeout.nil? && @total_timeout < 0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
306
306
  end
307
307
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0.0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
308
+ if !@connect_timeout.nil? && @connect_timeout < 0
309
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
310
310
  end
311
311
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
312
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
314
314
  end
315
315
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
318
318
  end
319
319
 
320
320
  if @upstream_name.nil?
@@ -330,10 +330,10 @@ module PulpContainerClient
330
330
  return false if @name.nil?
331
331
  return false if @url.nil?
332
332
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0.0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
333
+ return false if !@total_timeout.nil? && @total_timeout < 0
334
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
335
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
337
337
  return false if @upstream_name.nil?
338
338
  true
339
339
  end
@@ -351,8 +351,8 @@ module PulpContainerClient
351
351
  # Custom attribute writer method with validation
352
352
  # @param [Object] total_timeout Value to be assigned
353
353
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0.0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
354
+ if !total_timeout.nil? && total_timeout < 0
355
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
356
356
  end
357
357
 
358
358
  @total_timeout = total_timeout
@@ -361,8 +361,8 @@ module PulpContainerClient
361
361
  # Custom attribute writer method with validation
362
362
  # @param [Object] connect_timeout Value to be assigned
363
363
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0.0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
364
+ if !connect_timeout.nil? && connect_timeout < 0
365
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
366
366
  end
367
367
 
368
368
  @connect_timeout = connect_timeout
@@ -371,8 +371,8 @@ module PulpContainerClient
371
371
  # Custom attribute writer method with validation
372
372
  # @param [Object] sock_connect_timeout Value to be assigned
373
373
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
374
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
376
376
  end
377
377
 
378
378
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +381,8 @@ module PulpContainerClient
381
381
  # Custom attribute writer method with validation
382
382
  # @param [Object] sock_read_timeout Value to be assigned
383
383
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
384
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
385
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout
@@ -18,20 +18,20 @@ module PulpContainerClient
18
18
  # An optional content-guard. If none is specified, a default one will be used.
19
19
  attr_accessor :content_guard
20
20
 
21
- # Whether this distribution should be shown in the content app.
22
- attr_accessor :hidden
23
-
24
21
  # A unique name. Ex, `rawhide` and `stable`.
25
22
  attr_accessor :name
26
23
 
27
- # The latest RepositoryVersion for this Repository will be served.
28
- attr_accessor :repository
29
-
30
- attr_accessor :pulp_labels
24
+ # Whether this distribution should be shown in the content app.
25
+ attr_accessor :hidden
31
26
 
32
27
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
28
  attr_accessor :base_path
34
29
 
30
+ attr_accessor :pulp_labels
31
+
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -45,11 +45,11 @@ module PulpContainerClient
45
45
  def self.attribute_map
46
46
  {
47
47
  :'content_guard' => :'content_guard',
48
- :'hidden' => :'hidden',
49
48
  :'name' => :'name',
50
- :'repository' => :'repository',
51
- :'pulp_labels' => :'pulp_labels',
49
+ :'hidden' => :'hidden',
52
50
  :'base_path' => :'base_path',
51
+ :'pulp_labels' => :'pulp_labels',
52
+ :'repository' => :'repository',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -60,11 +60,11 @@ module PulpContainerClient
60
60
  def self.openapi_types
61
61
  {
62
62
  :'content_guard' => :'String',
63
- :'hidden' => :'Boolean',
64
63
  :'name' => :'String',
65
- :'repository' => :'String',
66
- :'pulp_labels' => :'Hash<String, String>',
64
+ :'hidden' => :'Boolean',
67
65
  :'base_path' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
67
+ :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -99,18 +99,18 @@ module PulpContainerClient
99
99
  self.content_guard = attributes[:'content_guard']
100
100
  end
101
101
 
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
104
+ end
105
+
102
106
  if attributes.key?(:'hidden')
103
107
  self.hidden = attributes[:'hidden']
104
108
  else
105
109
  self.hidden = false
106
110
  end
107
111
 
108
- if attributes.key?(:'name')
109
- self.name = attributes[:'name']
110
- end
111
-
112
- if attributes.key?(:'repository')
113
- self.repository = attributes[:'repository']
112
+ if attributes.key?(:'base_path')
113
+ self.base_path = attributes[:'base_path']
114
114
  end
115
115
 
116
116
  if attributes.key?(:'pulp_labels')
@@ -119,8 +119,8 @@ module PulpContainerClient
119
119
  end
120
120
  end
121
121
 
122
- if attributes.key?(:'base_path')
123
- self.base_path = attributes[:'base_path']
122
+ if attributes.key?(:'repository')
123
+ self.repository = attributes[:'repository']
124
124
  end
125
125
 
126
126
  if attributes.key?(:'repository_version')
@@ -200,11 +200,11 @@ module PulpContainerClient
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
202
  content_guard == o.content_guard &&
203
- hidden == o.hidden &&
204
203
  name == o.name &&
205
- repository == o.repository &&
206
- pulp_labels == o.pulp_labels &&
204
+ hidden == o.hidden &&
207
205
  base_path == o.base_path &&
206
+ pulp_labels == o.pulp_labels &&
207
+ repository == o.repository &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [content_guard, hidden, name, repository, pulp_labels, base_path, repository_version, private, description].hash
222
+ [content_guard, name, hidden, base_path, pulp_labels, repository, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -24,19 +24,19 @@ module PulpContainerClient
24
24
  # A unique name for this repository.
25
25
  attr_accessor :name
26
26
 
27
- attr_accessor :pulp_labels
28
-
29
27
  # A reference to an associated signing service.
30
28
  attr_accessor :manifest_signing_service
31
29
 
30
+ attr_accessor :pulp_labels
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'description' => :'description',
36
36
  :'retain_repo_versions' => :'retain_repo_versions',
37
37
  :'name' => :'name',
38
- :'pulp_labels' => :'pulp_labels',
39
- :'manifest_signing_service' => :'manifest_signing_service'
38
+ :'manifest_signing_service' => :'manifest_signing_service',
39
+ :'pulp_labels' => :'pulp_labels'
40
40
  }
41
41
  end
42
42
 
@@ -46,8 +46,8 @@ module PulpContainerClient
46
46
  :'description' => :'String',
47
47
  :'retain_repo_versions' => :'Integer',
48
48
  :'name' => :'String',
49
- :'pulp_labels' => :'Hash<String, String>',
50
- :'manifest_signing_service' => :'String'
49
+ :'manifest_signing_service' => :'String',
50
+ :'pulp_labels' => :'Hash<String, String>'
51
51
  }
52
52
  end
53
53
 
@@ -56,7 +56,7 @@ module PulpContainerClient
56
56
  Set.new([
57
57
  :'description',
58
58
  :'retain_repo_versions',
59
- :'manifest_signing_service'
59
+ :'manifest_signing_service',
60
60
  ])
61
61
  end
62
62
 
@@ -87,15 +87,15 @@ module PulpContainerClient
87
87
  self.name = attributes[:'name']
88
88
  end
89
89
 
90
+ if attributes.key?(:'manifest_signing_service')
91
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
92
+ end
93
+
90
94
  if attributes.key?(:'pulp_labels')
91
95
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
96
  self.pulp_labels = value
93
97
  end
94
98
  end
95
-
96
- if attributes.key?(:'manifest_signing_service')
97
- self.manifest_signing_service = attributes[:'manifest_signing_service']
98
- end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -164,8 +164,8 @@ module PulpContainerClient
164
164
  description == o.description &&
165
165
  retain_repo_versions == o.retain_repo_versions &&
166
166
  name == o.name &&
167
- pulp_labels == o.pulp_labels &&
168
- manifest_signing_service == o.manifest_signing_service
167
+ manifest_signing_service == o.manifest_signing_service &&
168
+ pulp_labels == o.pulp_labels
169
169
  end
170
170
 
171
171
  # @see the `==` method
@@ -177,7 +177,7 @@ module PulpContainerClient
177
177
  # Calculates hash code according to all attributes.
178
178
  # @return [Integer] Hash code
179
179
  def hash
180
- [description, retain_repo_versions, name, pulp_labels, manifest_signing_service].hash
180
+ [description, retain_repo_versions, name, manifest_signing_service, pulp_labels].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash
@@ -346,20 +346,20 @@ module PulpContainerClient
346
346
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
347
347
  end
348
348
 
349
- if !@total_timeout.nil? && @total_timeout < 0.0
350
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
349
+ if !@total_timeout.nil? && @total_timeout < 0
350
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
351
351
  end
352
352
 
353
- if !@connect_timeout.nil? && @connect_timeout < 0.0
354
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
353
+ if !@connect_timeout.nil? && @connect_timeout < 0
354
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
355
355
  end
356
356
 
357
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
358
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
357
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
358
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
359
359
  end
360
360
 
361
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
362
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
361
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
362
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
363
363
  end
364
364
 
365
365
  if !@upstream_name.nil? && @upstream_name.to_s.length < 1
@@ -387,10 +387,10 @@ module PulpContainerClient
387
387
  return false if !@username.nil? && @username.to_s.length < 1
388
388
  return false if !@password.nil? && @password.to_s.length < 1
389
389
  return false if !@download_concurrency.nil? && @download_concurrency < 1
390
- return false if !@total_timeout.nil? && @total_timeout < 0.0
391
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
392
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
393
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
390
+ return false if !@total_timeout.nil? && @total_timeout < 0
391
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
392
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
393
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
394
394
  return false if !@upstream_name.nil? && @upstream_name.to_s.length < 1
395
395
  return false if !@sigstore.nil? && @sigstore.to_s.length < 1
396
396
  true
@@ -509,8 +509,8 @@ module PulpContainerClient
509
509
  # Custom attribute writer method with validation
510
510
  # @param [Object] total_timeout Value to be assigned
511
511
  def total_timeout=(total_timeout)
512
- if !total_timeout.nil? && total_timeout < 0.0
513
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
512
+ if !total_timeout.nil? && total_timeout < 0
513
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
514
514
  end
515
515
 
516
516
  @total_timeout = total_timeout
@@ -519,8 +519,8 @@ module PulpContainerClient
519
519
  # Custom attribute writer method with validation
520
520
  # @param [Object] connect_timeout Value to be assigned
521
521
  def connect_timeout=(connect_timeout)
522
- if !connect_timeout.nil? && connect_timeout < 0.0
523
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
522
+ if !connect_timeout.nil? && connect_timeout < 0
523
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
524
524
  end
525
525
 
526
526
  @connect_timeout = connect_timeout
@@ -529,8 +529,8 @@ module PulpContainerClient
529
529
  # Custom attribute writer method with validation
530
530
  # @param [Object] sock_connect_timeout Value to be assigned
531
531
  def sock_connect_timeout=(sock_connect_timeout)
532
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
533
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
532
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
533
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
534
534
  end
535
535
 
536
536
  @sock_connect_timeout = sock_connect_timeout
@@ -539,8 +539,8 @@ module PulpContainerClient
539
539
  # Custom attribute writer method with validation
540
540
  # @param [Object] sock_read_timeout Value to be assigned
541
541
  def sock_read_timeout=(sock_read_timeout)
542
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
543
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
542
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
543
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
544
544
  end
545
545
 
546
546
  @sock_read_timeout = sock_read_timeout
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.16.7'
14
+ VERSION = '2.16.9'
15
15
  end