pulp_deb_client 2.16.0 → 2.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/DebAptRemote.md +1 -1
- data/docs/DebAptRemoteResponse.md +1 -1
- data/docs/PatcheddebAptRemote.md +1 -1
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
- data/lib/pulp_deb_client/api_client.rb +1 -4
- data/lib/pulp_deb_client/configuration.rb +1 -0
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +34 -0
- data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
- data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
- data/lib/pulp_deb_client/models/deb_package_index.rb +45 -0
- data/lib/pulp_deb_client/models/deb_release.rb +57 -0
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
- data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
- data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +30 -0
- data/lib/pulp_deb_client/version.rb +1 -1
- data/pulp_deb_client.gemspec +1 -1
- metadata +63 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55256508745ab7e10f6fd08831409fa81cc214d42964bc7d7068d31fb7cd2947
|
4
|
+
data.tar.gz: 56b38b8ee1a3b4e291dc8215cf236b094c606c74068b04f16957bc9d9a420def
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08ad35651e43fd5e6f2dda74cec3dbb86373b4b0290973675f27658e91814aa4ff8396412130733682b2f1882ebadd226cbfd5489e32f331604295c4453dcddd'
|
7
|
+
data.tar.gz: 64b1a1a33f0632ebe71823aea87c6f5ff90059e62ff973b7cf26ab3269b2c07cfdf32746456f5a20dc8356a25f5ab98f00a1233f1ca42d018c7a9ea578854644
|
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.
|
10
|
+
- Package version: 2.17.1
|
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.
|
27
|
+
gem install ./pulp_deb_client-2.17.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_deb_client-2.
|
30
|
+
(for development, run `gem install --dev ./pulp_deb_client-2.17.1.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.
|
36
|
+
gem 'pulp_deb_client', '~> 2.17.1'
|
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
|
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
|
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]
|
data/docs/PatcheddebAptRemote.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
|
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
|
|
@@ -118,9 +118,6 @@ module PulpDebClient
|
|
118
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
119
119
|
|
120
120
|
req_opts = {
|
121
|
-
:method => http_method,
|
122
|
-
:headers => header_params,
|
123
|
-
:params => query_params,
|
124
121
|
:params_encoding => @config.params_encoding,
|
125
122
|
:timeout => @config.timeout,
|
126
123
|
:verbose => @config.debugging
|
@@ -128,13 +125,13 @@ module PulpDebClient
|
|
128
125
|
|
129
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
130
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
131
|
-
req_opts.update :body => req_body
|
132
128
|
if @config.debugging
|
133
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
134
130
|
end
|
135
131
|
end
|
136
132
|
request.headers = header_params
|
137
133
|
request.body = req_body
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
138
135
|
request.url url
|
139
136
|
request.params = query_params
|
140
137
|
download_file(request) if opts[:return_type] == 'File'
|
@@ -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
|
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
|
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)
|