pulpcore_client 3.84.0 → 3.85.1
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 +9 -4
- data/docs/ArtifactDistributionResponse.md +14 -14
- data/docs/FilesystemExportResponse.md +1 -1
- data/docs/GenericRemoteResponse.md +1 -1
- data/docs/GroupRoleResponse.md +1 -1
- data/docs/MultipleArtifactContentResponse.md +2 -0
- data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
- data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
- data/docs/NestedOpenPGPUserIDResponse.md +1 -1
- data/docs/OpenPGPPublicKeyResponse.md +5 -3
- data/docs/OpenPGPPublicSubkeyResponse.md +3 -1
- data/docs/OpenPGPSignatureResponse.md +2 -0
- data/docs/OpenPGPUserAttributeResponse.md +3 -1
- data/docs/OpenPGPUserIDResponse.md +3 -1
- data/docs/PaginatedVulnerabilityReportResponseList.md +24 -0
- data/docs/PulpExportResponse.md +1 -1
- data/docs/Purge.md +1 -1
- data/docs/RBACContentGuardResponse.md +2 -2
- data/docs/RepositoryVersionResponse.md +3 -1
- data/docs/TaskGroupResponse.md +2 -2
- data/docs/TaskResponse.md +4 -4
- data/docs/UploadDetailResponse.md +1 -1
- data/docs/UpstreamPulpResponse.md +1 -1
- data/docs/UserResponse.md +2 -2
- data/docs/UserRoleResponse.md +1 -1
- data/docs/VulnReportApi.md +241 -0
- data/docs/VulnerabilityReportResponse.md +30 -0
- data/lib/pulpcore_client/api/vuln_report_api.rb +230 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +70 -70
- data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
- data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +10 -1
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
- data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +10 -1
- data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +10 -1
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +10 -16
- data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +10 -1
- data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +10 -1
- data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -24
- data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_domain_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_import_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_publication_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_repository_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_upload_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_user_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +0 -2
- data/lib/pulpcore_client/models/paginated_vulnerability_report_response_list.rb +257 -0
- data/lib/pulpcore_client/models/paginated_worker_response_list.rb +0 -2
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
- data/lib/pulpcore_client/models/purge.rb +2 -0
- data/lib/pulpcore_client/models/repository_response.rb +0 -15
- data/lib/pulpcore_client/models/repository_version_response.rb +13 -4
- data/lib/pulpcore_client/models/storage_response.rb +0 -45
- data/lib/pulpcore_client/models/vulnerability_report_response.rb +277 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +3 -0
- data/spec/api/vuln_report_api_spec.rb +79 -0
- data/spec/models/artifact_distribution_response_spec.rb +10 -10
- data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
- data/spec/models/open_pgp_public_key_response_spec.rb +6 -0
- data/spec/models/open_pgp_public_subkey_response_spec.rb +6 -0
- data/spec/models/open_pgp_signature_response_spec.rb +6 -0
- data/spec/models/open_pgp_user_attribute_response_spec.rb +6 -0
- data/spec/models/open_pgp_user_id_response_spec.rb +6 -0
- data/spec/models/paginated_vulnerability_report_response_list_spec.rb +54 -0
- data/spec/models/repository_version_response_spec.rb +6 -0
- data/spec/models/vulnerability_report_response_spec.rb +72 -0
- metadata +199 -187
@@ -0,0 +1,277 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module PulpcoreClient
|
17
|
+
# A serializer for the VulnerabilityReport Model.
|
18
|
+
class VulnerabilityReportResponse
|
19
|
+
attr_accessor :pulp_href
|
20
|
+
|
21
|
+
# The Pulp Resource Name (PRN).
|
22
|
+
attr_accessor :prn
|
23
|
+
|
24
|
+
# Timestamp of creation.
|
25
|
+
attr_accessor :pulp_created
|
26
|
+
|
27
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
28
|
+
attr_accessor :pulp_last_updated
|
29
|
+
|
30
|
+
attr_accessor :vulns
|
31
|
+
|
32
|
+
attr_accessor :repo_versions
|
33
|
+
|
34
|
+
attr_accessor :content
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'pulp_href' => :'pulp_href',
|
40
|
+
:'prn' => :'prn',
|
41
|
+
:'pulp_created' => :'pulp_created',
|
42
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
43
|
+
:'vulns' => :'vulns',
|
44
|
+
:'repo_versions' => :'repo_versions',
|
45
|
+
:'content' => :'content'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Returns all the JSON keys this model knows about
|
50
|
+
def self.acceptable_attributes
|
51
|
+
attribute_map.values
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute type mapping.
|
55
|
+
def self.openapi_types
|
56
|
+
{
|
57
|
+
:'pulp_href' => :'String',
|
58
|
+
:'prn' => :'String',
|
59
|
+
:'pulp_created' => :'Time',
|
60
|
+
:'pulp_last_updated' => :'Time',
|
61
|
+
:'vulns' => :'Object',
|
62
|
+
:'repo_versions' => :'Array<String>',
|
63
|
+
:'content' => :'String'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
:'vulns',
|
71
|
+
])
|
72
|
+
end
|
73
|
+
|
74
|
+
# Initializes the object
|
75
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
76
|
+
def initialize(attributes = {})
|
77
|
+
if (!attributes.is_a?(Hash))
|
78
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::VulnerabilityReportResponse` initialize method"
|
79
|
+
end
|
80
|
+
|
81
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::VulnerabilityReportResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
85
|
+
end
|
86
|
+
h[k.to_sym] = v
|
87
|
+
}
|
88
|
+
|
89
|
+
if attributes.key?(:'pulp_href')
|
90
|
+
self.pulp_href = attributes[:'pulp_href']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'prn')
|
94
|
+
self.prn = attributes[:'prn']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'pulp_created')
|
98
|
+
self.pulp_created = attributes[:'pulp_created']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'pulp_last_updated')
|
102
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'vulns')
|
106
|
+
self.vulns = attributes[:'vulns']
|
107
|
+
else
|
108
|
+
self.vulns = nil
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'repo_versions')
|
112
|
+
if (value = attributes[:'repo_versions']).is_a?(Array)
|
113
|
+
self.repo_versions = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'content')
|
118
|
+
self.content = attributes[:'content']
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
123
|
+
# @return Array for valid properties with the reasons
|
124
|
+
def list_invalid_properties
|
125
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
126
|
+
invalid_properties = Array.new
|
127
|
+
invalid_properties
|
128
|
+
end
|
129
|
+
|
130
|
+
# Check to see if the all the properties in the model are valid
|
131
|
+
# @return true if the model is valid
|
132
|
+
def valid?
|
133
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
134
|
+
true
|
135
|
+
end
|
136
|
+
|
137
|
+
# Checks equality by comparing each attribute.
|
138
|
+
# @param [Object] Object to be compared
|
139
|
+
def ==(o)
|
140
|
+
return true if self.equal?(o)
|
141
|
+
self.class == o.class &&
|
142
|
+
pulp_href == o.pulp_href &&
|
143
|
+
prn == o.prn &&
|
144
|
+
pulp_created == o.pulp_created &&
|
145
|
+
pulp_last_updated == o.pulp_last_updated &&
|
146
|
+
vulns == o.vulns &&
|
147
|
+
repo_versions == o.repo_versions &&
|
148
|
+
content == o.content
|
149
|
+
end
|
150
|
+
|
151
|
+
# @see the `==` method
|
152
|
+
# @param [Object] Object to be compared
|
153
|
+
def eql?(o)
|
154
|
+
self == o
|
155
|
+
end
|
156
|
+
|
157
|
+
# Calculates hash code according to all attributes.
|
158
|
+
# @return [Integer] Hash code
|
159
|
+
def hash
|
160
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, vulns, repo_versions, content].hash
|
161
|
+
end
|
162
|
+
|
163
|
+
# Builds the object from hash
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
165
|
+
# @return [Object] Returns the model itself
|
166
|
+
def self.build_from_hash(attributes)
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
169
|
+
transformed_hash = {}
|
170
|
+
openapi_types.each_pair do |key, type|
|
171
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
172
|
+
transformed_hash["#{key}"] = nil
|
173
|
+
elsif type =~ /\AArray<(.*)>/i
|
174
|
+
# check to ensure the input is an array given that the attribute
|
175
|
+
# is documented as an array but the input is not
|
176
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
177
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
178
|
+
end
|
179
|
+
elsif !attributes[attribute_map[key]].nil?
|
180
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
181
|
+
end
|
182
|
+
end
|
183
|
+
new(transformed_hash)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Deserializes the data based on type
|
187
|
+
# @param string type Data type
|
188
|
+
# @param string value Value to be deserialized
|
189
|
+
# @return [Object] Deserialized data
|
190
|
+
def self._deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :Time
|
193
|
+
Time.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :Boolean
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
# models (e.g. Pet) or oneOf
|
224
|
+
klass = PulpcoreClient.const_get(type)
|
225
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# Returns the string representation of the object
|
230
|
+
# @return [String] String presentation of the object
|
231
|
+
def to_s
|
232
|
+
to_hash.to_s
|
233
|
+
end
|
234
|
+
|
235
|
+
# to_body is an alias to to_hash (backward compatibility)
|
236
|
+
# @return [Hash] Returns the object in the form of hash
|
237
|
+
def to_body
|
238
|
+
to_hash
|
239
|
+
end
|
240
|
+
|
241
|
+
# Returns the object in the form of hash
|
242
|
+
# @return [Hash] Returns the object in the form of hash
|
243
|
+
def to_hash
|
244
|
+
hash = {}
|
245
|
+
self.class.attribute_map.each_pair do |attr, param|
|
246
|
+
value = self.send(attr)
|
247
|
+
if value.nil?
|
248
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
249
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
250
|
+
end
|
251
|
+
|
252
|
+
hash[param] = _to_hash(value)
|
253
|
+
end
|
254
|
+
hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Outputs non-array value in the form of hash
|
258
|
+
# For object, use to_hash. Otherwise, just return the value
|
259
|
+
# @param [Object] value Any valid value
|
260
|
+
# @return [Hash] Returns the value in the form of hash
|
261
|
+
def _to_hash(value)
|
262
|
+
if value.is_a?(Array)
|
263
|
+
value.compact.map { |v| _to_hash(v) }
|
264
|
+
elsif value.is_a?(Hash)
|
265
|
+
{}.tap do |hash|
|
266
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
267
|
+
end
|
268
|
+
elsif value.respond_to? :to_hash
|
269
|
+
value.to_hash
|
270
|
+
else
|
271
|
+
value
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
data/lib/pulpcore_client.rb
CHANGED
@@ -120,6 +120,7 @@ require 'pulpcore_client/models/paginated_upload_response_list'
|
|
120
120
|
require 'pulpcore_client/models/paginated_upstream_pulp_response_list'
|
121
121
|
require 'pulpcore_client/models/paginated_user_response_list'
|
122
122
|
require 'pulpcore_client/models/paginated_user_role_response_list'
|
123
|
+
require 'pulpcore_client/models/paginated_vulnerability_report_response_list'
|
123
124
|
require 'pulpcore_client/models/paginated_worker_response_list'
|
124
125
|
require 'pulpcore_client/models/patched_access_policy'
|
125
126
|
require 'pulpcore_client/models/patched_composite_content_guard'
|
@@ -188,6 +189,7 @@ require 'pulpcore_client/models/user_response'
|
|
188
189
|
require 'pulpcore_client/models/user_role'
|
189
190
|
require 'pulpcore_client/models/user_role_response'
|
190
191
|
require 'pulpcore_client/models/version_response'
|
192
|
+
require 'pulpcore_client/models/vulnerability_report_response'
|
191
193
|
require 'pulpcore_client/models/worker_response'
|
192
194
|
|
193
195
|
# APIs
|
@@ -239,6 +241,7 @@ require 'pulpcore_client/api/uploads_api'
|
|
239
241
|
require 'pulpcore_client/api/upstream_pulps_api'
|
240
242
|
require 'pulpcore_client/api/users_api'
|
241
243
|
require 'pulpcore_client/api/users_roles_api'
|
244
|
+
require 'pulpcore_client/api/vuln_report_api'
|
242
245
|
require 'pulpcore_client/api/workers_api'
|
243
246
|
|
244
247
|
module PulpcoreClient
|
@@ -0,0 +1,79 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpcoreClient::VulnReportApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'VulnReportApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpcoreClient::VulnReportApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of VulnReportApi' do
|
30
|
+
it 'should create an instance of VulnReportApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpcoreClient::VulnReportApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete
|
36
|
+
# Delete a vulnerability report
|
37
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
38
|
+
# @param vulnerability_report_href
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
41
|
+
# @return [nil]
|
42
|
+
describe 'delete test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for list
|
49
|
+
# List vulnerability reports
|
50
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
53
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
54
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
55
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
56
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
57
|
+
# @return [PaginatedVulnerabilityReportResponseList]
|
58
|
+
describe 'list test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# unit tests for read
|
65
|
+
# Inspect a vulnerability report
|
66
|
+
# A customized named ModelViewSet that knows how to register itself with the Pulp API router. This viewset is discoverable by its name. \"Normal\" Django Models and Master/Detail models are supported by the ``register_with`` method. Attributes: lookup_field (str): The name of the field by which an object should be looked up, in addition to any parent lookups if this ViewSet is nested. Defaults to 'pk' endpoint_name (str): The name of the final path segment that should identify the ViewSet's collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \"parent_prefix\" of a router with rest_framework_nested.NestedMixin. None indicates this ViewSet should not be nested. parent_lookup_kwargs (dict): Optional mapping of key names that would appear in self.kwargs to django model filter expressions that can be used with the corresponding value from self.kwargs, used only by a nested ViewSet to filter based on the parent object's identity. schema (DefaultSchema): The schema class to use by default in a viewset.
|
67
|
+
# @param vulnerability_report_href
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
70
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
71
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
72
|
+
# @return [VulnerabilityReportResponse]
|
73
|
+
describe 'read test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
@@ -27,43 +27,43 @@ describe PulpcoreClient::ArtifactDistributionResponse do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test attribute "
|
30
|
+
describe 'test attribute "pulp_labels"' do
|
31
31
|
it 'should work' do
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
describe 'test attribute "
|
36
|
+
describe 'test attribute "pulp_href"' do
|
37
37
|
it 'should work' do
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
describe 'test attribute "
|
42
|
+
describe 'test attribute "content_guard"' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
describe 'test attribute "
|
48
|
+
describe 'test attribute "base_path"' do
|
49
49
|
it 'should work' do
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
-
describe 'test attribute "
|
54
|
+
describe 'test attribute "pulp_last_updated"' do
|
55
55
|
it 'should work' do
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
describe 'test attribute "
|
60
|
+
describe 'test attribute "hidden"' do
|
61
61
|
it 'should work' do
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
describe 'test attribute "
|
66
|
+
describe 'test attribute "name"' do
|
67
67
|
it 'should work' do
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
69
|
end
|
@@ -75,19 +75,19 @@ describe PulpcoreClient::ArtifactDistributionResponse do
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
describe 'test attribute "
|
78
|
+
describe 'test attribute "prn"' do
|
79
79
|
it 'should work' do
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
-
describe 'test attribute "
|
84
|
+
describe 'test attribute "pulp_created"' do
|
85
85
|
it 'should work' do
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
describe 'test attribute "
|
90
|
+
describe 'test attribute "base_url"' do
|
91
91
|
it 'should work' do
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
93
|
end
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::MultipleArtifactContentResponse 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 "artifacts"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::OpenPGPPublicKeyResponse 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 "fingerprint"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::OpenPGPPublicSubkeyResponse 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 "fingerprint"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::OpenPGPSignatureResponse 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 "issuer"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::OpenPGPUserAttributeResponse 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 "sha256"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -57,6 +57,12 @@ describe PulpcoreClient::OpenPGPUserIDResponse 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 "user_id"' do
|
61
67
|
it 'should work' do
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -0,0 +1,54 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.10.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for PulpcoreClient::PaginatedVulnerabilityReportResponseList
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe PulpcoreClient::PaginatedVulnerabilityReportResponseList do
|
21
|
+
let(:instance) { PulpcoreClient::PaginatedVulnerabilityReportResponseList.new }
|
22
|
+
|
23
|
+
describe 'test an instance of PaginatedVulnerabilityReportResponseList' do
|
24
|
+
it 'should create an instance of PaginatedVulnerabilityReportResponseList' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpcoreClient::PaginatedVulnerabilityReportResponseList)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "count"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "_next"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "previous"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "results"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -75,4 +75,10 @@ describe PulpcoreClient::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
|