pulp_deb_client 2.16.0 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf7b933afc2910552f7dca60035be103ff06a4edb95c20a37e9a696a3c866006
4
- data.tar.gz: 226b823a0245ed72d885bffe506f22b42fabf0c9d39398a992d53f510cae0d94
3
+ metadata.gz: fa196451d93cda885cacaafa69830182b0a2eae096322dd66a06d3f251f02fc8
4
+ data.tar.gz: f1b935e29c525b5c464f02d8785391e740fcd3b6f9617ecb9843a2bd4493ccf8
5
5
  SHA512:
6
- metadata.gz: 6997921cb4d30fb93d183b0bfe59bae9fbd09d96c3e56abeda9416ebdb337807e9d2e1505f9ce7407a64306c2e8c13663f7928c754c0a946e6eccd5085c9c2a7
7
- data.tar.gz: 5b3b5f1fa7b49458cd30ec132b7c0011e5065c93845dba21a687c027a91341a8548a713c9b3244924a030e30b856586be86d871e4387f1c26cc60a4ae3dff9b0
6
+ metadata.gz: 95ba00b7de3334c519d1095b5905aa01a2bb781c13f368ad1d6c5fc6f40fe8946d189fd2d803c3f83a74550e81365409493d3a846020374eb9a525f7f67e47d7
7
+ data.tar.gz: 917ae11ab5a00227ad4916f89d8fd4935cf87378be82496e7a86724f0ae935a576191489cf2285c4d18141c47e3c3d5fb76b757ea33932a04833a57504639b74
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 2.16.0
10
+ - Package version: 2.17.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_deb_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_deb_client-2.16.0.gem
27
+ gem install ./pulp_deb_client-2.17.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_deb_client-2.16.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_deb_client-2.17.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_deb_client', '~> 2.16.0'
36
+ gem 'pulp_deb_client', '~> 2.17.0'
37
37
 
38
38
  ### Install from Git
39
39
 
data/docs/DebAptRemote.md CHANGED
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. |
29
29
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
30
30
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
22
22
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
23
23
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
24
24
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
25
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
25
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
26
26
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. |
27
27
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
28
28
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -24,7 +24,7 @@ Name | Type | Description | Notes
24
24
  **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
25
25
  **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used. | [optional]
26
26
  **headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
27
- **rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
27
+ **rate_limit** | **Integer** | Limits requests per second for each concurrent downloader | [optional]
28
28
  **distributions** | **String** | Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax. | [optional]
29
29
  **components** | **String** | Whitespace separatet list of components to sync. If none are supplied, all that are available will be synchronized. Leave blank for repositores using \"flat repository format\". | [optional]
30
30
  **architectures** | **String** | Whitespace separated list of architectures to sync If none are supplied, all that are available will be synchronized. A list of valid architecture specification strings can be found by running \"dpkg-architecture -L\". A sync will download the intersection of the list of architectures provided via this field and those provided by the relevant \"Release\" file. Architecture=\"all\" is always synchronized and does not need to be provided here. | [optional]
@@ -48,6 +48,10 @@ module PulpDebClient
48
48
  if @api_client.config.client_side_validation && relative_path.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentGenericContentsApi.create"
50
50
  end
51
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
52
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentGenericContentsApi.create, the character length must be great than or equal to 1.'
53
+ end
54
+
51
55
  # resource path
52
56
  local_var_path = '/pulp/api/v3/content/deb/generic_contents/'
53
57
 
@@ -44,6 +44,10 @@ module PulpDebClient
44
44
  if @api_client.config.debugging
45
45
  @api_client.config.logger.debug 'Calling API: ContentInstallerPackagesApi.create ...'
46
46
  end
47
+ if @api_client.config.client_side_validation && !opts[:'relative_path'].nil? && opts[:'relative_path'].to_s.length < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentInstallerPackagesApi.create, the character length must be great than or equal to 1.'
49
+ end
50
+
47
51
  # resource path
48
52
  local_var_path = '/pulp/api/v3/content/deb/installer_packages/'
49
53
 
@@ -44,6 +44,10 @@ module PulpDebClient
44
44
  if @api_client.config.debugging
45
45
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.create ...'
46
46
  end
47
+ if @api_client.config.client_side_validation && !opts[:'relative_path'].nil? && opts[:'relative_path'].to_s.length < 1
48
+ fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
49
+ end
50
+
47
51
  # resource path
48
52
  local_var_path = '/pulp/api/v3/content/deb/packages/'
49
53
 
@@ -113,10 +113,18 @@ module PulpDebClient
113
113
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
114
114
  end
115
115
 
116
+ if @base_path.to_s.length < 1
117
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
118
+ end
119
+
116
120
  if @name.nil?
117
121
  invalid_properties.push('invalid value for "name", name cannot be nil.')
118
122
  end
119
123
 
124
+ if @name.to_s.length < 1
125
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
126
+ end
127
+
120
128
  invalid_properties
121
129
  end
122
130
 
@@ -124,10 +132,40 @@ module PulpDebClient
124
132
  # @return true if the model is valid
125
133
  def valid?
126
134
  return false if @base_path.nil?
135
+ return false if @base_path.to_s.length < 1
127
136
  return false if @name.nil?
137
+ return false if @name.to_s.length < 1
128
138
  true
129
139
  end
130
140
 
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] base_path Value to be assigned
143
+ def base_path=(base_path)
144
+ if base_path.nil?
145
+ fail ArgumentError, 'base_path cannot be nil'
146
+ end
147
+
148
+ if base_path.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @base_path = base_path
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] name Value to be assigned
157
+ def name=(name)
158
+ if name.nil?
159
+ fail ArgumentError, 'name cannot be nil'
160
+ end
161
+
162
+ if name.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @name = name
167
+ end
168
+
131
169
  # Checks equality by comparing each attribute.
132
170
  # @param [Object] Object to be compared
133
171
  def ==(o)
@@ -74,7 +74,7 @@ module PulpDebClient
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
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
@@ -337,10 +337,50 @@ module PulpDebClient
337
337
  invalid_properties.push('invalid value for "name", name cannot be nil.')
338
338
  end
339
339
 
340
+ if @name.to_s.length < 1
341
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
342
+ end
343
+
340
344
  if @url.nil?
341
345
  invalid_properties.push('invalid value for "url", url cannot be nil.')
342
346
  end
343
347
 
348
+ if @url.to_s.length < 1
349
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
350
+ end
351
+
352
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
353
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
354
+ end
355
+
356
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
357
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
358
+ end
359
+
360
+ if !@client_key.nil? && @client_key.to_s.length < 1
361
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
362
+ end
363
+
364
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
365
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
366
+ end
367
+
368
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
369
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
370
+ end
371
+
372
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
373
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
374
+ end
375
+
376
+ if !@username.nil? && @username.to_s.length < 1
377
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
378
+ end
379
+
380
+ if !@password.nil? && @password.to_s.length < 1
381
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
382
+ end
383
+
344
384
  if !@download_concurrency.nil? && @download_concurrency < 1
345
385
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
346
386
  end
@@ -365,6 +405,22 @@ module PulpDebClient
365
405
  invalid_properties.push('invalid value for "distributions", distributions cannot be nil.')
366
406
  end
367
407
 
408
+ if @distributions.to_s.length < 1
409
+ invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
410
+ end
411
+
412
+ if !@components.nil? && @components.to_s.length < 1
413
+ invalid_properties.push('invalid value for "components", the character length must be great than or equal to 1.')
414
+ end
415
+
416
+ if !@architectures.nil? && @architectures.to_s.length < 1
417
+ invalid_properties.push('invalid value for "architectures", the character length must be great than or equal to 1.')
418
+ end
419
+
420
+ if !@gpgkey.nil? && @gpgkey.to_s.length < 1
421
+ invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
422
+ end
423
+
368
424
  invalid_properties
369
425
  end
370
426
 
@@ -372,16 +428,138 @@ module PulpDebClient
372
428
  # @return true if the model is valid
373
429
  def valid?
374
430
  return false if @name.nil?
431
+ return false if @name.to_s.length < 1
375
432
  return false if @url.nil?
433
+ return false if @url.to_s.length < 1
434
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
435
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
436
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
437
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
438
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
439
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
440
+ return false if !@username.nil? && @username.to_s.length < 1
441
+ return false if !@password.nil? && @password.to_s.length < 1
376
442
  return false if !@download_concurrency.nil? && @download_concurrency < 1
377
443
  return false if !@total_timeout.nil? && @total_timeout < 0.0
378
444
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
379
445
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
380
446
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
381
447
  return false if @distributions.nil?
448
+ return false if @distributions.to_s.length < 1
449
+ return false if !@components.nil? && @components.to_s.length < 1
450
+ return false if !@architectures.nil? && @architectures.to_s.length < 1
451
+ return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
382
452
  true
383
453
  end
384
454
 
455
+ # Custom attribute writer method with validation
456
+ # @param [Object] name Value to be assigned
457
+ def name=(name)
458
+ if name.nil?
459
+ fail ArgumentError, 'name cannot be nil'
460
+ end
461
+
462
+ if name.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
464
+ end
465
+
466
+ @name = name
467
+ end
468
+
469
+ # Custom attribute writer method with validation
470
+ # @param [Object] url Value to be assigned
471
+ def url=(url)
472
+ if url.nil?
473
+ fail ArgumentError, 'url cannot be nil'
474
+ end
475
+
476
+ if url.to_s.length < 1
477
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
478
+ end
479
+
480
+ @url = url
481
+ end
482
+
483
+ # Custom attribute writer method with validation
484
+ # @param [Object] ca_cert Value to be assigned
485
+ def ca_cert=(ca_cert)
486
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
487
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
488
+ end
489
+
490
+ @ca_cert = ca_cert
491
+ end
492
+
493
+ # Custom attribute writer method with validation
494
+ # @param [Object] client_cert Value to be assigned
495
+ def client_cert=(client_cert)
496
+ if !client_cert.nil? && client_cert.to_s.length < 1
497
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
498
+ end
499
+
500
+ @client_cert = client_cert
501
+ end
502
+
503
+ # Custom attribute writer method with validation
504
+ # @param [Object] client_key Value to be assigned
505
+ def client_key=(client_key)
506
+ if !client_key.nil? && client_key.to_s.length < 1
507
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
508
+ end
509
+
510
+ @client_key = client_key
511
+ end
512
+
513
+ # Custom attribute writer method with validation
514
+ # @param [Object] proxy_url Value to be assigned
515
+ def proxy_url=(proxy_url)
516
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
517
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
518
+ end
519
+
520
+ @proxy_url = proxy_url
521
+ end
522
+
523
+ # Custom attribute writer method with validation
524
+ # @param [Object] proxy_username Value to be assigned
525
+ def proxy_username=(proxy_username)
526
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
527
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
528
+ end
529
+
530
+ @proxy_username = proxy_username
531
+ end
532
+
533
+ # Custom attribute writer method with validation
534
+ # @param [Object] proxy_password Value to be assigned
535
+ def proxy_password=(proxy_password)
536
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
537
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
538
+ end
539
+
540
+ @proxy_password = proxy_password
541
+ end
542
+
543
+ # Custom attribute writer method with validation
544
+ # @param [Object] username Value to be assigned
545
+ def username=(username)
546
+ if !username.nil? && username.to_s.length < 1
547
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
548
+ end
549
+
550
+ @username = username
551
+ end
552
+
553
+ # Custom attribute writer method with validation
554
+ # @param [Object] password Value to be assigned
555
+ def password=(password)
556
+ if !password.nil? && password.to_s.length < 1
557
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
558
+ end
559
+
560
+ @password = password
561
+ end
562
+
385
563
  # Custom attribute writer method with validation
386
564
  # @param [Object] download_concurrency Value to be assigned
387
565
  def download_concurrency=(download_concurrency)
@@ -432,6 +610,50 @@ module PulpDebClient
432
610
  @sock_read_timeout = sock_read_timeout
433
611
  end
434
612
 
613
+ # Custom attribute writer method with validation
614
+ # @param [Object] distributions Value to be assigned
615
+ def distributions=(distributions)
616
+ if distributions.nil?
617
+ fail ArgumentError, 'distributions cannot be nil'
618
+ end
619
+
620
+ if distributions.to_s.length < 1
621
+ fail ArgumentError, 'invalid value for "distributions", the character length must be great than or equal to 1.'
622
+ end
623
+
624
+ @distributions = distributions
625
+ end
626
+
627
+ # Custom attribute writer method with validation
628
+ # @param [Object] components Value to be assigned
629
+ def components=(components)
630
+ if !components.nil? && components.to_s.length < 1
631
+ fail ArgumentError, 'invalid value for "components", the character length must be great than or equal to 1.'
632
+ end
633
+
634
+ @components = components
635
+ end
636
+
637
+ # Custom attribute writer method with validation
638
+ # @param [Object] architectures Value to be assigned
639
+ def architectures=(architectures)
640
+ if !architectures.nil? && architectures.to_s.length < 1
641
+ fail ArgumentError, 'invalid value for "architectures", the character length must be great than or equal to 1.'
642
+ end
643
+
644
+ @architectures = architectures
645
+ end
646
+
647
+ # Custom attribute writer method with validation
648
+ # @param [Object] gpgkey Value to be assigned
649
+ def gpgkey=(gpgkey)
650
+ if !gpgkey.nil? && gpgkey.to_s.length < 1
651
+ fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
652
+ end
653
+
654
+ @gpgkey = gpgkey
655
+ end
656
+
435
657
  # Checks equality by comparing each attribute.
436
658
  # @param [Object] Object to be compared
437
659
  def ==(o)
@@ -67,7 +67,7 @@ module PulpDebClient
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
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
@@ -104,6 +104,14 @@ module PulpDebClient
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 PulpDebClient
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)
@@ -89,15 +89,30 @@ module PulpDebClient
89
89
  # @return Array for valid properties with the reasons
90
90
  def list_invalid_properties
91
91
  invalid_properties = Array.new
92
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
93
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
94
+ end
95
+
92
96
  invalid_properties
93
97
  end
94
98
 
95
99
  # Check to see if the all the properties in the model are valid
96
100
  # @return true if the model is valid
97
101
  def valid?
102
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
98
103
  true
99
104
  end
100
105
 
106
+ # Custom attribute writer method with validation
107
+ # @param [Object] relative_path Value to be assigned
108
+ def relative_path=(relative_path)
109
+ if !relative_path.nil? && relative_path.to_s.length < 1
110
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
111
+ end
112
+
113
+ @relative_path = relative_path
114
+ end
115
+
101
116
  # Checks equality by comparing each attribute.
102
117
  # @param [Object] Object to be compared
103
118
  def ==(o)
@@ -93,6 +93,10 @@ module PulpDebClient
93
93
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
94
94
  end
95
95
 
96
+ if @relative_path.to_s.length < 1
97
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
98
+ end
99
+
96
100
  invalid_properties
97
101
  end
98
102
 
@@ -100,9 +104,24 @@ module PulpDebClient
100
104
  # @return true if the model is valid
101
105
  def valid?
102
106
  return false if @relative_path.nil?
107
+ return false if @relative_path.to_s.length < 1
103
108
  true
104
109
  end
105
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] relative_path Value to be assigned
113
+ def relative_path=(relative_path)
114
+ if relative_path.nil?
115
+ fail ArgumentError, 'relative_path cannot be nil'
116
+ end
117
+
118
+ if relative_path.to_s.length < 1
119
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
120
+ end
121
+
122
+ @relative_path = relative_path
123
+ end
124
+
106
125
  # Checks equality by comparing each attribute.
107
126
  # @param [Object] Object to be compared
108
127
  def ==(o)
@@ -110,10 +110,22 @@ module PulpDebClient
110
110
  invalid_properties.push('invalid value for "component", component cannot be nil.')
111
111
  end
112
112
 
113
+ if @component.to_s.length < 1
114
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
115
+ end
116
+
113
117
  if @architecture.nil?
114
118
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
115
119
  end
116
120
 
121
+ if @architecture.to_s.length < 1
122
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
123
+ end
124
+
125
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
126
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
127
+ end
128
+
117
129
  invalid_properties
118
130
  end
119
131
 
@@ -123,10 +135,51 @@ module PulpDebClient
123
135
  return false if @artifacts.nil?
124
136
  return false if @release.nil?
125
137
  return false if @component.nil?
138
+ return false if @component.to_s.length < 1
126
139
  return false if @architecture.nil?
140
+ return false if @architecture.to_s.length < 1
141
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
127
142
  true
128
143
  end
129
144
 
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] component Value to be assigned
147
+ def component=(component)
148
+ if component.nil?
149
+ fail ArgumentError, 'component cannot be nil'
150
+ end
151
+
152
+ if component.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @component = component
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] architecture Value to be assigned
161
+ def architecture=(architecture)
162
+ if architecture.nil?
163
+ fail ArgumentError, 'architecture cannot be nil'
164
+ end
165
+
166
+ if architecture.to_s.length < 1
167
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
168
+ end
169
+
170
+ @architecture = architecture
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] relative_path Value to be assigned
175
+ def relative_path=(relative_path)
176
+ if !relative_path.nil? && relative_path.to_s.length < 1
177
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
178
+ end
179
+
180
+ @relative_path = relative_path
181
+ end
182
+
130
183
  # Checks equality by comparing each attribute.
131
184
  # @param [Object] Object to be compared
132
185
  def ==(o)