pulp_npm_client 0.1.0a1.dev01596158992 → 0.1.0a1.dev01596591099

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.

@@ -0,0 +1,86 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpNpmClient
16
+ class PulpNpmPackagesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Return a published package.
23
+ # @param name [String]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :fields A list of fields to include in the response.
26
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
27
+ # @return [nil]
28
+ def read(name, opts = {})
29
+ read_with_http_info(name, opts)
30
+ nil
31
+ end
32
+
33
+ # Return a published package.
34
+ # @param name [String]
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :fields A list of fields to include in the response.
37
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def read_with_http_info(name, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: PulpNpmPackagesApi.read ...'
42
+ end
43
+ # verify the required parameter 'name' is set
44
+ if @api_client.config.client_side_validation && name.nil?
45
+ fail ArgumentError, "Missing the required parameter 'name' when calling PulpNpmPackagesApi.read"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp_npm/packages/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/'))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
53
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body]
63
+
64
+ # return_type
65
+ return_type = opts[:return_type]
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || []
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: PulpNpmPackagesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+ end
86
+ end
@@ -85,7 +85,7 @@ module PulpNpmClient
85
85
 
86
86
  # Delete a npm remote
87
87
  # Trigger an asynchronous delete task
88
- # @param npm_remote_href [String]
88
+ # @param npm_npm_remote_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @option opts [String] :name name
91
91
  # @option opts [String] :name__in name__in
@@ -97,14 +97,14 @@ module PulpNpmClient
97
97
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
98
98
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
99
99
  # @return [AsyncOperationResponse]
100
- def delete(npm_remote_href, opts = {})
101
- 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)
102
102
  data
103
103
  end
104
104
 
105
105
  # Delete a npm remote
106
106
  # Trigger an asynchronous delete task
107
- # @param npm_remote_href [String]
107
+ # @param npm_npm_remote_href [String]
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @option opts [String] :name name
110
110
  # @option opts [String] :name__in name__in
@@ -116,16 +116,16 @@ module PulpNpmClient
116
116
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
117
117
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
118
118
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
119
- def delete_with_http_info(npm_remote_href, opts = {})
119
+ def delete_with_http_info(npm_npm_remote_href, opts = {})
120
120
  if @api_client.config.debugging
121
121
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.delete ...'
122
122
  end
123
- # verify the required parameter 'npm_remote_href' is set
124
- if @api_client.config.client_side_validation && npm_remote_href.nil?
125
- 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"
126
126
  end
127
127
  # resource path
128
- 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', '/'))
129
129
 
130
130
  # query parameters
131
131
  query_params = opts[:query_params] || {}
@@ -269,7 +269,7 @@ module PulpNpmClient
269
269
 
270
270
  # Update a npm remote
271
271
  # Trigger an asynchronous partial update task
272
- # @param npm_remote_href [String]
272
+ # @param npm_npm_remote_href [String]
273
273
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
274
274
  # @param [Hash] opts the optional parameters
275
275
  # @option opts [String] :name name
@@ -282,14 +282,14 @@ module PulpNpmClient
282
282
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
283
283
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
284
284
  # @return [AsyncOperationResponse]
285
- def partial_update(npm_remote_href, patchednpm_npm_remote, opts = {})
286
- 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)
287
287
  data
288
288
  end
289
289
 
290
290
  # Update a npm remote
291
291
  # Trigger an asynchronous partial update task
292
- # @param npm_remote_href [String]
292
+ # @param npm_npm_remote_href [String]
293
293
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
294
294
  # @param [Hash] opts the optional parameters
295
295
  # @option opts [String] :name name
@@ -302,20 +302,20 @@ module PulpNpmClient
302
302
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
303
303
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
304
304
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
305
- 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 = {})
306
306
  if @api_client.config.debugging
307
307
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
308
308
  end
309
- # verify the required parameter 'npm_remote_href' is set
310
- if @api_client.config.client_side_validation && npm_remote_href.nil?
311
- 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"
312
312
  end
313
313
  # verify the required parameter 'patchednpm_npm_remote' is set
314
314
  if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
315
315
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
316
316
  end
317
317
  # resource path
318
- 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', '/'))
319
319
 
320
320
  # query parameters
321
321
  query_params = opts[:query_params] || {}
@@ -366,33 +366,33 @@ module PulpNpmClient
366
366
 
367
367
  # Inspect a npm remote
368
368
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
369
- # @param npm_remote_href [String]
369
+ # @param npm_npm_remote_href [String]
370
370
  # @param [Hash] opts the optional parameters
371
371
  # @option opts [String] :fields A list of fields to include in the response.
372
372
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
373
373
  # @return [NpmNpmRemoteResponse]
374
- def read(npm_remote_href, opts = {})
375
- 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)
376
376
  data
377
377
  end
378
378
 
379
379
  # Inspect a npm remote
380
380
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
381
- # @param npm_remote_href [String]
381
+ # @param npm_npm_remote_href [String]
382
382
  # @param [Hash] opts the optional parameters
383
383
  # @option opts [String] :fields A list of fields to include in the response.
384
384
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
385
385
  # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
386
- def read_with_http_info(npm_remote_href, opts = {})
386
+ def read_with_http_info(npm_npm_remote_href, opts = {})
387
387
  if @api_client.config.debugging
388
388
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
389
389
  end
390
- # verify the required parameter 'npm_remote_href' is set
391
- if @api_client.config.client_side_validation && npm_remote_href.nil?
392
- 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"
393
393
  end
394
394
  # resource path
395
- 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', '/'))
396
396
 
397
397
  # query parameters
398
398
  query_params = opts[:query_params] || {}
@@ -434,7 +434,7 @@ module PulpNpmClient
434
434
 
435
435
  # Update a npm remote
436
436
  # Trigger an asynchronous update task
437
- # @param npm_remote_href [String]
437
+ # @param npm_npm_remote_href [String]
438
438
  # @param npm_npm_remote [NpmNpmRemote]
439
439
  # @param [Hash] opts the optional parameters
440
440
  # @option opts [String] :name name
@@ -447,14 +447,14 @@ module PulpNpmClient
447
447
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
448
448
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
449
449
  # @return [AsyncOperationResponse]
450
- def update(npm_remote_href, npm_npm_remote, opts = {})
451
- 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)
452
452
  data
453
453
  end
454
454
 
455
455
  # Update a npm remote
456
456
  # Trigger an asynchronous update task
457
- # @param npm_remote_href [String]
457
+ # @param npm_npm_remote_href [String]
458
458
  # @param npm_npm_remote [NpmNpmRemote]
459
459
  # @param [Hash] opts the optional parameters
460
460
  # @option opts [String] :name name
@@ -467,20 +467,20 @@ module PulpNpmClient
467
467
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
468
468
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
469
469
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
470
- 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 = {})
471
471
  if @api_client.config.debugging
472
472
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
473
473
  end
474
- # verify the required parameter 'npm_remote_href' is set
475
- if @api_client.config.client_side_validation && npm_remote_href.nil?
476
- 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"
477
477
  end
478
478
  # verify the required parameter 'npm_npm_remote' is set
479
479
  if @api_client.config.client_side_validation && npm_npm_remote.nil?
480
480
  fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
481
481
  end
482
482
  # resource path
483
- 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', '/'))
484
484
 
485
485
  # query parameters
486
486
  query_params = opts[:query_params] || {}
@@ -85,35 +85,35 @@ module PulpNpmClient
85
85
 
86
86
  # Delete a npm repository
87
87
  # Trigger an asynchronous delete task
88
- # @param npm_repository_href [String]
88
+ # @param npm_npm_repository_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @option opts [String] :name name
91
91
  # @option opts [String] :name__in name__in
92
92
  # @option opts [String] :ordering Which field to use when ordering the results.
93
93
  # @return [AsyncOperationResponse]
94
- def delete(npm_repository_href, opts = {})
95
- 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)
96
96
  data
97
97
  end
98
98
 
99
99
  # Delete a npm repository
100
100
  # Trigger an asynchronous delete task
101
- # @param npm_repository_href [String]
101
+ # @param npm_npm_repository_href [String]
102
102
  # @param [Hash] opts the optional parameters
103
103
  # @option opts [String] :name name
104
104
  # @option opts [String] :name__in name__in
105
105
  # @option opts [String] :ordering Which field to use when ordering the results.
106
106
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
107
- def delete_with_http_info(npm_repository_href, opts = {})
107
+ def delete_with_http_info(npm_npm_repository_href, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.delete ...'
110
110
  end
111
- # verify the required parameter 'npm_repository_href' is set
112
- if @api_client.config.client_side_validation && npm_repository_href.nil?
113
- 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"
114
114
  end
115
115
  # resource path
116
- 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', '/'))
117
117
 
118
118
  # query parameters
119
119
  query_params = opts[:query_params] || {}
@@ -233,35 +233,35 @@ module PulpNpmClient
233
233
 
234
234
  # Modify Repository Content
235
235
  # Trigger an asynchronous task to create a new repository version.
236
- # @param npm_repository_href [String]
236
+ # @param npm_npm_repository_href [String]
237
237
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
238
238
  # @param [Hash] opts the optional parameters
239
239
  # @return [AsyncOperationResponse]
240
- def modify(npm_repository_href, repository_add_remove_content, opts = {})
241
- 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)
242
242
  data
243
243
  end
244
244
 
245
245
  # Modify Repository Content
246
246
  # Trigger an asynchronous task to create a new repository version.
247
- # @param npm_repository_href [String]
247
+ # @param npm_npm_repository_href [String]
248
248
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
249
249
  # @param [Hash] opts the optional parameters
250
250
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
251
- 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 = {})
252
252
  if @api_client.config.debugging
253
253
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.modify ...'
254
254
  end
255
- # verify the required parameter 'npm_repository_href' is set
256
- if @api_client.config.client_side_validation && npm_repository_href.nil?
257
- 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"
258
258
  end
259
259
  # verify the required parameter 'repository_add_remove_content' is set
260
260
  if @api_client.config.client_side_validation && repository_add_remove_content.nil?
261
261
  fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesNpmApi.modify"
262
262
  end
263
263
  # resource path
264
- 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', '/'))
265
265
 
266
266
  # query parameters
267
267
  query_params = opts[:query_params] || {}
@@ -303,41 +303,41 @@ module PulpNpmClient
303
303
 
304
304
  # Update a npm repository
305
305
  # Trigger an asynchronous partial update task
306
- # @param npm_repository_href [String]
306
+ # @param npm_npm_repository_href [String]
307
307
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @option opts [String] :name name
310
310
  # @option opts [String] :name__in name__in
311
311
  # @option opts [String] :ordering Which field to use when ordering the results.
312
312
  # @return [AsyncOperationResponse]
313
- def partial_update(npm_repository_href, patchednpm_npm_repository, opts = {})
314
- 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)
315
315
  data
316
316
  end
317
317
 
318
318
  # Update a npm repository
319
319
  # Trigger an asynchronous partial update task
320
- # @param npm_repository_href [String]
320
+ # @param npm_npm_repository_href [String]
321
321
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @option opts [String] :name name
324
324
  # @option opts [String] :name__in name__in
325
325
  # @option opts [String] :ordering Which field to use when ordering the results.
326
326
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
327
- 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 = {})
328
328
  if @api_client.config.debugging
329
329
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
330
330
  end
331
- # verify the required parameter 'npm_repository_href' is set
332
- if @api_client.config.client_side_validation && npm_repository_href.nil?
333
- 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"
334
334
  end
335
335
  # verify the required parameter 'patchednpm_npm_repository' is set
336
336
  if @api_client.config.client_side_validation && patchednpm_npm_repository.nil?
337
337
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.partial_update"
338
338
  end
339
339
  # resource path
340
- 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', '/'))
341
341
 
342
342
  # query parameters
343
343
  query_params = opts[:query_params] || {}
@@ -382,33 +382,33 @@ module PulpNpmClient
382
382
 
383
383
  # Inspect a npm repository
384
384
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
385
- # @param npm_repository_href [String]
385
+ # @param npm_npm_repository_href [String]
386
386
  # @param [Hash] opts the optional parameters
387
387
  # @option opts [String] :fields A list of fields to include in the response.
388
388
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
389
389
  # @return [NpmNpmRepositoryResponse]
390
- def read(npm_repository_href, opts = {})
391
- 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)
392
392
  data
393
393
  end
394
394
 
395
395
  # Inspect a npm repository
396
396
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
397
- # @param npm_repository_href [String]
397
+ # @param npm_npm_repository_href [String]
398
398
  # @param [Hash] opts the optional parameters
399
399
  # @option opts [String] :fields A list of fields to include in the response.
400
400
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
401
401
  # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
402
- def read_with_http_info(npm_repository_href, opts = {})
402
+ def read_with_http_info(npm_npm_repository_href, opts = {})
403
403
  if @api_client.config.debugging
404
404
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.read ...'
405
405
  end
406
- # verify the required parameter 'npm_repository_href' is set
407
- if @api_client.config.client_side_validation && npm_repository_href.nil?
408
- 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"
409
409
  end
410
410
  # resource path
411
- 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', '/'))
412
412
 
413
413
  # query parameters
414
414
  query_params = opts[:query_params] || {}
@@ -450,35 +450,35 @@ module PulpNpmClient
450
450
 
451
451
  # Sync from remote
452
452
  # Trigger an asynchronous task to sync content.
453
- # @param npm_repository_href [String]
453
+ # @param npm_npm_repository_href [String]
454
454
  # @param repository_sync_url [RepositorySyncURL]
455
455
  # @param [Hash] opts the optional parameters
456
456
  # @return [AsyncOperationResponse]
457
- def sync(npm_repository_href, repository_sync_url, opts = {})
458
- 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)
459
459
  data
460
460
  end
461
461
 
462
462
  # Sync from remote
463
463
  # Trigger an asynchronous task to sync content.
464
- # @param npm_repository_href [String]
464
+ # @param npm_npm_repository_href [String]
465
465
  # @param repository_sync_url [RepositorySyncURL]
466
466
  # @param [Hash] opts the optional parameters
467
467
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
468
- 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 = {})
469
469
  if @api_client.config.debugging
470
470
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.sync ...'
471
471
  end
472
- # verify the required parameter 'npm_repository_href' is set
473
- if @api_client.config.client_side_validation && npm_repository_href.nil?
474
- 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"
475
475
  end
476
476
  # verify the required parameter 'repository_sync_url' is set
477
477
  if @api_client.config.client_side_validation && repository_sync_url.nil?
478
478
  fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesNpmApi.sync"
479
479
  end
480
480
  # resource path
481
- 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', '/'))
482
482
 
483
483
  # query parameters
484
484
  query_params = opts[:query_params] || {}
@@ -520,41 +520,41 @@ module PulpNpmClient
520
520
 
521
521
  # Update a npm repository
522
522
  # Trigger an asynchronous update task
523
- # @param npm_repository_href [String]
523
+ # @param npm_npm_repository_href [String]
524
524
  # @param npm_npm_repository [NpmNpmRepository]
525
525
  # @param [Hash] opts the optional parameters
526
526
  # @option opts [String] :name name
527
527
  # @option opts [String] :name__in name__in
528
528
  # @option opts [String] :ordering Which field to use when ordering the results.
529
529
  # @return [AsyncOperationResponse]
530
- def update(npm_repository_href, npm_npm_repository, opts = {})
531
- 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)
532
532
  data
533
533
  end
534
534
 
535
535
  # Update a npm repository
536
536
  # Trigger an asynchronous update task
537
- # @param npm_repository_href [String]
537
+ # @param npm_npm_repository_href [String]
538
538
  # @param npm_npm_repository [NpmNpmRepository]
539
539
  # @param [Hash] opts the optional parameters
540
540
  # @option opts [String] :name name
541
541
  # @option opts [String] :name__in name__in
542
542
  # @option opts [String] :ordering Which field to use when ordering the results.
543
543
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
544
- 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 = {})
545
545
  if @api_client.config.debugging
546
546
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
547
547
  end
548
- # verify the required parameter 'npm_repository_href' is set
549
- if @api_client.config.client_side_validation && npm_repository_href.nil?
550
- 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"
551
551
  end
552
552
  # verify the required parameter 'npm_npm_repository' is set
553
553
  if @api_client.config.client_side_validation && npm_npm_repository.nil?
554
554
  fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.update"
555
555
  end
556
556
  # resource path
557
- 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', '/'))
558
558
 
559
559
  # query parameters
560
560
  query_params = opts[:query_params] || {}