pulp_deb_client 3.3.0 → 3.3.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 +7 -6
- data/docs/ContentGenericContentsApi.md +4 -2
- data/docs/ContentInstallerFileIndicesApi.md +1 -1
- data/docs/ContentInstallerPackagesApi.md +4 -2
- data/docs/ContentPackageIndicesApi.md +1 -1
- data/docs/ContentPackageReleaseComponentsApi.md +1 -1
- data/docs/ContentPackagesApi.md +3 -1
- data/docs/ContentReleaseArchitecturesApi.md +1 -1
- data/docs/ContentReleaseComponentsApi.md +1 -1
- data/docs/ContentReleaseFilesApi.md +1 -1
- data/docs/ContentReleasesApi.md +1 -1
- data/docs/ContentSourceIndicesApi.md +1 -1
- data/docs/ContentSourcePackagesApi.md +1 -1
- data/docs/ContentSourceReleaseComponentsApi.md +1 -1
- data/docs/DebCopyApi.md +1 -1
- data/docs/DebGenericContent.md +3 -1
- data/docs/DebInstallerPackage.md +3 -1
- data/docs/DebPackage.md +2 -0
- data/docs/DistributionsAptApi.md +1 -1
- data/docs/PublicationsAptApi.md +1 -1
- data/docs/PublicationsVerbatimApi.md +1 -1
- data/docs/RemotesAptApi.md +1 -1
- data/docs/RepositoriesAptApi.md +1 -1
- data/docs/RepositoriesAptVersionsApi.md +1 -1
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -0
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -0
- data/lib/pulp_deb_client/api/content_packages_api.rb +7 -0
- data/lib/pulp_deb_client/configuration.rb +2 -2
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
- data/lib/pulp_deb_client/models/deb_generic_content.rb +29 -4
- data/lib/pulp_deb_client/models/deb_installer_package.rb +29 -4
- data/lib/pulp_deb_client/models/deb_package.rb +26 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
- data/lib/pulp_deb_client/version.rb +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +1 -0
- data/spec/api/content_installer_packages_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +1 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/deb_generic_content_spec.rb +6 -0
- data/spec/models/deb_installer_package_spec.rb +6 -0
- data/spec/models/deb_package_spec.rb +6 -0
- metadata +85 -85
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1362fe19a80656f5019123c373a3dc8ec47599d184f0cab16f1e52d2e9097074
|
4
|
+
data.tar.gz: e89543321aeb418f0e95ea8d989a370a920c94094309be9582eb3951de347b8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcc23544a14654914d331249f98b526b8f5089c8e4e4ad63614ea9a641cca4c8ed924dc75bcf844e944805147ebc394f193cf9e66a2298ebcc22c74ab9c67d1c
|
7
|
+
data.tar.gz: 144d8cc419e8653b47f8072a8fa81d5983b9e8d4d6415d0e49387b87b687cc4919dd98fb5479057163e9933694f2f54c49385a6fde6d543b1f85090a06b6aa04
|
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.3.
|
10
|
+
- Package version: 3.3.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-3.3.
|
27
|
+
gem install ./pulp_deb_client-3.3.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_deb_client-3.3.
|
30
|
+
(for development, run `gem install --dev ./pulp_deb_client-3.3.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', '~> 3.3.
|
36
|
+
gem 'pulp_deb_client', '~> 3.3.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -70,7 +70,8 @@ opts = {
|
|
70
70
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
71
71
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
72
72
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
73
|
-
upload: 'upload_example' # String | An uncommitted upload that may be turned into the content unit.
|
73
|
+
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
74
|
+
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
74
75
|
}
|
75
76
|
|
76
77
|
begin
|
@@ -85,7 +86,7 @@ end
|
|
85
86
|
|
86
87
|
## Documentation for API Endpoints
|
87
88
|
|
88
|
-
All URIs are relative to *http://
|
89
|
+
All URIs are relative to *http://localhost:24817*
|
89
90
|
|
90
91
|
Class | Method | HTTP request | Description
|
91
92
|
------------ | ------------- | ------------- | -------------
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpDebClient::ContentGenericContentsApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -36,7 +36,8 @@ opts = {
|
|
36
36
|
repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
|
37
37
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
38
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
39
|
-
upload: 'upload_example' # String | An uncommitted upload that may be turned into the content unit.
|
39
|
+
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
|
+
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
40
41
|
}
|
41
42
|
|
42
43
|
begin
|
@@ -58,6 +59,7 @@ Name | Type | Description | Notes
|
|
58
59
|
**artifact** | **String**| Artifact file representing the physical content | [optional]
|
59
60
|
**file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
|
60
61
|
**upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
|
62
|
+
**file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
|
61
63
|
|
62
64
|
### Return type
|
63
65
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpDebClient::ContentInstallerPackagesApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -36,7 +36,8 @@ opts = {
|
|
36
36
|
artifact: 'artifact_example', # String | Artifact file representing the physical content
|
37
37
|
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
38
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
39
|
-
upload: 'upload_example' # String | An uncommitted upload that may be turned into the content unit.
|
39
|
+
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
|
+
file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
|
40
41
|
}
|
41
42
|
|
42
43
|
begin
|
@@ -58,6 +59,7 @@ Name | Type | Description | Notes
|
|
58
59
|
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
|
59
60
|
**file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
|
60
61
|
**upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
|
62
|
+
**file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
|
61
63
|
|
62
64
|
### Return type
|
63
65
|
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# PulpDebClient::ContentPackagesApi
|
2
2
|
|
3
|
-
All URIs are relative to *http://
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
@@ -37,6 +37,7 @@ opts = {
|
|
37
37
|
relative_path: 'relative_path_example', # String | Path where the artifact is located relative to distributions base_path
|
38
38
|
file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the content unit.
|
39
39
|
upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
|
40
|
+
file_url: 'file_url_example', # String | A url that Pulp can download and turn into the content unit.
|
40
41
|
distribution: 'distribution_example', # String | Name of the distribution.
|
41
42
|
component: 'component_example' # String | Name of the component.
|
42
43
|
}
|
@@ -60,6 +61,7 @@ Name | Type | Description | Notes
|
|
60
61
|
**relative_path** | **String**| Path where the artifact is located relative to distributions base_path | [optional]
|
61
62
|
**file** | **File**| An uploaded file that may be turned into the content unit. | [optional]
|
62
63
|
**upload** | **String**| An uncommitted upload that may be turned into the content unit. | [optional]
|
64
|
+
**file_url** | **String**| A url that Pulp can download and turn into the content unit. | [optional]
|
63
65
|
**distribution** | **String**| Name of the distribution. | [optional]
|
64
66
|
**component** | **String**| Name of the component. | [optional]
|
65
67
|
|
data/docs/ContentReleasesApi.md
CHANGED
data/docs/DebCopyApi.md
CHANGED
data/docs/DebGenericContent.md
CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
|
10
10
|
**file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
|
12
|
+
**file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
|
12
13
|
|
13
14
|
## Code Sample
|
14
15
|
|
@@ -19,7 +20,8 @@ instance = PulpDebClient::DebGenericContent.new(repository: null,
|
|
19
20
|
artifact: null,
|
20
21
|
relative_path: null,
|
21
22
|
file: null,
|
22
|
-
upload: null
|
23
|
+
upload: null,
|
24
|
+
file_url: null)
|
23
25
|
```
|
24
26
|
|
25
27
|
|
data/docs/DebInstallerPackage.md
CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional]
|
10
10
|
**file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
|
12
|
+
**file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
|
12
13
|
|
13
14
|
## Code Sample
|
14
15
|
|
@@ -19,7 +20,8 @@ instance = PulpDebClient::DebInstallerPackage.new(repository: null,
|
|
19
20
|
artifact: null,
|
20
21
|
relative_path: null,
|
21
22
|
file: null,
|
22
|
-
upload: null
|
23
|
+
upload: null,
|
24
|
+
file_url: null)
|
23
25
|
```
|
24
26
|
|
25
27
|
|
data/docs/DebPackage.md
CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**relative_path** | **String** | Path where the artifact is located relative to distributions base_path | [optional]
|
10
10
|
**file** | **File** | An uploaded file that may be turned into the content unit. | [optional]
|
11
11
|
**upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional]
|
12
|
+
**file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional]
|
12
13
|
**distribution** | **String** | Name of the distribution. | [optional]
|
13
14
|
**component** | **String** | Name of the component. | [optional]
|
14
15
|
|
@@ -22,6 +23,7 @@ instance = PulpDebClient::DebPackage.new(repository: null,
|
|
22
23
|
relative_path: null,
|
23
24
|
file: null,
|
24
25
|
upload: null,
|
26
|
+
file_url: null,
|
25
27
|
distribution: null,
|
26
28
|
component: null)
|
27
29
|
```
|
data/docs/DistributionsAptApi.md
CHANGED
data/docs/PublicationsAptApi.md
CHANGED
data/docs/RemotesAptApi.md
CHANGED
data/docs/RepositoriesAptApi.md
CHANGED
@@ -27,6 +27,7 @@ module PulpDebClient
|
|
27
27
|
# @option opts [String] :artifact Artifact file representing the physical content
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
30
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
30
31
|
# @return [AsyncOperationResponse]
|
31
32
|
def create(relative_path, opts = {})
|
32
33
|
data, _status_code, _headers = create_with_http_info(relative_path, opts)
|
@@ -41,6 +42,7 @@ module PulpDebClient
|
|
41
42
|
# @option opts [String] :artifact Artifact file representing the physical content
|
42
43
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
43
44
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
45
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
44
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
47
|
def create_with_http_info(relative_path, opts = {})
|
46
48
|
if @api_client.config.debugging
|
@@ -54,6 +56,10 @@ module PulpDebClient
|
|
54
56
|
fail ArgumentError, 'invalid value for "relative_path" when calling ContentGenericContentsApi.create, the character length must be great than or equal to 1.'
|
55
57
|
end
|
56
58
|
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentGenericContentsApi.create, the character length must be great than or equal to 1.'
|
61
|
+
end
|
62
|
+
|
57
63
|
# resource path
|
58
64
|
local_var_path = '/pulp/api/v3/content/deb/generic_contents/'
|
59
65
|
|
@@ -74,6 +80,7 @@ module PulpDebClient
|
|
74
80
|
form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
|
75
81
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
76
82
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
83
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
77
84
|
|
78
85
|
# http body (model)
|
79
86
|
post_body = opts[:body]
|
@@ -27,6 +27,7 @@ module PulpDebClient
|
|
27
27
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
30
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
30
31
|
# @return [AsyncOperationResponse]
|
31
32
|
def create(opts = {})
|
32
33
|
data, _status_code, _headers = create_with_http_info(opts)
|
@@ -41,6 +42,7 @@ module PulpDebClient
|
|
41
42
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
42
43
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
43
44
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
45
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
44
46
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
45
47
|
def create_with_http_info(opts = {})
|
46
48
|
if @api_client.config.debugging
|
@@ -50,6 +52,10 @@ module PulpDebClient
|
|
50
52
|
fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentInstallerPackagesApi.create, the character length must be great than or equal to 1.'
|
51
53
|
end
|
52
54
|
|
55
|
+
if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
|
56
|
+
fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentInstallerPackagesApi.create, the character length must be great than or equal to 1.'
|
57
|
+
end
|
58
|
+
|
53
59
|
# resource path
|
54
60
|
local_var_path = '/pulp/api/v3/content/deb/installer_packages/'
|
55
61
|
|
@@ -70,6 +76,7 @@ module PulpDebClient
|
|
70
76
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
71
77
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
72
78
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
79
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
73
80
|
|
74
81
|
# http body (model)
|
75
82
|
post_body = opts[:body]
|
@@ -27,6 +27,7 @@ module PulpDebClient
|
|
27
27
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
28
28
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
29
29
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
30
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
30
31
|
# @option opts [String] :distribution Name of the distribution.
|
31
32
|
# @option opts [String] :component Name of the component.
|
32
33
|
# @return [AsyncOperationResponse]
|
@@ -43,6 +44,7 @@ module PulpDebClient
|
|
43
44
|
# @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
|
44
45
|
# @option opts [File] :file An uploaded file that may be turned into the content unit.
|
45
46
|
# @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
|
47
|
+
# @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
|
46
48
|
# @option opts [String] :distribution Name of the distribution.
|
47
49
|
# @option opts [String] :component Name of the component.
|
48
50
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
@@ -54,6 +56,10 @@ module PulpDebClient
|
|
54
56
|
fail ArgumentError, 'invalid value for "opts[:"relative_path"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
55
57
|
end
|
56
58
|
|
59
|
+
if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
|
60
|
+
fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
61
|
+
end
|
62
|
+
|
57
63
|
if @api_client.config.client_side_validation && !opts[:'distribution'].nil? && opts[:'distribution'].to_s.length < 1
|
58
64
|
fail ArgumentError, 'invalid value for "opts[:"distribution"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
59
65
|
end
|
@@ -82,6 +88,7 @@ module PulpDebClient
|
|
82
88
|
form_params['relative_path'] = opts[:'relative_path'] if !opts[:'relative_path'].nil?
|
83
89
|
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
84
90
|
form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
|
91
|
+
form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
|
85
92
|
form_params['distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
|
86
93
|
form_params['component'] = opts[:'component'] if !opts[:'component'].nil?
|
87
94
|
|
@@ -128,7 +128,7 @@ module PulpDebClient
|
|
128
128
|
|
129
129
|
def initialize
|
130
130
|
@scheme = 'http'
|
131
|
-
@host = '
|
131
|
+
@host = 'localhost'
|
132
132
|
@base_path = ''
|
133
133
|
@api_key = {}
|
134
134
|
@api_key_prefix = {}
|
@@ -210,7 +210,7 @@ module PulpDebClient
|
|
210
210
|
def server_settings
|
211
211
|
[
|
212
212
|
{
|
213
|
-
url: "http://
|
213
|
+
url: "http://localhost:24817/",
|
214
214
|
description: "No description provided",
|
215
215
|
}
|
216
216
|
]
|
@@ -387,20 +387,20 @@ module PulpDebClient
|
|
387
387
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
388
388
|
end
|
389
389
|
|
390
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
391
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
390
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
391
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
392
392
|
end
|
393
393
|
|
394
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
395
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
394
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
395
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
396
396
|
end
|
397
397
|
|
398
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
399
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
398
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
399
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
400
400
|
end
|
401
401
|
|
402
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
403
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
402
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
403
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
404
404
|
end
|
405
405
|
|
406
406
|
if @distributions.nil?
|
@@ -442,10 +442,10 @@ module PulpDebClient
|
|
442
442
|
return false if !@username.nil? && @username.to_s.length < 1
|
443
443
|
return false if !@password.nil? && @password.to_s.length < 1
|
444
444
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
445
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
446
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
447
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
448
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
445
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
446
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
447
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
448
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
449
449
|
return false if @distributions.nil?
|
450
450
|
return false if @distributions.to_s.length < 1
|
451
451
|
return false if !@components.nil? && @components.to_s.length < 1
|
@@ -575,8 +575,8 @@ module PulpDebClient
|
|
575
575
|
# Custom attribute writer method with validation
|
576
576
|
# @param [Object] total_timeout Value to be assigned
|
577
577
|
def total_timeout=(total_timeout)
|
578
|
-
if !total_timeout.nil? && total_timeout < 0
|
579
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
578
|
+
if !total_timeout.nil? && total_timeout < 0
|
579
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
580
580
|
end
|
581
581
|
|
582
582
|
@total_timeout = total_timeout
|
@@ -585,8 +585,8 @@ module PulpDebClient
|
|
585
585
|
# Custom attribute writer method with validation
|
586
586
|
# @param [Object] connect_timeout Value to be assigned
|
587
587
|
def connect_timeout=(connect_timeout)
|
588
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
589
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
588
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
589
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
590
590
|
end
|
591
591
|
|
592
592
|
@connect_timeout = connect_timeout
|
@@ -595,8 +595,8 @@ module PulpDebClient
|
|
595
595
|
# Custom attribute writer method with validation
|
596
596
|
# @param [Object] sock_connect_timeout Value to be assigned
|
597
597
|
def sock_connect_timeout=(sock_connect_timeout)
|
598
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
599
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
598
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
599
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
600
600
|
end
|
601
601
|
|
602
602
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -605,8 +605,8 @@ module PulpDebClient
|
|
605
605
|
# Custom attribute writer method with validation
|
606
606
|
# @param [Object] sock_read_timeout Value to be assigned
|
607
607
|
def sock_read_timeout=(sock_read_timeout)
|
608
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
609
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
608
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
609
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
610
610
|
end
|
611
611
|
|
612
612
|
@sock_read_timeout = sock_read_timeout
|