pulp_ostree_client 2.0.0a3 → 2.0.0a4

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: 8af4ff607ba852a3cf9a69595ceab5bceb21de6faf821390f2ac3675f48d0664
4
- data.tar.gz: 8dd6f6a4246e8748ebee66050807279d47f5eb2622412b4aba8e99e97dfe02ee
3
+ metadata.gz: c1deb5d997e7f0f43ab59649204cb615a4ca03b4c7a3bc1419066e303418e35f
4
+ data.tar.gz: 3064d450ea2d659f70666c0be6d86faabf430426048e7d547158680745273ebf
5
5
  SHA512:
6
- metadata.gz: '096ea284310dc922464581f5621548b804647afed35a5c85bd99dd8291385ee8d240cd07fcb54b5e9e0f552d2b7f544cd54a799329b406730aeb2edcb31eec51'
7
- data.tar.gz: 592334b608d1a5c733c7b705d9a9e7003d7a4bb239586fbc7dcca77822cf5f33d8b4a59f04e9558d1092352cef0fdccdd690fed7fad2e4770a9f14af612ffbfc
6
+ metadata.gz: d7b4cd56d8515212a8011a7ff171faebfb0ba508db190f14962259114db42da9341aa4434ca92e592655d0dae319ba014c9c2326d6b843771cba0e23101adf86
7
+ data.tar.gz: 232164ff454e5f97c9d1dff8a5a9d64e78566149992c55e3a51ef53a10114773543096e34a4b61d90b2d453ba21bdf04604ab3bf89eb8fd486e072b9033b2bfa
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.0.0a3
10
+ - Package version: 2.0.0a4
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_ostree_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_ostree_client-2.0.0a3.gem
27
+ gem install ./pulp_ostree_client-2.0.0a4.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ostree_client-2.0.0a3.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ostree_client-2.0.0a4.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_ostree_client', '~> 2.0.0a3'
36
+ gem 'pulp_ostree_client', '~> 2.0.0a4'
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
  **depth** | **Integer** | An option to specify how many commits to traverse. | [optional] [default to 0]
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
  **depth** | **Integer** | An option to specify how many commits to traverse. | [optional] [default to 0]
27
27
 
28
28
  ## 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
  **depth** | **Integer** | An option to specify how many commits to traverse. | [optional] [default to 0]
29
29
 
30
30
  ## Code Sample
@@ -113,10 +113,18 @@ module PulpOstreeClient
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 PulpOstreeClient
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 PulpOstreeClient
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
  # An option to specify how many commits to traverse.
@@ -273,10 +273,50 @@ module PulpOstreeClient
273
273
  invalid_properties.push('invalid value for "name", name cannot be nil.')
274
274
  end
275
275
 
276
+ if @name.to_s.length < 1
277
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
278
+ end
279
+
276
280
  if @url.nil?
277
281
  invalid_properties.push('invalid value for "url", url cannot be nil.')
278
282
  end
279
283
 
284
+ if @url.to_s.length < 1
285
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
286
+ end
287
+
288
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
289
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
290
+ end
291
+
292
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
293
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
294
+ end
295
+
296
+ if !@client_key.nil? && @client_key.to_s.length < 1
297
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
298
+ end
299
+
300
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
301
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
302
+ end
303
+
304
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
305
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
306
+ end
307
+
308
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
309
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
310
+ end
311
+
312
+ if !@username.nil? && @username.to_s.length < 1
313
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
314
+ end
315
+
316
+ if !@password.nil? && @password.to_s.length < 1
317
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
318
+ end
319
+
280
320
  if !@download_concurrency.nil? && @download_concurrency < 1
281
321
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
282
322
  end
@@ -308,7 +348,17 @@ module PulpOstreeClient
308
348
  # @return true if the model is valid
309
349
  def valid?
310
350
  return false if @name.nil?
351
+ return false if @name.to_s.length < 1
311
352
  return false if @url.nil?
353
+ return false if @url.to_s.length < 1
354
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
355
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
356
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
357
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
358
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
359
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
360
+ return false if !@username.nil? && @username.to_s.length < 1
361
+ return false if !@password.nil? && @password.to_s.length < 1
312
362
  return false if !@download_concurrency.nil? && @download_concurrency < 1
313
363
  return false if !@total_timeout.nil? && @total_timeout < 0.0
314
364
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -318,6 +368,114 @@ module PulpOstreeClient
318
368
  true
319
369
  end
320
370
 
371
+ # Custom attribute writer method with validation
372
+ # @param [Object] name Value to be assigned
373
+ def name=(name)
374
+ if name.nil?
375
+ fail ArgumentError, 'name cannot be nil'
376
+ end
377
+
378
+ if name.to_s.length < 1
379
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
380
+ end
381
+
382
+ @name = name
383
+ end
384
+
385
+ # Custom attribute writer method with validation
386
+ # @param [Object] url Value to be assigned
387
+ def url=(url)
388
+ if url.nil?
389
+ fail ArgumentError, 'url cannot be nil'
390
+ end
391
+
392
+ if url.to_s.length < 1
393
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
394
+ end
395
+
396
+ @url = url
397
+ end
398
+
399
+ # Custom attribute writer method with validation
400
+ # @param [Object] ca_cert Value to be assigned
401
+ def ca_cert=(ca_cert)
402
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
403
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
404
+ end
405
+
406
+ @ca_cert = ca_cert
407
+ end
408
+
409
+ # Custom attribute writer method with validation
410
+ # @param [Object] client_cert Value to be assigned
411
+ def client_cert=(client_cert)
412
+ if !client_cert.nil? && client_cert.to_s.length < 1
413
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
414
+ end
415
+
416
+ @client_cert = client_cert
417
+ end
418
+
419
+ # Custom attribute writer method with validation
420
+ # @param [Object] client_key Value to be assigned
421
+ def client_key=(client_key)
422
+ if !client_key.nil? && client_key.to_s.length < 1
423
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
424
+ end
425
+
426
+ @client_key = client_key
427
+ end
428
+
429
+ # Custom attribute writer method with validation
430
+ # @param [Object] proxy_url Value to be assigned
431
+ def proxy_url=(proxy_url)
432
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
433
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
434
+ end
435
+
436
+ @proxy_url = proxy_url
437
+ end
438
+
439
+ # Custom attribute writer method with validation
440
+ # @param [Object] proxy_username Value to be assigned
441
+ def proxy_username=(proxy_username)
442
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
443
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
444
+ end
445
+
446
+ @proxy_username = proxy_username
447
+ end
448
+
449
+ # Custom attribute writer method with validation
450
+ # @param [Object] proxy_password Value to be assigned
451
+ def proxy_password=(proxy_password)
452
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
453
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
454
+ end
455
+
456
+ @proxy_password = proxy_password
457
+ end
458
+
459
+ # Custom attribute writer method with validation
460
+ # @param [Object] username Value to be assigned
461
+ def username=(username)
462
+ if !username.nil? && username.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
464
+ end
465
+
466
+ @username = username
467
+ end
468
+
469
+ # Custom attribute writer method with validation
470
+ # @param [Object] password Value to be assigned
471
+ def password=(password)
472
+ if !password.nil? && password.to_s.length < 1
473
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
474
+ end
475
+
476
+ @password = password
477
+ end
478
+
321
479
  # Custom attribute writer method with validation
322
480
  # @param [Object] download_concurrency Value to be assigned
323
481
  def download_concurrency=(download_concurrency)
@@ -67,7 +67,7 @@ module PulpOstreeClient
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
  # An option to specify how many commits to traverse.
@@ -104,6 +104,14 @@ module PulpOstreeClient
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 PulpOstreeClient
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)
@@ -88,6 +88,14 @@ module PulpOstreeClient
88
88
  invalid_properties.push('invalid value for "repository_name", repository_name cannot be nil.')
89
89
  end
90
90
 
91
+ if @repository_name.to_s.length < 1
92
+ invalid_properties.push('invalid value for "repository_name", the character length must be great than or equal to 1.')
93
+ end
94
+
95
+ if !@ref.nil? && @ref.to_s.length < 1
96
+ invalid_properties.push('invalid value for "ref", the character length must be great than or equal to 1.')
97
+ end
98
+
91
99
  invalid_properties
92
100
  end
93
101
 
@@ -96,9 +104,35 @@ module PulpOstreeClient
96
104
  def valid?
97
105
  return false if @artifact.nil?
98
106
  return false if @repository_name.nil?
107
+ return false if @repository_name.to_s.length < 1
108
+ return false if !@ref.nil? && @ref.to_s.length < 1
99
109
  true
100
110
  end
101
111
 
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] repository_name Value to be assigned
114
+ def repository_name=(repository_name)
115
+ if repository_name.nil?
116
+ fail ArgumentError, 'repository_name cannot be nil'
117
+ end
118
+
119
+ if repository_name.to_s.length < 1
120
+ fail ArgumentError, 'invalid value for "repository_name", the character length must be great than or equal to 1.'
121
+ end
122
+
123
+ @repository_name = repository_name
124
+ end
125
+
126
+ # Custom attribute writer method with validation
127
+ # @param [Object] ref Value to be assigned
128
+ def ref=(ref)
129
+ if !ref.nil? && ref.to_s.length < 1
130
+ fail ArgumentError, 'invalid value for "ref", the character length must be great than or equal to 1.'
131
+ end
132
+
133
+ @ref = ref
134
+ end
135
+
102
136
  # Checks equality by comparing each attribute.
103
137
  # @param [Object] Object to be compared
104
138
  def ==(o)
@@ -109,15 +109,45 @@ module PulpOstreeClient
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 PulpOstreeClient
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
  # An option to specify how many commits to traverse.
@@ -269,6 +269,46 @@ module PulpOstreeClient
269
269
  # @return Array for valid properties with the reasons
270
270
  def list_invalid_properties
271
271
  invalid_properties = Array.new
272
+ if !@name.nil? && @name.to_s.length < 1
273
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
274
+ end
275
+
276
+ if !@url.nil? && @url.to_s.length < 1
277
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
278
+ end
279
+
280
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
281
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
282
+ end
283
+
284
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
285
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
286
+ end
287
+
288
+ if !@client_key.nil? && @client_key.to_s.length < 1
289
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
290
+ end
291
+
292
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
293
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
294
+ end
295
+
296
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
297
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
298
+ end
299
+
300
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
301
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
302
+ end
303
+
304
+ if !@username.nil? && @username.to_s.length < 1
305
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
306
+ end
307
+
308
+ if !@password.nil? && @password.to_s.length < 1
309
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
310
+ end
311
+
272
312
  if !@download_concurrency.nil? && @download_concurrency < 1
273
313
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
274
314
  end
@@ -299,6 +339,16 @@ module PulpOstreeClient
299
339
  # Check to see if the all the properties in the model are valid
300
340
  # @return true if the model is valid
301
341
  def valid?
342
+ return false if !@name.nil? && @name.to_s.length < 1
343
+ return false if !@url.nil? && @url.to_s.length < 1
344
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
345
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
346
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
347
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
348
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
349
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
350
+ return false if !@username.nil? && @username.to_s.length < 1
351
+ return false if !@password.nil? && @password.to_s.length < 1
302
352
  return false if !@download_concurrency.nil? && @download_concurrency < 1
303
353
  return false if !@total_timeout.nil? && @total_timeout < 0.0
304
354
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -308,6 +358,106 @@ module PulpOstreeClient
308
358
  true
309
359
  end
310
360
 
361
+ # Custom attribute writer method with validation
362
+ # @param [Object] name Value to be assigned
363
+ def name=(name)
364
+ if !name.nil? && name.to_s.length < 1
365
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
366
+ end
367
+
368
+ @name = name
369
+ end
370
+
371
+ # Custom attribute writer method with validation
372
+ # @param [Object] url Value to be assigned
373
+ def url=(url)
374
+ if !url.nil? && url.to_s.length < 1
375
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
376
+ end
377
+
378
+ @url = url
379
+ end
380
+
381
+ # Custom attribute writer method with validation
382
+ # @param [Object] ca_cert Value to be assigned
383
+ def ca_cert=(ca_cert)
384
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
385
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
386
+ end
387
+
388
+ @ca_cert = ca_cert
389
+ end
390
+
391
+ # Custom attribute writer method with validation
392
+ # @param [Object] client_cert Value to be assigned
393
+ def client_cert=(client_cert)
394
+ if !client_cert.nil? && client_cert.to_s.length < 1
395
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
396
+ end
397
+
398
+ @client_cert = client_cert
399
+ end
400
+
401
+ # Custom attribute writer method with validation
402
+ # @param [Object] client_key Value to be assigned
403
+ def client_key=(client_key)
404
+ if !client_key.nil? && client_key.to_s.length < 1
405
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
406
+ end
407
+
408
+ @client_key = client_key
409
+ end
410
+
411
+ # Custom attribute writer method with validation
412
+ # @param [Object] proxy_url Value to be assigned
413
+ def proxy_url=(proxy_url)
414
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
415
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
416
+ end
417
+
418
+ @proxy_url = proxy_url
419
+ end
420
+
421
+ # Custom attribute writer method with validation
422
+ # @param [Object] proxy_username Value to be assigned
423
+ def proxy_username=(proxy_username)
424
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
425
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
426
+ end
427
+
428
+ @proxy_username = proxy_username
429
+ end
430
+
431
+ # Custom attribute writer method with validation
432
+ # @param [Object] proxy_password Value to be assigned
433
+ def proxy_password=(proxy_password)
434
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
435
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
436
+ end
437
+
438
+ @proxy_password = proxy_password
439
+ end
440
+
441
+ # Custom attribute writer method with validation
442
+ # @param [Object] username Value to be assigned
443
+ def username=(username)
444
+ if !username.nil? && username.to_s.length < 1
445
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
446
+ end
447
+
448
+ @username = username
449
+ end
450
+
451
+ # Custom attribute writer method with validation
452
+ # @param [Object] password Value to be assigned
453
+ def password=(password)
454
+ if !password.nil? && password.to_s.length < 1
455
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
456
+ end
457
+
458
+ @password = password
459
+ end
460
+
311
461
  # Custom attribute writer method with validation
312
462
  # @param [Object] download_concurrency Value to be assigned
313
463
  def download_concurrency=(download_concurrency)
@@ -100,6 +100,14 @@ module PulpOstreeClient
100
100
  # @return Array for valid properties with the reasons
101
101
  def list_invalid_properties
102
102
  invalid_properties = Array.new
103
+ if !@name.nil? && @name.to_s.length < 1
104
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
105
+ end
106
+
107
+ if !@description.nil? && @description.to_s.length < 1
108
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
109
+ end
110
+
103
111
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
112
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
105
113
  end
@@ -110,10 +118,32 @@ module PulpOstreeClient
110
118
  # Check to see if the all the properties in the model are valid
111
119
  # @return true if the model is valid
112
120
  def valid?
121
+ return false if !@name.nil? && @name.to_s.length < 1
122
+ return false if !@description.nil? && @description.to_s.length < 1
113
123
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
124
  true
115
125
  end
116
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] name Value to be assigned
129
+ def name=(name)
130
+ if !name.nil? && name.to_s.length < 1
131
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
132
+ end
133
+
134
+ @name = name
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] description Value to be assigned
139
+ def description=(description)
140
+ if !description.nil? && description.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @description = description
145
+ end
146
+
117
147
  # Custom attribute writer method with validation
118
148
  # @param [Object] retain_repo_versions Value to be assigned
119
149
  def retain_repo_versions=(retain_repo_versions)
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpOstreeClient
14
- VERSION = '2.0.0a3'
14
+ VERSION = '2.0.0a4'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_ostree_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0a3
4
+ version: 2.0.0a4
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday