pulp_container_client 2.14.15 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +7 -7
  5. data/docs/ContainerContainerPushRepository.md +4 -4
  6. data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/ContainerContainerRepository.md +1 -1
  10. data/docs/ContainerContainerRepositoryResponse.md +1 -1
  11. data/docs/ContentBlobsApi.md +6 -2
  12. data/docs/ContentManifestsApi.md +8 -4
  13. data/docs/ContentSignaturesApi.md +6 -2
  14. data/docs/ContentTagsApi.md +8 -4
  15. data/docs/DistributionsContainerApi.md +10 -2
  16. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  17. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  18. data/docs/PatchedcontainerContainerRemote.md +1 -1
  19. data/docs/PatchedcontainerContainerRepository.md +1 -1
  20. data/docs/PulpContainerNamespacesApi.md +6 -2
  21. data/docs/RemotesContainerApi.md +6 -2
  22. data/docs/RepositoriesContainerApi.md +26 -2
  23. data/docs/RepositoriesContainerPushApi.md +26 -2
  24. data/docs/RepositoriesContainerPushVersionsApi.md +4 -2
  25. data/docs/RepositoriesContainerVersionsApi.md +4 -2
  26. data/lib/pulp_container_client/api/content_blobs_api.rb +8 -2
  27. data/lib/pulp_container_client/api/content_manifests_api.rb +10 -4
  28. data/lib/pulp_container_client/api/content_signatures_api.rb +8 -2
  29. data/lib/pulp_container_client/api/content_tags_api.rb +10 -4
  30. data/lib/pulp_container_client/api/distributions_container_api.rb +14 -2
  31. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +8 -2
  32. data/lib/pulp_container_client/api/remotes_container_api.rb +8 -2
  33. data/lib/pulp_container_client/api/repositories_container_api.rb +38 -2
  34. data/lib/pulp_container_client/api/repositories_container_push_api.rb +38 -2
  35. data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +5 -2
  36. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +5 -2
  37. data/lib/pulp_container_client/models/container_container_distribution.rb +19 -19
  38. data/lib/pulp_container_client/models/container_container_distribution_response.rb +29 -29
  39. data/lib/pulp_container_client/models/container_container_push_repository.rb +15 -15
  40. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +38 -38
  41. data/lib/pulp_container_client/models/container_container_remote.rb +21 -21
  42. data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -21
  43. data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
  44. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
  45. data/lib/pulp_container_client/models/nested_role.rb +19 -0
  46. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +19 -19
  47. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +15 -15
  48. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -21
  49. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
  50. data/lib/pulp_container_client/version.rb +1 -1
  51. data/spec/api/content_blobs_api_spec.rb +3 -1
  52. data/spec/api/content_manifests_api_spec.rb +4 -2
  53. data/spec/api/content_signatures_api_spec.rb +3 -1
  54. data/spec/api/content_tags_api_spec.rb +4 -2
  55. data/spec/api/distributions_container_api_spec.rb +5 -1
  56. data/spec/api/pulp_container_namespaces_api_spec.rb +3 -1
  57. data/spec/api/remotes_container_api_spec.rb +3 -1
  58. data/spec/api/repositories_container_api_spec.rb +13 -1
  59. data/spec/api/repositories_container_push_api_spec.rb +13 -1
  60. data/spec/api/repositories_container_push_versions_api_spec.rb +2 -1
  61. data/spec/api/repositories_container_versions_api_spec.rb +2 -1
  62. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  63. data/spec/models/container_container_distribution_spec.rb +5 -5
  64. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  65. data/spec/models/container_container_push_repository_spec.rb +2 -2
  66. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  67. data/spec/models/patchedcontainer_container_push_repository_spec.rb +2 -2
  68. metadata +49 -49
@@ -15,56 +15,56 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :pulp_href
18
+ attr_accessor :versions_href
19
19
 
20
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
21
- attr_accessor :retain_repo_versions
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :pulp_href
22
24
 
23
25
  attr_accessor :latest_version_href
24
26
 
27
+ # Retain X versions of the repository. Default is null which retains all versions.
28
+ attr_accessor :retain_repo_versions
29
+
25
30
  # An optional description.
26
31
  attr_accessor :description
27
32
 
28
33
  # A unique name for this repository.
29
34
  attr_accessor :name
30
35
 
31
- attr_accessor :pulp_labels
32
-
33
36
  # A reference to an associated signing service.
34
37
  attr_accessor :manifest_signing_service
35
38
 
36
- attr_accessor :versions_href
37
-
38
- # Timestamp of creation.
39
- attr_accessor :pulp_created
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
+ :'versions_href' => :'versions_href',
45
+ :'pulp_created' => :'pulp_created',
44
46
  :'pulp_href' => :'pulp_href',
45
- :'retain_repo_versions' => :'retain_repo_versions',
46
47
  :'latest_version_href' => :'latest_version_href',
48
+ :'retain_repo_versions' => :'retain_repo_versions',
47
49
  :'description' => :'description',
48
50
  :'name' => :'name',
49
- :'pulp_labels' => :'pulp_labels',
50
51
  :'manifest_signing_service' => :'manifest_signing_service',
51
- :'versions_href' => :'versions_href',
52
- :'pulp_created' => :'pulp_created'
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
+ :'versions_href' => :'String',
60
+ :'pulp_created' => :'DateTime',
59
61
  :'pulp_href' => :'String',
60
- :'retain_repo_versions' => :'Integer',
61
62
  :'latest_version_href' => :'String',
63
+ :'retain_repo_versions' => :'Integer',
62
64
  :'description' => :'String',
63
65
  :'name' => :'String',
64
- :'pulp_labels' => :'Hash<String, String>',
65
66
  :'manifest_signing_service' => :'String',
66
- :'versions_href' => :'String',
67
- :'pulp_created' => :'DateTime'
67
+ :'pulp_labels' => :'Hash<String, String>'
68
68
  }
69
69
  end
70
70
 
@@ -92,18 +92,26 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'pulp_href')
96
- self.pulp_href = attributes[:'pulp_href']
95
+ if attributes.key?(:'versions_href')
96
+ self.versions_href = attributes[:'versions_href']
97
97
  end
98
98
 
99
- if attributes.key?(:'retain_repo_versions')
100
- self.retain_repo_versions = attributes[:'retain_repo_versions']
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
+ end
102
+
103
+ if attributes.key?(:'pulp_href')
104
+ self.pulp_href = attributes[:'pulp_href']
101
105
  end
102
106
 
103
107
  if attributes.key?(:'latest_version_href')
104
108
  self.latest_version_href = attributes[:'latest_version_href']
105
109
  end
106
110
 
111
+ if attributes.key?(:'retain_repo_versions')
112
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
113
+ end
114
+
107
115
  if attributes.key?(:'description')
108
116
  self.description = attributes[:'description']
109
117
  end
@@ -112,22 +120,14 @@ module PulpContainerClient
112
120
  self.name = attributes[:'name']
113
121
  end
114
122
 
115
- if attributes.key?(:'pulp_labels')
116
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
117
- self.pulp_labels = value
118
- end
119
- end
120
-
121
123
  if attributes.key?(:'manifest_signing_service')
122
124
  self.manifest_signing_service = attributes[:'manifest_signing_service']
123
125
  end
124
126
 
125
- if attributes.key?(:'versions_href')
126
- self.versions_href = attributes[:'versions_href']
127
- end
128
-
129
- if attributes.key?(:'pulp_created')
130
- self.pulp_created = attributes[:'pulp_created']
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
+ versions_href == o.versions_href &&
173
+ pulp_created == o.pulp_created &&
172
174
  pulp_href == o.pulp_href &&
173
- retain_repo_versions == o.retain_repo_versions &&
174
175
  latest_version_href == o.latest_version_href &&
176
+ retain_repo_versions == o.retain_repo_versions &&
175
177
  description == o.description &&
176
178
  name == o.name &&
177
- pulp_labels == o.pulp_labels &&
178
179
  manifest_signing_service == o.manifest_signing_service &&
179
- versions_href == o.versions_href &&
180
- pulp_created == o.pulp_created
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
- [pulp_href, retain_repo_versions, latest_version_href, description, name, pulp_labels, manifest_signing_service, versions_href, pulp_created].hash
192
+ [versions_href, pulp_created, pulp_href, latest_version_href, retain_repo_versions, description, name, manifest_signing_service, pulp_labels].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -56,7 +56,7 @@ module PulpContainerClient
56
56
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
57
  attr_accessor :max_retries
58
58
 
59
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
59
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
60
60
  attr_accessor :policy
61
61
 
62
62
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -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
@@ -49,7 +49,7 @@ module PulpContainerClient
49
49
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
50
  attr_accessor :max_retries
51
51
 
52
- # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved.
52
+ # immediate - All manifests and blobs are downloaded and saved during a sync. on_demand - Only tags and manifests are downloaded. Blobs are not downloaded until they are requested for the first time by a client. streamed - Blobs are streamed to the client with every request and never saved. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
53
53
  attr_accessor :policy
54
54
 
55
55
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
@@ -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
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
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.')
306
306
  end
307
307
 
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.')
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.')
310
310
  end
311
311
 
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.')
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.')
314
314
  end
315
315
 
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.')
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.')
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
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
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
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
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
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.'
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
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
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.'
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
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
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.'
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
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
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.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout
@@ -23,7 +23,7 @@ module PulpContainerClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
@@ -32,7 +32,7 @@ module PulpContainerClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
35
+ # Retain X versions of the repository. Default is null which retains all versions.
36
36
  attr_accessor :retain_repo_versions
37
37
 
38
38
  # An optional remote to use by default when syncing.
@@ -85,6 +85,10 @@ module PulpContainerClient
85
85
  invalid_properties.push('invalid value for "role", role cannot be nil.')
86
86
  end
87
87
 
88
+ if @role.to_s.length < 1
89
+ invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
90
+ end
91
+
88
92
  invalid_properties
89
93
  end
90
94
 
@@ -92,9 +96,24 @@ module PulpContainerClient
92
96
  # @return true if the model is valid
93
97
  def valid?
94
98
  return false if @role.nil?
99
+ return false if @role.to_s.length < 1
95
100
  true
96
101
  end
97
102
 
103
+ # Custom attribute writer method with validation
104
+ # @param [Object] role Value to be assigned
105
+ def role=(role)
106
+ if role.nil?
107
+ fail ArgumentError, 'role cannot be nil'
108
+ end
109
+
110
+ if role.to_s.length < 1
111
+ fail ArgumentError, 'invalid value for "role", the character length must be great than or equal to 1.'
112
+ end
113
+
114
+ @role = role
115
+ end
116
+
98
117
  # Checks equality by comparing each attribute.
99
118
  # @param [Object] Object to be compared
100
119
  def ==(o)
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ attr_accessor :pulp_labels
19
+
18
20
  # The latest RepositoryVersion for this Repository will be served.
19
21
  attr_accessor :repository
20
22
 
21
23
  # A unique name. Ex, `rawhide` and `stable`.
22
24
  attr_accessor :name
23
25
 
24
- attr_accessor :pulp_labels
26
+ # An optional content-guard. If none is specified, a default one will be used.
27
+ attr_accessor :content_guard
25
28
 
26
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
30
  attr_accessor :base_path
28
31
 
29
- # An optional content-guard. If none is specified, a default one will be used.
30
- attr_accessor :content_guard
31
-
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'pulp_labels' => :'pulp_labels',
44
45
  :'repository' => :'repository',
45
46
  :'name' => :'name',
46
- :'pulp_labels' => :'pulp_labels',
47
- :'base_path' => :'base_path',
48
47
  :'content_guard' => :'content_guard',
48
+ :'base_path' => :'base_path',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'pulp_labels' => :'Hash<String, String>',
58
59
  :'repository' => :'String',
59
60
  :'name' => :'String',
60
- :'pulp_labels' => :'Hash<String, String>',
61
- :'base_path' => :'String',
62
61
  :'content_guard' => :'String',
62
+ :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,6 +90,12 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'pulp_labels')
94
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
95
+ self.pulp_labels = value
96
+ end
97
+ end
98
+
93
99
  if attributes.key?(:'repository')
94
100
  self.repository = attributes[:'repository']
95
101
  end
@@ -98,20 +104,14 @@ module PulpContainerClient
98
104
  self.name = attributes[:'name']
99
105
  end
100
106
 
101
- if attributes.key?(:'pulp_labels')
102
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
103
- self.pulp_labels = value
104
- end
107
+ if attributes.key?(:'content_guard')
108
+ self.content_guard = attributes[:'content_guard']
105
109
  end
106
110
 
107
111
  if attributes.key?(:'base_path')
108
112
  self.base_path = attributes[:'base_path']
109
113
  end
110
114
 
111
- if attributes.key?(:'content_guard')
112
- self.content_guard = attributes[:'content_guard']
113
- end
114
-
115
115
  if attributes.key?(:'repository_version')
116
116
  self.repository_version = attributes[:'repository_version']
117
117
  end
@@ -188,11 +188,11 @@ module PulpContainerClient
188
188
  def ==(o)
189
189
  return true if self.equal?(o)
190
190
  self.class == o.class &&
191
+ pulp_labels == o.pulp_labels &&
191
192
  repository == o.repository &&
192
193
  name == o.name &&
193
- pulp_labels == o.pulp_labels &&
194
- base_path == o.base_path &&
195
194
  content_guard == o.content_guard &&
195
+ base_path == o.base_path &&
196
196
  repository_version == o.repository_version &&
197
197
  private == o.private &&
198
198
  description == o.description
@@ -207,7 +207,7 @@ module PulpContainerClient
207
207
  # Calculates hash code according to all attributes.
208
208
  # @return [Integer] Hash code
209
209
  def hash
210
- [repository, name, pulp_labels, base_path, content_guard, repository_version, private, description].hash
210
+ [pulp_labels, repository, name, content_guard, base_path, repository_version, private, description].hash
211
211
  end
212
212
 
213
213
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
18
+ # Retain X versions of the repository. Default is null which retains all versions.
19
19
  attr_accessor :retain_repo_versions
20
20
 
21
21
  # An optional description.
@@ -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
  :'retain_repo_versions' => :'retain_repo_versions',
36
36
  :'description' => :'description',
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
  :'retain_repo_versions' => :'Integer',
47
47
  :'description' => :'String',
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
  :'retain_repo_versions',
58
58
  :'description',
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
  retain_repo_versions == o.retain_repo_versions &&
165
165
  description == o.description &&
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
- [retain_repo_versions, description, name, pulp_labels, manifest_signing_service].hash
180
+ [retain_repo_versions, description, name, manifest_signing_service, pulp_labels].hash
181
181
  end
182
182
 
183
183
  # Builds the object from hash