pulp_container_client 2.9.1 → 2.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) 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 +8 -8
  5. data/docs/ContainerContainerPushRepository.md +5 -5
  6. data/docs/ContainerContainerPushRepositoryResponse.md +10 -10
  7. data/docs/ContainerContainerRemote.md +1 -1
  8. data/docs/ContainerContainerRemoteResponse.md +1 -1
  9. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  10. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  11. data/docs/PatchedcontainerContainerRemote.md +1 -1
  12. data/lib/pulp_container_client/api/repositories_container_api.rb +4 -0
  13. data/lib/pulp_container_client/models/container_container_distribution.rb +71 -18
  14. data/lib/pulp_container_client/models/container_container_distribution_response.rb +31 -31
  15. data/lib/pulp_container_client/models/container_container_namespace.rb +9 -0
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +56 -22
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +41 -41
  18. data/lib/pulp_container_client/models/container_container_remote.rb +178 -1
  19. data/lib/pulp_container_client/models/container_container_remote_response.rb +1 -1
  20. data/lib/pulp_container_client/models/container_container_repository.rb +34 -0
  21. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +34 -0
  22. data/lib/pulp_container_client/models/oci_build_image.rb +15 -0
  23. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +63 -18
  24. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -22
  25. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +166 -1
  26. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +30 -0
  27. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +30 -0
  28. data/lib/pulp_container_client/models/remove_image.rb +19 -0
  29. data/lib/pulp_container_client/models/tag_image.rb +28 -0
  30. data/lib/pulp_container_client/models/un_tag_image.rb +9 -0
  31. data/lib/pulp_container_client/version.rb +1 -1
  32. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  33. data/spec/models/container_container_distribution_spec.rb +5 -5
  34. data/spec/models/container_container_push_repository_response_spec.rb +7 -7
  35. data/spec/models/container_container_push_repository_spec.rb +3 -3
  36. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  37. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  38. metadata +45 -45
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
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.
19
- attr_accessor :retain_repo_versions
18
+ # An optional description.
19
+ attr_accessor :description
20
20
 
21
21
  attr_accessor :pulp_labels
22
22
 
23
+ # 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.
24
+ attr_accessor :retain_repo_versions
25
+
23
26
  # A unique name for this repository.
24
27
  attr_accessor :name
25
28
 
26
- # An optional description.
27
- attr_accessor :description
28
-
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'retain_repo_versions' => :'retain_repo_versions',
32
+ :'description' => :'description',
33
33
  :'pulp_labels' => :'pulp_labels',
34
- :'name' => :'name',
35
- :'description' => :'description'
34
+ :'retain_repo_versions' => :'retain_repo_versions',
35
+ :'name' => :'name'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'retain_repo_versions' => :'Integer',
42
+ :'description' => :'String',
43
43
  :'pulp_labels' => :'Object',
44
- :'name' => :'String',
45
- :'description' => :'String'
44
+ :'retain_repo_versions' => :'Integer',
45
+ :'name' => :'String'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
+ :'description',
52
53
  :'retain_repo_versions',
53
- :'description'
54
54
  ])
55
55
  end
56
56
 
@@ -69,20 +69,20 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'retain_repo_versions')
73
- self.retain_repo_versions = attributes[:'retain_repo_versions']
72
+ if attributes.key?(:'description')
73
+ self.description = attributes[:'description']
74
74
  end
75
75
 
76
76
  if attributes.key?(:'pulp_labels')
77
77
  self.pulp_labels = attributes[:'pulp_labels']
78
78
  end
79
79
 
80
- if attributes.key?(:'name')
81
- self.name = attributes[:'name']
80
+ if attributes.key?(:'retain_repo_versions')
81
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
82
82
  end
83
83
 
84
- if attributes.key?(:'description')
85
- self.description = attributes[:'description']
84
+ if attributes.key?(:'name')
85
+ self.name = attributes[:'name']
86
86
  end
87
87
  end
88
88
 
@@ -90,6 +90,10 @@ module PulpContainerClient
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
+ if !@description.nil? && @description.to_s.length < 1
94
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
95
+ end
96
+
93
97
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
98
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
99
  end
@@ -98,17 +102,33 @@ module PulpContainerClient
98
102
  invalid_properties.push('invalid value for "name", name cannot be nil.')
99
103
  end
100
104
 
105
+ if @name.to_s.length < 1
106
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
+ end
108
+
101
109
  invalid_properties
102
110
  end
103
111
 
104
112
  # Check to see if the all the properties in the model are valid
105
113
  # @return true if the model is valid
106
114
  def valid?
115
+ return false if !@description.nil? && @description.to_s.length < 1
107
116
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
117
  return false if @name.nil?
118
+ return false if @name.to_s.length < 1
109
119
  true
110
120
  end
111
121
 
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] description Value to be assigned
124
+ def description=(description)
125
+ if !description.nil? && description.to_s.length < 1
126
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
127
+ end
128
+
129
+ @description = description
130
+ end
131
+
112
132
  # Custom attribute writer method with validation
113
133
  # @param [Object] retain_repo_versions Value to be assigned
114
134
  def retain_repo_versions=(retain_repo_versions)
@@ -119,15 +139,29 @@ module PulpContainerClient
119
139
  @retain_repo_versions = retain_repo_versions
120
140
  end
121
141
 
142
+ # Custom attribute writer method with validation
143
+ # @param [Object] name Value to be assigned
144
+ def name=(name)
145
+ if name.nil?
146
+ fail ArgumentError, 'name cannot be nil'
147
+ end
148
+
149
+ if name.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @name = name
154
+ end
155
+
122
156
  # Checks equality by comparing each attribute.
123
157
  # @param [Object] Object to be compared
124
158
  def ==(o)
125
159
  return true if self.equal?(o)
126
160
  self.class == o.class &&
127
- retain_repo_versions == o.retain_repo_versions &&
161
+ description == o.description &&
128
162
  pulp_labels == o.pulp_labels &&
129
- name == o.name &&
130
- description == o.description
163
+ retain_repo_versions == o.retain_repo_versions &&
164
+ name == o.name
131
165
  end
132
166
 
133
167
  # @see the `==` method
@@ -139,7 +173,7 @@ module PulpContainerClient
139
173
  # Calculates hash code according to all attributes.
140
174
  # @return [Integer] Hash code
141
175
  def hash
142
- [retain_repo_versions, pulp_labels, name, description].hash
176
+ [description, pulp_labels, retain_repo_versions, name].hash
143
177
  end
144
178
 
145
179
  # Builds the object from hash
@@ -15,59 +15,59 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
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.
19
- attr_accessor :retain_repo_versions
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
20
 
21
- attr_accessor :versions_href
21
+ # An optional description.
22
+ attr_accessor :description
22
23
 
23
24
  attr_accessor :pulp_labels
24
25
 
25
- attr_accessor :latest_version_href
26
-
27
- attr_accessor :pulp_href
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.
27
+ attr_accessor :retain_repo_versions
28
28
 
29
29
  # A unique name for this repository.
30
30
  attr_accessor :name
31
31
 
32
- # An optional description.
33
- attr_accessor :description
32
+ attr_accessor :versions_href
34
33
 
35
- # Timestamp of creation.
36
- attr_accessor :pulp_created
34
+ attr_accessor :latest_version_href
35
+
36
+ attr_accessor :pulp_href
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
+ :'pulp_created' => :'pulp_created',
42
+ :'description' => :'description',
43
+ :'pulp_labels' => :'pulp_labels',
41
44
  :'retain_repo_versions' => :'retain_repo_versions',
45
+ :'name' => :'name',
42
46
  :'versions_href' => :'versions_href',
43
- :'pulp_labels' => :'pulp_labels',
44
47
  :'latest_version_href' => :'latest_version_href',
45
- :'pulp_href' => :'pulp_href',
46
- :'name' => :'name',
47
- :'description' => :'description',
48
- :'pulp_created' => :'pulp_created'
48
+ :'pulp_href' => :'pulp_href'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'pulp_created' => :'DateTime',
56
+ :'description' => :'String',
57
+ :'pulp_labels' => :'Object',
55
58
  :'retain_repo_versions' => :'Integer',
59
+ :'name' => :'String',
56
60
  :'versions_href' => :'String',
57
- :'pulp_labels' => :'Object',
58
61
  :'latest_version_href' => :'String',
59
- :'pulp_href' => :'String',
60
- :'name' => :'String',
61
- :'description' => :'String',
62
- :'pulp_created' => :'DateTime'
62
+ :'pulp_href' => :'String'
63
63
  }
64
64
  end
65
65
 
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
- :'retain_repo_versions',
70
69
  :'description',
70
+ :'retain_repo_versions',
71
71
  ])
72
72
  end
73
73
 
@@ -86,36 +86,36 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'retain_repo_versions')
90
- self.retain_repo_versions = attributes[:'retain_repo_versions']
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
91
  end
92
92
 
93
- if attributes.key?(:'versions_href')
94
- self.versions_href = attributes[:'versions_href']
93
+ if attributes.key?(:'description')
94
+ self.description = attributes[:'description']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'pulp_labels')
98
98
  self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'latest_version_href')
102
- self.latest_version_href = attributes[:'latest_version_href']
103
- end
104
-
105
- if attributes.key?(:'pulp_href')
106
- self.pulp_href = attributes[:'pulp_href']
101
+ if attributes.key?(:'retain_repo_versions')
102
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
107
103
  end
108
104
 
109
105
  if attributes.key?(:'name')
110
106
  self.name = attributes[:'name']
111
107
  end
112
108
 
113
- if attributes.key?(:'description')
114
- self.description = attributes[:'description']
109
+ if attributes.key?(:'versions_href')
110
+ self.versions_href = attributes[:'versions_href']
115
111
  end
116
112
 
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
113
+ if attributes.key?(:'latest_version_href')
114
+ self.latest_version_href = attributes[:'latest_version_href']
115
+ end
116
+
117
+ if attributes.key?(:'pulp_href')
118
+ self.pulp_href = attributes[:'pulp_href']
119
119
  end
120
120
  end
121
121
 
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
+ pulp_created == o.pulp_created &&
161
+ description == o.description &&
162
+ pulp_labels == o.pulp_labels &&
160
163
  retain_repo_versions == o.retain_repo_versions &&
164
+ name == o.name &&
161
165
  versions_href == o.versions_href &&
162
- pulp_labels == o.pulp_labels &&
163
166
  latest_version_href == o.latest_version_href &&
164
- pulp_href == o.pulp_href &&
165
- name == o.name &&
166
- description == o.description &&
167
- pulp_created == o.pulp_created
167
+ pulp_href == o.pulp_href
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [retain_repo_versions, versions_href, pulp_labels, latest_version_href, pulp_href, name, description, pulp_created].hash
179
+ [pulp_created, description, pulp_labels, retain_repo_versions, name, versions_href, latest_version_href, pulp_href].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -74,7 +74,7 @@ module PulpContainerClient
74
74
  # Headers for aiohttp.Clientsession
75
75
  attr_accessor :headers
76
76
 
77
- # Limits total download rate in requests per second
77
+ # Limits requests per second for each concurrent downloader
78
78
  attr_accessor :rate_limit
79
79
 
80
80
  # Name of the upstream repository
@@ -295,10 +295,50 @@ module PulpContainerClient
295
295
  invalid_properties.push('invalid value for "name", name cannot be nil.')
296
296
  end
297
297
 
298
+ if @name.to_s.length < 1
299
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
300
+ end
301
+
298
302
  if @url.nil?
299
303
  invalid_properties.push('invalid value for "url", url cannot be nil.')
300
304
  end
301
305
 
306
+ if @url.to_s.length < 1
307
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
308
+ end
309
+
310
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
311
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
312
+ end
313
+
314
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
315
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
316
+ end
317
+
318
+ if !@client_key.nil? && @client_key.to_s.length < 1
319
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
320
+ end
321
+
322
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
323
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
324
+ end
325
+
326
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
327
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
328
+ end
329
+
330
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
331
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
332
+ end
333
+
334
+ if !@username.nil? && @username.to_s.length < 1
335
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
336
+ end
337
+
338
+ if !@password.nil? && @password.to_s.length < 1
339
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
340
+ end
341
+
302
342
  if !@download_concurrency.nil? && @download_concurrency < 1
303
343
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
344
  end
@@ -323,6 +363,10 @@ module PulpContainerClient
323
363
  invalid_properties.push('invalid value for "upstream_name", upstream_name cannot be nil.')
324
364
  end
325
365
 
366
+ if @upstream_name.to_s.length < 1
367
+ invalid_properties.push('invalid value for "upstream_name", the character length must be great than or equal to 1.')
368
+ end
369
+
326
370
  invalid_properties
327
371
  end
328
372
 
@@ -330,16 +374,135 @@ module PulpContainerClient
330
374
  # @return true if the model is valid
331
375
  def valid?
332
376
  return false if @name.nil?
377
+ return false if @name.to_s.length < 1
333
378
  return false if @url.nil?
379
+ return false if @url.to_s.length < 1
380
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
381
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
382
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
383
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
384
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
385
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
386
+ return false if !@username.nil? && @username.to_s.length < 1
387
+ return false if !@password.nil? && @password.to_s.length < 1
334
388
  return false if !@download_concurrency.nil? && @download_concurrency < 1
335
389
  return false if !@total_timeout.nil? && @total_timeout < 0.0
336
390
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
337
391
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
338
392
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
339
393
  return false if @upstream_name.nil?
394
+ return false if @upstream_name.to_s.length < 1
340
395
  true
341
396
  end
342
397
 
398
+ # Custom attribute writer method with validation
399
+ # @param [Object] name Value to be assigned
400
+ def name=(name)
401
+ if name.nil?
402
+ fail ArgumentError, 'name cannot be nil'
403
+ end
404
+
405
+ if name.to_s.length < 1
406
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
407
+ end
408
+
409
+ @name = name
410
+ end
411
+
412
+ # Custom attribute writer method with validation
413
+ # @param [Object] url Value to be assigned
414
+ def url=(url)
415
+ if url.nil?
416
+ fail ArgumentError, 'url cannot be nil'
417
+ end
418
+
419
+ if url.to_s.length < 1
420
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
421
+ end
422
+
423
+ @url = url
424
+ end
425
+
426
+ # Custom attribute writer method with validation
427
+ # @param [Object] ca_cert Value to be assigned
428
+ def ca_cert=(ca_cert)
429
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
430
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
431
+ end
432
+
433
+ @ca_cert = ca_cert
434
+ end
435
+
436
+ # Custom attribute writer method with validation
437
+ # @param [Object] client_cert Value to be assigned
438
+ def client_cert=(client_cert)
439
+ if !client_cert.nil? && client_cert.to_s.length < 1
440
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
441
+ end
442
+
443
+ @client_cert = client_cert
444
+ end
445
+
446
+ # Custom attribute writer method with validation
447
+ # @param [Object] client_key Value to be assigned
448
+ def client_key=(client_key)
449
+ if !client_key.nil? && client_key.to_s.length < 1
450
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
451
+ end
452
+
453
+ @client_key = client_key
454
+ end
455
+
456
+ # Custom attribute writer method with validation
457
+ # @param [Object] proxy_url Value to be assigned
458
+ def proxy_url=(proxy_url)
459
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
460
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
461
+ end
462
+
463
+ @proxy_url = proxy_url
464
+ end
465
+
466
+ # Custom attribute writer method with validation
467
+ # @param [Object] proxy_username Value to be assigned
468
+ def proxy_username=(proxy_username)
469
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
470
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
471
+ end
472
+
473
+ @proxy_username = proxy_username
474
+ end
475
+
476
+ # Custom attribute writer method with validation
477
+ # @param [Object] proxy_password Value to be assigned
478
+ def proxy_password=(proxy_password)
479
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
480
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
481
+ end
482
+
483
+ @proxy_password = proxy_password
484
+ end
485
+
486
+ # Custom attribute writer method with validation
487
+ # @param [Object] username Value to be assigned
488
+ def username=(username)
489
+ if !username.nil? && username.to_s.length < 1
490
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
491
+ end
492
+
493
+ @username = username
494
+ end
495
+
496
+ # Custom attribute writer method with validation
497
+ # @param [Object] password Value to be assigned
498
+ def password=(password)
499
+ if !password.nil? && password.to_s.length < 1
500
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
501
+ end
502
+
503
+ @password = password
504
+ end
505
+
343
506
  # Custom attribute writer method with validation
344
507
  # @param [Object] download_concurrency Value to be assigned
345
508
  def download_concurrency=(download_concurrency)
@@ -390,6 +553,20 @@ module PulpContainerClient
390
553
  @sock_read_timeout = sock_read_timeout
391
554
  end
392
555
 
556
+ # Custom attribute writer method with validation
557
+ # @param [Object] upstream_name Value to be assigned
558
+ def upstream_name=(upstream_name)
559
+ if upstream_name.nil?
560
+ fail ArgumentError, 'upstream_name cannot be nil'
561
+ end
562
+
563
+ if upstream_name.to_s.length < 1
564
+ fail ArgumentError, 'invalid value for "upstream_name", the character length must be great than or equal to 1.'
565
+ end
566
+
567
+ @upstream_name = upstream_name
568
+ end
569
+
393
570
  # Checks equality by comparing each attribute.
394
571
  # @param [Object] Object to be compared
395
572
  def ==(o)
@@ -67,7 +67,7 @@ module PulpContainerClient
67
67
  # Headers for aiohttp.Clientsession
68
68
  attr_accessor :headers
69
69
 
70
- # Limits total download rate in requests per second
70
+ # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
73
  # Name of the upstream repository
@@ -104,6 +104,14 @@ module PulpContainerClient
104
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
105
105
  end
106
106
 
107
+ if @name.to_s.length < 1
108
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
107
115
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
116
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
109
117
  end
@@ -115,10 +123,36 @@ module PulpContainerClient
115
123
  # @return true if the model is valid
116
124
  def valid?
117
125
  return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
118
128
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
119
129
  true
120
130
  end
121
131
 
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
142
+
143
+ @name = name
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
122
156
  # Custom attribute writer method with validation
123
157
  # @param [Object] retain_repo_versions Value to be assigned
124
158
  def retain_repo_versions=(retain_repo_versions)
@@ -76,6 +76,14 @@ module PulpContainerClient
76
76
  invalid_properties.push('invalid value for "name", name cannot be nil.')
77
77
  end
78
78
 
79
+ if @name.to_s.length < 1
80
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
81
+ end
82
+
83
+ if !@description.nil? && @description.to_s.length < 1
84
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
85
+ end
86
+
79
87
  invalid_properties
80
88
  end
81
89
 
@@ -83,9 +91,35 @@ module PulpContainerClient
83
91
  # @return true if the model is valid
84
92
  def valid?
85
93
  return false if @name.nil?
94
+ return false if @name.to_s.length < 1
95
+ return false if !@description.nil? && @description.to_s.length < 1
86
96
  true
87
97
  end
88
98
 
99
+ # Custom attribute writer method with validation
100
+ # @param [Object] name Value to be assigned
101
+ def name=(name)
102
+ if name.nil?
103
+ fail ArgumentError, 'name cannot be nil'
104
+ end
105
+
106
+ if name.to_s.length < 1
107
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
108
+ end
109
+
110
+ @name = name
111
+ end
112
+
113
+ # Custom attribute writer method with validation
114
+ # @param [Object] description Value to be assigned
115
+ def description=(description)
116
+ if !description.nil? && description.to_s.length < 1
117
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
118
+ end
119
+
120
+ @description = description
121
+ end
122
+
89
123
  # Checks equality by comparing each attribute.
90
124
  # @param [Object] Object to be compared
91
125
  def ==(o)