pulp_python_client 3.5.2 → 3.6.0
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/PatchedpythonPythonDistribution.md +3 -1
- data/docs/PatchedpythonPythonRemote.md +1 -1
- data/docs/PythonPythonDistribution.md +3 -1
- data/docs/PythonPythonDistributionResponse.md +3 -1
- data/docs/PythonPythonRemote.md +1 -1
- data/docs/PythonPythonRemoteResponse.md +1 -1
- data/lib/pulp_python_client/api/content_packages_api.rb +8 -0
- data/lib/pulp_python_client/api/pypi_legacy_api.rb +4 -0
- data/lib/pulp_python_client/api/pypi_simple_api.rb +4 -0
- data/lib/pulp_python_client/api/remotes_python_api.rb +4 -0
- data/lib/pulp_python_client/models/package_upload.rb +15 -0
- data/lib/pulp_python_client/models/patchedpython_python_distribution.rb +45 -4
- data/lib/pulp_python_client/models/patchedpython_python_remote.rb +151 -1
- data/lib/pulp_python_client/models/patchedpython_python_repository.rb +30 -0
- data/lib/pulp_python_client/models/python_bander_remote.rb +19 -0
- data/lib/pulp_python_client/models/python_python_distribution.rb +53 -4
- data/lib/pulp_python_client/models/python_python_distribution_response.rb +15 -4
- data/lib/pulp_python_client/models/python_python_package_content.rb +34 -0
- data/lib/pulp_python_client/models/python_python_remote.rb +159 -1
- data/lib/pulp_python_client/models/python_python_remote_response.rb +1 -1
- data/lib/pulp_python_client/models/python_python_repository.rb +34 -0
- data/lib/pulp_python_client/version.rb +1 -1
- data/spec/models/patchedpython_python_distribution_spec.rb +6 -0
- data/spec/models/python_python_distribution_response_spec.rb +6 -0
- data/spec/models/python_python_distribution_spec.rb +6 -0
- metadata +33 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3ba6ce7d052a5a83101d82fa1db72e5cdb17b4b6a9c74c102b93fe624fe2c42
|
4
|
+
data.tar.gz: 3a49f897475c941177ce0c0f3523b34211cb9ddc7d52831b90426e810979b828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0597d7d690c963272ef169e6a3be186cff20564a6ebcfac72e2985f9bd6d58a99fdac98b7f85b091aa57306aa31ea26b5993c493fe1bdda8547c23c5fe31f8eb'
|
7
|
+
data.tar.gz: 6b12f71d527c36e1ae878d7189d585b4868f10b0dcb35b8a4b6570c8aef51d8d4ade537e72ca6ffb2796c46d6ae365bfd264468240b6e6ed28fe75f3089f97b8
|
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.
|
10
|
+
- Package version: 3.6.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_python_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_python_client-3.
|
27
|
+
gem install ./pulp_python_client-3.6.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_python_client-3.
|
30
|
+
(for development, run `gem install --dev ./pulp_python_client-3.6.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_python_client', '~> 3.
|
36
|
+
gem 'pulp_python_client', '~> 3.6.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
12
|
**publication** | **String** | Publication to be served | [optional]
|
13
13
|
**allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional] [default to true]
|
14
|
+
**remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
14
15
|
|
15
16
|
## Code Sample
|
16
17
|
|
@@ -23,7 +24,8 @@ instance = PulpPythonClient::PatchedpythonPythonDistribution.new(base_path: null
|
|
23
24
|
name: null,
|
24
25
|
repository: null,
|
25
26
|
publication: null,
|
26
|
-
allow_uploads: null
|
27
|
+
allow_uploads: null,
|
28
|
+
remote: null)
|
27
29
|
```
|
28
30
|
|
29
31
|
|
@@ -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
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
29
29
|
**excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
|
30
30
|
**prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
12
12
|
**publication** | **String** | Publication to be served | [optional]
|
13
13
|
**allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional] [default to true]
|
14
|
+
**remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
14
15
|
|
15
16
|
## Code Sample
|
16
17
|
|
@@ -23,7 +24,8 @@ instance = PulpPythonClient::PythonPythonDistribution.new(base_path: null,
|
|
23
24
|
name: null,
|
24
25
|
repository: null,
|
25
26
|
publication: null,
|
26
|
-
allow_uploads: null
|
27
|
+
allow_uploads: null,
|
28
|
+
remote: null)
|
27
29
|
```
|
28
30
|
|
29
31
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
14
14
|
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
15
15
|
**publication** | **String** | Publication to be served | [optional]
|
16
16
|
**allow_uploads** | **Boolean** | Allow packages to be uploaded to this index. | [optional] [default to true]
|
17
|
+
**remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional]
|
17
18
|
|
18
19
|
## Code Sample
|
19
20
|
|
@@ -29,7 +30,8 @@ instance = PulpPythonClient::PythonPythonDistributionResponse.new(pulp_href: nul
|
|
29
30
|
name: null,
|
30
31
|
repository: null,
|
31
32
|
publication: null,
|
32
|
-
allow_uploads: null
|
33
|
+
allow_uploads: null,
|
34
|
+
remote: null)
|
33
35
|
```
|
34
36
|
|
35
37
|
|
data/docs/PythonPythonRemote.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
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
29
29
|
**excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
|
30
30
|
**prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [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
|
**includes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to include. | [optional]
|
27
27
|
**excludes** | [**Object**](.md) | A JSON list containing project specifiers for Python packages to exclude. | [optional]
|
28
28
|
**prereleases** | **Boolean** | Whether or not to include pre-release packages in the sync. | [optional]
|
@@ -92,6 +92,14 @@ module PulpPythonClient
|
|
92
92
|
if @api_client.config.client_side_validation && relative_path.nil?
|
93
93
|
fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentPackagesApi.create"
|
94
94
|
end
|
95
|
+
if @api_client.config.client_side_validation && relative_path.to_s.length < 1
|
96
|
+
fail ArgumentError, 'invalid value for "relative_path" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
97
|
+
end
|
98
|
+
|
99
|
+
if @api_client.config.client_side_validation && !opts[:'sha256'].nil? && opts[:'sha256'].to_s.length < 1
|
100
|
+
fail ArgumentError, 'invalid value for "opts[:"sha256"]" when calling ContentPackagesApi.create, the character length must be great than or equal to 1.'
|
101
|
+
end
|
102
|
+
|
95
103
|
# resource path
|
96
104
|
local_var_path = '/pulp/api/v3/content/python/packages/'
|
97
105
|
|
@@ -64,6 +64,10 @@ module PulpPythonClient
|
|
64
64
|
fail ArgumentError, 'invalid value for "sha256_digest" when calling PypiLegacyApi.create, the character length must be great than or equal to 64.'
|
65
65
|
end
|
66
66
|
|
67
|
+
if @api_client.config.client_side_validation && !opts[:'action'].nil? && opts[:'action'].to_s.length < 1
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"action"]" when calling PypiLegacyApi.create, the character length must be great than or equal to 1.'
|
69
|
+
end
|
70
|
+
|
67
71
|
# resource path
|
68
72
|
local_var_path = '/pypi/{path}/legacy/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
69
73
|
|
@@ -64,6 +64,10 @@ module PulpPythonClient
|
|
64
64
|
fail ArgumentError, 'invalid value for "sha256_digest" when calling PypiSimpleApi.create, the character length must be great than or equal to 64.'
|
65
65
|
end
|
66
66
|
|
67
|
+
if @api_client.config.client_side_validation && !opts[:'action'].nil? && opts[:'action'].to_s.length < 1
|
68
|
+
fail ArgumentError, 'invalid value for "opts[:"action"]" when calling PypiSimpleApi.create, the character length must be great than or equal to 1.'
|
69
|
+
end
|
70
|
+
|
67
71
|
# resource path
|
68
72
|
local_var_path = '/pypi/{path}/simple/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
69
73
|
|
@@ -176,6 +176,10 @@ module PulpPythonClient
|
|
176
176
|
if @api_client.config.client_side_validation && name.nil?
|
177
177
|
fail ArgumentError, "Missing the required parameter 'name' when calling RemotesPythonApi.from_bandersnatch"
|
178
178
|
end
|
179
|
+
if @api_client.config.client_side_validation && name.to_s.length < 1
|
180
|
+
fail ArgumentError, 'invalid value for "name" when calling RemotesPythonApi.from_bandersnatch, the character length must be great than or equal to 1.'
|
181
|
+
end
|
182
|
+
|
179
183
|
# resource path
|
180
184
|
local_var_path = '/pulp/api/v3/remotes/python/python/from_bandersnatch/'
|
181
185
|
|
@@ -86,6 +86,10 @@ module PulpPythonClient
|
|
86
86
|
invalid_properties.push('invalid value for "content", content cannot be nil.')
|
87
87
|
end
|
88
88
|
|
89
|
+
if !@action.nil? && @action.to_s.length < 1
|
90
|
+
invalid_properties.push('invalid value for "action", the character length must be great than or equal to 1.')
|
91
|
+
end
|
92
|
+
|
89
93
|
if @sha256_digest.nil?
|
90
94
|
invalid_properties.push('invalid value for "sha256_digest", sha256_digest cannot be nil.')
|
91
95
|
end
|
@@ -105,12 +109,23 @@ module PulpPythonClient
|
|
105
109
|
# @return true if the model is valid
|
106
110
|
def valid?
|
107
111
|
return false if @content.nil?
|
112
|
+
return false if !@action.nil? && @action.to_s.length < 1
|
108
113
|
return false if @sha256_digest.nil?
|
109
114
|
return false if @sha256_digest.to_s.length > 64
|
110
115
|
return false if @sha256_digest.to_s.length < 64
|
111
116
|
true
|
112
117
|
end
|
113
118
|
|
119
|
+
# Custom attribute writer method with validation
|
120
|
+
# @param [Object] action Value to be assigned
|
121
|
+
def action=(action)
|
122
|
+
if !action.nil? && action.to_s.length < 1
|
123
|
+
fail ArgumentError, 'invalid value for "action", the character length must be great than or equal to 1.'
|
124
|
+
end
|
125
|
+
|
126
|
+
@action = action
|
127
|
+
end
|
128
|
+
|
114
129
|
# Custom attribute writer method with validation
|
115
130
|
# @param [Object] sha256_digest Value to be assigned
|
116
131
|
def sha256_digest=(sha256_digest)
|
@@ -35,6 +35,9 @@ module PulpPythonClient
|
|
35
35
|
# Allow packages to be uploaded to this index.
|
36
36
|
attr_accessor :allow_uploads
|
37
37
|
|
38
|
+
# Remote that can be used to fetch content when using pull-through caching.
|
39
|
+
attr_accessor :remote
|
40
|
+
|
38
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
42
|
def self.attribute_map
|
40
43
|
{
|
@@ -44,7 +47,8 @@ module PulpPythonClient
|
|
44
47
|
:'name' => :'name',
|
45
48
|
:'repository' => :'repository',
|
46
49
|
:'publication' => :'publication',
|
47
|
-
:'allow_uploads' => :'allow_uploads'
|
50
|
+
:'allow_uploads' => :'allow_uploads',
|
51
|
+
:'remote' => :'remote'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -57,7 +61,8 @@ module PulpPythonClient
|
|
57
61
|
:'name' => :'String',
|
58
62
|
:'repository' => :'String',
|
59
63
|
:'publication' => :'String',
|
60
|
-
:'allow_uploads' => :'Boolean'
|
64
|
+
:'allow_uploads' => :'Boolean',
|
65
|
+
:'remote' => :'String'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
@@ -67,6 +72,7 @@ module PulpPythonClient
|
|
67
72
|
:'content_guard',
|
68
73
|
:'repository',
|
69
74
|
:'publication',
|
75
|
+
:'remote'
|
70
76
|
])
|
71
77
|
end
|
72
78
|
|
@@ -114,21 +120,55 @@ module PulpPythonClient
|
|
114
120
|
else
|
115
121
|
self.allow_uploads = true
|
116
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'remote')
|
125
|
+
self.remote = attributes[:'remote']
|
126
|
+
end
|
117
127
|
end
|
118
128
|
|
119
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
120
130
|
# @return Array for valid properties with the reasons
|
121
131
|
def list_invalid_properties
|
122
132
|
invalid_properties = Array.new
|
133
|
+
if !@base_path.nil? && @base_path.to_s.length < 1
|
134
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if !@name.nil? && @name.to_s.length < 1
|
138
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
139
|
+
end
|
140
|
+
|
123
141
|
invalid_properties
|
124
142
|
end
|
125
143
|
|
126
144
|
# Check to see if the all the properties in the model are valid
|
127
145
|
# @return true if the model is valid
|
128
146
|
def valid?
|
147
|
+
return false if !@base_path.nil? && @base_path.to_s.length < 1
|
148
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
129
149
|
true
|
130
150
|
end
|
131
151
|
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] base_path Value to be assigned
|
154
|
+
def base_path=(base_path)
|
155
|
+
if !base_path.nil? && base_path.to_s.length < 1
|
156
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
157
|
+
end
|
158
|
+
|
159
|
+
@base_path = base_path
|
160
|
+
end
|
161
|
+
|
162
|
+
# Custom attribute writer method with validation
|
163
|
+
# @param [Object] name Value to be assigned
|
164
|
+
def name=(name)
|
165
|
+
if !name.nil? && name.to_s.length < 1
|
166
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
167
|
+
end
|
168
|
+
|
169
|
+
@name = name
|
170
|
+
end
|
171
|
+
|
132
172
|
# Checks equality by comparing each attribute.
|
133
173
|
# @param [Object] Object to be compared
|
134
174
|
def ==(o)
|
@@ -140,7 +180,8 @@ module PulpPythonClient
|
|
140
180
|
name == o.name &&
|
141
181
|
repository == o.repository &&
|
142
182
|
publication == o.publication &&
|
143
|
-
allow_uploads == o.allow_uploads
|
183
|
+
allow_uploads == o.allow_uploads &&
|
184
|
+
remote == o.remote
|
144
185
|
end
|
145
186
|
|
146
187
|
# @see the `==` method
|
@@ -152,7 +193,7 @@ module PulpPythonClient
|
|
152
193
|
# Calculates hash code according to all attributes.
|
153
194
|
# @return [Integer] Hash code
|
154
195
|
def hash
|
155
|
-
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
196
|
+
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
156
197
|
end
|
157
198
|
|
158
199
|
# Builds the object from hash
|
@@ -74,7 +74,7 @@ module PulpPythonClient
|
|
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
|
# A JSON list containing project specifiers for Python packages to include.
|
@@ -318,6 +318,46 @@ module PulpPythonClient
|
|
318
318
|
# @return Array for valid properties with the reasons
|
319
319
|
def list_invalid_properties
|
320
320
|
invalid_properties = Array.new
|
321
|
+
if !@name.nil? && @name.to_s.length < 1
|
322
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
323
|
+
end
|
324
|
+
|
325
|
+
if !@url.nil? && @url.to_s.length < 1
|
326
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
327
|
+
end
|
328
|
+
|
329
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
330
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
331
|
+
end
|
332
|
+
|
333
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
334
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
335
|
+
end
|
336
|
+
|
337
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
338
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
339
|
+
end
|
340
|
+
|
341
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
342
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
343
|
+
end
|
344
|
+
|
345
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
346
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
347
|
+
end
|
348
|
+
|
349
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
350
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
351
|
+
end
|
352
|
+
|
353
|
+
if !@username.nil? && @username.to_s.length < 1
|
354
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
355
|
+
end
|
356
|
+
|
357
|
+
if !@password.nil? && @password.to_s.length < 1
|
358
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
359
|
+
end
|
360
|
+
|
321
361
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
322
362
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
323
363
|
end
|
@@ -344,6 +384,16 @@ module PulpPythonClient
|
|
344
384
|
# Check to see if the all the properties in the model are valid
|
345
385
|
# @return true if the model is valid
|
346
386
|
def valid?
|
387
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
388
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
389
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
390
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
391
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
392
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
393
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
394
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
395
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
396
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
347
397
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
348
398
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
349
399
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
@@ -352,6 +402,106 @@ module PulpPythonClient
|
|
352
402
|
true
|
353
403
|
end
|
354
404
|
|
405
|
+
# Custom attribute writer method with validation
|
406
|
+
# @param [Object] name Value to be assigned
|
407
|
+
def name=(name)
|
408
|
+
if !name.nil? && name.to_s.length < 1
|
409
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
410
|
+
end
|
411
|
+
|
412
|
+
@name = name
|
413
|
+
end
|
414
|
+
|
415
|
+
# Custom attribute writer method with validation
|
416
|
+
# @param [Object] url Value to be assigned
|
417
|
+
def url=(url)
|
418
|
+
if !url.nil? && url.to_s.length < 1
|
419
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
420
|
+
end
|
421
|
+
|
422
|
+
@url = url
|
423
|
+
end
|
424
|
+
|
425
|
+
# Custom attribute writer method with validation
|
426
|
+
# @param [Object] ca_cert Value to be assigned
|
427
|
+
def ca_cert=(ca_cert)
|
428
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
429
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
430
|
+
end
|
431
|
+
|
432
|
+
@ca_cert = ca_cert
|
433
|
+
end
|
434
|
+
|
435
|
+
# Custom attribute writer method with validation
|
436
|
+
# @param [Object] client_cert Value to be assigned
|
437
|
+
def client_cert=(client_cert)
|
438
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
439
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
440
|
+
end
|
441
|
+
|
442
|
+
@client_cert = client_cert
|
443
|
+
end
|
444
|
+
|
445
|
+
# Custom attribute writer method with validation
|
446
|
+
# @param [Object] client_key Value to be assigned
|
447
|
+
def client_key=(client_key)
|
448
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
449
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
450
|
+
end
|
451
|
+
|
452
|
+
@client_key = client_key
|
453
|
+
end
|
454
|
+
|
455
|
+
# Custom attribute writer method with validation
|
456
|
+
# @param [Object] proxy_url Value to be assigned
|
457
|
+
def proxy_url=(proxy_url)
|
458
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
459
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
460
|
+
end
|
461
|
+
|
462
|
+
@proxy_url = proxy_url
|
463
|
+
end
|
464
|
+
|
465
|
+
# Custom attribute writer method with validation
|
466
|
+
# @param [Object] proxy_username Value to be assigned
|
467
|
+
def proxy_username=(proxy_username)
|
468
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
469
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
470
|
+
end
|
471
|
+
|
472
|
+
@proxy_username = proxy_username
|
473
|
+
end
|
474
|
+
|
475
|
+
# Custom attribute writer method with validation
|
476
|
+
# @param [Object] proxy_password Value to be assigned
|
477
|
+
def proxy_password=(proxy_password)
|
478
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
479
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
480
|
+
end
|
481
|
+
|
482
|
+
@proxy_password = proxy_password
|
483
|
+
end
|
484
|
+
|
485
|
+
# Custom attribute writer method with validation
|
486
|
+
# @param [Object] username Value to be assigned
|
487
|
+
def username=(username)
|
488
|
+
if !username.nil? && username.to_s.length < 1
|
489
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
490
|
+
end
|
491
|
+
|
492
|
+
@username = username
|
493
|
+
end
|
494
|
+
|
495
|
+
# Custom attribute writer method with validation
|
496
|
+
# @param [Object] password Value to be assigned
|
497
|
+
def password=(password)
|
498
|
+
if !password.nil? && password.to_s.length < 1
|
499
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
500
|
+
end
|
501
|
+
|
502
|
+
@password = password
|
503
|
+
end
|
504
|
+
|
355
505
|
# Custom attribute writer method with validation
|
356
506
|
# @param [Object] download_concurrency Value to be assigned
|
357
507
|
def download_concurrency=(download_concurrency)
|
@@ -111,6 +111,14 @@ module PulpPythonClient
|
|
111
111
|
# @return Array for valid properties with the reasons
|
112
112
|
def list_invalid_properties
|
113
113
|
invalid_properties = Array.new
|
114
|
+
if !@name.nil? && @name.to_s.length < 1
|
115
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if !@description.nil? && @description.to_s.length < 1
|
119
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
120
|
+
end
|
121
|
+
|
114
122
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
115
123
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
116
124
|
end
|
@@ -121,10 +129,32 @@ module PulpPythonClient
|
|
121
129
|
# Check to see if the all the properties in the model are valid
|
122
130
|
# @return true if the model is valid
|
123
131
|
def valid?
|
132
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
133
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
124
134
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
125
135
|
true
|
126
136
|
end
|
127
137
|
|
138
|
+
# Custom attribute writer method with validation
|
139
|
+
# @param [Object] name Value to be assigned
|
140
|
+
def name=(name)
|
141
|
+
if !name.nil? && name.to_s.length < 1
|
142
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
143
|
+
end
|
144
|
+
|
145
|
+
@name = name
|
146
|
+
end
|
147
|
+
|
148
|
+
# Custom attribute writer method with validation
|
149
|
+
# @param [Object] description Value to be assigned
|
150
|
+
def description=(description)
|
151
|
+
if !description.nil? && description.to_s.length < 1
|
152
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
153
|
+
end
|
154
|
+
|
155
|
+
@description = description
|
156
|
+
end
|
157
|
+
|
128
158
|
# Custom attribute writer method with validation
|
129
159
|
# @param [Object] retain_repo_versions Value to be assigned
|
130
160
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -88,6 +88,10 @@ module PulpPythonClient
|
|
88
88
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
89
89
|
end
|
90
90
|
|
91
|
+
if @name.to_s.length < 1
|
92
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
93
|
+
end
|
94
|
+
|
91
95
|
invalid_properties
|
92
96
|
end
|
93
97
|
|
@@ -96,9 +100,24 @@ module PulpPythonClient
|
|
96
100
|
def valid?
|
97
101
|
return false if @config.nil?
|
98
102
|
return false if @name.nil?
|
103
|
+
return false if @name.to_s.length < 1
|
99
104
|
true
|
100
105
|
end
|
101
106
|
|
107
|
+
# Custom attribute writer method with validation
|
108
|
+
# @param [Object] name Value to be assigned
|
109
|
+
def name=(name)
|
110
|
+
if name.nil?
|
111
|
+
fail ArgumentError, 'name cannot be nil'
|
112
|
+
end
|
113
|
+
|
114
|
+
if name.to_s.length < 1
|
115
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
116
|
+
end
|
117
|
+
|
118
|
+
@name = name
|
119
|
+
end
|
120
|
+
|
102
121
|
# Checks equality by comparing each attribute.
|
103
122
|
# @param [Object] Object to be compared
|
104
123
|
def ==(o)
|
@@ -35,6 +35,9 @@ module PulpPythonClient
|
|
35
35
|
# Allow packages to be uploaded to this index.
|
36
36
|
attr_accessor :allow_uploads
|
37
37
|
|
38
|
+
# Remote that can be used to fetch content when using pull-through caching.
|
39
|
+
attr_accessor :remote
|
40
|
+
|
38
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
42
|
def self.attribute_map
|
40
43
|
{
|
@@ -44,7 +47,8 @@ module PulpPythonClient
|
|
44
47
|
:'name' => :'name',
|
45
48
|
:'repository' => :'repository',
|
46
49
|
:'publication' => :'publication',
|
47
|
-
:'allow_uploads' => :'allow_uploads'
|
50
|
+
:'allow_uploads' => :'allow_uploads',
|
51
|
+
:'remote' => :'remote'
|
48
52
|
}
|
49
53
|
end
|
50
54
|
|
@@ -57,7 +61,8 @@ module PulpPythonClient
|
|
57
61
|
:'name' => :'String',
|
58
62
|
:'repository' => :'String',
|
59
63
|
:'publication' => :'String',
|
60
|
-
:'allow_uploads' => :'Boolean'
|
64
|
+
:'allow_uploads' => :'Boolean',
|
65
|
+
:'remote' => :'String'
|
61
66
|
}
|
62
67
|
end
|
63
68
|
|
@@ -67,6 +72,7 @@ module PulpPythonClient
|
|
67
72
|
:'content_guard',
|
68
73
|
:'repository',
|
69
74
|
:'publication',
|
75
|
+
:'remote'
|
70
76
|
])
|
71
77
|
end
|
72
78
|
|
@@ -114,6 +120,10 @@ module PulpPythonClient
|
|
114
120
|
else
|
115
121
|
self.allow_uploads = true
|
116
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'remote')
|
125
|
+
self.remote = attributes[:'remote']
|
126
|
+
end
|
117
127
|
end
|
118
128
|
|
119
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -124,10 +134,18 @@ module PulpPythonClient
|
|
124
134
|
invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
|
125
135
|
end
|
126
136
|
|
137
|
+
if @base_path.to_s.length < 1
|
138
|
+
invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
|
139
|
+
end
|
140
|
+
|
127
141
|
if @name.nil?
|
128
142
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
129
143
|
end
|
130
144
|
|
145
|
+
if @name.to_s.length < 1
|
146
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
147
|
+
end
|
148
|
+
|
131
149
|
invalid_properties
|
132
150
|
end
|
133
151
|
|
@@ -135,10 +153,40 @@ module PulpPythonClient
|
|
135
153
|
# @return true if the model is valid
|
136
154
|
def valid?
|
137
155
|
return false if @base_path.nil?
|
156
|
+
return false if @base_path.to_s.length < 1
|
138
157
|
return false if @name.nil?
|
158
|
+
return false if @name.to_s.length < 1
|
139
159
|
true
|
140
160
|
end
|
141
161
|
|
162
|
+
# Custom attribute writer method with validation
|
163
|
+
# @param [Object] base_path Value to be assigned
|
164
|
+
def base_path=(base_path)
|
165
|
+
if base_path.nil?
|
166
|
+
fail ArgumentError, 'base_path cannot be nil'
|
167
|
+
end
|
168
|
+
|
169
|
+
if base_path.to_s.length < 1
|
170
|
+
fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
|
171
|
+
end
|
172
|
+
|
173
|
+
@base_path = base_path
|
174
|
+
end
|
175
|
+
|
176
|
+
# Custom attribute writer method with validation
|
177
|
+
# @param [Object] name Value to be assigned
|
178
|
+
def name=(name)
|
179
|
+
if name.nil?
|
180
|
+
fail ArgumentError, 'name cannot be nil'
|
181
|
+
end
|
182
|
+
|
183
|
+
if name.to_s.length < 1
|
184
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
185
|
+
end
|
186
|
+
|
187
|
+
@name = name
|
188
|
+
end
|
189
|
+
|
142
190
|
# Checks equality by comparing each attribute.
|
143
191
|
# @param [Object] Object to be compared
|
144
192
|
def ==(o)
|
@@ -150,7 +198,8 @@ module PulpPythonClient
|
|
150
198
|
name == o.name &&
|
151
199
|
repository == o.repository &&
|
152
200
|
publication == o.publication &&
|
153
|
-
allow_uploads == o.allow_uploads
|
201
|
+
allow_uploads == o.allow_uploads &&
|
202
|
+
remote == o.remote
|
154
203
|
end
|
155
204
|
|
156
205
|
# @see the `==` method
|
@@ -162,7 +211,7 @@ module PulpPythonClient
|
|
162
211
|
# Calculates hash code according to all attributes.
|
163
212
|
# @return [Integer] Hash code
|
164
213
|
def hash
|
165
|
-
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
214
|
+
[base_path, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
166
215
|
end
|
167
216
|
|
168
217
|
# Builds the object from hash
|
@@ -42,6 +42,9 @@ module PulpPythonClient
|
|
42
42
|
# Allow packages to be uploaded to this index.
|
43
43
|
attr_accessor :allow_uploads
|
44
44
|
|
45
|
+
# Remote that can be used to fetch content when using pull-through caching.
|
46
|
+
attr_accessor :remote
|
47
|
+
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
49
|
def self.attribute_map
|
47
50
|
{
|
@@ -54,7 +57,8 @@ module PulpPythonClient
|
|
54
57
|
:'name' => :'name',
|
55
58
|
:'repository' => :'repository',
|
56
59
|
:'publication' => :'publication',
|
57
|
-
:'allow_uploads' => :'allow_uploads'
|
60
|
+
:'allow_uploads' => :'allow_uploads',
|
61
|
+
:'remote' => :'remote'
|
58
62
|
}
|
59
63
|
end
|
60
64
|
|
@@ -70,7 +74,8 @@ module PulpPythonClient
|
|
70
74
|
:'name' => :'String',
|
71
75
|
:'repository' => :'String',
|
72
76
|
:'publication' => :'String',
|
73
|
-
:'allow_uploads' => :'Boolean'
|
77
|
+
:'allow_uploads' => :'Boolean',
|
78
|
+
:'remote' => :'String'
|
74
79
|
}
|
75
80
|
end
|
76
81
|
|
@@ -80,6 +85,7 @@ module PulpPythonClient
|
|
80
85
|
:'content_guard',
|
81
86
|
:'repository',
|
82
87
|
:'publication',
|
88
|
+
:'remote'
|
83
89
|
])
|
84
90
|
end
|
85
91
|
|
@@ -139,6 +145,10 @@ module PulpPythonClient
|
|
139
145
|
else
|
140
146
|
self.allow_uploads = true
|
141
147
|
end
|
148
|
+
|
149
|
+
if attributes.key?(:'remote')
|
150
|
+
self.remote = attributes[:'remote']
|
151
|
+
end
|
142
152
|
end
|
143
153
|
|
144
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -178,7 +188,8 @@ module PulpPythonClient
|
|
178
188
|
name == o.name &&
|
179
189
|
repository == o.repository &&
|
180
190
|
publication == o.publication &&
|
181
|
-
allow_uploads == o.allow_uploads
|
191
|
+
allow_uploads == o.allow_uploads &&
|
192
|
+
remote == o.remote
|
182
193
|
end
|
183
194
|
|
184
195
|
# @see the `==` method
|
@@ -190,7 +201,7 @@ module PulpPythonClient
|
|
190
201
|
# Calculates hash code according to all attributes.
|
191
202
|
# @return [Integer] Hash code
|
192
203
|
def hash
|
193
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads].hash
|
204
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication, allow_uploads, remote].hash
|
194
205
|
end
|
195
206
|
|
196
207
|
# Builds the object from hash
|
@@ -293,6 +293,14 @@ module PulpPythonClient
|
|
293
293
|
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
294
294
|
end
|
295
295
|
|
296
|
+
if @relative_path.to_s.length < 1
|
297
|
+
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
298
|
+
end
|
299
|
+
|
300
|
+
if !@sha256.nil? && @sha256.to_s.length < 1
|
301
|
+
invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
|
302
|
+
end
|
303
|
+
|
296
304
|
invalid_properties
|
297
305
|
end
|
298
306
|
|
@@ -300,9 +308,35 @@ module PulpPythonClient
|
|
300
308
|
# @return true if the model is valid
|
301
309
|
def valid?
|
302
310
|
return false if @relative_path.nil?
|
311
|
+
return false if @relative_path.to_s.length < 1
|
312
|
+
return false if !@sha256.nil? && @sha256.to_s.length < 1
|
303
313
|
true
|
304
314
|
end
|
305
315
|
|
316
|
+
# Custom attribute writer method with validation
|
317
|
+
# @param [Object] relative_path Value to be assigned
|
318
|
+
def relative_path=(relative_path)
|
319
|
+
if relative_path.nil?
|
320
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
321
|
+
end
|
322
|
+
|
323
|
+
if relative_path.to_s.length < 1
|
324
|
+
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
325
|
+
end
|
326
|
+
|
327
|
+
@relative_path = relative_path
|
328
|
+
end
|
329
|
+
|
330
|
+
# Custom attribute writer method with validation
|
331
|
+
# @param [Object] sha256 Value to be assigned
|
332
|
+
def sha256=(sha256)
|
333
|
+
if !sha256.nil? && sha256.to_s.length < 1
|
334
|
+
fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
|
335
|
+
end
|
336
|
+
|
337
|
+
@sha256 = sha256
|
338
|
+
end
|
339
|
+
|
306
340
|
# Checks equality by comparing each attribute.
|
307
341
|
# @param [Object] Object to be compared
|
308
342
|
def ==(o)
|
@@ -74,7 +74,7 @@ module PulpPythonClient
|
|
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
|
# A JSON list containing project specifiers for Python packages to include.
|
@@ -322,10 +322,50 @@ module PulpPythonClient
|
|
322
322
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
323
323
|
end
|
324
324
|
|
325
|
+
if @name.to_s.length < 1
|
326
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
327
|
+
end
|
328
|
+
|
325
329
|
if @url.nil?
|
326
330
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
327
331
|
end
|
328
332
|
|
333
|
+
if @url.to_s.length < 1
|
334
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
335
|
+
end
|
336
|
+
|
337
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
338
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
339
|
+
end
|
340
|
+
|
341
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
342
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
343
|
+
end
|
344
|
+
|
345
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
346
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
347
|
+
end
|
348
|
+
|
349
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
350
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
351
|
+
end
|
352
|
+
|
353
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
354
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
355
|
+
end
|
356
|
+
|
357
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
358
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
359
|
+
end
|
360
|
+
|
361
|
+
if !@username.nil? && @username.to_s.length < 1
|
362
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
363
|
+
end
|
364
|
+
|
365
|
+
if !@password.nil? && @password.to_s.length < 1
|
366
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
367
|
+
end
|
368
|
+
|
329
369
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
330
370
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
331
371
|
end
|
@@ -353,7 +393,17 @@ module PulpPythonClient
|
|
353
393
|
# @return true if the model is valid
|
354
394
|
def valid?
|
355
395
|
return false if @name.nil?
|
396
|
+
return false if @name.to_s.length < 1
|
356
397
|
return false if @url.nil?
|
398
|
+
return false if @url.to_s.length < 1
|
399
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
400
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
401
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
402
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
403
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
404
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
405
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
406
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
357
407
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
358
408
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
359
409
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
@@ -362,6 +412,114 @@ module PulpPythonClient
|
|
362
412
|
true
|
363
413
|
end
|
364
414
|
|
415
|
+
# Custom attribute writer method with validation
|
416
|
+
# @param [Object] name Value to be assigned
|
417
|
+
def name=(name)
|
418
|
+
if name.nil?
|
419
|
+
fail ArgumentError, 'name cannot be nil'
|
420
|
+
end
|
421
|
+
|
422
|
+
if name.to_s.length < 1
|
423
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
424
|
+
end
|
425
|
+
|
426
|
+
@name = name
|
427
|
+
end
|
428
|
+
|
429
|
+
# Custom attribute writer method with validation
|
430
|
+
# @param [Object] url Value to be assigned
|
431
|
+
def url=(url)
|
432
|
+
if url.nil?
|
433
|
+
fail ArgumentError, 'url cannot be nil'
|
434
|
+
end
|
435
|
+
|
436
|
+
if url.to_s.length < 1
|
437
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
438
|
+
end
|
439
|
+
|
440
|
+
@url = url
|
441
|
+
end
|
442
|
+
|
443
|
+
# Custom attribute writer method with validation
|
444
|
+
# @param [Object] ca_cert Value to be assigned
|
445
|
+
def ca_cert=(ca_cert)
|
446
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
448
|
+
end
|
449
|
+
|
450
|
+
@ca_cert = ca_cert
|
451
|
+
end
|
452
|
+
|
453
|
+
# Custom attribute writer method with validation
|
454
|
+
# @param [Object] client_cert Value to be assigned
|
455
|
+
def client_cert=(client_cert)
|
456
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
457
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
458
|
+
end
|
459
|
+
|
460
|
+
@client_cert = client_cert
|
461
|
+
end
|
462
|
+
|
463
|
+
# Custom attribute writer method with validation
|
464
|
+
# @param [Object] client_key Value to be assigned
|
465
|
+
def client_key=(client_key)
|
466
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
467
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
468
|
+
end
|
469
|
+
|
470
|
+
@client_key = client_key
|
471
|
+
end
|
472
|
+
|
473
|
+
# Custom attribute writer method with validation
|
474
|
+
# @param [Object] proxy_url Value to be assigned
|
475
|
+
def proxy_url=(proxy_url)
|
476
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
478
|
+
end
|
479
|
+
|
480
|
+
@proxy_url = proxy_url
|
481
|
+
end
|
482
|
+
|
483
|
+
# Custom attribute writer method with validation
|
484
|
+
# @param [Object] proxy_username Value to be assigned
|
485
|
+
def proxy_username=(proxy_username)
|
486
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
487
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
488
|
+
end
|
489
|
+
|
490
|
+
@proxy_username = proxy_username
|
491
|
+
end
|
492
|
+
|
493
|
+
# Custom attribute writer method with validation
|
494
|
+
# @param [Object] proxy_password Value to be assigned
|
495
|
+
def proxy_password=(proxy_password)
|
496
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
497
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
498
|
+
end
|
499
|
+
|
500
|
+
@proxy_password = proxy_password
|
501
|
+
end
|
502
|
+
|
503
|
+
# Custom attribute writer method with validation
|
504
|
+
# @param [Object] username Value to be assigned
|
505
|
+
def username=(username)
|
506
|
+
if !username.nil? && username.to_s.length < 1
|
507
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
508
|
+
end
|
509
|
+
|
510
|
+
@username = username
|
511
|
+
end
|
512
|
+
|
513
|
+
# Custom attribute writer method with validation
|
514
|
+
# @param [Object] password Value to be assigned
|
515
|
+
def password=(password)
|
516
|
+
if !password.nil? && password.to_s.length < 1
|
517
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
518
|
+
end
|
519
|
+
|
520
|
+
@password = password
|
521
|
+
end
|
522
|
+
|
365
523
|
# Custom attribute writer method with validation
|
366
524
|
# @param [Object] download_concurrency Value to be assigned
|
367
525
|
def download_concurrency=(download_concurrency)
|
@@ -67,7 +67,7 @@ module PulpPythonClient
|
|
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
|
# A JSON list containing project specifiers for Python packages to include.
|
@@ -115,6 +115,14 @@ module PulpPythonClient
|
|
115
115
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
116
116
|
end
|
117
117
|
|
118
|
+
if @name.to_s.length < 1
|
119
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if !@description.nil? && @description.to_s.length < 1
|
123
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
124
|
+
end
|
125
|
+
|
118
126
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
119
127
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
120
128
|
end
|
@@ -126,10 +134,36 @@ module PulpPythonClient
|
|
126
134
|
# @return true if the model is valid
|
127
135
|
def valid?
|
128
136
|
return false if @name.nil?
|
137
|
+
return false if @name.to_s.length < 1
|
138
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
129
139
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
130
140
|
true
|
131
141
|
end
|
132
142
|
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param [Object] name Value to be assigned
|
145
|
+
def name=(name)
|
146
|
+
if name.nil?
|
147
|
+
fail ArgumentError, 'name cannot be nil'
|
148
|
+
end
|
149
|
+
|
150
|
+
if name.to_s.length < 1
|
151
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
152
|
+
end
|
153
|
+
|
154
|
+
@name = name
|
155
|
+
end
|
156
|
+
|
157
|
+
# Custom attribute writer method with validation
|
158
|
+
# @param [Object] description Value to be assigned
|
159
|
+
def description=(description)
|
160
|
+
if !description.nil? && description.to_s.length < 1
|
161
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
162
|
+
end
|
163
|
+
|
164
|
+
@description = description
|
165
|
+
end
|
166
|
+
|
133
167
|
# Custom attribute writer method with validation
|
134
168
|
# @param [Object] retain_repo_versions Value to be assigned
|
135
169
|
def retain_repo_versions=(retain_repo_versions)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_python_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -240,50 +240,50 @@ signing_key:
|
|
240
240
|
specification_version: 4
|
241
241
|
summary: Pulp 3 API Ruby Gem
|
242
242
|
test_files:
|
243
|
+
- spec/api/repositories_python_versions_api_spec.rb
|
244
|
+
- spec/api/remotes_python_api_spec.rb
|
245
|
+
- spec/api/pypi_api_spec.rb
|
243
246
|
- spec/api/pypi_simple_api_spec.rb
|
244
|
-
- spec/api/
|
247
|
+
- spec/api/pypi_metadata_api_spec.rb
|
248
|
+
- spec/api/content_packages_api_spec.rb
|
245
249
|
- spec/api/publications_pypi_api_spec.rb
|
246
|
-
- spec/api/
|
250
|
+
- spec/api/distributions_pypi_api_spec.rb
|
247
251
|
- spec/api/pypi_legacy_api_spec.rb
|
248
|
-
- spec/api/content_packages_api_spec.rb
|
249
252
|
- spec/api/repositories_python_api_spec.rb
|
250
|
-
- spec/api/pypi_metadata_api_spec.rb
|
251
|
-
- spec/api/pypi_api_spec.rb
|
252
|
-
- spec/api/repositories_python_versions_api_spec.rb
|
253
253
|
- spec/api_client_spec.rb
|
254
254
|
- spec/configuration_spec.rb
|
255
|
-
- spec/models/
|
256
|
-
- spec/models/python_python_package_content_spec.rb
|
257
|
-
- spec/models/paginatedpython_python_remote_response_list_spec.rb
|
258
|
-
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
255
|
+
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
259
256
|
- spec/models/paginatedpython_python_repository_response_list_spec.rb
|
260
|
-
- spec/models/
|
261
|
-
- spec/models/
|
262
|
-
- spec/models/python_python_publication_spec.rb
|
263
|
-
- spec/models/paginated_repository_version_response_list_spec.rb
|
264
|
-
- spec/models/content_summary_spec.rb
|
265
|
-
- spec/models/python_python_package_content_response_spec.rb
|
257
|
+
- spec/models/paginatedpython_python_distribution_response_list_spec.rb
|
258
|
+
- spec/models/python_python_package_content_spec.rb
|
266
259
|
- spec/models/python_python_distribution_response_spec.rb
|
267
|
-
- spec/models/
|
268
|
-
- spec/models/content_summary_response_spec.rb
|
269
|
-
- spec/models/python_python_repository_response_spec.rb
|
270
|
-
- spec/models/paginatedpython_python_publication_response_list_spec.rb
|
271
|
-
- spec/models/python_python_remote_spec.rb
|
272
|
-
- spec/models/summary_response_spec.rb
|
260
|
+
- spec/models/paginated_repository_version_response_list_spec.rb
|
273
261
|
- spec/models/python_python_publication_response_spec.rb
|
274
|
-
- spec/models/
|
275
|
-
- spec/models/
|
262
|
+
- spec/models/repository_add_remove_content_spec.rb
|
263
|
+
- spec/models/python_python_remote_spec.rb
|
264
|
+
- spec/models/policy_enum_spec.rb
|
276
265
|
- spec/models/repository_sync_url_spec.rb
|
266
|
+
- spec/models/package_metadata_response_spec.rb
|
267
|
+
- spec/models/repository_version_response_spec.rb
|
277
268
|
- spec/models/python_python_distribution_spec.rb
|
269
|
+
- spec/models/python_bander_remote_spec.rb
|
270
|
+
- spec/models/patchedpython_python_repository_spec.rb
|
271
|
+
- spec/models/python_python_repository_response_spec.rb
|
272
|
+
- spec/models/content_summary_response_spec.rb
|
273
|
+
- spec/models/patchedpython_python_remote_spec.rb
|
274
|
+
- spec/models/python_python_repository_spec.rb
|
275
|
+
- spec/models/package_types_enum_spec.rb
|
276
|
+
- spec/models/content_summary_spec.rb
|
277
|
+
- spec/models/package_upload_task_response_spec.rb
|
278
278
|
- spec/models/package_upload_spec.rb
|
279
|
-
- spec/models/exclude_platforms_enum_spec.rb
|
280
279
|
- spec/models/repository_version_spec.rb
|
281
|
-
- spec/models/
|
282
|
-
- spec/models/
|
280
|
+
- spec/models/async_operation_response_spec.rb
|
281
|
+
- spec/models/paginatedpython_python_remote_response_list_spec.rb
|
282
|
+
- spec/models/patchedpython_python_distribution_spec.rb
|
283
|
+
- spec/models/python_python_package_content_response_spec.rb
|
283
284
|
- spec/models/paginatedpython_python_package_content_response_list_spec.rb
|
284
|
-
- spec/models/
|
285
|
-
- spec/models/
|
285
|
+
- spec/models/summary_response_spec.rb
|
286
|
+
- spec/models/exclude_platforms_enum_spec.rb
|
287
|
+
- spec/models/python_python_publication_spec.rb
|
286
288
|
- spec/models/python_python_remote_response_spec.rb
|
287
|
-
- spec/models/python_bander_remote_spec.rb
|
288
|
-
- spec/models/repository_add_remove_content_spec.rb
|
289
289
|
- spec/spec_helper.rb
|