pulp_npm_client 0.4.0 → 0.6.0

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -9
  3. data/docs/ContentPackagesApi.md +115 -22
  4. data/docs/DistributionsNpmApi.md +14 -14
  5. data/docs/NpmNpmRemote.md +6 -6
  6. data/docs/NpmNpmRemoteResponse.md +9 -9
  7. data/docs/NpmPackageResponse.md +3 -3
  8. data/docs/PatchednpmNpmRemote.md +6 -6
  9. data/docs/RemoteNetworkConfig.md +50 -0
  10. data/docs/RemoteNetworkConfigResponse.md +40 -0
  11. data/docs/RemotesNpmApi.md +13 -13
  12. data/docs/RepositoriesNpmApi.md +15 -15
  13. data/lib/pulp_npm_client/api/content_packages_api.rb +146 -47
  14. data/lib/pulp_npm_client/api/distributions_npm_api.rb +14 -14
  15. data/lib/pulp_npm_client/api/remotes_npm_api.rb +16 -16
  16. data/lib/pulp_npm_client/api/repositories_npm_api.rb +18 -18
  17. data/lib/pulp_npm_client/models/npm_npm_remote.rb +34 -34
  18. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +50 -50
  19. data/lib/pulp_npm_client/models/npm_npm_repository.rb +1 -1
  20. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +1 -1
  21. data/lib/pulp_npm_client/models/npm_package_response.rb +4 -22
  22. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +34 -34
  23. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +1 -1
  24. data/lib/pulp_npm_client/models/remote_network_config.rb +573 -0
  25. data/lib/pulp_npm_client/models/remote_network_config_response.rb +398 -0
  26. data/lib/pulp_npm_client/version.rb +1 -1
  27. data/lib/pulp_npm_client.rb +2 -0
  28. data/spec/api/content_packages_api_spec.rb +32 -10
  29. data/spec/api/distributions_npm_api_spec.rb +6 -6
  30. data/spec/api/remotes_npm_api_spec.rb +7 -7
  31. data/spec/api/repositories_npm_api_spec.rb +8 -8
  32. data/spec/models/npm_npm_remote_response_spec.rb +10 -10
  33. data/spec/models/npm_npm_remote_spec.rb +17 -17
  34. data/spec/models/patchednpm_npm_remote_spec.rb +17 -17
  35. data/spec/models/remote_network_config_response_spec.rb +102 -0
  36. data/spec/models/remote_network_config_spec.rb +132 -0
  37. metadata +31 -23
@@ -182,8 +182,8 @@ module PulpNpmClient
182
182
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
183
183
  # @option opts [String] :pulp_label_select Filter labels by search string
184
184
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
185
- # @option opts [String] :repository Filter results where repository matches value
186
- # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
185
+ # @option opts [String] :repository
186
+ # @option opts [Array<String>] :repository__in
187
187
  # @option opts [String] :with_content Filter distributions based on the content served by them
188
188
  # @option opts [Array<String>] :fields A list of fields to include in the response.
189
189
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -219,8 +219,8 @@ module PulpNpmClient
219
219
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
220
220
  # @option opts [String] :pulp_label_select Filter labels by search string
221
221
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
222
- # @option opts [String] :repository Filter results where repository matches value
223
- # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
222
+ # @option opts [String] :repository
223
+ # @option opts [Array<String>] :repository__in
224
224
  # @option opts [String] :with_content Filter distributions based on the content served by them
225
225
  # @option opts [Array<String>] :fields A list of fields to include in the response.
226
226
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -302,24 +302,24 @@ module PulpNpmClient
302
302
  end
303
303
 
304
304
  # Update a npm distribution
305
- # Trigger an asynchronous partial update task
305
+ # Update the entity partially and trigger an asynchronous task if necessary
306
306
  # @param npm_npm_distribution_href [String]
307
307
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
310
- # @return [AsyncOperationResponse]
310
+ # @return [NpmNpmDistributionResponse]
311
311
  def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
312
312
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
313
313
  data
314
314
  end
315
315
 
316
316
  # Update a npm distribution
317
- # Trigger an asynchronous partial update task
317
+ # Update the entity partially and trigger an asynchronous task if necessary
318
318
  # @param npm_npm_distribution_href [String]
319
319
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
320
320
  # @param [Hash] opts the optional parameters
321
321
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
322
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
322
+ # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
323
323
  def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
324
324
  if @api_client.config.debugging
325
325
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
@@ -356,7 +356,7 @@ module PulpNpmClient
356
356
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_distribution)
357
357
 
358
358
  # return_type
359
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
359
+ return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
360
360
 
361
361
  # auth_names
362
362
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -605,24 +605,24 @@ module PulpNpmClient
605
605
  end
606
606
 
607
607
  # Update a npm distribution
608
- # Trigger an asynchronous update task
608
+ # Update the entity and trigger an asynchronous task if necessary
609
609
  # @param npm_npm_distribution_href [String]
610
610
  # @param npm_npm_distribution [NpmNpmDistribution]
611
611
  # @param [Hash] opts the optional parameters
612
612
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
613
- # @return [AsyncOperationResponse]
613
+ # @return [NpmNpmDistributionResponse]
614
614
  def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
615
615
  data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
616
616
  data
617
617
  end
618
618
 
619
619
  # Update a npm distribution
620
- # Trigger an asynchronous update task
620
+ # Update the entity and trigger an asynchronous task if necessary
621
621
  # @param npm_npm_distribution_href [String]
622
622
  # @param npm_npm_distribution [NpmNpmDistribution]
623
623
  # @param [Hash] opts the optional parameters
624
624
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
625
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
625
+ # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
626
626
  def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
627
627
  if @api_client.config.debugging
628
628
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
@@ -659,7 +659,7 @@ module PulpNpmClient
659
659
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_distribution)
660
660
 
661
661
  # return_type
662
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
662
+ return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
663
663
 
664
664
  # auth_names
665
665
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -20,7 +20,7 @@ module PulpNpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a npm remote
23
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
24
  # @param npm_npm_remote [NpmNpmRemote]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -31,7 +31,7 @@ module PulpNpmClient
31
31
  end
32
32
 
33
33
  # Create a npm remote
34
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
35
35
  # @param npm_npm_remote [NpmNpmRemote]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -157,7 +157,7 @@ module PulpNpmClient
157
157
  end
158
158
 
159
159
  # List npm remotes
160
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
160
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
163
163
  # @option opts [Integer] :limit Number of results to return per page.
@@ -193,7 +193,7 @@ module PulpNpmClient
193
193
  end
194
194
 
195
195
  # List npm remotes
196
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
196
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
197
197
  # @param [Hash] opts the optional parameters
198
198
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
199
199
  # @option opts [Integer] :limit Number of results to return per page.
@@ -299,24 +299,24 @@ module PulpNpmClient
299
299
  end
300
300
 
301
301
  # Update a npm remote
302
- # Trigger an asynchronous partial update task
302
+ # Update the entity partially and trigger an asynchronous task if necessary
303
303
  # @param npm_npm_remote_href [String]
304
304
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
305
305
  # @param [Hash] opts the optional parameters
306
306
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
307
- # @return [AsyncOperationResponse]
307
+ # @return [NpmNpmRemoteResponse]
308
308
  def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
309
309
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
310
310
  data
311
311
  end
312
312
 
313
313
  # Update a npm remote
314
- # Trigger an asynchronous partial update task
314
+ # Update the entity partially and trigger an asynchronous task if necessary
315
315
  # @param npm_npm_remote_href [String]
316
316
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
317
317
  # @param [Hash] opts the optional parameters
318
318
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
319
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
319
+ # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
320
320
  def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
321
321
  if @api_client.config.debugging
322
322
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
@@ -353,7 +353,7 @@ module PulpNpmClient
353
353
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_remote)
354
354
 
355
355
  # return_type
356
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
356
+ return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
357
357
 
358
358
  # auth_names
359
359
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -376,7 +376,7 @@ module PulpNpmClient
376
376
  end
377
377
 
378
378
  # Inspect a npm remote
379
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
379
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
380
380
  # @param npm_npm_remote_href [String]
381
381
  # @param [Hash] opts the optional parameters
382
382
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -389,7 +389,7 @@ module PulpNpmClient
389
389
  end
390
390
 
391
391
  # Inspect a npm remote
392
- # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
392
+ # A ViewSet for NpmRemote. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
393
393
  # @param npm_npm_remote_href [String]
394
394
  # @param [Hash] opts the optional parameters
395
395
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -602,24 +602,24 @@ module PulpNpmClient
602
602
  end
603
603
 
604
604
  # Update a npm remote
605
- # Trigger an asynchronous update task
605
+ # Update the entity and trigger an asynchronous task if necessary
606
606
  # @param npm_npm_remote_href [String]
607
607
  # @param npm_npm_remote [NpmNpmRemote]
608
608
  # @param [Hash] opts the optional parameters
609
609
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
610
- # @return [AsyncOperationResponse]
610
+ # @return [NpmNpmRemoteResponse]
611
611
  def update(npm_npm_remote_href, npm_npm_remote, opts = {})
612
612
  data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
613
613
  data
614
614
  end
615
615
 
616
616
  # Update a npm remote
617
- # Trigger an asynchronous update task
617
+ # Update the entity and trigger an asynchronous task if necessary
618
618
  # @param npm_npm_remote_href [String]
619
619
  # @param npm_npm_remote [NpmNpmRemote]
620
620
  # @param [Hash] opts the optional parameters
621
621
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
622
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
622
+ # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
623
623
  def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
624
624
  if @api_client.config.debugging
625
625
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
@@ -656,7 +656,7 @@ module PulpNpmClient
656
656
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_remote)
657
657
 
658
658
  # return_type
659
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
659
+ return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
660
660
 
661
661
  # auth_names
662
662
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -20,7 +20,7 @@ module PulpNpmClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a npm repository
23
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
24
  # @param npm_npm_repository [NpmNpmRepository]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -31,7 +31,7 @@ module PulpNpmClient
31
31
  end
32
32
 
33
33
  # Create a npm repository
34
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
35
35
  # @param npm_npm_repository [NpmNpmRepository]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -157,7 +157,7 @@ module PulpNpmClient
157
157
  end
158
158
 
159
159
  # List npm repositorys
160
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
160
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
161
161
  # @param [Hash] opts the optional parameters
162
162
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
163
163
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
@@ -178,7 +178,7 @@ module PulpNpmClient
178
178
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
179
179
  # @option opts [String] :pulp_label_select Filter labels by search string
180
180
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
181
- # @option opts [String] :remote Foreign Key referenced by HREF
181
+ # @option opts [String] :remote
182
182
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
183
183
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
184
184
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -197,7 +197,7 @@ module PulpNpmClient
197
197
  end
198
198
 
199
199
  # List npm repositorys
200
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
200
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
203
203
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
@@ -218,7 +218,7 @@ module PulpNpmClient
218
218
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
219
219
  # @option opts [String] :pulp_label_select Filter labels by search string
220
220
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
221
- # @option opts [String] :remote Foreign Key referenced by HREF
221
+ # @option opts [String] :remote
222
222
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
223
223
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
224
224
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -388,24 +388,24 @@ module PulpNpmClient
388
388
  end
389
389
 
390
390
  # Update a npm repository
391
- # Trigger an asynchronous partial update task
391
+ # Update the entity partially and trigger an asynchronous task if necessary
392
392
  # @param npm_npm_repository_href [String]
393
393
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
394
394
  # @param [Hash] opts the optional parameters
395
395
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
396
- # @return [AsyncOperationResponse]
396
+ # @return [NpmNpmRepositoryResponse]
397
397
  def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
398
398
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
399
399
  data
400
400
  end
401
401
 
402
402
  # Update a npm repository
403
- # Trigger an asynchronous partial update task
403
+ # Update the entity partially and trigger an asynchronous task if necessary
404
404
  # @param npm_npm_repository_href [String]
405
405
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
406
406
  # @param [Hash] opts the optional parameters
407
407
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
408
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
408
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
409
409
  def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
410
410
  if @api_client.config.debugging
411
411
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
@@ -442,7 +442,7 @@ module PulpNpmClient
442
442
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_repository)
443
443
 
444
444
  # return_type
445
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
445
+ return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
446
446
 
447
447
  # auth_names
448
448
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -465,7 +465,7 @@ module PulpNpmClient
465
465
  end
466
466
 
467
467
  # Inspect a npm repository
468
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
468
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
469
469
  # @param npm_npm_repository_href [String]
470
470
  # @param [Hash] opts the optional parameters
471
471
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -478,7 +478,7 @@ module PulpNpmClient
478
478
  end
479
479
 
480
480
  # Inspect a npm repository
481
- # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
481
+ # A ViewSet for NpmRepository. Similar to the NpmPackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
482
482
  # @param npm_npm_repository_href [String]
483
483
  # @param [Hash] opts the optional parameters
484
484
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
@@ -768,24 +768,24 @@ module PulpNpmClient
768
768
  end
769
769
 
770
770
  # Update a npm repository
771
- # Trigger an asynchronous update task
771
+ # Update the entity and trigger an asynchronous task if necessary
772
772
  # @param npm_npm_repository_href [String]
773
773
  # @param npm_npm_repository [NpmNpmRepository]
774
774
  # @param [Hash] opts the optional parameters
775
775
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
776
- # @return [AsyncOperationResponse]
776
+ # @return [NpmNpmRepositoryResponse]
777
777
  def update(npm_npm_repository_href, npm_npm_repository, opts = {})
778
778
  data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
779
779
  data
780
780
  end
781
781
 
782
782
  # Update a npm repository
783
- # Trigger an asynchronous update task
783
+ # Update the entity and trigger an asynchronous task if necessary
784
784
  # @param npm_npm_repository_href [String]
785
785
  # @param npm_npm_repository [NpmNpmRepository]
786
786
  # @param [Hash] opts the optional parameters
787
787
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
788
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
788
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
789
789
  def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
790
790
  if @api_client.config.debugging
791
791
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
@@ -822,7 +822,7 @@ module PulpNpmClient
822
822
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_repository)
823
823
 
824
824
  # return_type
825
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
825
+ return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
826
826
 
827
827
  # auth_names
828
828
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpNpmClient
17
- # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in PackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RemoteSerializer.Meta.validators + [myValidator1, ...] By default the 'policy' field in core_serializers.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
17
+ # A Serializer for NpmRemote. Add any new fields if defined on NpmRemote. Similar to the example above, in NpmPackageSerializer. Additional validators can be added to the parent validators list For example:: class Meta: validators = core_serializers.RemoteSerializer.Meta.validators + [myValidator1, ...] By default the 'policy' field in core_serializers.RemoteSerializer only validates the choice 'immediate'. To add on-demand support for more 'policy' options, e.g. 'streamed' or 'on_demand', re-define the 'policy' option as follows::
18
18
  class NpmNpmRemote
19
19
  # A unique name for this remote.
20
20
  attr_accessor :name
@@ -22,6 +22,11 @@ module PulpNpmClient
22
22
  # The URL of an external content source.
23
23
  attr_accessor :url
24
24
 
25
+ attr_accessor :pulp_labels
26
+
27
+ # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
28
+ attr_accessor :policy
29
+
25
30
  # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
26
31
  attr_accessor :ca_cert
27
32
 
@@ -49,17 +54,9 @@ module PulpNpmClient
49
54
  # The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
50
55
  attr_accessor :password
51
56
 
52
- attr_accessor :pulp_labels
53
-
54
- # Total number of simultaneous connections. If not set then the default value will be used.
55
- attr_accessor :download_concurrency
56
-
57
57
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
58
58
  attr_accessor :max_retries
59
59
 
60
- # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default. * `immediate` - When syncing, download all metadata and content now. * `on_demand` - When syncing, download metadata, but do not download content now. Instead, download content as clients request it, and save it in Pulp to be served for future client requests. * `streamed` - When syncing, download metadata, but do not download content now. Instead,download content as clients request it, but never save it in Pulp. This causes future requests for that same content to have to be downloaded again.
61
- attr_accessor :policy
62
-
63
60
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
64
61
  attr_accessor :total_timeout
65
62
 
@@ -75,6 +72,9 @@ module PulpNpmClient
75
72
  # Headers for aiohttp.Clientsession
76
73
  attr_accessor :headers
77
74
 
75
+ # Total number of simultaneous connections. If not set then the default value will be used.
76
+ attr_accessor :download_concurrency
77
+
78
78
  # Limits requests per second for each concurrent downloader
79
79
  attr_accessor :rate_limit
80
80
 
@@ -105,6 +105,8 @@ module PulpNpmClient
105
105
  {
106
106
  :'name' => :'name',
107
107
  :'url' => :'url',
108
+ :'pulp_labels' => :'pulp_labels',
109
+ :'policy' => :'policy',
108
110
  :'ca_cert' => :'ca_cert',
109
111
  :'client_cert' => :'client_cert',
110
112
  :'client_key' => :'client_key',
@@ -114,15 +116,13 @@ module PulpNpmClient
114
116
  :'proxy_password' => :'proxy_password',
115
117
  :'username' => :'username',
116
118
  :'password' => :'password',
117
- :'pulp_labels' => :'pulp_labels',
118
- :'download_concurrency' => :'download_concurrency',
119
119
  :'max_retries' => :'max_retries',
120
- :'policy' => :'policy',
121
120
  :'total_timeout' => :'total_timeout',
122
121
  :'connect_timeout' => :'connect_timeout',
123
122
  :'sock_connect_timeout' => :'sock_connect_timeout',
124
123
  :'sock_read_timeout' => :'sock_read_timeout',
125
124
  :'headers' => :'headers',
125
+ :'download_concurrency' => :'download_concurrency',
126
126
  :'rate_limit' => :'rate_limit'
127
127
  }
128
128
  end
@@ -137,6 +137,8 @@ module PulpNpmClient
137
137
  {
138
138
  :'name' => :'String',
139
139
  :'url' => :'String',
140
+ :'pulp_labels' => :'Hash<String, String>',
141
+ :'policy' => :'PolicyEnum',
140
142
  :'ca_cert' => :'String',
141
143
  :'client_cert' => :'String',
142
144
  :'client_key' => :'String',
@@ -146,15 +148,13 @@ module PulpNpmClient
146
148
  :'proxy_password' => :'String',
147
149
  :'username' => :'String',
148
150
  :'password' => :'String',
149
- :'pulp_labels' => :'Hash<String, String>',
150
- :'download_concurrency' => :'Integer',
151
151
  :'max_retries' => :'Integer',
152
- :'policy' => :'PolicyEnum',
153
152
  :'total_timeout' => :'Float',
154
153
  :'connect_timeout' => :'Float',
155
154
  :'sock_connect_timeout' => :'Float',
156
155
  :'sock_read_timeout' => :'Float',
157
156
  :'headers' => :'Array<Object>',
157
+ :'download_concurrency' => :'Integer',
158
158
  :'rate_limit' => :'Integer'
159
159
  }
160
160
  end
@@ -170,12 +170,12 @@ module PulpNpmClient
170
170
  :'proxy_password',
171
171
  :'username',
172
172
  :'password',
173
- :'download_concurrency',
174
173
  :'max_retries',
175
174
  :'total_timeout',
176
175
  :'connect_timeout',
177
176
  :'sock_connect_timeout',
178
177
  :'sock_read_timeout',
178
+ :'download_concurrency',
179
179
  :'rate_limit'
180
180
  ])
181
181
  end
@@ -207,6 +207,16 @@ module PulpNpmClient
207
207
  self.url = nil
208
208
  end
209
209
 
210
+ if attributes.key?(:'pulp_labels')
211
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
212
+ self.pulp_labels = value
213
+ end
214
+ end
215
+
216
+ if attributes.key?(:'policy')
217
+ self.policy = attributes[:'policy']
218
+ end
219
+
210
220
  if attributes.key?(:'ca_cert')
211
221
  self.ca_cert = attributes[:'ca_cert']
212
222
  end
@@ -243,24 +253,10 @@ module PulpNpmClient
243
253
  self.password = attributes[:'password']
244
254
  end
245
255
 
246
- if attributes.key?(:'pulp_labels')
247
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
248
- self.pulp_labels = value
249
- end
250
- end
251
-
252
- if attributes.key?(:'download_concurrency')
253
- self.download_concurrency = attributes[:'download_concurrency']
254
- end
255
-
256
256
  if attributes.key?(:'max_retries')
257
257
  self.max_retries = attributes[:'max_retries']
258
258
  end
259
259
 
260
- if attributes.key?(:'policy')
261
- self.policy = attributes[:'policy']
262
- end
263
-
264
260
  if attributes.key?(:'total_timeout')
265
261
  self.total_timeout = attributes[:'total_timeout']
266
262
  end
@@ -283,6 +279,10 @@ module PulpNpmClient
283
279
  end
284
280
  end
285
281
 
282
+ if attributes.key?(:'download_concurrency')
283
+ self.download_concurrency = attributes[:'download_concurrency']
284
+ end
285
+
286
286
  if attributes.key?(:'rate_limit')
287
287
  self.rate_limit = attributes[:'rate_limit']
288
288
  end
@@ -538,6 +538,8 @@ module PulpNpmClient
538
538
  self.class == o.class &&
539
539
  name == o.name &&
540
540
  url == o.url &&
541
+ pulp_labels == o.pulp_labels &&
542
+ policy == o.policy &&
541
543
  ca_cert == o.ca_cert &&
542
544
  client_cert == o.client_cert &&
543
545
  client_key == o.client_key &&
@@ -547,15 +549,13 @@ module PulpNpmClient
547
549
  proxy_password == o.proxy_password &&
548
550
  username == o.username &&
549
551
  password == o.password &&
550
- pulp_labels == o.pulp_labels &&
551
- download_concurrency == o.download_concurrency &&
552
552
  max_retries == o.max_retries &&
553
- policy == o.policy &&
554
553
  total_timeout == o.total_timeout &&
555
554
  connect_timeout == o.connect_timeout &&
556
555
  sock_connect_timeout == o.sock_connect_timeout &&
557
556
  sock_read_timeout == o.sock_read_timeout &&
558
557
  headers == o.headers &&
558
+ download_concurrency == o.download_concurrency &&
559
559
  rate_limit == o.rate_limit
560
560
  end
561
561
 
@@ -568,7 +568,7 @@ module PulpNpmClient
568
568
  # Calculates hash code according to all attributes.
569
569
  # @return [Integer] Hash code
570
570
  def hash
571
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
571
+ [name, url, pulp_labels, policy, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, download_concurrency, rate_limit].hash
572
572
  end
573
573
 
574
574
  # Builds the object from hash