pulp_npm_client 0.3.3 → 0.4.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +22 -8
  4. data/docs/DistributionsNpmApi.md +52 -24
  5. data/docs/NpmNpmRemoteResponse.md +1 -1
  6. data/docs/NpmPackageResponse.md +2 -0
  7. data/docs/RemotesNpmApi.md +52 -24
  8. data/docs/RepositoriesNpmApi.md +68 -32
  9. data/docs/RepositoriesNpmVersionsApi.md +22 -10
  10. data/docs/RepositoryVersionResponse.md +3 -1
  11. data/lib/pulp_npm_client/api/content_packages_api.rb +15 -0
  12. data/lib/pulp_npm_client/api/distributions_npm_api.rb +24 -0
  13. data/lib/pulp_npm_client/api/remotes_npm_api.rb +24 -0
  14. data/lib/pulp_npm_client/api/repositories_npm_api.rb +30 -0
  15. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +15 -3
  16. data/lib/pulp_npm_client/models/npm_npm_remote.rb +0 -15
  17. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +0 -15
  18. data/lib/pulp_npm_client/models/npm_npm_repository.rb +0 -15
  19. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +0 -15
  20. data/lib/pulp_npm_client/models/npm_package_response.rb +10 -1
  21. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +0 -2
  22. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +0 -2
  23. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +0 -2
  24. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +0 -2
  25. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +0 -2
  26. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +0 -15
  27. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +0 -15
  28. data/lib/pulp_npm_client/models/repository_version_response.rb +13 -4
  29. data/lib/pulp_npm_client/version.rb +1 -1
  30. data/pulp_npm_client.gemspec +0 -1
  31. data/spec/api/content_packages_api_spec.rb +5 -0
  32. data/spec/api/distributions_npm_api_spec.rb +8 -0
  33. data/spec/api/remotes_npm_api_spec.rb +8 -0
  34. data/spec/api/repositories_npm_api_spec.rb +10 -0
  35. data/spec/api/repositories_npm_versions_api_spec.rb +5 -1
  36. data/spec/models/npm_package_response_spec.rb +6 -0
  37. data/spec/models/repository_version_response_spec.rb +6 -0
  38. metadata +24 -44
@@ -37,6 +37,7 @@ describe 'RemotesNpmApi' do
37
37
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
38
  # @param npm_npm_remote
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [NpmNpmRemoteResponse]
41
42
  describe 'create test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RemotesNpmApi' do
49
50
  # Trigger an asynchronous delete task
50
51
  # @param npm_npm_remote_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @return [AsyncOperationResponse]
53
55
  describe 'delete test' do
54
56
  it 'should work' do
@@ -60,6 +62,7 @@ describe 'RemotesNpmApi' do
60
62
  # List npm remotes
61
63
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
63
66
  # @option opts [Integer] :limit Number of results to return per page.
64
67
  # @option opts [String] :name Filter results where name matches value
65
68
  # @option opts [String] :name__contains Filter results where name contains value
@@ -99,6 +102,7 @@ describe 'RemotesNpmApi' do
99
102
  # @param npm_npm_remote_href
100
103
  # @param patchednpm_npm_remote
101
104
  # @param [Hash] opts the optional parameters
105
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
102
106
  # @return [AsyncOperationResponse]
103
107
  describe 'partial_update test' do
104
108
  it 'should work' do
@@ -111,6 +115,7 @@ describe 'RemotesNpmApi' do
111
115
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
112
116
  # @param npm_npm_remote_href
113
117
  # @param [Hash] opts the optional parameters
118
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
114
119
  # @option opts [Array<String>] :fields A list of fields to include in the response.
115
120
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
116
121
  # @return [NpmNpmRemoteResponse]
@@ -126,6 +131,7 @@ describe 'RemotesNpmApi' do
126
131
  # @param npm_npm_remote_href
127
132
  # @param set_label
128
133
  # @param [Hash] opts the optional parameters
134
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
129
135
  # @return [SetLabelResponse]
130
136
  describe 'set_label test' do
131
137
  it 'should work' do
@@ -139,6 +145,7 @@ describe 'RemotesNpmApi' do
139
145
  # @param npm_npm_remote_href
140
146
  # @param unset_label
141
147
  # @param [Hash] opts the optional parameters
148
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
142
149
  # @return [UnsetLabelResponse]
143
150
  describe 'unset_label test' do
144
151
  it 'should work' do
@@ -152,6 +159,7 @@ describe 'RemotesNpmApi' do
152
159
  # @param npm_npm_remote_href
153
160
  # @param npm_npm_remote
154
161
  # @param [Hash] opts the optional parameters
162
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
155
163
  # @return [AsyncOperationResponse]
156
164
  describe 'update test' do
157
165
  it 'should work' do
@@ -37,6 +37,7 @@ describe 'RepositoriesNpmApi' do
37
37
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
38
38
  # @param npm_npm_repository
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [NpmNpmRepositoryResponse]
41
42
  describe 'create test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RepositoriesNpmApi' do
49
50
  # Trigger an asynchronous delete task
50
51
  # @param npm_npm_repository_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @return [AsyncOperationResponse]
53
55
  describe 'delete test' do
54
56
  it 'should work' do
@@ -60,6 +62,7 @@ describe 'RepositoriesNpmApi' do
60
62
  # List npm repositorys
61
63
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
62
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
63
66
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
64
67
  # @option opts [Integer] :limit Number of results to return per page.
65
68
  # @option opts [String] :name Filter results where name matches value
@@ -103,6 +106,7 @@ describe 'RepositoriesNpmApi' do
103
106
  # @param npm_npm_repository_href
104
107
  # @param repository_add_remove_content
105
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
106
110
  # @return [AsyncOperationResponse]
107
111
  describe 'modify test' do
108
112
  it 'should work' do
@@ -116,6 +120,7 @@ describe 'RepositoriesNpmApi' do
116
120
  # @param npm_npm_repository_href
117
121
  # @param patchednpm_npm_repository
118
122
  # @param [Hash] opts the optional parameters
123
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
119
124
  # @return [AsyncOperationResponse]
120
125
  describe 'partial_update test' do
121
126
  it 'should work' do
@@ -128,6 +133,7 @@ describe 'RepositoriesNpmApi' do
128
133
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
129
134
  # @param npm_npm_repository_href
130
135
  # @param [Hash] opts the optional parameters
136
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
131
137
  # @option opts [Array<String>] :fields A list of fields to include in the response.
132
138
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
133
139
  # @return [NpmNpmRepositoryResponse]
@@ -143,6 +149,7 @@ describe 'RepositoriesNpmApi' do
143
149
  # @param npm_npm_repository_href
144
150
  # @param set_label
145
151
  # @param [Hash] opts the optional parameters
152
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
146
153
  # @return [SetLabelResponse]
147
154
  describe 'set_label test' do
148
155
  it 'should work' do
@@ -156,6 +163,7 @@ describe 'RepositoriesNpmApi' do
156
163
  # @param npm_npm_repository_href
157
164
  # @param repository_sync_url
158
165
  # @param [Hash] opts the optional parameters
166
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
159
167
  # @return [AsyncOperationResponse]
160
168
  describe 'sync test' do
161
169
  it 'should work' do
@@ -169,6 +177,7 @@ describe 'RepositoriesNpmApi' do
169
177
  # @param npm_npm_repository_href
170
178
  # @param unset_label
171
179
  # @param [Hash] opts the optional parameters
180
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
172
181
  # @return [UnsetLabelResponse]
173
182
  describe 'unset_label test' do
174
183
  it 'should work' do
@@ -182,6 +191,7 @@ describe 'RepositoriesNpmApi' do
182
191
  # @param npm_npm_repository_href
183
192
  # @param npm_npm_repository
184
193
  # @param [Hash] opts the optional parameters
194
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
185
195
  # @return [AsyncOperationResponse]
186
196
  describe 'update test' do
187
197
  it 'should work' do
@@ -37,6 +37,7 @@ describe 'RepositoriesNpmVersionsApi' do
37
37
  # Trigger an asynchronous task to delete a repository version.
38
38
  # @param npm_npm_repository_version_href
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
41
  # @return [AsyncOperationResponse]
41
42
  describe 'delete test' do
42
43
  it 'should work' do
@@ -49,6 +50,7 @@ describe 'RepositoriesNpmVersionsApi' do
49
50
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
50
51
  # @param npm_npm_repository_href
51
52
  # @param [Hash] opts the optional parameters
53
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
52
54
  # @option opts [String] :content Content Unit referenced by HREF/PRN
53
55
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
54
56
  # @option opts [Integer] :limit Number of results to return per page.
@@ -59,7 +61,7 @@ describe 'RepositoriesNpmVersionsApi' do
59
61
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
60
62
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
61
63
  # @option opts [Integer] :offset The initial index from which to return the results.
62
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
64
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;content_ids&#x60; - Content ids * &#x60;-content_ids&#x60; - Content ids (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
63
65
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
64
66
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
65
67
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -84,6 +86,7 @@ describe 'RepositoriesNpmVersionsApi' do
84
86
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
85
87
  # @param npm_npm_repository_version_href
86
88
  # @param [Hash] opts the optional parameters
89
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
87
90
  # @option opts [Array<String>] :fields A list of fields to include in the response.
88
91
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
89
92
  # @return [RepositoryVersionResponse]
@@ -98,6 +101,7 @@ describe 'RepositoriesNpmVersionsApi' do
98
101
  # @param npm_npm_repository_version_href
99
102
  # @param repair
100
103
  # @param [Hash] opts the optional parameters
104
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
101
105
  # @return [AsyncOperationResponse]
102
106
  describe 'repair test' do
103
107
  it 'should work' do
@@ -57,6 +57,12 @@ describe PulpNpmClient::NpmPackageResponse do
57
57
  end
58
58
  end
59
59
 
60
+ describe 'test attribute "vuln_report"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
60
66
  describe 'test attribute "artifact"' do
61
67
  it 'should work' do
62
68
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -75,4 +75,10 @@ describe PulpNpmClient::RepositoryVersionResponse do
75
75
  end
76
76
  end
77
77
 
78
+ describe 'test attribute "vuln_report"' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
78
84
  end
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_npm_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-14 00:00:00.000000000 Z
11
+ date: 2025-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: faraday-net_http
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '3.1'
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- version: '2.0'
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '3.1'
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: faraday
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -235,36 +215,36 @@ signing_key:
235
215
  specification_version: 4
236
216
  summary: Pulp 3 API Ruby Gem
237
217
  test_files:
238
- - spec/api/repositories_npm_versions_api_spec.rb
239
- - spec/api/remotes_npm_api_spec.rb
218
+ - spec/api/repositories_npm_api_spec.rb
240
219
  - spec/api/content_packages_api_spec.rb
241
220
  - spec/api/distributions_npm_api_spec.rb
242
- - spec/api/repositories_npm_api_spec.rb
243
- - spec/models/repair_spec.rb
221
+ - spec/api/repositories_npm_versions_api_spec.rb
222
+ - spec/api/remotes_npm_api_spec.rb
223
+ - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
224
+ - spec/models/paginatednpm_package_response_list_spec.rb
225
+ - spec/models/set_label_response_spec.rb
226
+ - spec/models/repository_version_response_spec.rb
227
+ - spec/models/async_operation_response_spec.rb
244
228
  - spec/models/set_label_spec.rb
229
+ - spec/models/patchednpm_npm_distribution_spec.rb
230
+ - spec/models/paginatednpm_npm_repository_response_list_spec.rb
231
+ - spec/models/unset_label_response_spec.rb
245
232
  - spec/models/policy_enum_spec.rb
246
- - spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
247
- - spec/models/npm_package_response_spec.rb
248
- - spec/models/npm_npm_repository_spec.rb
233
+ - spec/models/content_summary_response_spec.rb
234
+ - spec/models/npm_npm_remote_spec.rb
235
+ - spec/models/npm_npm_remote_response_spec.rb
236
+ - spec/models/npm_npm_distribution_spec.rb
237
+ - spec/models/paginated_repository_version_response_list_spec.rb
249
238
  - spec/models/repository_add_remove_content_spec.rb
250
239
  - spec/models/npm_npm_repository_response_spec.rb
251
- - spec/models/npm_npm_remote_response_spec.rb
252
- - spec/models/paginatednpm_npm_repository_response_list_spec.rb
253
- - spec/models/paginatednpm_npm_remote_response_list_spec.rb
254
240
  - spec/models/repository_sync_url_spec.rb
241
+ - spec/models/repair_spec.rb
242
+ - spec/models/patchednpm_npm_remote_spec.rb
255
243
  - spec/models/unset_label_spec.rb
244
+ - spec/models/npm_npm_distribution_response_spec.rb
245
+ - spec/models/npm_package_response_spec.rb
256
246
  - spec/models/patchednpm_npm_repository_spec.rb
257
- - spec/models/npm_npm_remote_spec.rb
258
- - spec/models/unset_label_response_spec.rb
247
+ - spec/models/npm_npm_repository_spec.rb
248
+ - spec/models/paginatednpm_npm_remote_response_list_spec.rb
259
249
  - spec/models/paginatednpm_npm_distribution_response_list_spec.rb
260
- - spec/models/repository_version_response_spec.rb
261
- - spec/models/npm_npm_distribution_spec.rb
262
- - spec/models/paginated_repository_version_response_list_spec.rb
263
- - spec/models/patchednpm_npm_remote_spec.rb
264
- - spec/models/patchednpm_npm_distribution_spec.rb
265
- - spec/models/paginatednpm_package_response_list_spec.rb
266
- - spec/models/set_label_response_spec.rb
267
- - spec/models/content_summary_response_spec.rb
268
- - spec/models/npm_npm_distribution_response_spec.rb
269
- - spec/models/async_operation_response_spec.rb
270
250
  - spec/spec_helper.rb