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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/ContentPackagesApi.md +22 -8
- data/docs/DistributionsNpmApi.md +52 -24
- data/docs/NpmNpmRemoteResponse.md +1 -1
- data/docs/NpmPackageResponse.md +2 -0
- data/docs/RemotesNpmApi.md +52 -24
- data/docs/RepositoriesNpmApi.md +68 -32
- data/docs/RepositoriesNpmVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_npm_client/api/content_packages_api.rb +15 -0
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +24 -0
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +24 -0
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +30 -0
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +15 -3
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +0 -15
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +0 -15
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +0 -15
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +0 -15
- data/lib/pulp_npm_client/models/npm_package_response.rb +10 -1
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +0 -2
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +0 -2
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +0 -2
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +0 -2
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +0 -15
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +0 -15
- data/lib/pulp_npm_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_npm_client/version.rb +1 -1
- data/pulp_npm_client.gemspec +0 -1
- data/spec/api/content_packages_api_spec.rb +5 -0
- data/spec/api/distributions_npm_api_spec.rb +8 -0
- data/spec/api/remotes_npm_api_spec.rb +8 -0
- data/spec/api/repositories_npm_api_spec.rb +10 -0
- data/spec/api/repositories_npm_versions_api_spec.rb +5 -1
- data/spec/models/npm_package_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- 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 * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
64
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - 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.
|
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-
|
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/
|
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/
|
243
|
-
- spec/
|
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/
|
247
|
-
- spec/models/
|
248
|
-
- spec/models/
|
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/
|
258
|
-
- spec/models/
|
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
|