pulp_rpm_client 3.16.1 → 3.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24b4616ebdfc0dd547ec5dbf1487dc815777396c93a3b676364ec9188b945893
4
- data.tar.gz: e7618a8288030cd1003dba9b5fdfc39a64108bd80c3869b1d501c328807b61b5
3
+ metadata.gz: e5f273804c182714b4c5fed58af498e075f24a95213b9dff1285909b5396ae29
4
+ data.tar.gz: dcc5850f0777ab59a735a2b9f608032022c2996fe08c4c79b4cea88e56b01735
5
5
  SHA512:
6
- metadata.gz: 2ac2a79baa4f64807667fcc25b87b74344d5b5e22b87d59cbec9270a5b9b84666717f5a26a7ab01704f2e78ba15aba4f705e9209585d66506a2c6c576d701147
7
- data.tar.gz: ff1a44a21d56dc44c83995fc803eb211fddae1b2ebb7d0105318c3f7d7f070180386bb5a91e37050a6ed21426ace6ec4278720b86d5c351af92f3deff7e15856
6
+ metadata.gz: 7fd99990a484ab5af125c05df5247fc3cba3539614277c9049b36a178d331639f85619a31b8d2220ea3efad9c7150761f2ecaa22cba1caba9e77746090bb95f1
7
+ data.tar.gz: 7aee1cc3d3c6556eab07500bc5d2a4fd3dd6cfac967adb9ddefb3ed54906de3db8415ae2470cbbf1edbbcb4df6eed87b086bf0b957fd6ccc2e4c9980aef05f8a
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: 3.16.1
10
+ - Package version: 3.16.2
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_rpm_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_rpm_client-3.16.1.gem
27
+ gem install ./pulp_rpm_client-3.16.2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_rpm_client-3.16.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_rpm_client-3.16.2.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_rpm_client', '~> 3.16.1'
36
+ gem 'pulp_rpm_client', '~> 3.16.2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -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
  **sles_auth_token** | **String** | Authentication token for SLES repositories. | [optional]
29
29
 
30
30
  ## Code Sample
@@ -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
  **uln_server_base_url** | **String** | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional]
29
29
 
30
30
  ## Code Sample
data/docs/RpmRpmRemote.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
  **sles_auth_token** | **String** | Authentication token for SLES repositories. | [optional]
29
29
 
30
30
  ## Code Sample
@@ -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
  **sles_auth_token** | **String** | Authentication token for SLES repositories. | [optional]
27
27
 
28
28
  ## Code Sample
data/docs/RpmUlnRemote.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
  **uln_server_base_url** | **String** | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional]
29
29
 
30
30
  ## Code Sample
@@ -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
  **uln_server_base_url** | **String** | Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead. | [optional]
29
29
 
30
30
  ## Code Sample
@@ -54,14 +54,26 @@ module PulpRpmClient
54
54
  if @api_client.config.client_side_validation && relative_path.nil?
55
55
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentModulemdDefaultsApi.create"
56
56
  end
57
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentModulemdDefaultsApi.create, the character length must be great than or equal to 1.'
59
+ end
60
+
57
61
  # verify the required parameter '_module' is set
58
62
  if @api_client.config.client_side_validation && _module.nil?
59
63
  fail ArgumentError, "Missing the required parameter '_module' when calling ContentModulemdDefaultsApi.create"
60
64
  end
65
+ if @api_client.config.client_side_validation && _module.to_s.length < 1
66
+ fail ArgumentError, 'invalid value for "_module" when calling ContentModulemdDefaultsApi.create, the character length must be great than or equal to 1.'
67
+ end
68
+
61
69
  # verify the required parameter 'stream' is set
62
70
  if @api_client.config.client_side_validation && stream.nil?
63
71
  fail ArgumentError, "Missing the required parameter 'stream' when calling ContentModulemdDefaultsApi.create"
64
72
  end
73
+ if @api_client.config.client_side_validation && stream.to_s.length < 1
74
+ fail ArgumentError, 'invalid value for "stream" when calling ContentModulemdDefaultsApi.create, the character length must be great than or equal to 1.'
75
+ end
76
+
65
77
  # verify the required parameter 'profiles' is set
66
78
  if @api_client.config.client_side_validation && profiles.nil?
67
79
  fail ArgumentError, "Missing the required parameter 'profiles' when calling ContentModulemdDefaultsApi.create"
@@ -66,26 +66,50 @@ module PulpRpmClient
66
66
  if @api_client.config.client_side_validation && relative_path.nil?
67
67
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentModulemdsApi.create"
68
68
  end
69
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
70
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
71
+ end
72
+
69
73
  # verify the required parameter 'name' is set
70
74
  if @api_client.config.client_side_validation && name.nil?
71
75
  fail ArgumentError, "Missing the required parameter 'name' when calling ContentModulemdsApi.create"
72
76
  end
77
+ if @api_client.config.client_side_validation && name.to_s.length < 1
78
+ fail ArgumentError, 'invalid value for "name" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
79
+ end
80
+
73
81
  # verify the required parameter 'stream' is set
74
82
  if @api_client.config.client_side_validation && stream.nil?
75
83
  fail ArgumentError, "Missing the required parameter 'stream' when calling ContentModulemdsApi.create"
76
84
  end
85
+ if @api_client.config.client_side_validation && stream.to_s.length < 1
86
+ fail ArgumentError, 'invalid value for "stream" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
87
+ end
88
+
77
89
  # verify the required parameter 'version' is set
78
90
  if @api_client.config.client_side_validation && version.nil?
79
91
  fail ArgumentError, "Missing the required parameter 'version' when calling ContentModulemdsApi.create"
80
92
  end
93
+ if @api_client.config.client_side_validation && version.to_s.length < 1
94
+ fail ArgumentError, 'invalid value for "version" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
95
+ end
96
+
81
97
  # verify the required parameter 'context' is set
82
98
  if @api_client.config.client_side_validation && context.nil?
83
99
  fail ArgumentError, "Missing the required parameter 'context' when calling ContentModulemdsApi.create"
84
100
  end
101
+ if @api_client.config.client_side_validation && context.to_s.length < 1
102
+ fail ArgumentError, 'invalid value for "context" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
103
+ end
104
+
85
105
  # verify the required parameter 'arch' is set
86
106
  if @api_client.config.client_side_validation && arch.nil?
87
107
  fail ArgumentError, "Missing the required parameter 'arch' when calling ContentModulemdsApi.create"
88
108
  end
109
+ if @api_client.config.client_side_validation && arch.to_s.length < 1
110
+ fail ArgumentError, 'invalid value for "arch" when calling ContentModulemdsApi.create, the character length must be great than or equal to 1.'
111
+ end
112
+
89
113
  # resource path
90
114
  local_var_path = '/pulp/api/v3/content/rpm/modulemds/'
91
115
 
@@ -48,6 +48,10 @@ module PulpRpmClient
48
48
  if @api_client.config.client_side_validation && relative_path.nil?
49
49
  fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentPackagesApi.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 ContentPackagesApi.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/rpm/packages/'
53
57
 
@@ -109,15 +109,45 @@ module PulpRpmClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if !@base_path.nil? && @base_path.to_s.length < 1
113
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
114
+ end
115
+
116
+ if !@name.nil? && @name.to_s.length < 1
117
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
118
+ end
119
+
112
120
  invalid_properties
113
121
  end
114
122
 
115
123
  # Check to see if the all the properties in the model are valid
116
124
  # @return true if the model is valid
117
125
  def valid?
126
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
127
+ return false if !@name.nil? && @name.to_s.length < 1
118
128
  true
119
129
  end
120
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] base_path Value to be assigned
133
+ def base_path=(base_path)
134
+ if !base_path.nil? && base_path.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @base_path = base_path
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] name Value to be assigned
143
+ def name=(name)
144
+ if !name.nil? && name.to_s.length < 1
145
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
146
+ end
147
+
148
+ @name = name
149
+ end
150
+
121
151
  # Checks equality by comparing each attribute.
122
152
  # @param [Object] Object to be compared
123
153
  def ==(o)
@@ -74,7 +74,7 @@ module PulpRpmClient
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
  # Authentication token for SLES repositories.
@@ -268,6 +268,46 @@ module PulpRpmClient
268
268
  # @return Array for valid properties with the reasons
269
269
  def list_invalid_properties
270
270
  invalid_properties = Array.new
271
+ if !@name.nil? && @name.to_s.length < 1
272
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
273
+ end
274
+
275
+ if !@url.nil? && @url.to_s.length < 1
276
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
277
+ end
278
+
279
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
280
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
281
+ end
282
+
283
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
284
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
285
+ end
286
+
287
+ if !@client_key.nil? && @client_key.to_s.length < 1
288
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
289
+ end
290
+
291
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
292
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
293
+ end
294
+
295
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
296
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
297
+ end
298
+
299
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
300
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
301
+ end
302
+
303
+ if !@username.nil? && @username.to_s.length < 1
304
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
305
+ end
306
+
307
+ if !@password.nil? && @password.to_s.length < 1
308
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
309
+ end
310
+
271
311
  if !@download_concurrency.nil? && @download_concurrency < 1
272
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
273
313
  end
@@ -288,20 +328,135 @@ module PulpRpmClient
288
328
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
289
329
  end
290
330
 
331
+ if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
332
+ invalid_properties.push('invalid value for "sles_auth_token", the character length must be great than or equal to 1.')
333
+ end
334
+
291
335
  invalid_properties
292
336
  end
293
337
 
294
338
  # Check to see if the all the properties in the model are valid
295
339
  # @return true if the model is valid
296
340
  def valid?
341
+ return false if !@name.nil? && @name.to_s.length < 1
342
+ return false if !@url.nil? && @url.to_s.length < 1
343
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
344
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
345
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
346
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
347
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
348
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
349
+ return false if !@username.nil? && @username.to_s.length < 1
350
+ return false if !@password.nil? && @password.to_s.length < 1
297
351
  return false if !@download_concurrency.nil? && @download_concurrency < 1
298
352
  return false if !@total_timeout.nil? && @total_timeout < 0.0
299
353
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
300
354
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
301
355
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
356
+ return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
302
357
  true
303
358
  end
304
359
 
360
+ # Custom attribute writer method with validation
361
+ # @param [Object] name Value to be assigned
362
+ def name=(name)
363
+ if !name.nil? && name.to_s.length < 1
364
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
365
+ end
366
+
367
+ @name = name
368
+ end
369
+
370
+ # Custom attribute writer method with validation
371
+ # @param [Object] url Value to be assigned
372
+ def url=(url)
373
+ if !url.nil? && url.to_s.length < 1
374
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
375
+ end
376
+
377
+ @url = url
378
+ end
379
+
380
+ # Custom attribute writer method with validation
381
+ # @param [Object] ca_cert Value to be assigned
382
+ def ca_cert=(ca_cert)
383
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
384
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
385
+ end
386
+
387
+ @ca_cert = ca_cert
388
+ end
389
+
390
+ # Custom attribute writer method with validation
391
+ # @param [Object] client_cert Value to be assigned
392
+ def client_cert=(client_cert)
393
+ if !client_cert.nil? && client_cert.to_s.length < 1
394
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
395
+ end
396
+
397
+ @client_cert = client_cert
398
+ end
399
+
400
+ # Custom attribute writer method with validation
401
+ # @param [Object] client_key Value to be assigned
402
+ def client_key=(client_key)
403
+ if !client_key.nil? && client_key.to_s.length < 1
404
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
405
+ end
406
+
407
+ @client_key = client_key
408
+ end
409
+
410
+ # Custom attribute writer method with validation
411
+ # @param [Object] proxy_url Value to be assigned
412
+ def proxy_url=(proxy_url)
413
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
414
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
415
+ end
416
+
417
+ @proxy_url = proxy_url
418
+ end
419
+
420
+ # Custom attribute writer method with validation
421
+ # @param [Object] proxy_username Value to be assigned
422
+ def proxy_username=(proxy_username)
423
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
424
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
425
+ end
426
+
427
+ @proxy_username = proxy_username
428
+ end
429
+
430
+ # Custom attribute writer method with validation
431
+ # @param [Object] proxy_password Value to be assigned
432
+ def proxy_password=(proxy_password)
433
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
434
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
435
+ end
436
+
437
+ @proxy_password = proxy_password
438
+ end
439
+
440
+ # Custom attribute writer method with validation
441
+ # @param [Object] username Value to be assigned
442
+ def username=(username)
443
+ if !username.nil? && username.to_s.length < 1
444
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
445
+ end
446
+
447
+ @username = username
448
+ end
449
+
450
+ # Custom attribute writer method with validation
451
+ # @param [Object] password Value to be assigned
452
+ def password=(password)
453
+ if !password.nil? && password.to_s.length < 1
454
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
455
+ end
456
+
457
+ @password = password
458
+ end
459
+
305
460
  # Custom attribute writer method with validation
306
461
  # @param [Object] download_concurrency Value to be assigned
307
462
  def download_concurrency=(download_concurrency)
@@ -352,6 +507,16 @@ module PulpRpmClient
352
507
  @sock_read_timeout = sock_read_timeout
353
508
  end
354
509
 
510
+ # Custom attribute writer method with validation
511
+ # @param [Object] sles_auth_token Value to be assigned
512
+ def sles_auth_token=(sles_auth_token)
513
+ if !sles_auth_token.nil? && sles_auth_token.to_s.length < 1
514
+ fail ArgumentError, 'invalid value for "sles_auth_token", the character length must be great than or equal to 1.'
515
+ end
516
+
517
+ @sles_auth_token = sles_auth_token
518
+ end
519
+
355
520
  # Checks equality by comparing each attribute.
356
521
  # @param [Object] Object to be compared
357
522
  def ==(o)
@@ -183,6 +183,14 @@ module PulpRpmClient
183
183
  # @return Array for valid properties with the reasons
184
184
  def list_invalid_properties
185
185
  invalid_properties = Array.new
186
+ if !@name.nil? && @name.to_s.length < 1
187
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
188
+ end
189
+
190
+ if !@description.nil? && @description.to_s.length < 1
191
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
192
+ end
193
+
186
194
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
187
195
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
188
196
  end
@@ -213,6 +221,8 @@ module PulpRpmClient
213
221
  # Check to see if the all the properties in the model are valid
214
222
  # @return true if the model is valid
215
223
  def valid?
224
+ return false if !@name.nil? && @name.to_s.length < 1
225
+ return false if !@description.nil? && @description.to_s.length < 1
216
226
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
217
227
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
218
228
  return false if !@gpgcheck.nil? && @gpgcheck > 1
@@ -222,6 +232,26 @@ module PulpRpmClient
222
232
  true
223
233
  end
224
234
 
235
+ # Custom attribute writer method with validation
236
+ # @param [Object] name Value to be assigned
237
+ def name=(name)
238
+ if !name.nil? && name.to_s.length < 1
239
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
240
+ end
241
+
242
+ @name = name
243
+ end
244
+
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] description Value to be assigned
247
+ def description=(description)
248
+ if !description.nil? && description.to_s.length < 1
249
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
250
+ end
251
+
252
+ @description = description
253
+ end
254
+
225
255
  # Custom attribute writer method with validation
226
256
  # @param [Object] retain_repo_versions Value to be assigned
227
257
  def retain_repo_versions=(retain_repo_versions)