pulp_npm_client 0.1.0a3.dev1614742016 → 0.1.0a3.dev1615174154
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_npm_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/NpmNpmRemote.md +7 -1
- data/docs/NpmNpmRemoteResponse.md +3 -7
- data/docs/PatchednpmNpmRemote.md +7 -1
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +36 -2
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +14 -35
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +36 -2
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/models/npm_npm_remote_response_spec.rb +6 -18
- data/spec/models/npm_npm_remote_spec.rb +18 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c362af94544075bf939a2db806ea5a2ae40cbf6b8b86efd89b569858f5140101
|
4
|
+
data.tar.gz: f48ed77932db5b31ec612567016fff034a1e7dfffc7c6435d4ce37ff74addf0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adfc3baff15d4d987b02063efb4675f1d7202d57f2285471209f9225e25ebeea4814c5f88e41e9ff14f3b8296f10c5ef8936ae6f238af5fbeb749609fec8dc5b
|
7
|
+
data.tar.gz: 1c6f9ae0268a0b151e1c4897818d98b88749a44a8f0f8d695e9065a4ee9602db3deff134898e9e413df5285ed490094e9e74d12614c0fa4982a6fa9b33ca9ee1
|
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: 0.1.0a3.
|
10
|
+
- Package version: 0.1.0a3.dev1615174154
|
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_npm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_npm_client-0.1.0a3.
|
27
|
+
gem install ./pulp_npm_client-0.1.0a3.dev1615174154.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_npm_client-0.1.0a3.
|
30
|
+
(for development, run `gem install --dev ./pulp_npm_client-0.1.0a3.dev1615174154.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_npm_client', '~> 0.1.0a3.
|
36
|
+
gem 'pulp_npm_client', '~> 0.1.0a3.dev1615174154'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
data/docs/NpmNpmRemote.md
CHANGED
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
|
|
10
10
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
11
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
14
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
15
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
16
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
|
|
20
22
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
21
23
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
22
24
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
25
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
23
26
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
24
27
|
|
25
28
|
## Code Sample
|
@@ -34,6 +37,8 @@ instance = PulpNpmClient::NpmNpmRemote.new(name: null,
|
|
34
37
|
client_key: null,
|
35
38
|
tls_validation: null,
|
36
39
|
proxy_url: null,
|
40
|
+
proxy_username: null,
|
41
|
+
proxy_password: null,
|
37
42
|
username: null,
|
38
43
|
password: null,
|
39
44
|
pulp_labels: null,
|
@@ -43,6 +48,7 @@ instance = PulpNpmClient::NpmNpmRemote.new(name: null,
|
|
43
48
|
connect_timeout: null,
|
44
49
|
sock_connect_timeout: null,
|
45
50
|
sock_read_timeout: null,
|
51
|
+
headers: null,
|
46
52
|
rate_limit: null)
|
47
53
|
```
|
48
54
|
|
@@ -10,11 +10,8 @@ Name | Type | Description | Notes
|
|
10
10
|
**url** | **String** | The URL of an external content source. |
|
11
11
|
**ca_cert** | **String** | A PEM encoded CA certificate used to validate the server certificate presented by the remote server. | [optional]
|
12
12
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
13
|
-
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
14
13
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
15
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
16
|
-
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
17
|
-
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
14
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
18
15
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
19
16
|
**pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
|
20
17
|
**download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
|
@@ -23,6 +20,7 @@ Name | Type | Description | Notes
|
|
23
20
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
24
21
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
25
22
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
23
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
26
24
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
27
25
|
|
28
26
|
## Code Sample
|
@@ -36,11 +34,8 @@ instance = PulpNpmClient::NpmNpmRemoteResponse.new(pulp_href: null,
|
|
36
34
|
url: null,
|
37
35
|
ca_cert: null,
|
38
36
|
client_cert: null,
|
39
|
-
client_key: null,
|
40
37
|
tls_validation: null,
|
41
38
|
proxy_url: null,
|
42
|
-
username: null,
|
43
|
-
password: null,
|
44
39
|
pulp_labels: null,
|
45
40
|
pulp_last_updated: null,
|
46
41
|
download_concurrency: null,
|
@@ -49,6 +44,7 @@ instance = PulpNpmClient::NpmNpmRemoteResponse.new(pulp_href: null,
|
|
49
44
|
connect_timeout: null,
|
50
45
|
sock_connect_timeout: null,
|
51
46
|
sock_read_timeout: null,
|
47
|
+
headers: null,
|
52
48
|
rate_limit: null)
|
53
49
|
```
|
54
50
|
|
data/docs/PatchednpmNpmRemote.md
CHANGED
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
|
|
10
10
|
**client_cert** | **String** | A PEM encoded client certificate used for authentication. | [optional]
|
11
11
|
**client_key** | **String** | A PEM encoded private key used for authentication. | [optional]
|
12
12
|
**tls_validation** | **Boolean** | If True, TLS peer validation must be performed. | [optional]
|
13
|
-
**proxy_url** | **String** | The proxy URL. Format: scheme://
|
13
|
+
**proxy_url** | **String** | The proxy URL. Format: scheme://host:port | [optional]
|
14
|
+
**proxy_username** | **String** | The username to authenticte to the proxy. | [optional]
|
15
|
+
**proxy_password** | **String** | The password to authenticte to the proxy. | [optional]
|
14
16
|
**username** | **String** | The username to be used for authentication when syncing. | [optional]
|
15
17
|
**password** | **String** | The password to be used for authentication when syncing. | [optional]
|
16
18
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
@@ -20,6 +22,7 @@ Name | Type | Description | Notes
|
|
20
22
|
**connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
|
21
23
|
**sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
|
22
24
|
**sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
|
25
|
+
**headers** | **Array<Object>** | Headers for aiohttp.Clientsession | [optional]
|
23
26
|
**rate_limit** | **Integer** | Limits total download rate in requests per second | [optional]
|
24
27
|
|
25
28
|
## Code Sample
|
@@ -34,6 +37,8 @@ instance = PulpNpmClient::PatchednpmNpmRemote.new(name: null,
|
|
34
37
|
client_key: null,
|
35
38
|
tls_validation: null,
|
36
39
|
proxy_url: null,
|
40
|
+
proxy_username: null,
|
41
|
+
proxy_password: null,
|
37
42
|
username: null,
|
38
43
|
password: null,
|
39
44
|
pulp_labels: null,
|
@@ -43,6 +48,7 @@ instance = PulpNpmClient::PatchednpmNpmRemote.new(name: null,
|
|
43
48
|
connect_timeout: null,
|
44
49
|
sock_connect_timeout: null,
|
45
50
|
sock_read_timeout: null,
|
51
|
+
headers: null,
|
46
52
|
rate_limit: null)
|
47
53
|
```
|
48
54
|
|
@@ -33,9 +33,15 @@ module PulpNpmClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpNpmClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -75,6 +84,8 @@ module PulpNpmClient
|
|
75
84
|
:'client_key' => :'client_key',
|
76
85
|
:'tls_validation' => :'tls_validation',
|
77
86
|
:'proxy_url' => :'proxy_url',
|
87
|
+
:'proxy_username' => :'proxy_username',
|
88
|
+
:'proxy_password' => :'proxy_password',
|
78
89
|
:'username' => :'username',
|
79
90
|
:'password' => :'password',
|
80
91
|
:'pulp_labels' => :'pulp_labels',
|
@@ -84,6 +95,7 @@ module PulpNpmClient
|
|
84
95
|
:'connect_timeout' => :'connect_timeout',
|
85
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
86
97
|
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'headers' => :'headers',
|
87
99
|
:'rate_limit' => :'rate_limit'
|
88
100
|
}
|
89
101
|
end
|
@@ -98,6 +110,8 @@ module PulpNpmClient
|
|
98
110
|
:'client_key' => :'String',
|
99
111
|
:'tls_validation' => :'Boolean',
|
100
112
|
:'proxy_url' => :'String',
|
113
|
+
:'proxy_username' => :'String',
|
114
|
+
:'proxy_password' => :'String',
|
101
115
|
:'username' => :'String',
|
102
116
|
:'password' => :'String',
|
103
117
|
:'pulp_labels' => :'Object',
|
@@ -107,6 +121,7 @@ module PulpNpmClient
|
|
107
121
|
:'connect_timeout' => :'Float',
|
108
122
|
:'sock_connect_timeout' => :'Float',
|
109
123
|
:'sock_read_timeout' => :'Float',
|
124
|
+
:'headers' => :'Array<Object>',
|
110
125
|
:'rate_limit' => :'Integer'
|
111
126
|
}
|
112
127
|
end
|
@@ -118,6 +133,8 @@ module PulpNpmClient
|
|
118
133
|
:'client_cert',
|
119
134
|
:'client_key',
|
120
135
|
:'proxy_url',
|
136
|
+
:'proxy_username',
|
137
|
+
:'proxy_password',
|
121
138
|
:'username',
|
122
139
|
:'password',
|
123
140
|
:'total_timeout',
|
@@ -171,6 +188,14 @@ module PulpNpmClient
|
|
171
188
|
self.proxy_url = attributes[:'proxy_url']
|
172
189
|
end
|
173
190
|
|
191
|
+
if attributes.key?(:'proxy_username')
|
192
|
+
self.proxy_username = attributes[:'proxy_username']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'proxy_password')
|
196
|
+
self.proxy_password = attributes[:'proxy_password']
|
197
|
+
end
|
198
|
+
|
174
199
|
if attributes.key?(:'username')
|
175
200
|
self.username = attributes[:'username']
|
176
201
|
end
|
@@ -207,6 +232,12 @@ module PulpNpmClient
|
|
207
232
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
208
233
|
end
|
209
234
|
|
235
|
+
if attributes.key?(:'headers')
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
237
|
+
self.headers = value
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
210
241
|
if attributes.key?(:'rate_limit')
|
211
242
|
self.rate_limit = attributes[:'rate_limit']
|
212
243
|
end
|
@@ -322,6 +353,8 @@ module PulpNpmClient
|
|
322
353
|
client_key == o.client_key &&
|
323
354
|
tls_validation == o.tls_validation &&
|
324
355
|
proxy_url == o.proxy_url &&
|
356
|
+
proxy_username == o.proxy_username &&
|
357
|
+
proxy_password == o.proxy_password &&
|
325
358
|
username == o.username &&
|
326
359
|
password == o.password &&
|
327
360
|
pulp_labels == o.pulp_labels &&
|
@@ -331,6 +364,7 @@ module PulpNpmClient
|
|
331
364
|
connect_timeout == o.connect_timeout &&
|
332
365
|
sock_connect_timeout == o.sock_connect_timeout &&
|
333
366
|
sock_read_timeout == o.sock_read_timeout &&
|
367
|
+
headers == o.headers &&
|
334
368
|
rate_limit == o.rate_limit
|
335
369
|
end
|
336
370
|
|
@@ -343,7 +377,7 @@ module PulpNpmClient
|
|
343
377
|
# Calculates hash code according to all attributes.
|
344
378
|
# @return [Integer] Hash code
|
345
379
|
def hash
|
346
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
|
380
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
347
381
|
end
|
348
382
|
|
349
383
|
# Builds the object from hash
|
@@ -32,21 +32,12 @@ module PulpNpmClient
|
|
32
32
|
# A PEM encoded client certificate used for authentication.
|
33
33
|
attr_accessor :client_cert
|
34
34
|
|
35
|
-
# A PEM encoded private key used for authentication.
|
36
|
-
attr_accessor :client_key
|
37
|
-
|
38
35
|
# If True, TLS peer validation must be performed.
|
39
36
|
attr_accessor :tls_validation
|
40
37
|
|
41
|
-
# The proxy URL. Format: scheme://
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
42
39
|
attr_accessor :proxy_url
|
43
40
|
|
44
|
-
# The username to be used for authentication when syncing.
|
45
|
-
attr_accessor :username
|
46
|
-
|
47
|
-
# The password to be used for authentication when syncing.
|
48
|
-
attr_accessor :password
|
49
|
-
|
50
41
|
attr_accessor :pulp_labels
|
51
42
|
|
52
43
|
# Timestamp of the most recent update of the remote.
|
@@ -70,6 +61,9 @@ module PulpNpmClient
|
|
70
61
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
62
|
attr_accessor :sock_read_timeout
|
72
63
|
|
64
|
+
# Headers for aiohttp.Clientsession
|
65
|
+
attr_accessor :headers
|
66
|
+
|
73
67
|
# Limits total download rate in requests per second
|
74
68
|
attr_accessor :rate_limit
|
75
69
|
|
@@ -82,11 +76,8 @@ module PulpNpmClient
|
|
82
76
|
:'url' => :'url',
|
83
77
|
:'ca_cert' => :'ca_cert',
|
84
78
|
:'client_cert' => :'client_cert',
|
85
|
-
:'client_key' => :'client_key',
|
86
79
|
:'tls_validation' => :'tls_validation',
|
87
80
|
:'proxy_url' => :'proxy_url',
|
88
|
-
:'username' => :'username',
|
89
|
-
:'password' => :'password',
|
90
81
|
:'pulp_labels' => :'pulp_labels',
|
91
82
|
:'pulp_last_updated' => :'pulp_last_updated',
|
92
83
|
:'download_concurrency' => :'download_concurrency',
|
@@ -95,6 +86,7 @@ module PulpNpmClient
|
|
95
86
|
:'connect_timeout' => :'connect_timeout',
|
96
87
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
97
88
|
:'sock_read_timeout' => :'sock_read_timeout',
|
89
|
+
:'headers' => :'headers',
|
98
90
|
:'rate_limit' => :'rate_limit'
|
99
91
|
}
|
100
92
|
end
|
@@ -108,11 +100,8 @@ module PulpNpmClient
|
|
108
100
|
:'url' => :'String',
|
109
101
|
:'ca_cert' => :'String',
|
110
102
|
:'client_cert' => :'String',
|
111
|
-
:'client_key' => :'String',
|
112
103
|
:'tls_validation' => :'Boolean',
|
113
104
|
:'proxy_url' => :'String',
|
114
|
-
:'username' => :'String',
|
115
|
-
:'password' => :'String',
|
116
105
|
:'pulp_labels' => :'Object',
|
117
106
|
:'pulp_last_updated' => :'DateTime',
|
118
107
|
:'download_concurrency' => :'Integer',
|
@@ -121,6 +110,7 @@ module PulpNpmClient
|
|
121
110
|
:'connect_timeout' => :'Float',
|
122
111
|
:'sock_connect_timeout' => :'Float',
|
123
112
|
:'sock_read_timeout' => :'Float',
|
113
|
+
:'headers' => :'Array<Object>',
|
124
114
|
:'rate_limit' => :'Integer'
|
125
115
|
}
|
126
116
|
end
|
@@ -130,10 +120,7 @@ module PulpNpmClient
|
|
130
120
|
Set.new([
|
131
121
|
:'ca_cert',
|
132
122
|
:'client_cert',
|
133
|
-
:'client_key',
|
134
123
|
:'proxy_url',
|
135
|
-
:'username',
|
136
|
-
:'password',
|
137
124
|
:'total_timeout',
|
138
125
|
:'connect_timeout',
|
139
126
|
:'sock_connect_timeout',
|
@@ -181,10 +168,6 @@ module PulpNpmClient
|
|
181
168
|
self.client_cert = attributes[:'client_cert']
|
182
169
|
end
|
183
170
|
|
184
|
-
if attributes.key?(:'client_key')
|
185
|
-
self.client_key = attributes[:'client_key']
|
186
|
-
end
|
187
|
-
|
188
171
|
if attributes.key?(:'tls_validation')
|
189
172
|
self.tls_validation = attributes[:'tls_validation']
|
190
173
|
end
|
@@ -193,14 +176,6 @@ module PulpNpmClient
|
|
193
176
|
self.proxy_url = attributes[:'proxy_url']
|
194
177
|
end
|
195
178
|
|
196
|
-
if attributes.key?(:'username')
|
197
|
-
self.username = attributes[:'username']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.key?(:'password')
|
201
|
-
self.password = attributes[:'password']
|
202
|
-
end
|
203
|
-
|
204
179
|
if attributes.key?(:'pulp_labels')
|
205
180
|
self.pulp_labels = attributes[:'pulp_labels']
|
206
181
|
end
|
@@ -233,6 +208,12 @@ module PulpNpmClient
|
|
233
208
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
234
209
|
end
|
235
210
|
|
211
|
+
if attributes.key?(:'headers')
|
212
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
213
|
+
self.headers = value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
236
217
|
if attributes.key?(:'rate_limit')
|
237
218
|
self.rate_limit = attributes[:'rate_limit']
|
238
219
|
end
|
@@ -347,11 +328,8 @@ module PulpNpmClient
|
|
347
328
|
url == o.url &&
|
348
329
|
ca_cert == o.ca_cert &&
|
349
330
|
client_cert == o.client_cert &&
|
350
|
-
client_key == o.client_key &&
|
351
331
|
tls_validation == o.tls_validation &&
|
352
332
|
proxy_url == o.proxy_url &&
|
353
|
-
username == o.username &&
|
354
|
-
password == o.password &&
|
355
333
|
pulp_labels == o.pulp_labels &&
|
356
334
|
pulp_last_updated == o.pulp_last_updated &&
|
357
335
|
download_concurrency == o.download_concurrency &&
|
@@ -360,6 +338,7 @@ module PulpNpmClient
|
|
360
338
|
connect_timeout == o.connect_timeout &&
|
361
339
|
sock_connect_timeout == o.sock_connect_timeout &&
|
362
340
|
sock_read_timeout == o.sock_read_timeout &&
|
341
|
+
headers == o.headers &&
|
363
342
|
rate_limit == o.rate_limit
|
364
343
|
end
|
365
344
|
|
@@ -372,7 +351,7 @@ module PulpNpmClient
|
|
372
351
|
# Calculates hash code according to all attributes.
|
373
352
|
# @return [Integer] Hash code
|
374
353
|
def hash
|
375
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert,
|
354
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
376
355
|
end
|
377
356
|
|
378
357
|
# Builds the object from hash
|
@@ -33,9 +33,15 @@ module PulpNpmClient
|
|
33
33
|
# If True, TLS peer validation must be performed.
|
34
34
|
attr_accessor :tls_validation
|
35
35
|
|
36
|
-
# The proxy URL. Format: scheme://
|
36
|
+
# The proxy URL. Format: scheme://host:port
|
37
37
|
attr_accessor :proxy_url
|
38
38
|
|
39
|
+
# The username to authenticte to the proxy.
|
40
|
+
attr_accessor :proxy_username
|
41
|
+
|
42
|
+
# The password to authenticte to the proxy.
|
43
|
+
attr_accessor :proxy_password
|
44
|
+
|
39
45
|
# The username to be used for authentication when syncing.
|
40
46
|
attr_accessor :username
|
41
47
|
|
@@ -62,6 +68,9 @@ module PulpNpmClient
|
|
62
68
|
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
63
69
|
attr_accessor :sock_read_timeout
|
64
70
|
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
65
74
|
# Limits total download rate in requests per second
|
66
75
|
attr_accessor :rate_limit
|
67
76
|
|
@@ -75,6 +84,8 @@ module PulpNpmClient
|
|
75
84
|
:'client_key' => :'client_key',
|
76
85
|
:'tls_validation' => :'tls_validation',
|
77
86
|
:'proxy_url' => :'proxy_url',
|
87
|
+
:'proxy_username' => :'proxy_username',
|
88
|
+
:'proxy_password' => :'proxy_password',
|
78
89
|
:'username' => :'username',
|
79
90
|
:'password' => :'password',
|
80
91
|
:'pulp_labels' => :'pulp_labels',
|
@@ -84,6 +95,7 @@ module PulpNpmClient
|
|
84
95
|
:'connect_timeout' => :'connect_timeout',
|
85
96
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
86
97
|
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'headers' => :'headers',
|
87
99
|
:'rate_limit' => :'rate_limit'
|
88
100
|
}
|
89
101
|
end
|
@@ -98,6 +110,8 @@ module PulpNpmClient
|
|
98
110
|
:'client_key' => :'String',
|
99
111
|
:'tls_validation' => :'Boolean',
|
100
112
|
:'proxy_url' => :'String',
|
113
|
+
:'proxy_username' => :'String',
|
114
|
+
:'proxy_password' => :'String',
|
101
115
|
:'username' => :'String',
|
102
116
|
:'password' => :'String',
|
103
117
|
:'pulp_labels' => :'Object',
|
@@ -107,6 +121,7 @@ module PulpNpmClient
|
|
107
121
|
:'connect_timeout' => :'Float',
|
108
122
|
:'sock_connect_timeout' => :'Float',
|
109
123
|
:'sock_read_timeout' => :'Float',
|
124
|
+
:'headers' => :'Array<Object>',
|
110
125
|
:'rate_limit' => :'Integer'
|
111
126
|
}
|
112
127
|
end
|
@@ -118,6 +133,8 @@ module PulpNpmClient
|
|
118
133
|
:'client_cert',
|
119
134
|
:'client_key',
|
120
135
|
:'proxy_url',
|
136
|
+
:'proxy_username',
|
137
|
+
:'proxy_password',
|
121
138
|
:'username',
|
122
139
|
:'password',
|
123
140
|
:'total_timeout',
|
@@ -171,6 +188,14 @@ module PulpNpmClient
|
|
171
188
|
self.proxy_url = attributes[:'proxy_url']
|
172
189
|
end
|
173
190
|
|
191
|
+
if attributes.key?(:'proxy_username')
|
192
|
+
self.proxy_username = attributes[:'proxy_username']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'proxy_password')
|
196
|
+
self.proxy_password = attributes[:'proxy_password']
|
197
|
+
end
|
198
|
+
|
174
199
|
if attributes.key?(:'username')
|
175
200
|
self.username = attributes[:'username']
|
176
201
|
end
|
@@ -207,6 +232,12 @@ module PulpNpmClient
|
|
207
232
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
208
233
|
end
|
209
234
|
|
235
|
+
if attributes.key?(:'headers')
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
237
|
+
self.headers = value
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
210
241
|
if attributes.key?(:'rate_limit')
|
211
242
|
self.rate_limit = attributes[:'rate_limit']
|
212
243
|
end
|
@@ -312,6 +343,8 @@ module PulpNpmClient
|
|
312
343
|
client_key == o.client_key &&
|
313
344
|
tls_validation == o.tls_validation &&
|
314
345
|
proxy_url == o.proxy_url &&
|
346
|
+
proxy_username == o.proxy_username &&
|
347
|
+
proxy_password == o.proxy_password &&
|
315
348
|
username == o.username &&
|
316
349
|
password == o.password &&
|
317
350
|
pulp_labels == o.pulp_labels &&
|
@@ -321,6 +354,7 @@ module PulpNpmClient
|
|
321
354
|
connect_timeout == o.connect_timeout &&
|
322
355
|
sock_connect_timeout == o.sock_connect_timeout &&
|
323
356
|
sock_read_timeout == o.sock_read_timeout &&
|
357
|
+
headers == o.headers &&
|
324
358
|
rate_limit == o.rate_limit
|
325
359
|
end
|
326
360
|
|
@@ -333,7 +367,7 @@ module PulpNpmClient
|
|
333
367
|
# Calculates hash code according to all attributes.
|
334
368
|
# @return [Integer] Hash code
|
335
369
|
def hash
|
336
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit].hash
|
370
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
|
337
371
|
end
|
338
372
|
|
339
373
|
# Builds the object from hash
|
@@ -68,12 +68,6 @@ describe 'NpmNpmRemoteResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "client_key"' do
|
72
|
-
it 'should work' do
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
71
|
describe 'test attribute "tls_validation"' do
|
78
72
|
it 'should work' do
|
79
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -86,18 +80,6 @@ describe 'NpmNpmRemoteResponse' do
|
|
86
80
|
end
|
87
81
|
end
|
88
82
|
|
89
|
-
describe 'test attribute "username"' do
|
90
|
-
it 'should work' do
|
91
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'test attribute "password"' do
|
96
|
-
it 'should work' do
|
97
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
-
end
|
99
|
-
end
|
100
|
-
|
101
83
|
describe 'test attribute "pulp_labels"' do
|
102
84
|
it 'should work' do
|
103
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -146,6 +128,12 @@ describe 'NpmNpmRemoteResponse' do
|
|
146
128
|
end
|
147
129
|
end
|
148
130
|
|
131
|
+
describe 'test attribute "headers"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
149
137
|
describe 'test attribute "rate_limit"' do
|
150
138
|
it 'should work' do
|
151
139
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -74,6 +74,18 @@ describe 'NpmNpmRemote' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe 'test attribute "proxy_username"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "proxy_password"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
77
89
|
describe 'test attribute "username"' do
|
78
90
|
it 'should work' do
|
79
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -128,6 +140,12 @@ describe 'NpmNpmRemote' do
|
|
128
140
|
end
|
129
141
|
end
|
130
142
|
|
143
|
+
describe 'test attribute "headers"' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
131
149
|
describe 'test attribute "rate_limit"' do
|
132
150
|
it 'should work' do
|
133
151
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -74,6 +74,18 @@ describe 'PatchednpmNpmRemote' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
describe 'test attribute "proxy_username"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "proxy_password"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
77
89
|
describe 'test attribute "username"' do
|
78
90
|
it 'should work' do
|
79
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -128,6 +140,12 @@ describe 'PatchednpmNpmRemote' do
|
|
128
140
|
end
|
129
141
|
end
|
130
142
|
|
143
|
+
describe 'test attribute "headers"' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
131
149
|
describe 'test attribute "rate_limit"' do
|
132
150
|
it 'should work' do
|
133
151
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_npm_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0a3.
|
4
|
+
version: 0.1.0a3.dev1615174154
|
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-03-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|