pulp_npm_client 0.1.0a2 → 0.1.0a3
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/ContentPackagesApi.md +10 -10
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DistributionsNpmApi.md +20 -12
- data/docs/NpmNpmDistribution.md +2 -0
- data/docs/NpmNpmDistributionResponse.md +2 -0
- data/docs/NpmNpmRemote.md +20 -2
- data/docs/NpmNpmRemoteResponse.md +16 -8
- data/docs/NpmNpmRepository.md +3 -1
- data/docs/NpmNpmRepositoryResponse.md +2 -0
- data/docs/PatchednpmNpmDistribution.md +2 -0
- data/docs/PatchednpmNpmRemote.md +20 -2
- data/docs/PatchednpmNpmRepository.md +3 -1
- data/docs/RemotesNpmApi.md +24 -16
- data/docs/RepositoriesNpmApi.md +12 -4
- data/docs/RepositoriesNpmVersionsApi.md +30 -30
- data/lib/pulp_npm_client/api/content_packages_api.rb +11 -11
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +26 -14
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +30 -18
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +17 -5
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +34 -34
- data/lib/pulp_npm_client/models/content_summary.rb +12 -6
- data/lib/pulp_npm_client/models/content_summary_response.rb +12 -6
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +10 -1
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +10 -1
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +163 -5
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +138 -35
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +10 -1
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +10 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +10 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +163 -5
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +10 -1
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +5 -5
- data/spec/api/distributions_npm_api_spec.rb +10 -6
- data/spec/api/remotes_npm_api_spec.rb +12 -8
- data/spec/api/repositories_npm_api_spec.rb +6 -2
- data/spec/api/repositories_npm_versions_api_spec.rb +16 -16
- data/spec/models/npm_npm_distribution_response_spec.rb +6 -0
- data/spec/models/npm_npm_distribution_spec.rb +6 -0
- data/spec/models/npm_npm_remote_response_spec.rb +32 -8
- data/spec/models/npm_npm_remote_spec.rb +54 -0
- data/spec/models/npm_npm_repository_response_spec.rb +6 -0
- data/spec/models/npm_npm_repository_spec.rb +6 -0
- data/spec/models/patchednpm_npm_distribution_spec.rb +6 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +54 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +6 -0
- metadata +23 -23
@@ -21,6 +21,8 @@ module PulpNpmClient
|
|
21
21
|
# An optional content-guard.
|
22
22
|
attr_accessor :content_guard
|
23
23
|
|
24
|
+
attr_accessor :pulp_labels
|
25
|
+
|
24
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
25
27
|
attr_accessor :name
|
26
28
|
|
@@ -35,6 +37,7 @@ module PulpNpmClient
|
|
35
37
|
{
|
36
38
|
:'base_path' => :'base_path',
|
37
39
|
:'content_guard' => :'content_guard',
|
40
|
+
:'pulp_labels' => :'pulp_labels',
|
38
41
|
:'name' => :'name',
|
39
42
|
:'repository' => :'repository',
|
40
43
|
:'repository_version' => :'repository_version'
|
@@ -46,6 +49,7 @@ module PulpNpmClient
|
|
46
49
|
{
|
47
50
|
:'base_path' => :'String',
|
48
51
|
:'content_guard' => :'String',
|
52
|
+
:'pulp_labels' => :'Object',
|
49
53
|
:'name' => :'String',
|
50
54
|
:'repository' => :'String',
|
51
55
|
:'repository_version' => :'String'
|
@@ -84,6 +88,10 @@ module PulpNpmClient
|
|
84
88
|
self.content_guard = attributes[:'content_guard']
|
85
89
|
end
|
86
90
|
|
91
|
+
if attributes.key?(:'pulp_labels')
|
92
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
93
|
+
end
|
94
|
+
|
87
95
|
if attributes.key?(:'name')
|
88
96
|
self.name = attributes[:'name']
|
89
97
|
end
|
@@ -117,6 +125,7 @@ module PulpNpmClient
|
|
117
125
|
self.class == o.class &&
|
118
126
|
base_path == o.base_path &&
|
119
127
|
content_guard == o.content_guard &&
|
128
|
+
pulp_labels == o.pulp_labels &&
|
120
129
|
name == o.name &&
|
121
130
|
repository == o.repository &&
|
122
131
|
repository_version == o.repository_version
|
@@ -131,7 +140,7 @@ module PulpNpmClient
|
|
131
140
|
# Calculates hash code according to all attributes.
|
132
141
|
# @return [Integer] Hash code
|
133
142
|
def hash
|
134
|
-
[base_path, content_guard, name, repository, repository_version].hash
|
143
|
+
[base_path, content_guard, pulp_labels, name, repository, repository_version].hash
|
135
144
|
end
|
136
145
|
|
137
146
|
# Builds the object from hash
|
@@ -33,21 +33,47 @@ 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
|
|
42
48
|
# The password to be used for authentication when syncing.
|
43
49
|
attr_accessor :password
|
44
50
|
|
51
|
+
attr_accessor :pulp_labels
|
52
|
+
|
45
53
|
# Total number of simultaneous connections.
|
46
54
|
attr_accessor :download_concurrency
|
47
55
|
|
48
56
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
49
57
|
attr_accessor :policy
|
50
58
|
|
59
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
60
|
+
attr_accessor :total_timeout
|
61
|
+
|
62
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
63
|
+
attr_accessor :connect_timeout
|
64
|
+
|
65
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
66
|
+
attr_accessor :sock_connect_timeout
|
67
|
+
|
68
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
69
|
+
attr_accessor :sock_read_timeout
|
70
|
+
|
71
|
+
# Headers for aiohttp.Clientsession
|
72
|
+
attr_accessor :headers
|
73
|
+
|
74
|
+
# Limits total download rate in requests per second
|
75
|
+
attr_accessor :rate_limit
|
76
|
+
|
51
77
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
78
|
def self.attribute_map
|
53
79
|
{
|
@@ -58,10 +84,19 @@ module PulpNpmClient
|
|
58
84
|
:'client_key' => :'client_key',
|
59
85
|
:'tls_validation' => :'tls_validation',
|
60
86
|
:'proxy_url' => :'proxy_url',
|
87
|
+
:'proxy_username' => :'proxy_username',
|
88
|
+
:'proxy_password' => :'proxy_password',
|
61
89
|
:'username' => :'username',
|
62
90
|
:'password' => :'password',
|
91
|
+
:'pulp_labels' => :'pulp_labels',
|
63
92
|
:'download_concurrency' => :'download_concurrency',
|
64
|
-
:'policy' => :'policy'
|
93
|
+
:'policy' => :'policy',
|
94
|
+
:'total_timeout' => :'total_timeout',
|
95
|
+
:'connect_timeout' => :'connect_timeout',
|
96
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
97
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
+
:'headers' => :'headers',
|
99
|
+
:'rate_limit' => :'rate_limit'
|
65
100
|
}
|
66
101
|
end
|
67
102
|
|
@@ -75,10 +110,19 @@ module PulpNpmClient
|
|
75
110
|
:'client_key' => :'String',
|
76
111
|
:'tls_validation' => :'Boolean',
|
77
112
|
:'proxy_url' => :'String',
|
113
|
+
:'proxy_username' => :'String',
|
114
|
+
:'proxy_password' => :'String',
|
78
115
|
:'username' => :'String',
|
79
116
|
:'password' => :'String',
|
117
|
+
:'pulp_labels' => :'Object',
|
80
118
|
:'download_concurrency' => :'Integer',
|
81
|
-
:'policy' => :'PolicyEnum'
|
119
|
+
:'policy' => :'PolicyEnum',
|
120
|
+
:'total_timeout' => :'Float',
|
121
|
+
:'connect_timeout' => :'Float',
|
122
|
+
:'sock_connect_timeout' => :'Float',
|
123
|
+
:'sock_read_timeout' => :'Float',
|
124
|
+
:'headers' => :'Array<Object>',
|
125
|
+
:'rate_limit' => :'Integer'
|
82
126
|
}
|
83
127
|
end
|
84
128
|
|
@@ -89,8 +133,15 @@ module PulpNpmClient
|
|
89
133
|
:'client_cert',
|
90
134
|
:'client_key',
|
91
135
|
:'proxy_url',
|
136
|
+
:'proxy_username',
|
137
|
+
:'proxy_password',
|
92
138
|
:'username',
|
93
139
|
:'password',
|
140
|
+
:'total_timeout',
|
141
|
+
:'connect_timeout',
|
142
|
+
:'sock_connect_timeout',
|
143
|
+
:'sock_read_timeout',
|
144
|
+
:'rate_limit'
|
94
145
|
])
|
95
146
|
end
|
96
147
|
|
@@ -137,6 +188,14 @@ module PulpNpmClient
|
|
137
188
|
self.proxy_url = attributes[:'proxy_url']
|
138
189
|
end
|
139
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
|
+
|
140
199
|
if attributes.key?(:'username')
|
141
200
|
self.username = attributes[:'username']
|
142
201
|
end
|
@@ -145,6 +204,10 @@ module PulpNpmClient
|
|
145
204
|
self.password = attributes[:'password']
|
146
205
|
end
|
147
206
|
|
207
|
+
if attributes.key?(:'pulp_labels')
|
208
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
209
|
+
end
|
210
|
+
|
148
211
|
if attributes.key?(:'download_concurrency')
|
149
212
|
self.download_concurrency = attributes[:'download_concurrency']
|
150
213
|
end
|
@@ -152,6 +215,32 @@ module PulpNpmClient
|
|
152
215
|
if attributes.key?(:'policy')
|
153
216
|
self.policy = attributes[:'policy']
|
154
217
|
end
|
218
|
+
|
219
|
+
if attributes.key?(:'total_timeout')
|
220
|
+
self.total_timeout = attributes[:'total_timeout']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.key?(:'connect_timeout')
|
224
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.key?(:'sock_connect_timeout')
|
228
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
229
|
+
end
|
230
|
+
|
231
|
+
if attributes.key?(:'sock_read_timeout')
|
232
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
233
|
+
end
|
234
|
+
|
235
|
+
if attributes.key?(:'headers')
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
237
|
+
self.headers = value
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.key?(:'rate_limit')
|
242
|
+
self.rate_limit = attributes[:'rate_limit']
|
243
|
+
end
|
155
244
|
end
|
156
245
|
|
157
246
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -162,6 +251,22 @@ module PulpNpmClient
|
|
162
251
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
163
252
|
end
|
164
253
|
|
254
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
255
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
256
|
+
end
|
257
|
+
|
258
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
259
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
260
|
+
end
|
261
|
+
|
262
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
264
|
+
end
|
265
|
+
|
266
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
267
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
268
|
+
end
|
269
|
+
|
165
270
|
invalid_properties
|
166
271
|
end
|
167
272
|
|
@@ -169,6 +274,10 @@ module PulpNpmClient
|
|
169
274
|
# @return true if the model is valid
|
170
275
|
def valid?
|
171
276
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
277
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
278
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
279
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
280
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
172
281
|
true
|
173
282
|
end
|
174
283
|
|
@@ -182,6 +291,46 @@ module PulpNpmClient
|
|
182
291
|
@download_concurrency = download_concurrency
|
183
292
|
end
|
184
293
|
|
294
|
+
# Custom attribute writer method with validation
|
295
|
+
# @param [Object] total_timeout Value to be assigned
|
296
|
+
def total_timeout=(total_timeout)
|
297
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
298
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
299
|
+
end
|
300
|
+
|
301
|
+
@total_timeout = total_timeout
|
302
|
+
end
|
303
|
+
|
304
|
+
# Custom attribute writer method with validation
|
305
|
+
# @param [Object] connect_timeout Value to be assigned
|
306
|
+
def connect_timeout=(connect_timeout)
|
307
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
308
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
309
|
+
end
|
310
|
+
|
311
|
+
@connect_timeout = connect_timeout
|
312
|
+
end
|
313
|
+
|
314
|
+
# Custom attribute writer method with validation
|
315
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
316
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
317
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
318
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
319
|
+
end
|
320
|
+
|
321
|
+
@sock_connect_timeout = sock_connect_timeout
|
322
|
+
end
|
323
|
+
|
324
|
+
# Custom attribute writer method with validation
|
325
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
326
|
+
def sock_read_timeout=(sock_read_timeout)
|
327
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
328
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
329
|
+
end
|
330
|
+
|
331
|
+
@sock_read_timeout = sock_read_timeout
|
332
|
+
end
|
333
|
+
|
185
334
|
# Checks equality by comparing each attribute.
|
186
335
|
# @param [Object] Object to be compared
|
187
336
|
def ==(o)
|
@@ -194,10 +343,19 @@ module PulpNpmClient
|
|
194
343
|
client_key == o.client_key &&
|
195
344
|
tls_validation == o.tls_validation &&
|
196
345
|
proxy_url == o.proxy_url &&
|
346
|
+
proxy_username == o.proxy_username &&
|
347
|
+
proxy_password == o.proxy_password &&
|
197
348
|
username == o.username &&
|
198
349
|
password == o.password &&
|
350
|
+
pulp_labels == o.pulp_labels &&
|
199
351
|
download_concurrency == o.download_concurrency &&
|
200
|
-
policy == o.policy
|
352
|
+
policy == o.policy &&
|
353
|
+
total_timeout == o.total_timeout &&
|
354
|
+
connect_timeout == o.connect_timeout &&
|
355
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
356
|
+
sock_read_timeout == o.sock_read_timeout &&
|
357
|
+
headers == o.headers &&
|
358
|
+
rate_limit == o.rate_limit
|
201
359
|
end
|
202
360
|
|
203
361
|
# @see the `==` method
|
@@ -209,7 +367,7 @@ module PulpNpmClient
|
|
209
367
|
# Calculates hash code according to all attributes.
|
210
368
|
# @return [Integer] Hash code
|
211
369
|
def hash
|
212
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].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
|
213
371
|
end
|
214
372
|
|
215
373
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module PulpNpmClient
|
16
16
|
# A Serializer for NpmRepository. Add any new fields if defined on NpmRepository. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = platform.RepositorySerializer.Meta.validators + [myValidator1, myValidator2]
|
17
17
|
class PatchednpmNpmRepository
|
18
|
+
attr_accessor :pulp_labels
|
19
|
+
|
18
20
|
# A unique name for this repository.
|
19
21
|
attr_accessor :name
|
20
22
|
|
@@ -26,6 +28,7 @@ module PulpNpmClient
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
31
|
+
:'pulp_labels' => :'pulp_labels',
|
29
32
|
:'name' => :'name',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'remote' => :'remote'
|
@@ -35,6 +38,7 @@ module PulpNpmClient
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
41
|
+
:'pulp_labels' => :'Object',
|
38
42
|
:'name' => :'String',
|
39
43
|
:'description' => :'String',
|
40
44
|
:'remote' => :'String'
|
@@ -64,6 +68,10 @@ module PulpNpmClient
|
|
64
68
|
h[k.to_sym] = v
|
65
69
|
}
|
66
70
|
|
71
|
+
if attributes.key?(:'pulp_labels')
|
72
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
73
|
+
end
|
74
|
+
|
67
75
|
if attributes.key?(:'name')
|
68
76
|
self.name = attributes[:'name']
|
69
77
|
end
|
@@ -95,6 +103,7 @@ module PulpNpmClient
|
|
95
103
|
def ==(o)
|
96
104
|
return true if self.equal?(o)
|
97
105
|
self.class == o.class &&
|
106
|
+
pulp_labels == o.pulp_labels &&
|
98
107
|
name == o.name &&
|
99
108
|
description == o.description &&
|
100
109
|
remote == o.remote
|
@@ -109,7 +118,7 @@ module PulpNpmClient
|
|
109
118
|
# Calculates hash code according to all attributes.
|
110
119
|
# @return [Integer] Hash code
|
111
120
|
def hash
|
112
|
-
[name, description, remote].hash
|
121
|
+
[pulp_labels, name, description, remote].hash
|
113
122
|
end
|
114
123
|
|
115
124
|
# Builds the object from hash
|
@@ -54,13 +54,13 @@ describe 'ContentPackagesApi' do
|
|
54
54
|
# A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
|
55
55
|
# @param [Hash] opts the optional parameters
|
56
56
|
# @option opts [Integer] :limit Number of results to return per page.
|
57
|
-
# @option opts [String] :name name
|
58
|
-
# @option opts [String] :name__in
|
57
|
+
# @option opts [String] :name Filter results where name matches value
|
58
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
59
59
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
60
60
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
61
|
-
# @option opts [String] :repository_version
|
62
|
-
# @option opts [String] :repository_version_added
|
63
|
-
# @option opts [String] :repository_version_removed
|
61
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
62
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
63
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
64
64
|
# @option opts [String] :fields A list of fields to include in the response.
|
65
65
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
66
66
|
# @return [PaginatednpmPackageResponseList]
|
@@ -60,15 +60,19 @@ describe 'DistributionsNpmApi' do
|
|
60
60
|
# List npm distributions
|
61
61
|
# ViewSet for NPM Distributions.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :base_path
|
64
|
-
# @option opts [String] :base_path__contains
|
65
|
-
# @option opts [String] :base_path__icontains
|
66
|
-
# @option opts [String] :base_path__in
|
63
|
+
# @option opts [String] :base_path
|
64
|
+
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
65
|
+
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
66
|
+
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
67
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
-
# @option opts [String] :name
|
69
|
-
# @option opts [String] :
|
68
|
+
# @option opts [String] :name
|
69
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
70
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
71
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
70
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
71
74
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
75
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
76
|
# @option opts [String] :fields A list of fields to include in the response.
|
73
77
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
74
78
|
# @return [PaginatednpmNpmDistributionResponseList]
|
@@ -61,16 +61,20 @@ describe 'RemotesNpmApi' do
|
|
61
61
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
65
|
-
# @option opts [String] :
|
64
|
+
# @option opts [String] :name
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
66
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
68
|
-
# @option opts [String] :
|
69
|
-
# @option opts [
|
70
|
-
# @option opts [
|
71
|
-
# @option opts [
|
72
|
-
# @option opts [
|
73
|
-
# @option opts [
|
71
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
|
+
# @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
|
73
|
+
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
74
|
+
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
75
|
+
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
76
|
+
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
77
|
+
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
74
78
|
# @option opts [String] :fields A list of fields to include in the response.
|
75
79
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
76
80
|
# @return [PaginatednpmNpmRemoteResponseList]
|
@@ -61,10 +61,14 @@ describe 'RepositoriesNpmApi' do
|
|
61
61
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
65
|
-
# @option opts [String] :
|
64
|
+
# @option opts [String] :name
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
66
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
70
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
71
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
68
72
|
# @option opts [String] :fields A list of fields to include in the response.
|
69
73
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
70
74
|
# @return [PaginatednpmNpmRepositoryResponseList]
|
@@ -34,7 +34,7 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
34
34
|
|
35
35
|
# unit tests for delete
|
36
36
|
# Delete a repository version
|
37
|
-
# Trigger an asynchronous task to delete a
|
37
|
+
# Trigger an asynchronous task to delete a repository version.
|
38
38
|
# @param npm_npm_repository_version_href
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [AsyncOperationResponse]
|
@@ -49,23 +49,23 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
49
49
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
50
50
|
# @param npm_npm_repository_href
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
|
-
# @option opts [String] :content
|
53
|
-
# @option opts [String] :content__in
|
52
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
53
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
54
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
55
|
-
# @option opts [
|
56
|
-
# @option opts [
|
57
|
-
# @option opts [
|
58
|
-
# @option opts [
|
59
|
-
# @option opts [
|
60
|
-
# @option opts [
|
55
|
+
# @option opts [Integer] :number
|
56
|
+
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
57
|
+
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
58
|
+
# @option opts [Integer] :number__lt Filter results where number is less than value
|
59
|
+
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
60
|
+
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
61
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
62
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
63
|
-
# @option opts [
|
64
|
-
# @option opts [
|
65
|
-
# @option opts [
|
66
|
-
# @option opts [
|
67
|
-
# @option opts [
|
68
|
-
# @option opts [
|
63
|
+
# @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
|
64
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
65
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
66
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
67
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
68
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
69
69
|
# @option opts [String] :fields A list of fields to include in the response.
|
70
70
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
71
71
|
# @return [PaginatedRepositoryVersionResponseList]
|
@@ -90,7 +90,7 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# unit tests for repair
|
93
|
-
# Trigger an asynchronous task to repair a
|
93
|
+
# Trigger an asynchronous task to repair a repository version.
|
94
94
|
# @param npm_npm_repository_version_href
|
95
95
|
# @param repository_version
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -62,6 +62,12 @@ describe 'NpmNpmDistributionResponse' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
describe 'test attribute "pulp_labels"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
65
71
|
describe 'test attribute "name"' do
|
66
72
|
it 'should work' do
|
67
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,6 +44,12 @@ describe 'NpmNpmDistribution' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "pulp_labels"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "name"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -68,49 +68,73 @@ describe 'NpmNpmRemoteResponse' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "tls_validation"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "proxy_url"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "pulp_labels"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "pulp_last_updated"' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "download_concurrency"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "policy"' do
|
102
102
|
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
describe 'test attribute "
|
107
|
+
describe 'test attribute "total_timeout"' do
|
108
108
|
it 'should work' do
|
109
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
describe 'test attribute "
|
113
|
+
describe 'test attribute "connect_timeout"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test attribute "sock_connect_timeout"' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'test attribute "sock_read_timeout"' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
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
|
+
|
137
|
+
describe 'test attribute "rate_limit"' do
|
114
138
|
it 'should work' do
|
115
139
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
140
|
end
|