pulp_npm_client 0.1.0a1.dev01595856770 → 0.1.0a1.dev01596245316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulp_npm_client might be problematic. Click here for more details.

@@ -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 remote
22
23
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
24
  # @param npm_npm_remote [NpmNpmRemote]
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 remote
31
33
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
32
34
  # @param npm_npm_remote [NpmNpmRemote]
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 remote
84
87
  # Trigger an asynchronous delete task
85
- # @param npm_remote_href [String]
88
+ # @param npm_npm_remote_href [String]
86
89
  # @param [Hash] opts the optional parameters
87
90
  # @option opts [String] :name name
88
91
  # @option opts [String] :name__in name__in
@@ -94,13 +97,14 @@ module PulpNpmClient
94
97
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
95
98
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
96
99
  # @return [AsyncOperationResponse]
97
- def delete(npm_remote_href, opts = {})
98
- data, _status_code, _headers = delete_with_http_info(npm_remote_href, opts)
100
+ def delete(npm_npm_remote_href, opts = {})
101
+ data, _status_code, _headers = delete_with_http_info(npm_npm_remote_href, opts)
99
102
  data
100
103
  end
101
104
 
105
+ # Delete a npm remote
102
106
  # Trigger an asynchronous delete task
103
- # @param npm_remote_href [String]
107
+ # @param npm_npm_remote_href [String]
104
108
  # @param [Hash] opts the optional parameters
105
109
  # @option opts [String] :name name
106
110
  # @option opts [String] :name__in name__in
@@ -112,16 +116,16 @@ module PulpNpmClient
112
116
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
113
117
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
114
118
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
115
- def delete_with_http_info(npm_remote_href, opts = {})
119
+ def delete_with_http_info(npm_npm_remote_href, opts = {})
116
120
  if @api_client.config.debugging
117
121
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.delete ...'
118
122
  end
119
- # verify the required parameter 'npm_remote_href' is set
120
- if @api_client.config.client_side_validation && npm_remote_href.nil?
121
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.delete"
123
+ # verify the required parameter 'npm_npm_remote_href' is set
124
+ if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
125
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.delete"
122
126
  end
123
127
  # resource path
124
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
128
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
125
129
 
126
130
  # query parameters
127
131
  query_params = opts[:query_params] || {}
@@ -168,6 +172,7 @@ module PulpNpmClient
168
172
  return data, status_code, headers
169
173
  end
170
174
 
175
+ # List npm remotes
171
176
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
172
177
  # @param [Hash] opts the optional parameters
173
178
  # @option opts [Integer] :limit Number of results to return per page.
@@ -189,6 +194,7 @@ module PulpNpmClient
189
194
  data
190
195
  end
191
196
 
197
+ # List npm remotes
192
198
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
193
199
  # @param [Hash] opts the optional parameters
194
200
  # @option opts [Integer] :limit Number of results to return per page.
@@ -261,8 +267,9 @@ module PulpNpmClient
261
267
  return data, status_code, headers
262
268
  end
263
269
 
270
+ # Update a npm remote
264
271
  # Trigger an asynchronous partial update task
265
- # @param npm_remote_href [String]
272
+ # @param npm_npm_remote_href [String]
266
273
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
267
274
  # @param [Hash] opts the optional parameters
268
275
  # @option opts [String] :name name
@@ -275,13 +282,14 @@ module PulpNpmClient
275
282
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
276
283
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
277
284
  # @return [AsyncOperationResponse]
278
- def partial_update(npm_remote_href, patchednpm_npm_remote, opts = {})
279
- data, _status_code, _headers = partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts)
285
+ def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
286
+ data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
280
287
  data
281
288
  end
282
289
 
290
+ # Update a npm remote
283
291
  # Trigger an asynchronous partial update task
284
- # @param npm_remote_href [String]
292
+ # @param npm_npm_remote_href [String]
285
293
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
286
294
  # @param [Hash] opts the optional parameters
287
295
  # @option opts [String] :name name
@@ -294,20 +302,20 @@ module PulpNpmClient
294
302
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
295
303
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
296
304
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
297
- def partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts = {})
305
+ def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
298
306
  if @api_client.config.debugging
299
307
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
300
308
  end
301
- # verify the required parameter 'npm_remote_href' is set
302
- if @api_client.config.client_side_validation && npm_remote_href.nil?
303
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.partial_update"
309
+ # verify the required parameter 'npm_npm_remote_href' is set
310
+ if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
311
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.partial_update"
304
312
  end
305
313
  # verify the required parameter 'patchednpm_npm_remote' is set
306
314
  if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
307
315
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
308
316
  end
309
317
  # resource path
310
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
318
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
311
319
 
312
320
  # query parameters
313
321
  query_params = opts[:query_params] || {}
@@ -356,33 +364,35 @@ module PulpNpmClient
356
364
  return data, status_code, headers
357
365
  end
358
366
 
367
+ # Inspect a npm remote
359
368
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
360
- # @param npm_remote_href [String]
369
+ # @param npm_npm_remote_href [String]
361
370
  # @param [Hash] opts the optional parameters
362
371
  # @option opts [String] :fields A list of fields to include in the response.
363
372
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
364
373
  # @return [NpmNpmRemoteResponse]
365
- def read(npm_remote_href, opts = {})
366
- data, _status_code, _headers = read_with_http_info(npm_remote_href, opts)
374
+ def read(npm_npm_remote_href, opts = {})
375
+ data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
367
376
  data
368
377
  end
369
378
 
379
+ # Inspect a npm remote
370
380
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
371
- # @param npm_remote_href [String]
381
+ # @param npm_npm_remote_href [String]
372
382
  # @param [Hash] opts the optional parameters
373
383
  # @option opts [String] :fields A list of fields to include in the response.
374
384
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
375
385
  # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
376
- def read_with_http_info(npm_remote_href, opts = {})
386
+ def read_with_http_info(npm_npm_remote_href, opts = {})
377
387
  if @api_client.config.debugging
378
388
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
379
389
  end
380
- # verify the required parameter 'npm_remote_href' is set
381
- if @api_client.config.client_side_validation && npm_remote_href.nil?
382
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.read"
390
+ # verify the required parameter 'npm_npm_remote_href' is set
391
+ if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
392
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.read"
383
393
  end
384
394
  # resource path
385
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
395
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
386
396
 
387
397
  # query parameters
388
398
  query_params = opts[:query_params] || {}
@@ -422,8 +432,9 @@ module PulpNpmClient
422
432
  return data, status_code, headers
423
433
  end
424
434
 
435
+ # Update a npm remote
425
436
  # Trigger an asynchronous update task
426
- # @param npm_remote_href [String]
437
+ # @param npm_npm_remote_href [String]
427
438
  # @param npm_npm_remote [NpmNpmRemote]
428
439
  # @param [Hash] opts the optional parameters
429
440
  # @option opts [String] :name name
@@ -436,13 +447,14 @@ module PulpNpmClient
436
447
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
437
448
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
438
449
  # @return [AsyncOperationResponse]
439
- def update(npm_remote_href, npm_npm_remote, opts = {})
440
- data, _status_code, _headers = update_with_http_info(npm_remote_href, npm_npm_remote, opts)
450
+ def update(npm_npm_remote_href, npm_npm_remote, opts = {})
451
+ data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
441
452
  data
442
453
  end
443
454
 
455
+ # Update a npm remote
444
456
  # Trigger an asynchronous update task
445
- # @param npm_remote_href [String]
457
+ # @param npm_npm_remote_href [String]
446
458
  # @param npm_npm_remote [NpmNpmRemote]
447
459
  # @param [Hash] opts the optional parameters
448
460
  # @option opts [String] :name name
@@ -455,20 +467,20 @@ module PulpNpmClient
455
467
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
456
468
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
457
469
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
458
- def update_with_http_info(npm_remote_href, npm_npm_remote, opts = {})
470
+ def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
459
471
  if @api_client.config.debugging
460
472
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
461
473
  end
462
- # verify the required parameter 'npm_remote_href' is set
463
- if @api_client.config.client_side_validation && npm_remote_href.nil?
464
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.update"
474
+ # verify the required parameter 'npm_npm_remote_href' is set
475
+ if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
476
+ fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.update"
465
477
  end
466
478
  # verify the required parameter 'npm_npm_remote' is set
467
479
  if @api_client.config.client_side_validation && npm_npm_remote.nil?
468
480
  fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
469
481
  end
470
482
  # resource path
471
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
483
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
472
484
 
473
485
  # query parameters
474
486
  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 repository
22
23
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
24
  # @param npm_npm_repository [NpmNpmRepository]
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 repository
31
33
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
32
34
  # @param npm_npm_repository [NpmNpmRepository]
33
35
  # @param [Hash] opts the optional parameters
@@ -81,35 +83,37 @@ module PulpNpmClient
81
83
  return data, status_code, headers
82
84
  end
83
85
 
86
+ # Delete a npm repository
84
87
  # Trigger an asynchronous delete task
85
- # @param npm_repository_href [String]
88
+ # @param npm_npm_repository_href [String]
86
89
  # @param [Hash] opts the optional parameters
87
90
  # @option opts [String] :name name
88
91
  # @option opts [String] :name__in name__in
89
92
  # @option opts [String] :ordering Which field to use when ordering the results.
90
93
  # @return [AsyncOperationResponse]
91
- def delete(npm_repository_href, opts = {})
92
- data, _status_code, _headers = delete_with_http_info(npm_repository_href, opts)
94
+ def delete(npm_npm_repository_href, opts = {})
95
+ data, _status_code, _headers = delete_with_http_info(npm_npm_repository_href, opts)
93
96
  data
94
97
  end
95
98
 
99
+ # Delete a npm repository
96
100
  # Trigger an asynchronous delete task
97
- # @param npm_repository_href [String]
101
+ # @param npm_npm_repository_href [String]
98
102
  # @param [Hash] opts the optional parameters
99
103
  # @option opts [String] :name name
100
104
  # @option opts [String] :name__in name__in
101
105
  # @option opts [String] :ordering Which field to use when ordering the results.
102
106
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
103
- def delete_with_http_info(npm_repository_href, opts = {})
107
+ def delete_with_http_info(npm_npm_repository_href, opts = {})
104
108
  if @api_client.config.debugging
105
109
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.delete ...'
106
110
  end
107
- # verify the required parameter 'npm_repository_href' is set
108
- if @api_client.config.client_side_validation && npm_repository_href.nil?
109
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.delete"
111
+ # verify the required parameter 'npm_npm_repository_href' is set
112
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
113
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.delete"
110
114
  end
111
115
  # resource path
112
- local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
116
+ local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
113
117
 
114
118
  # query parameters
115
119
  query_params = opts[:query_params] || {}
@@ -150,6 +154,7 @@ module PulpNpmClient
150
154
  return data, status_code, headers
151
155
  end
152
156
 
157
+ # List npm repositorys
153
158
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
154
159
  # @param [Hash] opts the optional parameters
155
160
  # @option opts [Integer] :limit Number of results to return per page.
@@ -165,6 +170,7 @@ module PulpNpmClient
165
170
  data
166
171
  end
167
172
 
173
+ # List npm repositorys
168
174
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
169
175
  # @param [Hash] opts the optional parameters
170
176
  # @option opts [Integer] :limit Number of results to return per page.
@@ -227,35 +233,35 @@ module PulpNpmClient
227
233
 
228
234
  # Modify Repository Content
229
235
  # Trigger an asynchronous task to create a new repository version.
230
- # @param npm_repository_href [String]
236
+ # @param npm_npm_repository_href [String]
231
237
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
232
238
  # @param [Hash] opts the optional parameters
233
239
  # @return [AsyncOperationResponse]
234
- def modify(npm_repository_href, repository_add_remove_content, opts = {})
235
- data, _status_code, _headers = modify_with_http_info(npm_repository_href, repository_add_remove_content, opts)
240
+ def modify(npm_npm_repository_href, repository_add_remove_content, opts = {})
241
+ data, _status_code, _headers = modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts)
236
242
  data
237
243
  end
238
244
 
239
245
  # Modify Repository Content
240
246
  # Trigger an asynchronous task to create a new repository version.
241
- # @param npm_repository_href [String]
247
+ # @param npm_npm_repository_href [String]
242
248
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
243
249
  # @param [Hash] opts the optional parameters
244
250
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
245
- def modify_with_http_info(npm_repository_href, repository_add_remove_content, opts = {})
251
+ def modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts = {})
246
252
  if @api_client.config.debugging
247
253
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.modify ...'
248
254
  end
249
- # verify the required parameter 'npm_repository_href' is set
250
- if @api_client.config.client_side_validation && npm_repository_href.nil?
251
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.modify"
255
+ # verify the required parameter 'npm_npm_repository_href' is set
256
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
257
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.modify"
252
258
  end
253
259
  # verify the required parameter 'repository_add_remove_content' is set
254
260
  if @api_client.config.client_side_validation && repository_add_remove_content.nil?
255
261
  fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesNpmApi.modify"
256
262
  end
257
263
  # resource path
258
- local_var_path = '{npm_repository_href}modify/'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
264
+ local_var_path = '{npm_npm_repository_href}modify/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
259
265
 
260
266
  # query parameters
261
267
  query_params = opts[:query_params] || {}
@@ -295,41 +301,43 @@ module PulpNpmClient
295
301
  return data, status_code, headers
296
302
  end
297
303
 
304
+ # Update a npm repository
298
305
  # Trigger an asynchronous partial update task
299
- # @param npm_repository_href [String]
306
+ # @param npm_npm_repository_href [String]
300
307
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
301
308
  # @param [Hash] opts the optional parameters
302
309
  # @option opts [String] :name name
303
310
  # @option opts [String] :name__in name__in
304
311
  # @option opts [String] :ordering Which field to use when ordering the results.
305
312
  # @return [AsyncOperationResponse]
306
- def partial_update(npm_repository_href, patchednpm_npm_repository, opts = {})
307
- data, _status_code, _headers = partial_update_with_http_info(npm_repository_href, patchednpm_npm_repository, opts)
313
+ def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
314
+ data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
308
315
  data
309
316
  end
310
317
 
318
+ # Update a npm repository
311
319
  # Trigger an asynchronous partial update task
312
- # @param npm_repository_href [String]
320
+ # @param npm_npm_repository_href [String]
313
321
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
314
322
  # @param [Hash] opts the optional parameters
315
323
  # @option opts [String] :name name
316
324
  # @option opts [String] :name__in name__in
317
325
  # @option opts [String] :ordering Which field to use when ordering the results.
318
326
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
319
- def partial_update_with_http_info(npm_repository_href, patchednpm_npm_repository, opts = {})
327
+ def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
320
328
  if @api_client.config.debugging
321
329
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
322
330
  end
323
- # verify the required parameter 'npm_repository_href' is set
324
- if @api_client.config.client_side_validation && npm_repository_href.nil?
325
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.partial_update"
331
+ # verify the required parameter 'npm_npm_repository_href' is set
332
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
333
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.partial_update"
326
334
  end
327
335
  # verify the required parameter 'patchednpm_npm_repository' is set
328
336
  if @api_client.config.client_side_validation && patchednpm_npm_repository.nil?
329
337
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.partial_update"
330
338
  end
331
339
  # resource path
332
- local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
340
+ local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
333
341
 
334
342
  # query parameters
335
343
  query_params = opts[:query_params] || {}
@@ -372,33 +380,35 @@ module PulpNpmClient
372
380
  return data, status_code, headers
373
381
  end
374
382
 
383
+ # Inspect a npm repository
375
384
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
376
- # @param npm_repository_href [String]
385
+ # @param npm_npm_repository_href [String]
377
386
  # @param [Hash] opts the optional parameters
378
387
  # @option opts [String] :fields A list of fields to include in the response.
379
388
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
380
389
  # @return [NpmNpmRepositoryResponse]
381
- def read(npm_repository_href, opts = {})
382
- data, _status_code, _headers = read_with_http_info(npm_repository_href, opts)
390
+ def read(npm_npm_repository_href, opts = {})
391
+ data, _status_code, _headers = read_with_http_info(npm_npm_repository_href, opts)
383
392
  data
384
393
  end
385
394
 
395
+ # Inspect a npm repository
386
396
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
387
- # @param npm_repository_href [String]
397
+ # @param npm_npm_repository_href [String]
388
398
  # @param [Hash] opts the optional parameters
389
399
  # @option opts [String] :fields A list of fields to include in the response.
390
400
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
391
401
  # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
392
- def read_with_http_info(npm_repository_href, opts = {})
402
+ def read_with_http_info(npm_npm_repository_href, opts = {})
393
403
  if @api_client.config.debugging
394
404
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.read ...'
395
405
  end
396
- # verify the required parameter 'npm_repository_href' is set
397
- if @api_client.config.client_side_validation && npm_repository_href.nil?
398
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.read"
406
+ # verify the required parameter 'npm_npm_repository_href' is set
407
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
408
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.read"
399
409
  end
400
410
  # resource path
401
- local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
411
+ local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
402
412
 
403
413
  # query parameters
404
414
  query_params = opts[:query_params] || {}
@@ -440,35 +450,35 @@ module PulpNpmClient
440
450
 
441
451
  # Sync from remote
442
452
  # Trigger an asynchronous task to sync content.
443
- # @param npm_repository_href [String]
453
+ # @param npm_npm_repository_href [String]
444
454
  # @param repository_sync_url [RepositorySyncURL]
445
455
  # @param [Hash] opts the optional parameters
446
456
  # @return [AsyncOperationResponse]
447
- def sync(npm_repository_href, repository_sync_url, opts = {})
448
- data, _status_code, _headers = sync_with_http_info(npm_repository_href, repository_sync_url, opts)
457
+ def sync(npm_npm_repository_href, repository_sync_url, opts = {})
458
+ data, _status_code, _headers = sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts)
449
459
  data
450
460
  end
451
461
 
452
462
  # Sync from remote
453
463
  # Trigger an asynchronous task to sync content.
454
- # @param npm_repository_href [String]
464
+ # @param npm_npm_repository_href [String]
455
465
  # @param repository_sync_url [RepositorySyncURL]
456
466
  # @param [Hash] opts the optional parameters
457
467
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
458
- def sync_with_http_info(npm_repository_href, repository_sync_url, opts = {})
468
+ def sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts = {})
459
469
  if @api_client.config.debugging
460
470
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.sync ...'
461
471
  end
462
- # verify the required parameter 'npm_repository_href' is set
463
- if @api_client.config.client_side_validation && npm_repository_href.nil?
464
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.sync"
472
+ # verify the required parameter 'npm_npm_repository_href' is set
473
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
474
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.sync"
465
475
  end
466
476
  # verify the required parameter 'repository_sync_url' is set
467
477
  if @api_client.config.client_side_validation && repository_sync_url.nil?
468
478
  fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesNpmApi.sync"
469
479
  end
470
480
  # resource path
471
- local_var_path = '{npm_repository_href}sync/'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
481
+ local_var_path = '{npm_npm_repository_href}sync/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
472
482
 
473
483
  # query parameters
474
484
  query_params = opts[:query_params] || {}
@@ -508,41 +518,43 @@ module PulpNpmClient
508
518
  return data, status_code, headers
509
519
  end
510
520
 
521
+ # Update a npm repository
511
522
  # Trigger an asynchronous update task
512
- # @param npm_repository_href [String]
523
+ # @param npm_npm_repository_href [String]
513
524
  # @param npm_npm_repository [NpmNpmRepository]
514
525
  # @param [Hash] opts the optional parameters
515
526
  # @option opts [String] :name name
516
527
  # @option opts [String] :name__in name__in
517
528
  # @option opts [String] :ordering Which field to use when ordering the results.
518
529
  # @return [AsyncOperationResponse]
519
- def update(npm_repository_href, npm_npm_repository, opts = {})
520
- data, _status_code, _headers = update_with_http_info(npm_repository_href, npm_npm_repository, opts)
530
+ def update(npm_npm_repository_href, npm_npm_repository, opts = {})
531
+ data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
521
532
  data
522
533
  end
523
534
 
535
+ # Update a npm repository
524
536
  # Trigger an asynchronous update task
525
- # @param npm_repository_href [String]
537
+ # @param npm_npm_repository_href [String]
526
538
  # @param npm_npm_repository [NpmNpmRepository]
527
539
  # @param [Hash] opts the optional parameters
528
540
  # @option opts [String] :name name
529
541
  # @option opts [String] :name__in name__in
530
542
  # @option opts [String] :ordering Which field to use when ordering the results.
531
543
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
532
- def update_with_http_info(npm_repository_href, npm_npm_repository, opts = {})
544
+ def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
533
545
  if @api_client.config.debugging
534
546
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
535
547
  end
536
- # verify the required parameter 'npm_repository_href' is set
537
- if @api_client.config.client_side_validation && npm_repository_href.nil?
538
- fail ArgumentError, "Missing the required parameter 'npm_repository_href' when calling RepositoriesNpmApi.update"
548
+ # verify the required parameter 'npm_npm_repository_href' is set
549
+ if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
550
+ fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.update"
539
551
  end
540
552
  # verify the required parameter 'npm_npm_repository' is set
541
553
  if @api_client.config.client_side_validation && npm_npm_repository.nil?
542
554
  fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.update"
543
555
  end
544
556
  # resource path
545
- local_var_path = '{npm_repository_href}'.sub('{' + 'npm_repository_href' + '}', CGI.escape(npm_repository_href.to_s).gsub('%2F', '/'))
557
+ local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
546
558
 
547
559
  # query parameters
548
560
  query_params = opts[:query_params] || {}