pulp_gem_client 0.7.1 → 0.7.2
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/ContentGemApi.md +22 -8
- data/docs/DistributionsGemApi.md +72 -32
- data/docs/GemGemContentResponse.md +2 -0
- data/docs/GemGemRemoteResponse.md +1 -1
- data/docs/PublicationsGemApi.md +40 -16
- data/docs/RemotesGemApi.md +72 -32
- data/docs/RepositoriesGemApi.md +88 -40
- data/docs/RepositoriesGemVersionsApi.md +22 -10
- data/docs/RepositoryVersionResponse.md +3 -1
- data/lib/pulp_gem_client/api/content_gem_api.rb +15 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +36 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +24 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +36 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +42 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +15 -3
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +10 -1
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +0 -17
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +0 -17
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +0 -15
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +0 -15
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +0 -2
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +0 -17
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +0 -15
- data/lib/pulp_gem_client/models/repository_version_response.rb +13 -4
- data/lib/pulp_gem_client/version.rb +1 -1
- data/pulp_gem_client.gemspec +0 -1
- data/spec/api/content_gem_api_spec.rb +5 -0
- data/spec/api/distributions_gem_api_spec.rb +12 -0
- data/spec/api/publications_gem_api_spec.rb +8 -0
- data/spec/api/remotes_gem_api_spec.rb +12 -0
- data/spec/api/repositories_gem_api_spec.rb +14 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +5 -1
- data/spec/models/gem_gem_content_response_spec.rb +6 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- metadata +28 -48
@@ -23,6 +23,7 @@ module PulpGemClient
|
|
23
23
|
# Trigger an asynchronous task to delete a repository version.
|
24
24
|
# @param gem_gem_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(gem_gem_repository_version_href, opts = {})
|
28
29
|
data, _status_code, _headers = delete_with_http_info(gem_gem_repository_version_href, opts)
|
@@ -33,6 +34,7 @@ module PulpGemClient
|
|
33
34
|
# Trigger an asynchronous task to delete a repository version.
|
34
35
|
# @param gem_gem_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(gem_gem_repository_version_href, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -52,6 +54,7 @@ module PulpGemClient
|
|
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 PulpGemClient
|
|
86
89
|
# A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
|
87
90
|
# @param gem_gem_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 PulpGemClient
|
|
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 PulpGemClient
|
|
119
123
|
# A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
|
120
124
|
# @param gem_gem_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 PulpGemClient
|
|
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 PulpGemClient
|
|
151
156
|
if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
|
152
157
|
fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemVersionsApi.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 PulpGemClient
|
|
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 PulpGemClient
|
|
222
228
|
# A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
|
223
229
|
# @param gem_gem_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 PulpGemClient
|
|
234
241
|
# A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
|
235
242
|
# @param gem_gem_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 PulpGemClient
|
|
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 PulpGemClient
|
|
291
300
|
# @param gem_gem_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(gem_gem_repository_version_href, repair, opts = {})
|
296
306
|
data, _status_code, _headers = repair_with_http_info(gem_gem_repository_version_href, repair, opts)
|
@@ -301,6 +311,7 @@ module PulpGemClient
|
|
301
311
|
# @param gem_gem_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(gem_gem_repository_version_href, repair, opts = {})
|
306
317
|
if @api_client.config.debugging
|
@@ -329,6 +340,7 @@ module PulpGemClient
|
|
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] || {}
|
@@ -30,6 +30,8 @@ module PulpGemClient
|
|
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
|
# A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
|
34
36
|
attr_accessor :artifacts
|
35
37
|
|
@@ -64,6 +66,7 @@ module PulpGemClient
|
|
64
66
|
:'pulp_created' => :'pulp_created',
|
65
67
|
:'pulp_last_updated' => :'pulp_last_updated',
|
66
68
|
:'pulp_labels' => :'pulp_labels',
|
69
|
+
:'vuln_report' => :'vuln_report',
|
67
70
|
:'artifacts' => :'artifacts',
|
68
71
|
:'checksum' => :'checksum',
|
69
72
|
:'name' => :'name',
|
@@ -89,6 +92,7 @@ module PulpGemClient
|
|
89
92
|
:'pulp_created' => :'Time',
|
90
93
|
:'pulp_last_updated' => :'Time',
|
91
94
|
:'pulp_labels' => :'Hash<String, String>',
|
95
|
+
:'vuln_report' => :'String',
|
92
96
|
:'artifacts' => :'Object',
|
93
97
|
:'checksum' => :'String',
|
94
98
|
:'name' => :'String',
|
@@ -144,6 +148,10 @@ module PulpGemClient
|
|
144
148
|
end
|
145
149
|
end
|
146
150
|
|
151
|
+
if attributes.key?(:'vuln_report')
|
152
|
+
self.vuln_report = attributes[:'vuln_report']
|
153
|
+
end
|
154
|
+
|
147
155
|
if attributes.key?(:'artifacts')
|
148
156
|
self.artifacts = attributes[:'artifacts']
|
149
157
|
else
|
@@ -215,6 +223,7 @@ module PulpGemClient
|
|
215
223
|
pulp_created == o.pulp_created &&
|
216
224
|
pulp_last_updated == o.pulp_last_updated &&
|
217
225
|
pulp_labels == o.pulp_labels &&
|
226
|
+
vuln_report == o.vuln_report &&
|
218
227
|
artifacts == o.artifacts &&
|
219
228
|
checksum == o.checksum &&
|
220
229
|
name == o.name &&
|
@@ -235,7 +244,7 @@ module PulpGemClient
|
|
235
244
|
# Calculates hash code according to all attributes.
|
236
245
|
# @return [Integer] Hash code
|
237
246
|
def hash
|
238
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
|
247
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
|
239
248
|
end
|
240
249
|
|
241
250
|
# Builds the object from hash
|
@@ -189,8 +189,6 @@ module PulpGemClient
|
|
189
189
|
:'sock_connect_timeout',
|
190
190
|
:'sock_read_timeout',
|
191
191
|
:'rate_limit',
|
192
|
-
:'includes',
|
193
|
-
:'excludes'
|
194
192
|
])
|
195
193
|
end
|
196
194
|
|
@@ -373,10 +371,6 @@ module PulpGemClient
|
|
373
371
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
374
372
|
end
|
375
373
|
|
376
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
377
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
378
|
-
end
|
379
|
-
|
380
374
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
381
375
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
382
376
|
end
|
@@ -412,7 +406,6 @@ module PulpGemClient
|
|
412
406
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
413
407
|
return false if !@username.nil? && @username.to_s.length < 1
|
414
408
|
return false if !@password.nil? && @password.to_s.length < 1
|
415
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
416
409
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
417
410
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
418
411
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -528,16 +521,6 @@ module PulpGemClient
|
|
528
521
|
@password = password
|
529
522
|
end
|
530
523
|
|
531
|
-
# Custom attribute writer method with validation
|
532
|
-
# @param [Object] download_concurrency Value to be assigned
|
533
|
-
def download_concurrency=(download_concurrency)
|
534
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
535
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
536
|
-
end
|
537
|
-
|
538
|
-
@download_concurrency = download_concurrency
|
539
|
-
end
|
540
|
-
|
541
524
|
# Custom attribute writer method with validation
|
542
525
|
# @param [Object] total_timeout Value to be assigned
|
543
526
|
def total_timeout=(total_timeout)
|
@@ -183,8 +183,6 @@ module PulpGemClient
|
|
183
183
|
:'sock_connect_timeout',
|
184
184
|
:'sock_read_timeout',
|
185
185
|
:'rate_limit',
|
186
|
-
:'includes',
|
187
|
-
:'excludes'
|
188
186
|
])
|
189
187
|
end
|
190
188
|
|
@@ -329,10 +327,6 @@ module PulpGemClient
|
|
329
327
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
330
328
|
end
|
331
329
|
|
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
330
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
337
331
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
338
332
|
end
|
@@ -358,7 +352,6 @@ module PulpGemClient
|
|
358
352
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
359
353
|
return false if @name.nil?
|
360
354
|
return false if @url.nil?
|
361
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
362
355
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
363
356
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
364
357
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -366,16 +359,6 @@ module PulpGemClient
|
|
366
359
|
true
|
367
360
|
end
|
368
361
|
|
369
|
-
# Custom attribute writer method with validation
|
370
|
-
# @param [Object] download_concurrency Value to be assigned
|
371
|
-
def download_concurrency=(download_concurrency)
|
372
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
373
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
374
|
-
end
|
375
|
-
|
376
|
-
@download_concurrency = download_concurrency
|
377
|
-
end
|
378
|
-
|
379
362
|
# Custom attribute writer method with validation
|
380
363
|
# @param [Object] total_timeout Value to be assigned
|
381
364
|
def total_timeout=(total_timeout)
|
@@ -123,10 +123,6 @@ module PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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)
|
@@ -189,8 +189,6 @@ module PulpGemClient
|
|
189
189
|
:'sock_connect_timeout',
|
190
190
|
:'sock_read_timeout',
|
191
191
|
:'rate_limit',
|
192
|
-
:'includes',
|
193
|
-
:'excludes'
|
194
192
|
])
|
195
193
|
end
|
196
194
|
|
@@ -361,10 +359,6 @@ module PulpGemClient
|
|
361
359
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
362
360
|
end
|
363
361
|
|
364
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
365
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
366
|
-
end
|
367
|
-
|
368
362
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
369
363
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
370
364
|
end
|
@@ -398,7 +392,6 @@ module PulpGemClient
|
|
398
392
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
399
393
|
return false if !@username.nil? && @username.to_s.length < 1
|
400
394
|
return false if !@password.nil? && @password.to_s.length < 1
|
401
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
402
395
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
403
396
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
404
397
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -514,16 +507,6 @@ module PulpGemClient
|
|
514
507
|
@password = password
|
515
508
|
end
|
516
509
|
|
517
|
-
# Custom attribute writer method with validation
|
518
|
-
# @param [Object] download_concurrency Value to be assigned
|
519
|
-
def download_concurrency=(download_concurrency)
|
520
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
521
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
522
|
-
end
|
523
|
-
|
524
|
-
@download_concurrency = download_concurrency
|
525
|
-
end
|
526
|
-
|
527
510
|
# Custom attribute writer method with validation
|
528
511
|
# @param [Object] total_timeout Value to be assigned
|
529
512
|
def total_timeout=(total_timeout)
|
@@ -117,10 +117,6 @@ module PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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 PulpGemClient
|
|
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_gem_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'
|
@@ -36,6 +36,7 @@ describe 'ContentGemApi' do
|
|
36
36
|
# Create a gem content
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
39
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
40
41
|
# @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
41
42
|
# @option opts [String] :artifact Artifact file representing the physical content
|
@@ -51,6 +52,7 @@ describe 'ContentGemApi' do
|
|
51
52
|
# List gem contents
|
52
53
|
# A ViewSet for GemContent.
|
53
54
|
# @param [Hash] opts the optional parameters
|
55
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
54
56
|
# @option opts [String] :checksum Filter results where checksum matches value
|
55
57
|
# @option opts [Integer] :limit Number of results to return per page.
|
56
58
|
# @option opts [String] :name Filter results where name matches value
|
@@ -81,6 +83,7 @@ describe 'ContentGemApi' do
|
|
81
83
|
# A ViewSet for GemContent.
|
82
84
|
# @param gem_gem_content_href
|
83
85
|
# @param [Hash] opts the optional parameters
|
86
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
84
87
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
85
88
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
86
89
|
# @return [GemGemContentResponse]
|
@@ -96,6 +99,7 @@ describe 'ContentGemApi' do
|
|
96
99
|
# @param gem_gem_content_href
|
97
100
|
# @param set_label
|
98
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
99
103
|
# @return [SetLabelResponse]
|
100
104
|
describe 'set_label test' do
|
101
105
|
it 'should work' do
|
@@ -109,6 +113,7 @@ describe 'ContentGemApi' do
|
|
109
113
|
# @param gem_gem_content_href
|
110
114
|
# @param unset_label
|
111
115
|
# @param [Hash] opts the optional parameters
|
116
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
112
117
|
# @return [UnsetLabelResponse]
|
113
118
|
describe 'unset_label test' do
|
114
119
|
it 'should work' do
|