pulp_npm_client 0.1.0a1

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 (105) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +157 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentPackagesApi.md +208 -0
  7. data/docs/ContentSummary.md +21 -0
  8. data/docs/ContentSummaryResponse.md +21 -0
  9. data/docs/DistributionsNpmApi.md +364 -0
  10. data/docs/NpmNpmDistribution.md +25 -0
  11. data/docs/NpmNpmDistributionResponse.md +31 -0
  12. data/docs/NpmNpmRemote.md +37 -0
  13. data/docs/NpmNpmRemoteResponse.md +43 -0
  14. data/docs/NpmNpmRepository.md +21 -0
  15. data/docs/NpmNpmRepositoryResponse.md +29 -0
  16. data/docs/NpmPackage.md +27 -0
  17. data/docs/NpmPackageResponse.md +27 -0
  18. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  19. data/docs/PaginatednpmNpmDistributionResponseList.md +23 -0
  20. data/docs/PaginatednpmNpmRemoteResponseList.md +23 -0
  21. data/docs/PaginatednpmNpmRepositoryResponseList.md +23 -0
  22. data/docs/PaginatednpmPackageResponseList.md +23 -0
  23. data/docs/PatchednpmNpmDistribution.md +25 -0
  24. data/docs/PatchednpmNpmRemote.md +37 -0
  25. data/docs/PatchednpmNpmRepository.md +21 -0
  26. data/docs/PolicyEnum.md +16 -0
  27. data/docs/PulpNpmPackagesApi.md +60 -0
  28. data/docs/RemotesNpmApi.md +368 -0
  29. data/docs/RepositoriesNpmApi.md +468 -0
  30. data/docs/RepositoriesNpmVersionsApi.md +271 -0
  31. data/docs/RepositoryAddRemoveContent.md +21 -0
  32. data/docs/RepositorySyncURL.md +19 -0
  33. data/docs/RepositoryVersion.md +17 -0
  34. data/docs/RepositoryVersionResponse.md +25 -0
  35. data/git_push.sh +58 -0
  36. data/lib/pulp_npm_client.rb +69 -0
  37. data/lib/pulp_npm_client/api/content_packages_api.rb +264 -0
  38. data/lib/pulp_npm_client/api/distributions_npm_api.rb +445 -0
  39. data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +86 -0
  40. data/lib/pulp_npm_client/api/remotes_npm_api.rb +451 -0
  41. data/lib/pulp_npm_client/api/repositories_npm_api.rb +573 -0
  42. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +339 -0
  43. data/lib/pulp_npm_client/api_client.rb +402 -0
  44. data/lib/pulp_npm_client/api_error.rb +57 -0
  45. data/lib/pulp_npm_client/configuration.rb +243 -0
  46. data/lib/pulp_npm_client/models/async_operation_response.rb +213 -0
  47. data/lib/pulp_npm_client/models/content_summary.rb +240 -0
  48. data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
  49. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +261 -0
  50. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
  51. data/lib/pulp_npm_client/models/npm_npm_remote.rb +339 -0
  52. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
  53. data/lib/pulp_npm_client/models/npm_npm_repository.rb +234 -0
  54. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
  55. data/lib/pulp_npm_client/models/npm_package.rb +270 -0
  56. data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
  57. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +237 -0
  58. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +237 -0
  59. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +237 -0
  60. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +237 -0
  61. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +237 -0
  62. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
  63. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
  64. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
  65. data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
  66. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +232 -0
  67. data/lib/pulp_npm_client/models/repository_sync_url.rb +220 -0
  68. data/lib/pulp_npm_client/models/repository_version.rb +208 -0
  69. data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
  70. data/lib/pulp_npm_client/version.rb +15 -0
  71. data/pulp_npm_client.gemspec +39 -0
  72. data/spec/api/content_packages_api_spec.rb +87 -0
  73. data/spec/api/distributions_npm_api_spec.rb +121 -0
  74. data/spec/api/pulp_npm_packages_api_spec.rb +48 -0
  75. data/spec/api/remotes_npm_api_spec.rb +123 -0
  76. data/spec/api/repositories_npm_api_spec.rb +143 -0
  77. data/spec/api/repositories_npm_versions_api_spec.rb +104 -0
  78. data/spec/api_client_spec.rb +188 -0
  79. data/spec/configuration_spec.rb +42 -0
  80. data/spec/models/async_operation_response_spec.rb +41 -0
  81. data/spec/models/content_summary_response_spec.rb +53 -0
  82. data/spec/models/content_summary_spec.rb +53 -0
  83. data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
  84. data/spec/models/npm_npm_distribution_spec.rb +65 -0
  85. data/spec/models/npm_npm_remote_response_spec.rb +119 -0
  86. data/spec/models/npm_npm_remote_spec.rb +101 -0
  87. data/spec/models/npm_npm_repository_response_spec.rb +77 -0
  88. data/spec/models/npm_npm_repository_spec.rb +53 -0
  89. data/spec/models/npm_package_response_spec.rb +71 -0
  90. data/spec/models/npm_package_spec.rb +71 -0
  91. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  92. data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +59 -0
  93. data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +59 -0
  94. data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +59 -0
  95. data/spec/models/paginatednpm_package_response_list_spec.rb +59 -0
  96. data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
  97. data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
  98. data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
  99. data/spec/models/policy_enum_spec.rb +35 -0
  100. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  101. data/spec/models/repository_sync_url_spec.rb +47 -0
  102. data/spec/models/repository_version_response_spec.rb +65 -0
  103. data/spec/models/repository_version_spec.rb +41 -0
  104. data/spec/spec_helper.rb +111 -0
  105. metadata +233 -0
@@ -0,0 +1,15 @@
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
+ module PulpNpmClient
14
+ VERSION = '0.1.0a1'
15
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Pulp 3 API
5
+
6
+ #Fetch, Upload, Organize, and Distribute Software Packages
7
+
8
+ The version of the OpenAPI document: v3
9
+ Contact: pulp-list@redhat.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.2.3
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "pulp_npm_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "pulp_npm_client"
20
+ s.version = PulpNpmClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = ["pulp-list@redhat.com"]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Pulp 3 API Ruby Gem"
26
+ s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
+ s.license = 'GPL-2.0+'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'faraday', '>= 0.14.0'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,87 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpNpmClient::ContentPackagesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentPackagesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpNpmClient::ContentPackagesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentPackagesApi' do
30
+ it 'should create an instance of ContentPackagesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpNpmClient::ContentPackagesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a package
37
+ # Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
38
+ # @param relative_path
39
+ # @param name
40
+ # @param version
41
+ # @param [Hash] opts the optional parameters
42
+ # @option opts [String] :artifact Artifact file representing the physical content
43
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
44
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
45
+ # @return [NpmPackageResponse]
46
+ describe 'create test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ # unit tests for list
53
+ # List packages
54
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
55
+ # @param [Hash] opts the optional parameters
56
+ # @option opts [Integer] :limit Number of results to return per page.
57
+ # @option opts [String] :name name
58
+ # @option opts [String] :name__in name__in
59
+ # @option opts [Integer] :offset The initial index from which to return the results.
60
+ # @option opts [String] :ordering Which field to use when ordering the results.
61
+ # @option opts [String] :repository_version repository_version
62
+ # @option opts [String] :repository_version_added repository_version_added
63
+ # @option opts [String] :repository_version_removed repository_version_removed
64
+ # @option opts [String] :fields A list of fields to include in the response.
65
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
66
+ # @return [PaginatednpmPackageResponseList]
67
+ describe 'list test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ # unit tests for read
74
+ # Inspect a package
75
+ # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
76
+ # @param npm_package_href
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :fields A list of fields to include in the response.
79
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
+ # @return [NpmPackageResponse]
81
+ describe 'read test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ end
@@ -0,0 +1,121 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpNpmClient::DistributionsNpmApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DistributionsNpmApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpNpmClient::DistributionsNpmApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DistributionsNpmApi' do
30
+ it 'should create an instance of DistributionsNpmApi' do
31
+ expect(@api_instance).to be_instance_of(PulpNpmClient::DistributionsNpmApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a npm distribution
37
+ # Trigger an asynchronous create task
38
+ # @param npm_npm_distribution
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [AsyncOperationResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for delete
48
+ # Delete a npm distribution
49
+ # Trigger an asynchronous delete task
50
+ # @param npm_npm_distribution_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [AsyncOperationResponse]
53
+ describe 'delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for list
60
+ # List npm distributions
61
+ # ViewSet for NPM Distributions.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :base_path base_path
64
+ # @option opts [String] :base_path__contains base_path__contains
65
+ # @option opts [String] :base_path__icontains base_path__icontains
66
+ # @option opts [String] :base_path__in base_path__in
67
+ # @option opts [Integer] :limit Number of results to return per page.
68
+ # @option opts [String] :name name
69
+ # @option opts [String] :name__in name__in
70
+ # @option opts [Integer] :offset The initial index from which to return the results.
71
+ # @option opts [String] :ordering Which field to use when ordering the results.
72
+ # @option opts [String] :fields A list of fields to include in the response.
73
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
74
+ # @return [PaginatednpmNpmDistributionResponseList]
75
+ describe 'list test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ # unit tests for partial_update
82
+ # Update a npm distribution
83
+ # Trigger an asynchronous partial update task
84
+ # @param npm_npm_distribution_href
85
+ # @param patchednpm_npm_distribution
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [AsyncOperationResponse]
88
+ describe 'partial_update test' do
89
+ it 'should work' do
90
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ end
92
+ end
93
+
94
+ # unit tests for read
95
+ # Inspect a npm distribution
96
+ # ViewSet for NPM Distributions.
97
+ # @param npm_npm_distribution_href
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :fields A list of fields to include in the response.
100
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
101
+ # @return [NpmNpmDistributionResponse]
102
+ describe 'read test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for update
109
+ # Update a npm distribution
110
+ # Trigger an asynchronous update task
111
+ # @param npm_npm_distribution_href
112
+ # @param npm_npm_distribution
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [AsyncOperationResponse]
115
+ describe 'update test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ end
@@ -0,0 +1,48 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpNpmClient::PulpNpmPackagesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PulpNpmPackagesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpNpmClient::PulpNpmPackagesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PulpNpmPackagesApi' do
30
+ it 'should create an instance of PulpNpmPackagesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpNpmClient::PulpNpmPackagesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get
36
+ # Return a published package.
37
+ # @param name
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :fields A list of fields to include in the response.
40
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
+ # @return [nil]
42
+ describe 'get test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ end
@@ -0,0 +1,123 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpNpmClient::RemotesNpmApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RemotesNpmApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpNpmClient::RemotesNpmApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RemotesNpmApi' do
30
+ it 'should create an instance of RemotesNpmApi' do
31
+ expect(@api_instance).to be_instance_of(PulpNpmClient::RemotesNpmApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a npm remote
37
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
+ # @param npm_npm_remote
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NpmNpmRemoteResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for delete
48
+ # Delete a npm remote
49
+ # Trigger an asynchronous delete task
50
+ # @param npm_npm_remote_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [AsyncOperationResponse]
53
+ describe 'delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for list
60
+ # List npm remotes
61
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [Integer] :limit Number of results to return per page.
64
+ # @option opts [String] :name name
65
+ # @option opts [String] :name__in name__in
66
+ # @option opts [Integer] :offset The initial index from which to return the results.
67
+ # @option opts [String] :ordering Which field to use when ordering the results.
68
+ # @option opts [String] :pulp_last_updated pulp_last_updated
69
+ # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
70
+ # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
71
+ # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
72
+ # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
73
+ # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
74
+ # @option opts [String] :fields A list of fields to include in the response.
75
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
76
+ # @return [PaginatednpmNpmRemoteResponseList]
77
+ describe 'list test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ # unit tests for partial_update
84
+ # Update a npm remote
85
+ # Trigger an asynchronous partial update task
86
+ # @param npm_npm_remote_href
87
+ # @param patchednpm_npm_remote
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [AsyncOperationResponse]
90
+ describe 'partial_update test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for read
97
+ # Inspect a npm remote
98
+ # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
99
+ # @param npm_npm_remote_href
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :fields A list of fields to include in the response.
102
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
103
+ # @return [NpmNpmRemoteResponse]
104
+ describe 'read test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
110
+ # unit tests for update
111
+ # Update a npm remote
112
+ # Trigger an asynchronous update task
113
+ # @param npm_npm_remote_href
114
+ # @param npm_npm_remote
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [AsyncOperationResponse]
117
+ describe 'update test' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ end
@@ -0,0 +1,143 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpNpmClient::RepositoriesNpmApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RepositoriesNpmApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpNpmClient::RepositoriesNpmApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RepositoriesNpmApi' do
30
+ it 'should create an instance of RepositoriesNpmApi' do
31
+ expect(@api_instance).to be_instance_of(PulpNpmClient::RepositoriesNpmApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a npm repository
37
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
+ # @param npm_npm_repository
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [NpmNpmRepositoryResponse]
41
+ describe 'create test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for delete
48
+ # Delete a npm repository
49
+ # Trigger an asynchronous delete task
50
+ # @param npm_npm_repository_href
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [AsyncOperationResponse]
53
+ describe 'delete test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for list
60
+ # List npm repositorys
61
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [Integer] :limit Number of results to return per page.
64
+ # @option opts [String] :name name
65
+ # @option opts [String] :name__in name__in
66
+ # @option opts [Integer] :offset The initial index from which to return the results.
67
+ # @option opts [String] :ordering Which field to use when ordering the results.
68
+ # @option opts [String] :fields A list of fields to include in the response.
69
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
70
+ # @return [PaginatednpmNpmRepositoryResponseList]
71
+ describe 'list test' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ # unit tests for modify
78
+ # Modify Repository Content
79
+ # Trigger an asynchronous task to create a new repository version.
80
+ # @param npm_npm_repository_href
81
+ # @param repository_add_remove_content
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [AsyncOperationResponse]
84
+ describe 'modify test' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
87
+ end
88
+ end
89
+
90
+ # unit tests for partial_update
91
+ # Update a npm repository
92
+ # Trigger an asynchronous partial update task
93
+ # @param npm_npm_repository_href
94
+ # @param patchednpm_npm_repository
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [AsyncOperationResponse]
97
+ describe 'partial_update test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
103
+ # unit tests for read
104
+ # Inspect a npm repository
105
+ # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
106
+ # @param npm_npm_repository_href
107
+ # @param [Hash] opts the optional parameters
108
+ # @option opts [String] :fields A list of fields to include in the response.
109
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
110
+ # @return [NpmNpmRepositoryResponse]
111
+ describe 'read test' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ # unit tests for sync
118
+ # Sync from remote
119
+ # Trigger an asynchronous task to sync content.
120
+ # @param npm_npm_repository_href
121
+ # @param repository_sync_url
122
+ # @param [Hash] opts the optional parameters
123
+ # @return [AsyncOperationResponse]
124
+ describe 'sync test' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
127
+ end
128
+ end
129
+
130
+ # unit tests for update
131
+ # Update a npm repository
132
+ # Trigger an asynchronous update task
133
+ # @param npm_npm_repository_href
134
+ # @param npm_npm_repository
135
+ # @param [Hash] opts the optional parameters
136
+ # @return [AsyncOperationResponse]
137
+ describe 'update test' do
138
+ it 'should work' do
139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ end
141
+ end
142
+
143
+ end