pulp_npm_client 0.1.0a1.dev01600047508 → 0.1.0a1.dev01600133930
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 +10 -10
- data/docs/RemotesNpmApi.md +30 -30
- data/docs/RepositoriesNpmApi.md +30 -30
- data/docs/RepositoriesNpmVersionsApi.md +15 -15
- data/lib/pulp_npm_client/api/content_packages_api.rb +6 -6
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +11 -11
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +37 -37
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +37 -37
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +18 -18
- 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 -4
- data/spec/api/remotes_npm_api_spec.rb +12 -12
- data/spec/api/repositories_npm_api_spec.rb +12 -12
- data/spec/api/repositories_npm_versions_api_spec.rb +6 -6
- metadata +21 -21
@@ -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
|
+
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
|
8
|
+
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_npm_repository_href}versions/ | List repository versions
|
9
|
+
[**read**](RepositoriesNpmVersionsApi.md#read) | **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
|
+
## delete
|
15
15
|
|
16
|
-
> AsyncOperationResponse
|
16
|
+
> AsyncOperationResponse delete(npm_npm_repository_version_href)
|
17
17
|
|
18
18
|
Delete a repository version
|
19
19
|
|
@@ -36,10 +36,10 @@ npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # St
|
|
36
36
|
|
37
37
|
begin
|
38
38
|
#Delete a repository version
|
39
|
-
result = api_instance.
|
39
|
+
result = api_instance.delete(npm_npm_repository_version_href)
|
40
40
|
p result
|
41
41
|
rescue PulpNpmClient::ApiError => e
|
42
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
42
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
|
43
43
|
end
|
44
44
|
```
|
45
45
|
|
@@ -64,9 +64,9 @@ Name | Type | Description | Notes
|
|
64
64
|
- **Accept**: application/json
|
65
65
|
|
66
66
|
|
67
|
-
##
|
67
|
+
## list
|
68
68
|
|
69
|
-
> InlineResponse2004
|
69
|
+
> InlineResponse2004 list(npm_npm_repository_href, opts)
|
70
70
|
|
71
71
|
List repository versions
|
72
72
|
|
@@ -110,10 +110,10 @@ opts = {
|
|
110
110
|
|
111
111
|
begin
|
112
112
|
#List repository versions
|
113
|
-
result = api_instance.
|
113
|
+
result = api_instance.list(npm_npm_repository_href, opts)
|
114
114
|
p result
|
115
115
|
rescue PulpNpmClient::ApiError => e
|
116
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
116
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
|
117
117
|
end
|
118
118
|
```
|
119
119
|
|
@@ -157,9 +157,9 @@ Name | Type | Description | Notes
|
|
157
157
|
- **Accept**: application/json
|
158
158
|
|
159
159
|
|
160
|
-
##
|
160
|
+
## read
|
161
161
|
|
162
|
-
> RepositoryVersionResponse
|
162
|
+
> RepositoryVersionResponse read(npm_npm_repository_version_href, opts)
|
163
163
|
|
164
164
|
Inspect a repository version
|
165
165
|
|
@@ -186,10 +186,10 @@ opts = {
|
|
186
186
|
|
187
187
|
begin
|
188
188
|
#Inspect a repository version
|
189
|
-
result = api_instance.
|
189
|
+
result = api_instance.read(npm_npm_repository_version_href, opts)
|
190
190
|
p result
|
191
191
|
rescue PulpNpmClient::ApiError => e
|
192
|
-
puts "Exception when calling RepositoriesNpmVersionsApi->
|
192
|
+
puts "Exception when calling RepositoriesNpmVersionsApi->read: #{e}"
|
193
193
|
end
|
194
194
|
```
|
195
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 read(npm_package_href, opts = {})
|
204
|
+
data, _status_code, _headers = read_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 read_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.read ...'
|
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.read"
|
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#read\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 create(npm_npm_distribution, opts = {})
|
28
|
+
data, _status_code, _headers = create_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 create_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.create ...'
|
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.create"
|
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#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -160,8 +160,8 @@ module PulpNpmClient
|
|
160
160
|
# @option opts [String] :fields A list of fields to include in the response.
|
161
161
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
162
162
|
# @return [InlineResponse2001]
|
163
|
-
def
|
164
|
-
data, _status_code, _headers =
|
163
|
+
def list(opts = {})
|
164
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
@@ -180,9 +180,9 @@ module PulpNpmClient
|
|
180
180
|
# @option opts [String] :fields A list of fields to include in the response.
|
181
181
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
182
182
|
# @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
|
183
|
-
def
|
183
|
+
def list_with_http_info(opts = {})
|
184
184
|
if @api_client.config.debugging
|
185
|
-
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.
|
185
|
+
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.list ...'
|
186
186
|
end
|
187
187
|
# resource path
|
188
188
|
local_var_path = '/pulp/api/v3/distributions/npm/npm/'
|
@@ -229,7 +229,7 @@ module PulpNpmClient
|
|
229
229
|
|
230
230
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
231
231
|
if @api_client.config.debugging
|
232
|
-
@api_client.config.logger.debug "API called: DistributionsNpmApi#
|
232
|
+
@api_client.config.logger.debug "API called: DistributionsNpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
233
233
|
end
|
234
234
|
return data, status_code, headers
|
235
235
|
end
|
@@ -24,8 +24,8 @@ module PulpNpmClient
|
|
24
24
|
# @param npm_npm_remote [NpmNpmRemote]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [NpmNpmRemoteResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def create(npm_npm_remote, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(npm_npm_remote, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpNpmClient
|
|
34
34
|
# @param npm_npm_remote [NpmNpmRemote]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def create_with_http_info(npm_npm_remote, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'npm_npm_remote' is set
|
42
42
|
if @api_client.config.client_side_validation && npm_npm_remote.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/remotes/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: RemotesNpmApi#
|
81
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -88,8 +88,8 @@ module PulpNpmClient
|
|
88
88
|
# @param npm_npm_remote_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
91
|
-
def
|
92
|
-
data, _status_code, _headers =
|
91
|
+
def delete(npm_npm_remote_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_remote_href, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
@@ -98,13 +98,13 @@ module PulpNpmClient
|
|
98
98
|
# @param npm_npm_remote_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
-
def
|
101
|
+
def delete_with_http_info(npm_npm_remote_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
103
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'npm_npm_remote_href' is set
|
106
106
|
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.
|
107
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
110
|
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
@@ -140,7 +140,7 @@ module PulpNpmClient
|
|
140
140
|
|
141
141
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
142
|
if @api_client.config.debugging
|
143
|
-
@api_client.config.logger.debug "API called: RemotesNpmApi#
|
143
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
144
|
end
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
@@ -162,8 +162,8 @@ module PulpNpmClient
|
|
162
162
|
# @option opts [String] :fields A list of fields to include in the response.
|
163
163
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
164
164
|
# @return [InlineResponse2002]
|
165
|
-
def
|
166
|
-
data, _status_code, _headers =
|
165
|
+
def list(opts = {})
|
166
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
167
167
|
data
|
168
168
|
end
|
169
169
|
|
@@ -184,9 +184,9 @@ module PulpNpmClient
|
|
184
184
|
# @option opts [String] :fields A list of fields to include in the response.
|
185
185
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
186
186
|
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
187
|
-
def
|
187
|
+
def list_with_http_info(opts = {})
|
188
188
|
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
189
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.list ...'
|
190
190
|
end
|
191
191
|
# resource path
|
192
192
|
local_var_path = '/pulp/api/v3/remotes/npm/npm/'
|
@@ -235,7 +235,7 @@ module PulpNpmClient
|
|
235
235
|
|
236
236
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
237
237
|
if @api_client.config.debugging
|
238
|
-
@api_client.config.logger.debug "API called: RemotesNpmApi#
|
238
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
239
239
|
end
|
240
240
|
return data, status_code, headers
|
241
241
|
end
|
@@ -246,8 +246,8 @@ module PulpNpmClient
|
|
246
246
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
247
247
|
# @param [Hash] opts the optional parameters
|
248
248
|
# @return [AsyncOperationResponse]
|
249
|
-
def
|
250
|
-
data, _status_code, _headers =
|
249
|
+
def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
250
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
251
251
|
data
|
252
252
|
end
|
253
253
|
|
@@ -257,17 +257,17 @@ module PulpNpmClient
|
|
257
257
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
258
258
|
# @param [Hash] opts the optional parameters
|
259
259
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
260
|
-
def
|
260
|
+
def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
261
261
|
if @api_client.config.debugging
|
262
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
262
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
|
263
263
|
end
|
264
264
|
# verify the required parameter 'npm_npm_remote_href' is set
|
265
265
|
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
266
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.
|
266
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.partial_update"
|
267
267
|
end
|
268
268
|
# verify the required parameter 'patchednpm_npm_remote' is set
|
269
269
|
if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
|
270
|
-
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.
|
270
|
+
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
|
271
271
|
end
|
272
272
|
# resource path
|
273
273
|
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
@@ -305,7 +305,7 @@ module PulpNpmClient
|
|
305
305
|
|
306
306
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
307
307
|
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug "API called: RemotesNpmApi#
|
308
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
309
309
|
end
|
310
310
|
return data, status_code, headers
|
311
311
|
end
|
@@ -317,8 +317,8 @@ module PulpNpmClient
|
|
317
317
|
# @option opts [String] :fields A list of fields to include in the response.
|
318
318
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
319
319
|
# @return [NpmNpmRemoteResponse]
|
320
|
-
def
|
321
|
-
data, _status_code, _headers =
|
320
|
+
def read(npm_npm_remote_href, opts = {})
|
321
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
|
322
322
|
data
|
323
323
|
end
|
324
324
|
|
@@ -329,13 +329,13 @@ module PulpNpmClient
|
|
329
329
|
# @option opts [String] :fields A list of fields to include in the response.
|
330
330
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
331
331
|
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
332
|
-
def
|
332
|
+
def read_with_http_info(npm_npm_remote_href, opts = {})
|
333
333
|
if @api_client.config.debugging
|
334
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
334
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
|
335
335
|
end
|
336
336
|
# verify the required parameter 'npm_npm_remote_href' is set
|
337
337
|
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
338
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.
|
338
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.read"
|
339
339
|
end
|
340
340
|
# resource path
|
341
341
|
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
@@ -373,7 +373,7 @@ module PulpNpmClient
|
|
373
373
|
|
374
374
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
375
375
|
if @api_client.config.debugging
|
376
|
-
@api_client.config.logger.debug "API called: RemotesNpmApi#
|
376
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
377
377
|
end
|
378
378
|
return data, status_code, headers
|
379
379
|
end
|
@@ -384,8 +384,8 @@ module PulpNpmClient
|
|
384
384
|
# @param npm_npm_remote [NpmNpmRemote]
|
385
385
|
# @param [Hash] opts the optional parameters
|
386
386
|
# @return [AsyncOperationResponse]
|
387
|
-
def
|
388
|
-
data, _status_code, _headers =
|
387
|
+
def update(npm_npm_remote_href, npm_npm_remote, opts = {})
|
388
|
+
data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
|
389
389
|
data
|
390
390
|
end
|
391
391
|
|
@@ -395,17 +395,17 @@ module PulpNpmClient
|
|
395
395
|
# @param npm_npm_remote [NpmNpmRemote]
|
396
396
|
# @param [Hash] opts the optional parameters
|
397
397
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
398
|
-
def
|
398
|
+
def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
|
399
399
|
if @api_client.config.debugging
|
400
|
-
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.
|
400
|
+
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
|
401
401
|
end
|
402
402
|
# verify the required parameter 'npm_npm_remote_href' is set
|
403
403
|
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
404
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.
|
404
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.update"
|
405
405
|
end
|
406
406
|
# verify the required parameter 'npm_npm_remote' is set
|
407
407
|
if @api_client.config.client_side_validation && npm_npm_remote.nil?
|
408
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.
|
408
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
|
409
409
|
end
|
410
410
|
# resource path
|
411
411
|
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
@@ -443,7 +443,7 @@ module PulpNpmClient
|
|
443
443
|
|
444
444
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
445
445
|
if @api_client.config.debugging
|
446
|
-
@api_client.config.logger.debug "API called: RemotesNpmApi#
|
446
|
+
@api_client.config.logger.debug "API called: RemotesNpmApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
447
447
|
end
|
448
448
|
return data, status_code, headers
|
449
449
|
end
|
@@ -24,8 +24,8 @@ module PulpNpmClient
|
|
24
24
|
# @param npm_npm_repository [NpmNpmRepository]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [NpmNpmRepositoryResponse]
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def create(npm_npm_repository, opts = {})
|
28
|
+
data, _status_code, _headers = create_with_http_info(npm_npm_repository, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
@@ -34,13 +34,13 @@ module PulpNpmClient
|
|
34
34
|
# @param npm_npm_repository [NpmNpmRepository]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
36
|
# @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
|
37
|
-
def
|
37
|
+
def create_with_http_info(npm_npm_repository, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
39
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.create ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'npm_npm_repository' is set
|
42
42
|
if @api_client.config.client_side_validation && npm_npm_repository.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.
|
43
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.create"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/pulp/api/v3/repositories/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: RepositoriesNpmApi#
|
81
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -88,8 +88,8 @@ module PulpNpmClient
|
|
88
88
|
# @param npm_npm_repository_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [AsyncOperationResponse]
|
91
|
-
def
|
92
|
-
data, _status_code, _headers =
|
91
|
+
def delete(npm_npm_repository_href, opts = {})
|
92
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_repository_href, opts)
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
@@ -98,13 +98,13 @@ module PulpNpmClient
|
|
98
98
|
# @param npm_npm_repository_href [String]
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
101
|
-
def
|
101
|
+
def delete_with_http_info(npm_npm_repository_href, opts = {})
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
103
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.delete ...'
|
104
104
|
end
|
105
105
|
# verify the required parameter 'npm_npm_repository_href' is set
|
106
106
|
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.
|
107
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.delete"
|
108
108
|
end
|
109
109
|
# resource path
|
110
110
|
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
@@ -140,7 +140,7 @@ module PulpNpmClient
|
|
140
140
|
|
141
141
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
142
142
|
if @api_client.config.debugging
|
143
|
-
@api_client.config.logger.debug "API called: RepositoriesNpmApi#
|
143
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
144
|
end
|
145
145
|
return data, status_code, headers
|
146
146
|
end
|
@@ -156,8 +156,8 @@ module PulpNpmClient
|
|
156
156
|
# @option opts [String] :fields A list of fields to include in the response.
|
157
157
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
158
158
|
# @return [InlineResponse2003]
|
159
|
-
def
|
160
|
-
data, _status_code, _headers =
|
159
|
+
def list(opts = {})
|
160
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
161
161
|
data
|
162
162
|
end
|
163
163
|
|
@@ -172,9 +172,9 @@ module PulpNpmClient
|
|
172
172
|
# @option opts [String] :fields A list of fields to include in the response.
|
173
173
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
174
174
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
175
|
-
def
|
175
|
+
def list_with_http_info(opts = {})
|
176
176
|
if @api_client.config.debugging
|
177
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
177
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.list ...'
|
178
178
|
end
|
179
179
|
# resource path
|
180
180
|
local_var_path = '/pulp/api/v3/repositories/npm/npm/'
|
@@ -217,7 +217,7 @@ module PulpNpmClient
|
|
217
217
|
|
218
218
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
219
219
|
if @api_client.config.debugging
|
220
|
-
@api_client.config.logger.debug "API called: RepositoriesNpmApi#
|
220
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
221
221
|
end
|
222
222
|
return data, status_code, headers
|
223
223
|
end
|
@@ -298,8 +298,8 @@ module PulpNpmClient
|
|
298
298
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
299
299
|
# @param [Hash] opts the optional parameters
|
300
300
|
# @return [AsyncOperationResponse]
|
301
|
-
def
|
302
|
-
data, _status_code, _headers =
|
301
|
+
def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
302
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
303
303
|
data
|
304
304
|
end
|
305
305
|
|
@@ -309,17 +309,17 @@ module PulpNpmClient
|
|
309
309
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
311
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
312
|
-
def
|
312
|
+
def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
313
313
|
if @api_client.config.debugging
|
314
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
314
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
|
315
315
|
end
|
316
316
|
# verify the required parameter 'npm_npm_repository_href' is set
|
317
317
|
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
318
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.
|
318
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.partial_update"
|
319
319
|
end
|
320
320
|
# verify the required parameter 'patchednpm_npm_repository' is set
|
321
321
|
if @api_client.config.client_side_validation && patchednpm_npm_repository.nil?
|
322
|
-
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.
|
322
|
+
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.partial_update"
|
323
323
|
end
|
324
324
|
# resource path
|
325
325
|
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
@@ -357,7 +357,7 @@ module PulpNpmClient
|
|
357
357
|
|
358
358
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
359
359
|
if @api_client.config.debugging
|
360
|
-
@api_client.config.logger.debug "API called: RepositoriesNpmApi#
|
360
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
361
361
|
end
|
362
362
|
return data, status_code, headers
|
363
363
|
end
|
@@ -369,8 +369,8 @@ module PulpNpmClient
|
|
369
369
|
# @option opts [String] :fields A list of fields to include in the response.
|
370
370
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
371
371
|
# @return [NpmNpmRepositoryResponse]
|
372
|
-
def
|
373
|
-
data, _status_code, _headers =
|
372
|
+
def read(npm_npm_repository_href, opts = {})
|
373
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_repository_href, opts)
|
374
374
|
data
|
375
375
|
end
|
376
376
|
|
@@ -381,13 +381,13 @@ module PulpNpmClient
|
|
381
381
|
# @option opts [String] :fields A list of fields to include in the response.
|
382
382
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
383
383
|
# @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
|
384
|
-
def
|
384
|
+
def read_with_http_info(npm_npm_repository_href, opts = {})
|
385
385
|
if @api_client.config.debugging
|
386
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
386
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.read ...'
|
387
387
|
end
|
388
388
|
# verify the required parameter 'npm_npm_repository_href' is set
|
389
389
|
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
390
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.
|
390
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.read"
|
391
391
|
end
|
392
392
|
# resource path
|
393
393
|
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
@@ -425,7 +425,7 @@ module PulpNpmClient
|
|
425
425
|
|
426
426
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
427
427
|
if @api_client.config.debugging
|
428
|
-
@api_client.config.logger.debug "API called: RepositoriesNpmApi#
|
428
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
429
|
end
|
430
430
|
return data, status_code, headers
|
431
431
|
end
|
@@ -506,8 +506,8 @@ module PulpNpmClient
|
|
506
506
|
# @param npm_npm_repository [NpmNpmRepository]
|
507
507
|
# @param [Hash] opts the optional parameters
|
508
508
|
# @return [AsyncOperationResponse]
|
509
|
-
def
|
510
|
-
data, _status_code, _headers =
|
509
|
+
def update(npm_npm_repository_href, npm_npm_repository, opts = {})
|
510
|
+
data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
|
511
511
|
data
|
512
512
|
end
|
513
513
|
|
@@ -517,17 +517,17 @@ module PulpNpmClient
|
|
517
517
|
# @param npm_npm_repository [NpmNpmRepository]
|
518
518
|
# @param [Hash] opts the optional parameters
|
519
519
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
520
|
-
def
|
520
|
+
def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
|
521
521
|
if @api_client.config.debugging
|
522
|
-
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.
|
522
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
|
523
523
|
end
|
524
524
|
# verify the required parameter 'npm_npm_repository_href' is set
|
525
525
|
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
526
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.
|
526
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.update"
|
527
527
|
end
|
528
528
|
# verify the required parameter 'npm_npm_repository' is set
|
529
529
|
if @api_client.config.client_side_validation && npm_npm_repository.nil?
|
530
|
-
fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.
|
530
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.update"
|
531
531
|
end
|
532
532
|
# resource path
|
533
533
|
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
@@ -565,7 +565,7 @@ module PulpNpmClient
|
|
565
565
|
|
566
566
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
567
567
|
if @api_client.config.debugging
|
568
|
-
@api_client.config.logger.debug "API called: RepositoriesNpmApi#
|
568
|
+
@api_client.config.logger.debug "API called: RepositoriesNpmApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
569
569
|
end
|
570
570
|
return data, status_code, headers
|
571
571
|
end
|