pulp_npm_client 0.1.0a1.dev01599615493 → 0.1.0a1.dev01600047508
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 +22 -22
- data/docs/ContentPackagesApi.md +5 -5
- data/docs/DistributionsNpmApi.md +16 -64
- data/docs/RemotesNpmApi.md +30 -90
- data/docs/RepositoriesNpmApi.md +30 -54
- data/docs/RepositoriesNpmVersionsApi.md +15 -47
- data/lib/pulp_npm_client/api/content_packages_api.rb +6 -6
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +11 -74
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +37 -118
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +37 -64
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +18 -63
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +2 -2
- data/spec/api/distributions_npm_api_spec.rb +4 -25
- data/spec/api/remotes_npm_api_spec.rb +12 -39
- data/spec/api/repositories_npm_api_spec.rb +12 -21
- data/spec/api/repositories_npm_versions_api_spec.rb +6 -21
- metadata +2 -2
data/docs/RepositoriesNpmApi.md
CHANGED
@@ -4,20 +4,20 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
7
|
+
[**create4**](RepositoriesNpmApi.md#create4) | **POST** /pulp/api/v3/repositories/npm/npm/ | Create a npm repository
|
8
|
+
[**delete3**](RepositoriesNpmApi.md#delete3) | **DELETE** {npm_npm_repository_href} | Delete a npm repository
|
9
|
+
[**list4**](RepositoriesNpmApi.md#list4) | **GET** /pulp/api/v3/repositories/npm/npm/ | List npm repositorys
|
10
10
|
[**modify**](RepositoriesNpmApi.md#modify) | **POST** {npm_npm_repository_href}modify/ | Modify Repository Content
|
11
|
-
[**
|
12
|
-
[**
|
11
|
+
[**partial_update3**](RepositoriesNpmApi.md#partial_update3) | **PATCH** {npm_npm_repository_href} | Update a npm repository
|
12
|
+
[**read3**](RepositoriesNpmApi.md#read3) | **GET** {npm_npm_repository_href} | Inspect a npm repository
|
13
13
|
[**sync**](RepositoriesNpmApi.md#sync) | **POST** {npm_npm_repository_href}sync/ | Sync from remote
|
14
|
-
[**
|
14
|
+
[**update3**](RepositoriesNpmApi.md#update3) | **PUT** {npm_npm_repository_href} | Update a npm repository
|
15
15
|
|
16
16
|
|
17
17
|
|
18
|
-
##
|
18
|
+
## create4
|
19
19
|
|
20
|
-
> NpmNpmRepositoryResponse
|
20
|
+
> NpmNpmRepositoryResponse create4(npm_npm_repository)
|
21
21
|
|
22
22
|
Create a npm repository
|
23
23
|
|
@@ -40,10 +40,10 @@ npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
|
40
40
|
|
41
41
|
begin
|
42
42
|
#Create a npm repository
|
43
|
-
result = api_instance.
|
43
|
+
result = api_instance.create4(npm_npm_repository)
|
44
44
|
p result
|
45
45
|
rescue PulpNpmClient::ApiError => e
|
46
|
-
puts "Exception when calling RepositoriesNpmApi->
|
46
|
+
puts "Exception when calling RepositoriesNpmApi->create4: #{e}"
|
47
47
|
end
|
48
48
|
```
|
49
49
|
|
@@ -68,9 +68,9 @@ Name | Type | Description | Notes
|
|
68
68
|
- **Accept**: application/json
|
69
69
|
|
70
70
|
|
71
|
-
##
|
71
|
+
## delete3
|
72
72
|
|
73
|
-
> AsyncOperationResponse
|
73
|
+
> AsyncOperationResponse delete3(npm_npm_repository_href)
|
74
74
|
|
75
75
|
Delete a npm repository
|
76
76
|
|
@@ -90,18 +90,13 @@ end
|
|
90
90
|
|
91
91
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
92
92
|
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
93
|
-
opts = {
|
94
|
-
name: 'name_example', # String | name
|
95
|
-
name__in: 'name__in_example', # String | name__in
|
96
|
-
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
97
|
-
}
|
98
93
|
|
99
94
|
begin
|
100
95
|
#Delete a npm repository
|
101
|
-
result = api_instance.
|
96
|
+
result = api_instance.delete3(npm_npm_repository_href)
|
102
97
|
p result
|
103
98
|
rescue PulpNpmClient::ApiError => e
|
104
|
-
puts "Exception when calling RepositoriesNpmApi->
|
99
|
+
puts "Exception when calling RepositoriesNpmApi->delete3: #{e}"
|
105
100
|
end
|
106
101
|
```
|
107
102
|
|
@@ -111,9 +106,6 @@ end
|
|
111
106
|
Name | Type | Description | Notes
|
112
107
|
------------- | ------------- | ------------- | -------------
|
113
108
|
**npm_npm_repository_href** | **String**| |
|
114
|
-
**name** | **String**| name | [optional]
|
115
|
-
**name__in** | **String**| name__in | [optional]
|
116
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
117
109
|
|
118
110
|
### Return type
|
119
111
|
|
@@ -129,9 +121,9 @@ Name | Type | Description | Notes
|
|
129
121
|
- **Accept**: application/json
|
130
122
|
|
131
123
|
|
132
|
-
##
|
124
|
+
## list4
|
133
125
|
|
134
|
-
> InlineResponse2003
|
126
|
+
> InlineResponse2003 list4(opts)
|
135
127
|
|
136
128
|
List npm repositorys
|
137
129
|
|
@@ -162,10 +154,10 @@ opts = {
|
|
162
154
|
|
163
155
|
begin
|
164
156
|
#List npm repositorys
|
165
|
-
result = api_instance.
|
157
|
+
result = api_instance.list4(opts)
|
166
158
|
p result
|
167
159
|
rescue PulpNpmClient::ApiError => e
|
168
|
-
puts "Exception when calling RepositoriesNpmApi->
|
160
|
+
puts "Exception when calling RepositoriesNpmApi->list4: #{e}"
|
169
161
|
end
|
170
162
|
```
|
171
163
|
|
@@ -251,9 +243,9 @@ Name | Type | Description | Notes
|
|
251
243
|
- **Accept**: application/json
|
252
244
|
|
253
245
|
|
254
|
-
##
|
246
|
+
## partial_update3
|
255
247
|
|
256
|
-
> AsyncOperationResponse
|
248
|
+
> AsyncOperationResponse partial_update3(npm_npm_repository_href, patchednpm_npm_repository)
|
257
249
|
|
258
250
|
Update a npm repository
|
259
251
|
|
@@ -274,18 +266,13 @@ end
|
|
274
266
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
275
267
|
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
276
268
|
patchednpm_npm_repository = PulpNpmClient::PatchednpmNpmRepository.new # PatchednpmNpmRepository |
|
277
|
-
opts = {
|
278
|
-
name: 'name_example', # String | name
|
279
|
-
name__in: 'name__in_example', # String | name__in
|
280
|
-
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
281
|
-
}
|
282
269
|
|
283
270
|
begin
|
284
271
|
#Update a npm repository
|
285
|
-
result = api_instance.
|
272
|
+
result = api_instance.partial_update3(npm_npm_repository_href, patchednpm_npm_repository)
|
286
273
|
p result
|
287
274
|
rescue PulpNpmClient::ApiError => e
|
288
|
-
puts "Exception when calling RepositoriesNpmApi->
|
275
|
+
puts "Exception when calling RepositoriesNpmApi->partial_update3: #{e}"
|
289
276
|
end
|
290
277
|
```
|
291
278
|
|
@@ -296,9 +283,6 @@ Name | Type | Description | Notes
|
|
296
283
|
------------- | ------------- | ------------- | -------------
|
297
284
|
**npm_npm_repository_href** | **String**| |
|
298
285
|
**patchednpm_npm_repository** | [**PatchednpmNpmRepository**](PatchednpmNpmRepository.md)| |
|
299
|
-
**name** | **String**| name | [optional]
|
300
|
-
**name__in** | **String**| name__in | [optional]
|
301
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
302
286
|
|
303
287
|
### Return type
|
304
288
|
|
@@ -314,9 +298,9 @@ Name | Type | Description | Notes
|
|
314
298
|
- **Accept**: application/json
|
315
299
|
|
316
300
|
|
317
|
-
##
|
301
|
+
## read3
|
318
302
|
|
319
|
-
> NpmNpmRepositoryResponse
|
303
|
+
> NpmNpmRepositoryResponse read3(npm_npm_repository_href, opts)
|
320
304
|
|
321
305
|
Inspect a npm repository
|
322
306
|
|
@@ -343,10 +327,10 @@ opts = {
|
|
343
327
|
|
344
328
|
begin
|
345
329
|
#Inspect a npm repository
|
346
|
-
result = api_instance.
|
330
|
+
result = api_instance.read3(npm_npm_repository_href, opts)
|
347
331
|
p result
|
348
332
|
rescue PulpNpmClient::ApiError => e
|
349
|
-
puts "Exception when calling RepositoriesNpmApi->
|
333
|
+
puts "Exception when calling RepositoriesNpmApi->read3: #{e}"
|
350
334
|
end
|
351
335
|
```
|
352
336
|
|
@@ -428,9 +412,9 @@ Name | Type | Description | Notes
|
|
428
412
|
- **Accept**: application/json
|
429
413
|
|
430
414
|
|
431
|
-
##
|
415
|
+
## update3
|
432
416
|
|
433
|
-
> AsyncOperationResponse
|
417
|
+
> AsyncOperationResponse update3(npm_npm_repository_href, npm_npm_repository)
|
434
418
|
|
435
419
|
Update a npm repository
|
436
420
|
|
@@ -451,18 +435,13 @@ end
|
|
451
435
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
452
436
|
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
453
437
|
npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
454
|
-
opts = {
|
455
|
-
name: 'name_example', # String | name
|
456
|
-
name__in: 'name__in_example', # String | name__in
|
457
|
-
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
458
|
-
}
|
459
438
|
|
460
439
|
begin
|
461
440
|
#Update a npm repository
|
462
|
-
result = api_instance.
|
441
|
+
result = api_instance.update3(npm_npm_repository_href, npm_npm_repository)
|
463
442
|
p result
|
464
443
|
rescue PulpNpmClient::ApiError => e
|
465
|
-
puts "Exception when calling RepositoriesNpmApi->
|
444
|
+
puts "Exception when calling RepositoriesNpmApi->update3: #{e}"
|
466
445
|
end
|
467
446
|
```
|
468
447
|
|
@@ -473,9 +452,6 @@ Name | Type | Description | Notes
|
|
473
452
|
------------- | ------------- | ------------- | -------------
|
474
453
|
**npm_npm_repository_href** | **String**| |
|
475
454
|
**npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
|
476
|
-
**name** | **String**| name | [optional]
|
477
|
-
**name__in** | **String**| name__in | [optional]
|
478
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
479
455
|
|
480
456
|
### Return type
|
481
457
|
|
@@ -4,16 +4,16 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
8
|
-
[**
|
9
|
-
[**
|
7
|
+
[**delete4**](RepositoriesNpmVersionsApi.md#delete4) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
|
8
|
+
[**list5**](RepositoriesNpmVersionsApi.md#list5) | **GET** {npm_npm_repository_href}versions/ | List repository versions
|
9
|
+
[**read4**](RepositoriesNpmVersionsApi.md#read4) | **GET** {npm_npm_repository_version_href} | Inspect a repository version
|
10
10
|
[**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_npm_repository_version_href}repair/ |
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
##
|
14
|
+
## delete4
|
15
15
|
|
16
|
-
> AsyncOperationResponse
|
16
|
+
> AsyncOperationResponse delete4(npm_npm_repository_version_href)
|
17
17
|
|
18
18
|
Delete a repository version
|
19
19
|
|
@@ -33,30 +33,13 @@ end
|
|
33
33
|
|
34
34
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
35
35
|
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
36
|
-
opts = {
|
37
|
-
content: 'content_example', # String | content
|
38
|
-
content__in: 'content__in_example', # String | content__in
|
39
|
-
number: 'number_example', # String | number
|
40
|
-
number__gt: 'number__gt_example', # String | number__gt
|
41
|
-
number__gte: 'number__gte_example', # String | number__gte
|
42
|
-
number__lt: 'number__lt_example', # String | number__lt
|
43
|
-
number__lte: 'number__lte_example', # String | number__lte
|
44
|
-
number__range: 'number__range_example', # String | number__range
|
45
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
46
|
-
pulp_created: 'pulp_created_example', # String | pulp_created
|
47
|
-
pulp_created__gt: 'pulp_created__gt_example', # String | pulp_created__gt
|
48
|
-
pulp_created__gte: 'pulp_created__gte_example', # String | pulp_created__gte
|
49
|
-
pulp_created__lt: 'pulp_created__lt_example', # String | pulp_created__lt
|
50
|
-
pulp_created__lte: 'pulp_created__lte_example', # String | pulp_created__lte
|
51
|
-
pulp_created__range: 'pulp_created__range_example' # String | pulp_created__range
|
52
|
-
}
|
53
36
|
|
54
37
|
begin
|
55
38
|
#Delete a repository version
|
56
|
-
result = api_instance.
|
39
|
+
result = api_instance.delete4(npm_npm_repository_version_href)
|
57
40
|
p result
|
58
41
|
rescue PulpNpmClient::ApiError => e
|
59
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
42
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->delete4: #{e}"
|
60
43
|
end
|
61
44
|
```
|
62
45
|
|
@@ -66,21 +49,6 @@ end
|
|
66
49
|
Name | Type | Description | Notes
|
67
50
|
------------- | ------------- | ------------- | -------------
|
68
51
|
**npm_npm_repository_version_href** | **String**| |
|
69
|
-
**content** | **String**| content | [optional]
|
70
|
-
**content__in** | **String**| content__in | [optional]
|
71
|
-
**number** | **String**| number | [optional]
|
72
|
-
**number__gt** | **String**| number__gt | [optional]
|
73
|
-
**number__gte** | **String**| number__gte | [optional]
|
74
|
-
**number__lt** | **String**| number__lt | [optional]
|
75
|
-
**number__lte** | **String**| number__lte | [optional]
|
76
|
-
**number__range** | **String**| number__range | [optional]
|
77
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
78
|
-
**pulp_created** | **String**| pulp_created | [optional]
|
79
|
-
**pulp_created__gt** | **String**| pulp_created__gt | [optional]
|
80
|
-
**pulp_created__gte** | **String**| pulp_created__gte | [optional]
|
81
|
-
**pulp_created__lt** | **String**| pulp_created__lt | [optional]
|
82
|
-
**pulp_created__lte** | **String**| pulp_created__lte | [optional]
|
83
|
-
**pulp_created__range** | **String**| pulp_created__range | [optional]
|
84
52
|
|
85
53
|
### Return type
|
86
54
|
|
@@ -96,9 +64,9 @@ Name | Type | Description | Notes
|
|
96
64
|
- **Accept**: application/json
|
97
65
|
|
98
66
|
|
99
|
-
##
|
67
|
+
## list5
|
100
68
|
|
101
|
-
> InlineResponse2004
|
69
|
+
> InlineResponse2004 list5(npm_npm_repository_href, opts)
|
102
70
|
|
103
71
|
List repository versions
|
104
72
|
|
@@ -142,10 +110,10 @@ opts = {
|
|
142
110
|
|
143
111
|
begin
|
144
112
|
#List repository versions
|
145
|
-
result = api_instance.
|
113
|
+
result = api_instance.list5(npm_npm_repository_href, opts)
|
146
114
|
p result
|
147
115
|
rescue PulpNpmClient::ApiError => e
|
148
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
116
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->list5: #{e}"
|
149
117
|
end
|
150
118
|
```
|
151
119
|
|
@@ -189,9 +157,9 @@ Name | Type | Description | Notes
|
|
189
157
|
- **Accept**: application/json
|
190
158
|
|
191
159
|
|
192
|
-
##
|
160
|
+
## read4
|
193
161
|
|
194
|
-
> RepositoryVersionResponse
|
162
|
+
> RepositoryVersionResponse read4(npm_npm_repository_version_href, opts)
|
195
163
|
|
196
164
|
Inspect a repository version
|
197
165
|
|
@@ -218,10 +186,10 @@ opts = {
|
|
218
186
|
|
219
187
|
begin
|
220
188
|
#Inspect a repository version
|
221
|
-
result = api_instance.
|
189
|
+
result = api_instance.read4(npm_npm_repository_version_href, opts)
|
222
190
|
p result
|
223
191
|
rescue PulpNpmClient::ApiError => e
|
224
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
192
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->read4: #{e}"
|
225
193
|
end
|
226
194
|
```
|
227
195
|
|
@@ -200,8 +200,8 @@ module PulpNpmClient
|
|
200
200
|
# @option opts [String] :fields A list of fields to include in the response.
|
201
201
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
202
202
|
# @return [NpmPackageResponse]
|
203
|
-
def
|
204
|
-
data, _status_code, _headers =
|
203
|
+
def read5(npm_package_href, opts = {})
|
204
|
+
data, _status_code, _headers = read5_with_http_info(npm_package_href, opts)
|
205
205
|
data
|
206
206
|
end
|
207
207
|
|
@@ -212,13 +212,13 @@ module PulpNpmClient
|
|
212
212
|
# @option opts [String] :fields A list of fields to include in the response.
|
213
213
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
214
214
|
# @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
|
215
|
-
def
|
215
|
+
def read5_with_http_info(npm_package_href, opts = {})
|
216
216
|
if @api_client.config.debugging
|
217
|
-
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.
|
217
|
+
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read5 ...'
|
218
218
|
end
|
219
219
|
# verify the required parameter 'npm_package_href' is set
|
220
220
|
if @api_client.config.client_side_validation && npm_package_href.nil?
|
221
|
-
fail ArgumentError, "Missing the required parameter 'npm_package_href' when calling ContentPackagesApi.
|
221
|
+
fail ArgumentError, "Missing the required parameter 'npm_package_href' when calling ContentPackagesApi.read5"
|
222
222
|
end
|
223
223
|
# resource path
|
224
224
|
local_var_path = '{npm_package_href}'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
|
@@ -256,7 +256,7 @@ module PulpNpmClient
|
|
256
256
|
|
257
257
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
258
258
|
if @api_client.config.debugging
|
259
|
-
@api_client.config.logger.debug "API called: ContentPackagesApi#
|
259
|
+
@api_client.config.logger.debug "API called: ContentPackagesApi#read5\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
260
260
|
end
|
261
261
|
return data, status_code, headers
|
262
262
|
end
|
@@ -24,8 +24,8 @@ module PulpNpmClient
|
|
24
24
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [AsyncOperationResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def create2(npm_npm_distribution, opts = {})
|
28
|
+
data, _status_code, _headers = create2_with_http_info(npm_npm_distribution, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpNpmClient
|
|
34
34
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def create2_with_http_info(npm_npm_distribution, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.create2 ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'npm_npm_distribution' is set
|
42
42
|
if @api_client.config.client_side_validation && npm_npm_distribution.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.create2"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/distributions/npm/npm/'
|
@@ -78,7 +78,7 @@ module PulpNpmClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: DistributionsNpmApi#
|
81
|
+
@api_client.config.logger.debug "API called: DistributionsNpmApi#create2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -87,13 +87,6 @@ module PulpNpmClient
|
|
87
87
|
# Trigger an asynchronous delete task
|
88
88
|
# @param npm_npm_distribution_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
|
-
# @option opts [String] :base_path base_path
|
91
|
-
# @option opts [String] :base_path__contains base_path__contains
|
92
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
93
|
-
# @option opts [String] :base_path__in base_path__in
|
94
|
-
# @option opts [String] :name name
|
95
|
-
# @option opts [String] :name__in name__in
|
96
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
97
90
|
# @return [AsyncOperationResponse]
|
98
91
|
def delete(npm_npm_distribution_href, opts = {})
|
99
92
|
data, _status_code, _headers = delete_with_http_info(npm_npm_distribution_href, opts)
|
@@ -104,13 +97,6 @@ module PulpNpmClient
|
|
104
97
|
# Trigger an asynchronous delete task
|
105
98
|
# @param npm_npm_distribution_href [String]
|
106
99
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @option opts [String] :base_path base_path
|
108
|
-
# @option opts [String] :base_path__contains base_path__contains
|
109
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
110
|
-
# @option opts [String] :base_path__in base_path__in
|
111
|
-
# @option opts [String] :name name
|
112
|
-
# @option opts [String] :name__in name__in
|
113
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
114
100
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
115
101
|
def delete_with_http_info(npm_npm_distribution_href, opts = {})
|
116
102
|
if @api_client.config.debugging
|
@@ -125,13 +111,6 @@ module PulpNpmClient
|
|
125
111
|
|
126
112
|
# query parameters
|
127
113
|
query_params = opts[:query_params] || {}
|
128
|
-
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
129
|
-
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
130
|
-
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
131
|
-
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
132
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
133
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
134
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
135
114
|
|
136
115
|
# header parameters
|
137
116
|
header_params = opts[:header_params] || {}
|
@@ -181,8 +160,8 @@ module PulpNpmClient
|
|
181
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
182
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
183
162
|
# @return [InlineResponse2001]
|
184
|
-
def
|
185
|
-
data, _status_code, _headers =
|
163
|
+
def list2(opts = {})
|
164
|
+
data, _status_code, _headers = list2_with_http_info(opts)
|
186
165
|
data
|
187
166
|
end
|
188
167
|
|
@@ -201,9 +180,9 @@ module PulpNpmClient
|
|
201
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
202
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
203
182
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
204
|
-
def
|
183
|
+
def list2_with_http_info(opts = {})
|
205
184
|
if @api_client.config.debugging
|
206
|
-
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.
|
185
|
+
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.list2 ...'
|
207
186
|
end
|
208
187
|
# resource path
|
209
188
|
local_var_path = '/pulp/api/v3/distributions/npm/npm/'
|
@@ -250,7 +229,7 @@ module PulpNpmClient
|
|
250
229
|
|
251
230
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
252
231
|
if @api_client.config.debugging
|
253
|
-
@api_client.config.logger.debug "API called: DistributionsNpmApi#
|
232
|
+
@api_client.config.logger.debug "API called: DistributionsNpmApi#list2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
254
233
|
end
|
255
234
|
return data, status_code, headers
|
256
235
|
end
|
@@ -260,13 +239,6 @@ module PulpNpmClient
|
|
260
239
|
# @param npm_npm_distribution_href [String]
|
261
240
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
262
241
|
# @param [Hash] opts the optional parameters
|
263
|
-
# @option opts [String] :base_path base_path
|
264
|
-
# @option opts [String] :base_path__contains base_path__contains
|
265
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
266
|
-
# @option opts [String] :base_path__in base_path__in
|
267
|
-
# @option opts [String] :name name
|
268
|
-
# @option opts [String] :name__in name__in
|
269
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
270
242
|
# @return [AsyncOperationResponse]
|
271
243
|
def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
272
244
|
data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
@@ -278,13 +250,6 @@ module PulpNpmClient
|
|
278
250
|
# @param npm_npm_distribution_href [String]
|
279
251
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
280
252
|
# @param [Hash] opts the optional parameters
|
281
|
-
# @option opts [String] :base_path base_path
|
282
|
-
# @option opts [String] :base_path__contains base_path__contains
|
283
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
284
|
-
# @option opts [String] :base_path__in base_path__in
|
285
|
-
# @option opts [String] :name name
|
286
|
-
# @option opts [String] :name__in name__in
|
287
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
288
253
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
289
254
|
def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
290
255
|
if @api_client.config.debugging
|
@@ -303,13 +268,6 @@ module PulpNpmClient
|
|
303
268
|
|
304
269
|
# query parameters
|
305
270
|
query_params = opts[:query_params] || {}
|
306
|
-
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
307
|
-
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
308
|
-
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
309
|
-
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
310
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
311
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
312
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
313
271
|
|
314
272
|
# header parameters
|
315
273
|
header_params = opts[:header_params] || {}
|
@@ -419,13 +377,6 @@ module PulpNpmClient
|
|
419
377
|
# @param npm_npm_distribution_href [String]
|
420
378
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
421
379
|
# @param [Hash] opts the optional parameters
|
422
|
-
# @option opts [String] :base_path base_path
|
423
|
-
# @option opts [String] :base_path__contains base_path__contains
|
424
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
425
|
-
# @option opts [String] :base_path__in base_path__in
|
426
|
-
# @option opts [String] :name name
|
427
|
-
# @option opts [String] :name__in name__in
|
428
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
429
380
|
# @return [AsyncOperationResponse]
|
430
381
|
def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
431
382
|
data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
|
@@ -437,13 +388,6 @@ module PulpNpmClient
|
|
437
388
|
# @param npm_npm_distribution_href [String]
|
438
389
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
439
390
|
# @param [Hash] opts the optional parameters
|
440
|
-
# @option opts [String] :base_path base_path
|
441
|
-
# @option opts [String] :base_path__contains base_path__contains
|
442
|
-
# @option opts [String] :base_path__icontains base_path__icontains
|
443
|
-
# @option opts [String] :base_path__in base_path__in
|
444
|
-
# @option opts [String] :name name
|
445
|
-
# @option opts [String] :name__in name__in
|
446
|
-
# @option opts [String] :ordering Which field to use when ordering the results.
|
447
391
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
448
392
|
def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
449
393
|
if @api_client.config.debugging
|
@@ -462,13 +406,6 @@ module PulpNpmClient
|
|
462
406
|
|
463
407
|
# query parameters
|
464
408
|
query_params = opts[:query_params] || {}
|
465
|
-
query_params[:'base_path'] = opts[:'base_path'] if !opts[:'base_path'].nil?
|
466
|
-
query_params[:'base_path__contains'] = opts[:'base_path__contains'] if !opts[:'base_path__contains'].nil?
|
467
|
-
query_params[:'base_path__icontains'] = opts[:'base_path__icontains'] if !opts[:'base_path__icontains'].nil?
|
468
|
-
query_params[:'base_path__in'] = opts[:'base_path__in'] if !opts[:'base_path__in'].nil?
|
469
|
-
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
470
|
-
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
471
|
-
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
472
409
|
|
473
410
|
# header parameters
|
474
411
|
header_params = opts[:header_params] || {}
|