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
@@ -23,6 +23,7 @@ module PulpNpmClient
|
|
23
23
|
# Trigger an asynchronous task to delete a repository version.
|
24
24
|
# @param npm_npm_repository_version_href [String]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
26
27
|
# @return [AsyncOperationResponse]
|
27
28
|
def delete(npm_npm_repository_version_href, opts = {})
|
28
29
|
data, _status_code, _headers = delete_with_http_info(npm_npm_repository_version_href, opts)
|
@@ -33,6 +34,7 @@ module PulpNpmClient
|
|
33
34
|
# Trigger an asynchronous task to delete a repository version.
|
34
35
|
# @param npm_npm_repository_version_href [String]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
36
38
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
37
39
|
def delete_with_http_info(npm_npm_repository_version_href, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -52,6 +54,7 @@ module PulpNpmClient
|
|
52
54
|
header_params = opts[:header_params] || {}
|
53
55
|
# HTTP header 'Accept' (if needed)
|
54
56
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
57
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = opts[:form_params] || {}
|
@@ -86,6 +89,7 @@ module PulpNpmClient
|
|
86
89
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
87
90
|
# @param npm_npm_repository_href [String]
|
88
91
|
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
89
93
|
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
90
94
|
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
91
95
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -96,7 +100,7 @@ module PulpNpmClient
|
|
96
100
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
97
101
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
98
102
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
99
|
-
# @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)
|
103
|
+
# @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)
|
100
104
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
101
105
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
102
106
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
@@ -119,6 +123,7 @@ module PulpNpmClient
|
|
119
123
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
120
124
|
# @param npm_npm_repository_href [String]
|
121
125
|
# @param [Hash] opts the optional parameters
|
126
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
122
127
|
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
123
128
|
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
124
129
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -129,7 +134,7 @@ module PulpNpmClient
|
|
129
134
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
130
135
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
131
136
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
132
|
-
# @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)
|
137
|
+
# @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)
|
133
138
|
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
134
139
|
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
135
140
|
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
@@ -151,7 +156,7 @@ module PulpNpmClient
|
|
151
156
|
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
152
157
|
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
|
153
158
|
end
|
154
|
-
allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
159
|
+
allowable_values = ["-complete", "-content_ids", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "content_ids", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
|
155
160
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
156
161
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
157
162
|
end
|
@@ -188,6 +193,7 @@ module PulpNpmClient
|
|
188
193
|
header_params = opts[:header_params] || {}
|
189
194
|
# HTTP header 'Accept' (if needed)
|
190
195
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
196
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
191
197
|
|
192
198
|
# form parameters
|
193
199
|
form_params = opts[:form_params] || {}
|
@@ -222,6 +228,7 @@ module PulpNpmClient
|
|
222
228
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
223
229
|
# @param npm_npm_repository_version_href [String]
|
224
230
|
# @param [Hash] opts the optional parameters
|
231
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
225
232
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
226
233
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
227
234
|
# @return [RepositoryVersionResponse]
|
@@ -234,6 +241,7 @@ module PulpNpmClient
|
|
234
241
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
235
242
|
# @param npm_npm_repository_version_href [String]
|
236
243
|
# @param [Hash] opts the optional parameters
|
244
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
237
245
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
238
246
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
239
247
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
@@ -257,6 +265,7 @@ module PulpNpmClient
|
|
257
265
|
header_params = opts[:header_params] || {}
|
258
266
|
# HTTP header 'Accept' (if needed)
|
259
267
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
268
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
260
269
|
|
261
270
|
# form parameters
|
262
271
|
form_params = opts[:form_params] || {}
|
@@ -291,6 +300,7 @@ module PulpNpmClient
|
|
291
300
|
# @param npm_npm_repository_version_href [String]
|
292
301
|
# @param repair [Repair]
|
293
302
|
# @param [Hash] opts the optional parameters
|
303
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
294
304
|
# @return [AsyncOperationResponse]
|
295
305
|
def repair(npm_npm_repository_version_href, repair, opts = {})
|
296
306
|
data, _status_code, _headers = repair_with_http_info(npm_npm_repository_version_href, repair, opts)
|
@@ -301,6 +311,7 @@ module PulpNpmClient
|
|
301
311
|
# @param npm_npm_repository_version_href [String]
|
302
312
|
# @param repair [Repair]
|
303
313
|
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
304
315
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
305
316
|
def repair_with_http_info(npm_npm_repository_version_href, repair, opts = {})
|
306
317
|
if @api_client.config.debugging
|
@@ -329,6 +340,7 @@ module PulpNpmClient
|
|
329
340
|
if !content_type.nil?
|
330
341
|
header_params['Content-Type'] = content_type
|
331
342
|
end
|
343
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
332
344
|
|
333
345
|
# form parameters
|
334
346
|
form_params = opts[:form_params] || {}
|
@@ -341,10 +341,6 @@ module PulpNpmClient
|
|
341
341
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
342
342
|
end
|
343
343
|
|
344
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
345
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
346
|
-
end
|
347
|
-
|
348
344
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
349
345
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
350
346
|
end
|
@@ -380,7 +376,6 @@ module PulpNpmClient
|
|
380
376
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
381
377
|
return false if !@username.nil? && @username.to_s.length < 1
|
382
378
|
return false if !@password.nil? && @password.to_s.length < 1
|
383
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
384
379
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
385
380
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
386
381
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -496,16 +491,6 @@ module PulpNpmClient
|
|
496
491
|
@password = password
|
497
492
|
end
|
498
493
|
|
499
|
-
# Custom attribute writer method with validation
|
500
|
-
# @param [Object] download_concurrency Value to be assigned
|
501
|
-
def download_concurrency=(download_concurrency)
|
502
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
503
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
504
|
-
end
|
505
|
-
|
506
|
-
@download_concurrency = download_concurrency
|
507
|
-
end
|
508
|
-
|
509
494
|
# Custom attribute writer method with validation
|
510
495
|
# @param [Object] total_timeout Value to be assigned
|
511
496
|
def total_timeout=(total_timeout)
|
@@ -297,10 +297,6 @@ module PulpNpmClient
|
|
297
297
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
298
298
|
end
|
299
299
|
|
300
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
301
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
302
|
-
end
|
303
|
-
|
304
300
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
305
301
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
306
302
|
end
|
@@ -326,7 +322,6 @@ module PulpNpmClient
|
|
326
322
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
327
323
|
return false if @name.nil?
|
328
324
|
return false if @url.nil?
|
329
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
330
325
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
331
326
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
332
327
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -334,16 +329,6 @@ module PulpNpmClient
|
|
334
329
|
true
|
335
330
|
end
|
336
331
|
|
337
|
-
# Custom attribute writer method with validation
|
338
|
-
# @param [Object] download_concurrency Value to be assigned
|
339
|
-
def download_concurrency=(download_concurrency)
|
340
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
341
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
342
|
-
end
|
343
|
-
|
344
|
-
@download_concurrency = download_concurrency
|
345
|
-
end
|
346
|
-
|
347
332
|
# Custom attribute writer method with validation
|
348
333
|
# @param [Object] total_timeout Value to be assigned
|
349
334
|
def total_timeout=(total_timeout)
|
@@ -123,10 +123,6 @@ module PulpNpmClient
|
|
123
123
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
124
124
|
end
|
125
125
|
|
126
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
127
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
128
|
-
end
|
129
|
-
|
130
126
|
invalid_properties
|
131
127
|
end
|
132
128
|
|
@@ -137,7 +133,6 @@ module PulpNpmClient
|
|
137
133
|
return false if @name.nil?
|
138
134
|
return false if @name.to_s.length < 1
|
139
135
|
return false if !@description.nil? && @description.to_s.length < 1
|
140
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
141
136
|
true
|
142
137
|
end
|
143
138
|
|
@@ -165,16 +160,6 @@ module PulpNpmClient
|
|
165
160
|
@description = description
|
166
161
|
end
|
167
162
|
|
168
|
-
# Custom attribute writer method with validation
|
169
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
170
|
-
def retain_repo_versions=(retain_repo_versions)
|
171
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
172
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
173
|
-
end
|
174
|
-
|
175
|
-
@retain_repo_versions = retain_repo_versions
|
176
|
-
end
|
177
|
-
|
178
163
|
# Checks equality by comparing each attribute.
|
179
164
|
# @param [Object] Object to be compared
|
180
165
|
def ==(o)
|
@@ -166,10 +166,6 @@ module PulpNpmClient
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
167
167
|
end
|
168
168
|
|
169
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
170
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
171
|
-
end
|
172
|
-
|
173
169
|
invalid_properties
|
174
170
|
end
|
175
171
|
|
@@ -178,20 +174,9 @@ module PulpNpmClient
|
|
178
174
|
def valid?
|
179
175
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
180
176
|
return false if @name.nil?
|
181
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
182
177
|
true
|
183
178
|
end
|
184
179
|
|
185
|
-
# Custom attribute writer method with validation
|
186
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
187
|
-
def retain_repo_versions=(retain_repo_versions)
|
188
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
189
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
190
|
-
end
|
191
|
-
|
192
|
-
@retain_repo_versions = retain_repo_versions
|
193
|
-
end
|
194
|
-
|
195
180
|
# Checks equality by comparing each attribute.
|
196
181
|
# @param [Object] Object to be compared
|
197
182
|
def ==(o)
|
@@ -30,6 +30,8 @@ module PulpNpmClient
|
|
30
30
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
31
31
|
attr_accessor :pulp_labels
|
32
32
|
|
33
|
+
attr_accessor :vuln_report
|
34
|
+
|
33
35
|
# Artifact file representing the physical content
|
34
36
|
attr_accessor :artifact
|
35
37
|
|
@@ -47,6 +49,7 @@ module PulpNpmClient
|
|
47
49
|
:'pulp_created' => :'pulp_created',
|
48
50
|
:'pulp_last_updated' => :'pulp_last_updated',
|
49
51
|
:'pulp_labels' => :'pulp_labels',
|
52
|
+
:'vuln_report' => :'vuln_report',
|
50
53
|
:'artifact' => :'artifact',
|
51
54
|
:'relative_path' => :'relative_path',
|
52
55
|
:'name' => :'name',
|
@@ -67,6 +70,7 @@ module PulpNpmClient
|
|
67
70
|
:'pulp_created' => :'Time',
|
68
71
|
:'pulp_last_updated' => :'Time',
|
69
72
|
:'pulp_labels' => :'Hash<String, String>',
|
73
|
+
:'vuln_report' => :'String',
|
70
74
|
:'artifact' => :'String',
|
71
75
|
:'relative_path' => :'String',
|
72
76
|
:'name' => :'String',
|
@@ -117,6 +121,10 @@ module PulpNpmClient
|
|
117
121
|
end
|
118
122
|
end
|
119
123
|
|
124
|
+
if attributes.key?(:'vuln_report')
|
125
|
+
self.vuln_report = attributes[:'vuln_report']
|
126
|
+
end
|
127
|
+
|
120
128
|
if attributes.key?(:'artifact')
|
121
129
|
self.artifact = attributes[:'artifact']
|
122
130
|
end
|
@@ -180,6 +188,7 @@ module PulpNpmClient
|
|
180
188
|
pulp_created == o.pulp_created &&
|
181
189
|
pulp_last_updated == o.pulp_last_updated &&
|
182
190
|
pulp_labels == o.pulp_labels &&
|
191
|
+
vuln_report == o.vuln_report &&
|
183
192
|
artifact == o.artifact &&
|
184
193
|
relative_path == o.relative_path &&
|
185
194
|
name == o.name &&
|
@@ -195,7 +204,7 @@ module PulpNpmClient
|
|
195
204
|
# Calculates hash code according to all attributes.
|
196
205
|
# @return [Integer] Hash code
|
197
206
|
def hash
|
198
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, name, version].hash
|
207
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, name, version].hash
|
199
208
|
end
|
200
209
|
|
201
210
|
# Builds the object from hash
|
@@ -329,10 +329,6 @@ module PulpNpmClient
|
|
329
329
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
330
330
|
end
|
331
331
|
|
332
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
333
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
334
|
-
end
|
335
|
-
|
336
332
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
337
333
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
338
334
|
end
|
@@ -366,7 +362,6 @@ module PulpNpmClient
|
|
366
362
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
367
363
|
return false if !@username.nil? && @username.to_s.length < 1
|
368
364
|
return false if !@password.nil? && @password.to_s.length < 1
|
369
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
370
365
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
371
366
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
372
367
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -482,16 +477,6 @@ module PulpNpmClient
|
|
482
477
|
@password = password
|
483
478
|
end
|
484
479
|
|
485
|
-
# Custom attribute writer method with validation
|
486
|
-
# @param [Object] download_concurrency Value to be assigned
|
487
|
-
def download_concurrency=(download_concurrency)
|
488
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
489
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
490
|
-
end
|
491
|
-
|
492
|
-
@download_concurrency = download_concurrency
|
493
|
-
end
|
494
|
-
|
495
480
|
# Custom attribute writer method with validation
|
496
481
|
# @param [Object] total_timeout Value to be assigned
|
497
482
|
def total_timeout=(total_timeout)
|
@@ -117,10 +117,6 @@ module PulpNpmClient
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
118
118
|
end
|
119
119
|
|
120
|
-
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
121
|
-
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
122
|
-
end
|
123
|
-
|
124
120
|
invalid_properties
|
125
121
|
end
|
126
122
|
|
@@ -130,7 +126,6 @@ module PulpNpmClient
|
|
130
126
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
131
127
|
return false if !@name.nil? && @name.to_s.length < 1
|
132
128
|
return false if !@description.nil? && @description.to_s.length < 1
|
133
|
-
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
134
129
|
true
|
135
130
|
end
|
136
131
|
|
@@ -158,16 +153,6 @@ module PulpNpmClient
|
|
158
153
|
@description = description
|
159
154
|
end
|
160
155
|
|
161
|
-
# Custom attribute writer method with validation
|
162
|
-
# @param [Object] retain_repo_versions Value to be assigned
|
163
|
-
def retain_repo_versions=(retain_repo_versions)
|
164
|
-
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
165
|
-
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
166
|
-
end
|
167
|
-
|
168
|
-
@retain_repo_versions = retain_repo_versions
|
169
|
-
end
|
170
|
-
|
171
156
|
# Checks equality by comparing each attribute.
|
172
157
|
# @param [Object] Object to be compared
|
173
158
|
def ==(o)
|
@@ -37,6 +37,8 @@ module PulpNpmClient
|
|
37
37
|
# Various count summaries of the content in the version and the HREF to view them.
|
38
38
|
attr_accessor :content_summary
|
39
39
|
|
40
|
+
attr_accessor :vuln_report
|
41
|
+
|
40
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
43
|
def self.attribute_map
|
42
44
|
{
|
@@ -47,7 +49,8 @@ module PulpNpmClient
|
|
47
49
|
:'number' => :'number',
|
48
50
|
:'repository' => :'repository',
|
49
51
|
:'base_version' => :'base_version',
|
50
|
-
:'content_summary' => :'content_summary'
|
52
|
+
:'content_summary' => :'content_summary',
|
53
|
+
:'vuln_report' => :'vuln_report'
|
51
54
|
}
|
52
55
|
end
|
53
56
|
|
@@ -66,7 +69,8 @@ module PulpNpmClient
|
|
66
69
|
:'number' => :'Integer',
|
67
70
|
:'repository' => :'String',
|
68
71
|
:'base_version' => :'String',
|
69
|
-
:'content_summary' => :'ContentSummaryResponse'
|
72
|
+
:'content_summary' => :'ContentSummaryResponse',
|
73
|
+
:'vuln_report' => :'String'
|
70
74
|
}
|
71
75
|
end
|
72
76
|
|
@@ -122,6 +126,10 @@ module PulpNpmClient
|
|
122
126
|
if attributes.key?(:'content_summary')
|
123
127
|
self.content_summary = attributes[:'content_summary']
|
124
128
|
end
|
129
|
+
|
130
|
+
if attributes.key?(:'vuln_report')
|
131
|
+
self.vuln_report = attributes[:'vuln_report']
|
132
|
+
end
|
125
133
|
end
|
126
134
|
|
127
135
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,7 +159,8 @@ module PulpNpmClient
|
|
151
159
|
number == o.number &&
|
152
160
|
repository == o.repository &&
|
153
161
|
base_version == o.base_version &&
|
154
|
-
content_summary == o.content_summary
|
162
|
+
content_summary == o.content_summary &&
|
163
|
+
vuln_report == o.vuln_report
|
155
164
|
end
|
156
165
|
|
157
166
|
# @see the `==` method
|
@@ -163,7 +172,7 @@ module PulpNpmClient
|
|
163
172
|
# Calculates hash code according to all attributes.
|
164
173
|
# @return [Integer] Hash code
|
165
174
|
def hash
|
166
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
|
175
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, number, repository, base_version, content_summary, vuln_report].hash
|
167
176
|
end
|
168
177
|
|
169
178
|
# Builds the object from hash
|
data/pulp_npm_client.gemspec
CHANGED
@@ -28,7 +28,6 @@ Gem::Specification.new do |s|
|
|
28
28
|
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = {}
|
30
30
|
|
31
|
-
s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
|
32
31
|
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
|
33
32
|
s.add_runtime_dependency 'faraday-multipart'
|
34
33
|
s.add_runtime_dependency 'marcel'
|
@@ -39,6 +39,7 @@ describe 'ContentPackagesApi' do
|
|
39
39
|
# @param name
|
40
40
|
# @param version
|
41
41
|
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
42
43
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
44
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
44
45
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -56,6 +57,7 @@ describe 'ContentPackagesApi' do
|
|
56
57
|
# List packages
|
57
58
|
# 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.
|
58
59
|
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
59
61
|
# @option opts [Integer] :limit Number of results to return per page.
|
60
62
|
# @option opts [String] :name Filter results where name matches value
|
61
63
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
@@ -84,6 +86,7 @@ describe 'ContentPackagesApi' do
|
|
84
86
|
# 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.
|
85
87
|
# @param npm_package_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 [NpmPackageResponse]
|
@@ -99,6 +102,7 @@ describe 'ContentPackagesApi' do
|
|
99
102
|
# @param npm_package_href
|
100
103
|
# @param set_label
|
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 [SetLabelResponse]
|
103
107
|
describe 'set_label test' do
|
104
108
|
it 'should work' do
|
@@ -112,6 +116,7 @@ describe 'ContentPackagesApi' do
|
|
112
116
|
# @param npm_package_href
|
113
117
|
# @param unset_label
|
114
118
|
# @param [Hash] opts the optional parameters
|
119
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
115
120
|
# @return [UnsetLabelResponse]
|
116
121
|
describe 'unset_label test' do
|
117
122
|
it 'should work' do
|
@@ -37,6 +37,7 @@ describe 'DistributionsNpmApi' do
|
|
37
37
|
# Trigger an asynchronous create task
|
38
38
|
# @param npm_npm_distribution
|
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 'create test' do
|
42
43
|
it 'should work' do
|
@@ -49,6 +50,7 @@ describe 'DistributionsNpmApi' do
|
|
49
50
|
# Trigger an asynchronous delete task
|
50
51
|
# @param npm_npm_distribution_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 'DistributionsNpmApi' do
|
|
60
62
|
# List npm distributions
|
61
63
|
# ViewSet for NPM Distributions.
|
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] :base_path Filter results where base_path matches value
|
64
67
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
65
68
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
@@ -100,6 +103,7 @@ describe 'DistributionsNpmApi' do
|
|
100
103
|
# @param npm_npm_distribution_href
|
101
104
|
# @param patchednpm_npm_distribution
|
102
105
|
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
103
107
|
# @return [AsyncOperationResponse]
|
104
108
|
describe 'partial_update test' do
|
105
109
|
it 'should work' do
|
@@ -112,6 +116,7 @@ describe 'DistributionsNpmApi' do
|
|
112
116
|
# ViewSet for NPM Distributions.
|
113
117
|
# @param npm_npm_distribution_href
|
114
118
|
# @param [Hash] opts the optional parameters
|
119
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
115
120
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
116
121
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
117
122
|
# @return [NpmNpmDistributionResponse]
|
@@ -127,6 +132,7 @@ describe 'DistributionsNpmApi' do
|
|
127
132
|
# @param npm_npm_distribution_href
|
128
133
|
# @param set_label
|
129
134
|
# @param [Hash] opts the optional parameters
|
135
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
130
136
|
# @return [SetLabelResponse]
|
131
137
|
describe 'set_label test' do
|
132
138
|
it 'should work' do
|
@@ -140,6 +146,7 @@ describe 'DistributionsNpmApi' do
|
|
140
146
|
# @param npm_npm_distribution_href
|
141
147
|
# @param unset_label
|
142
148
|
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
143
150
|
# @return [UnsetLabelResponse]
|
144
151
|
describe 'unset_label test' do
|
145
152
|
it 'should work' do
|
@@ -153,6 +160,7 @@ describe 'DistributionsNpmApi' do
|
|
153
160
|
# @param npm_npm_distribution_href
|
154
161
|
# @param npm_npm_distribution
|
155
162
|
# @param [Hash] opts the optional parameters
|
163
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
156
164
|
# @return [AsyncOperationResponse]
|
157
165
|
describe 'update test' do
|
158
166
|
it 'should work' do
|