pulp_npm_client 0.1.0a1.dev01595856770 → 0.1.0a1.dev01596245316

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.

@@ -4,18 +4,18 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_repository_version_href} |
8
- [**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_repository_version_href}versions/ |
9
- [**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_repository_version_href} |
10
- [**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_repository_version_href}repair/ |
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
+ [**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_npm_repository_version_href}repair/ |
11
11
 
12
12
 
13
13
 
14
14
  ## delete
15
15
 
16
- > AsyncOperationResponse delete(npm_repository_version_href, opts)
17
-
16
+ > AsyncOperationResponse delete(npm_npm_repository_version_href, opts)
18
17
 
18
+ Delete a repository version
19
19
 
20
20
  Trigger an asynchronous task to delete a repositroy version.
21
21
 
@@ -32,7 +32,7 @@ PulpNpmClient.configure do |config|
32
32
  end
33
33
 
34
34
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
35
- npm_repository_version_href = 'npm_repository_version_href_example' # String |
35
+ npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
36
36
  opts = {
37
37
  content: 'content_example', # String | content
38
38
  content__in: 'content__in_example', # String | content__in
@@ -52,7 +52,8 @@ opts = {
52
52
  }
53
53
 
54
54
  begin
55
- result = api_instance.delete(npm_repository_version_href, opts)
55
+ #Delete a repository version
56
+ result = api_instance.delete(npm_npm_repository_version_href, opts)
56
57
  p result
57
58
  rescue PulpNpmClient::ApiError => e
58
59
  puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
@@ -64,7 +65,7 @@ end
64
65
 
65
66
  Name | Type | Description | Notes
66
67
  ------------- | ------------- | ------------- | -------------
67
- **npm_repository_version_href** | **String**| |
68
+ **npm_npm_repository_version_href** | **String**| |
68
69
  **content** | **String**| content | [optional]
69
70
  **content__in** | **String**| content__in | [optional]
70
71
  **number** | **String**| number | [optional]
@@ -97,9 +98,9 @@ Name | Type | Description | Notes
97
98
 
98
99
  ## list
99
100
 
100
- > InlineResponse2004 list(npm_repository_version_href, opts)
101
-
101
+ > InlineResponse2004 list(npm_npm_repository_href, opts)
102
102
 
103
+ List repository versions
103
104
 
104
105
  A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
105
106
 
@@ -116,7 +117,7 @@ PulpNpmClient.configure do |config|
116
117
  end
117
118
 
118
119
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
119
- npm_repository_version_href = 'npm_repository_version_href_example' # String |
120
+ npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
120
121
  opts = {
121
122
  content: 'content_example', # String | content
122
123
  content__in: 'content__in_example', # String | content__in
@@ -140,7 +141,8 @@ opts = {
140
141
  }
141
142
 
142
143
  begin
143
- result = api_instance.list(npm_repository_version_href, opts)
144
+ #List repository versions
145
+ result = api_instance.list(npm_npm_repository_href, opts)
144
146
  p result
145
147
  rescue PulpNpmClient::ApiError => e
146
148
  puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
@@ -152,7 +154,7 @@ end
152
154
 
153
155
  Name | Type | Description | Notes
154
156
  ------------- | ------------- | ------------- | -------------
155
- **npm_repository_version_href** | **String**| |
157
+ **npm_npm_repository_href** | **String**| |
156
158
  **content** | **String**| content | [optional]
157
159
  **content__in** | **String**| content__in | [optional]
158
160
  **limit** | **Integer**| Number of results to return per page. | [optional]
@@ -189,9 +191,9 @@ Name | Type | Description | Notes
189
191
 
190
192
  ## read
191
193
 
192
- > RepositoryVersionResponse read(npm_repository_version_href, opts)
193
-
194
+ > RepositoryVersionResponse read(npm_npm_repository_version_href, opts)
194
195
 
196
+ Inspect a repository version
195
197
 
196
198
  A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
197
199
 
@@ -208,14 +210,15 @@ PulpNpmClient.configure do |config|
208
210
  end
209
211
 
210
212
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
211
- npm_repository_version_href = 'npm_repository_version_href_example' # String |
213
+ npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
212
214
  opts = {
213
215
  fields: 'fields_example', # String | A list of fields to include in the response.
214
216
  exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
215
217
  }
216
218
 
217
219
  begin
218
- result = api_instance.read(npm_repository_version_href, opts)
220
+ #Inspect a repository version
221
+ result = api_instance.read(npm_npm_repository_version_href, opts)
219
222
  p result
220
223
  rescue PulpNpmClient::ApiError => e
221
224
  puts "Exception when calling RepositoriesNpmVersionsApi->read: #{e}"
@@ -227,7 +230,7 @@ end
227
230
 
228
231
  Name | Type | Description | Notes
229
232
  ------------- | ------------- | ------------- | -------------
230
- **npm_repository_version_href** | **String**| |
233
+ **npm_npm_repository_version_href** | **String**| |
231
234
  **fields** | **String**| A list of fields to include in the response. | [optional]
232
235
  **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
233
236
 
@@ -247,7 +250,7 @@ Name | Type | Description | Notes
247
250
 
248
251
  ## repair
249
252
 
250
- > AsyncOperationResponse repair(npm_repository_version_href, repository_version)
253
+ > AsyncOperationResponse repair(npm_npm_repository_version_href, repository_version)
251
254
 
252
255
 
253
256
 
@@ -266,11 +269,11 @@ PulpNpmClient.configure do |config|
266
269
  end
267
270
 
268
271
  api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
269
- npm_repository_version_href = 'npm_repository_version_href_example' # String |
272
+ npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
270
273
  repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
271
274
 
272
275
  begin
273
- result = api_instance.repair(npm_repository_version_href, repository_version)
276
+ result = api_instance.repair(npm_npm_repository_version_href, repository_version)
274
277
  p result
275
278
  rescue PulpNpmClient::ApiError => e
276
279
  puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
@@ -282,7 +285,7 @@ end
282
285
 
283
286
  Name | Type | Description | Notes
284
287
  ------------- | ------------- | ------------- | -------------
285
- **npm_repository_version_href** | **String**| |
288
+ **npm_npm_repository_version_href** | **String**| |
286
289
  **repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
287
290
 
288
291
  ### Return type
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **remote** | **String** | A URI of the repository to be synchronized. |
7
+ **remote** | **String** | A remote to sync from. This will override a remote set on repository. | [optional]
8
8
  **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
9
9
 
10
10
  ## Code Sample
@@ -19,6 +19,7 @@ module PulpNpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a package
22
23
  # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
23
24
  # @param relative_path [String]
24
25
  # @param name [String]
@@ -33,6 +34,7 @@ module PulpNpmClient
33
34
  data
34
35
  end
35
36
 
37
+ # Create a package
36
38
  # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
37
39
  # @param relative_path [String]
38
40
  # @param name [String]
@@ -105,6 +107,7 @@ module PulpNpmClient
105
107
  return data, status_code, headers
106
108
  end
107
109
 
110
+ # List packages
108
111
  # 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.
109
112
  # @param [Hash] opts the optional parameters
110
113
  # @option opts [Integer] :limit Number of results to return per page.
@@ -123,6 +126,7 @@ module PulpNpmClient
123
126
  data
124
127
  end
125
128
 
129
+ # List packages
126
130
  # 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.
127
131
  # @param [Hash] opts the optional parameters
128
132
  # @option opts [Integer] :limit Number of results to return per page.
@@ -189,33 +193,35 @@ module PulpNpmClient
189
193
  return data, status_code, headers
190
194
  end
191
195
 
196
+ # Inspect a package
192
197
  # 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.
193
- # @param package_href [String]
198
+ # @param npm_package_href [String]
194
199
  # @param [Hash] opts the optional parameters
195
200
  # @option opts [String] :fields A list of fields to include in the response.
196
201
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
197
202
  # @return [NpmPackageResponse]
198
- def read(package_href, opts = {})
199
- data, _status_code, _headers = read_with_http_info(package_href, opts)
203
+ def read(npm_package_href, opts = {})
204
+ data, _status_code, _headers = read_with_http_info(npm_package_href, opts)
200
205
  data
201
206
  end
202
207
 
208
+ # Inspect a package
203
209
  # 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.
204
- # @param package_href [String]
210
+ # @param npm_package_href [String]
205
211
  # @param [Hash] opts the optional parameters
206
212
  # @option opts [String] :fields A list of fields to include in the response.
207
213
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
208
214
  # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
209
- def read_with_http_info(package_href, opts = {})
215
+ def read_with_http_info(npm_package_href, opts = {})
210
216
  if @api_client.config.debugging
211
217
  @api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
212
218
  end
213
- # verify the required parameter 'package_href' is set
214
- if @api_client.config.client_side_validation && package_href.nil?
215
- fail ArgumentError, "Missing the required parameter 'package_href' when calling ContentPackagesApi.read"
219
+ # verify the required parameter 'npm_package_href' is set
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.read"
216
222
  end
217
223
  # resource path
218
- local_var_path = '{package_href}'.sub('{' + 'package_href' + '}', CGI.escape(package_href.to_s).gsub('%2F', '/'))
224
+ local_var_path = '{npm_package_href}'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
219
225
 
220
226
  # query parameters
221
227
  query_params = opts[:query_params] || {}
@@ -19,6 +19,7 @@ module PulpNpmClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a npm distribution
22
23
  # Trigger an asynchronous create task
23
24
  # @param npm_npm_distribution [NpmNpmDistribution]
24
25
  # @param [Hash] opts the optional parameters
@@ -28,6 +29,7 @@ module PulpNpmClient
28
29
  data
29
30
  end
30
31
 
32
+ # Create a npm distribution
31
33
  # Trigger an asynchronous create task
32
34
  # @param npm_npm_distribution [NpmNpmDistribution]
33
35
  # @param [Hash] opts the optional parameters
@@ -81,8 +83,9 @@ module PulpNpmClient
81
83
  return data, status_code, headers
82
84
  end
83
85
 
86
+ # Delete a npm distribution
84
87
  # Trigger an asynchronous delete task
85
- # @param npm_distribution_href [String]
88
+ # @param npm_npm_distribution_href [String]
86
89
  # @param [Hash] opts the optional parameters
87
90
  # @option opts [String] :base_path base_path
88
91
  # @option opts [String] :base_path__contains base_path__contains
@@ -92,13 +95,14 @@ module PulpNpmClient
92
95
  # @option opts [String] :name__in name__in
93
96
  # @option opts [String] :ordering Which field to use when ordering the results.
94
97
  # @return [AsyncOperationResponse]
95
- def delete(npm_distribution_href, opts = {})
96
- data, _status_code, _headers = delete_with_http_info(npm_distribution_href, opts)
98
+ def delete(npm_npm_distribution_href, opts = {})
99
+ data, _status_code, _headers = delete_with_http_info(npm_npm_distribution_href, opts)
97
100
  data
98
101
  end
99
102
 
103
+ # Delete a npm distribution
100
104
  # Trigger an asynchronous delete task
101
- # @param npm_distribution_href [String]
105
+ # @param npm_npm_distribution_href [String]
102
106
  # @param [Hash] opts the optional parameters
103
107
  # @option opts [String] :base_path base_path
104
108
  # @option opts [String] :base_path__contains base_path__contains
@@ -108,16 +112,16 @@ module PulpNpmClient
108
112
  # @option opts [String] :name__in name__in
109
113
  # @option opts [String] :ordering Which field to use when ordering the results.
110
114
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
111
- def delete_with_http_info(npm_distribution_href, opts = {})
115
+ def delete_with_http_info(npm_npm_distribution_href, opts = {})
112
116
  if @api_client.config.debugging
113
117
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.delete ...'
114
118
  end
115
- # verify the required parameter 'npm_distribution_href' is set
116
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
117
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.delete"
119
+ # verify the required parameter 'npm_npm_distribution_href' is set
120
+ if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
121
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.delete"
118
122
  end
119
123
  # resource path
120
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
124
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
121
125
 
122
126
  # query parameters
123
127
  query_params = opts[:query_params] || {}
@@ -162,6 +166,7 @@ module PulpNpmClient
162
166
  return data, status_code, headers
163
167
  end
164
168
 
169
+ # List npm distributions
165
170
  # ViewSet for NPM Distributions.
166
171
  # @param [Hash] opts the optional parameters
167
172
  # @option opts [String] :base_path base_path
@@ -181,6 +186,7 @@ module PulpNpmClient
181
186
  data
182
187
  end
183
188
 
189
+ # List npm distributions
184
190
  # ViewSet for NPM Distributions.
185
191
  # @param [Hash] opts the optional parameters
186
192
  # @option opts [String] :base_path base_path
@@ -249,8 +255,9 @@ module PulpNpmClient
249
255
  return data, status_code, headers
250
256
  end
251
257
 
258
+ # Update a npm distribution
252
259
  # Trigger an asynchronous partial update task
253
- # @param npm_distribution_href [String]
260
+ # @param npm_npm_distribution_href [String]
254
261
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
255
262
  # @param [Hash] opts the optional parameters
256
263
  # @option opts [String] :base_path base_path
@@ -261,13 +268,14 @@ module PulpNpmClient
261
268
  # @option opts [String] :name__in name__in
262
269
  # @option opts [String] :ordering Which field to use when ordering the results.
263
270
  # @return [AsyncOperationResponse]
264
- def partial_update(npm_distribution_href, patchednpm_npm_distribution, opts = {})
265
- data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts)
271
+ def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
272
+ data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
266
273
  data
267
274
  end
268
275
 
276
+ # Update a npm distribution
269
277
  # Trigger an asynchronous partial update task
270
- # @param npm_distribution_href [String]
278
+ # @param npm_npm_distribution_href [String]
271
279
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
272
280
  # @param [Hash] opts the optional parameters
273
281
  # @option opts [String] :base_path base_path
@@ -278,20 +286,20 @@ module PulpNpmClient
278
286
  # @option opts [String] :name__in name__in
279
287
  # @option opts [String] :ordering Which field to use when ordering the results.
280
288
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
281
- def partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts = {})
289
+ def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
282
290
  if @api_client.config.debugging
283
291
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
284
292
  end
285
- # verify the required parameter 'npm_distribution_href' is set
286
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
287
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.partial_update"
293
+ # verify the required parameter 'npm_npm_distribution_href' is set
294
+ if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
295
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.partial_update"
288
296
  end
289
297
  # verify the required parameter 'patchednpm_npm_distribution' is set
290
298
  if @api_client.config.client_side_validation && patchednpm_npm_distribution.nil?
291
299
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_distribution' when calling DistributionsNpmApi.partial_update"
292
300
  end
293
301
  # resource path
294
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
302
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
295
303
 
296
304
  # query parameters
297
305
  query_params = opts[:query_params] || {}
@@ -338,33 +346,35 @@ module PulpNpmClient
338
346
  return data, status_code, headers
339
347
  end
340
348
 
349
+ # Inspect a npm distribution
341
350
  # ViewSet for NPM Distributions.
342
- # @param npm_distribution_href [String]
351
+ # @param npm_npm_distribution_href [String]
343
352
  # @param [Hash] opts the optional parameters
344
353
  # @option opts [String] :fields A list of fields to include in the response.
345
354
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
346
355
  # @return [NpmNpmDistributionResponse]
347
- def read(npm_distribution_href, opts = {})
348
- data, _status_code, _headers = read_with_http_info(npm_distribution_href, opts)
356
+ def read(npm_npm_distribution_href, opts = {})
357
+ data, _status_code, _headers = read_with_http_info(npm_npm_distribution_href, opts)
349
358
  data
350
359
  end
351
360
 
361
+ # Inspect a npm distribution
352
362
  # ViewSet for NPM Distributions.
353
- # @param npm_distribution_href [String]
363
+ # @param npm_npm_distribution_href [String]
354
364
  # @param [Hash] opts the optional parameters
355
365
  # @option opts [String] :fields A list of fields to include in the response.
356
366
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
357
367
  # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
358
- def read_with_http_info(npm_distribution_href, opts = {})
368
+ def read_with_http_info(npm_npm_distribution_href, opts = {})
359
369
  if @api_client.config.debugging
360
370
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.read ...'
361
371
  end
362
- # verify the required parameter 'npm_distribution_href' is set
363
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
364
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.read"
372
+ # verify the required parameter 'npm_npm_distribution_href' is set
373
+ if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
374
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.read"
365
375
  end
366
376
  # resource path
367
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
377
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
368
378
 
369
379
  # query parameters
370
380
  query_params = opts[:query_params] || {}
@@ -404,8 +414,9 @@ module PulpNpmClient
404
414
  return data, status_code, headers
405
415
  end
406
416
 
417
+ # Update a npm distribution
407
418
  # Trigger an asynchronous update task
408
- # @param npm_distribution_href [String]
419
+ # @param npm_npm_distribution_href [String]
409
420
  # @param npm_npm_distribution [NpmNpmDistribution]
410
421
  # @param [Hash] opts the optional parameters
411
422
  # @option opts [String] :base_path base_path
@@ -416,13 +427,14 @@ module PulpNpmClient
416
427
  # @option opts [String] :name__in name__in
417
428
  # @option opts [String] :ordering Which field to use when ordering the results.
418
429
  # @return [AsyncOperationResponse]
419
- def update(npm_distribution_href, npm_npm_distribution, opts = {})
420
- data, _status_code, _headers = update_with_http_info(npm_distribution_href, npm_npm_distribution, opts)
430
+ def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
431
+ data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
421
432
  data
422
433
  end
423
434
 
435
+ # Update a npm distribution
424
436
  # Trigger an asynchronous update task
425
- # @param npm_distribution_href [String]
437
+ # @param npm_npm_distribution_href [String]
426
438
  # @param npm_npm_distribution [NpmNpmDistribution]
427
439
  # @param [Hash] opts the optional parameters
428
440
  # @option opts [String] :base_path base_path
@@ -433,20 +445,20 @@ module PulpNpmClient
433
445
  # @option opts [String] :name__in name__in
434
446
  # @option opts [String] :ordering Which field to use when ordering the results.
435
447
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
436
- def update_with_http_info(npm_distribution_href, npm_npm_distribution, opts = {})
448
+ def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
437
449
  if @api_client.config.debugging
438
450
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
439
451
  end
440
- # verify the required parameter 'npm_distribution_href' is set
441
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
442
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.update"
452
+ # verify the required parameter 'npm_npm_distribution_href' is set
453
+ if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
454
+ fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.update"
443
455
  end
444
456
  # verify the required parameter 'npm_npm_distribution' is set
445
457
  if @api_client.config.client_side_validation && npm_npm_distribution.nil?
446
458
  fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.update"
447
459
  end
448
460
  # resource path
449
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
461
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
450
462
 
451
463
  # query parameters
452
464
  query_params = opts[:query_params] || {}