pulpcore_client 3.84.0 → 3.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -4
  3. data/docs/ArtifactDistributionResponse.md +13 -13
  4. data/docs/FilesystemExportResponse.md +1 -1
  5. data/docs/GenericRemoteResponse.md +1 -1
  6. data/docs/GroupRoleResponse.md +1 -1
  7. data/docs/MultipleArtifactContentResponse.md +2 -0
  8. data/docs/NestedOpenPGPPublicSubkeyResponse.md +1 -1
  9. data/docs/NestedOpenPGPUserAttributeResponse.md +1 -1
  10. data/docs/NestedOpenPGPUserIDResponse.md +1 -1
  11. data/docs/OpenPGPPublicKeyResponse.md +5 -3
  12. data/docs/OpenPGPPublicSubkeyResponse.md +3 -1
  13. data/docs/OpenPGPSignatureResponse.md +2 -0
  14. data/docs/OpenPGPUserAttributeResponse.md +3 -1
  15. data/docs/OpenPGPUserIDResponse.md +3 -1
  16. data/docs/PaginatedVulnerabilityReportResponseList.md +24 -0
  17. data/docs/PulpExportResponse.md +1 -1
  18. data/docs/Purge.md +1 -1
  19. data/docs/RBACContentGuardResponse.md +2 -2
  20. data/docs/RepositoryVersionResponse.md +3 -1
  21. data/docs/TaskGroupResponse.md +2 -2
  22. data/docs/TaskResponse.md +4 -4
  23. data/docs/UploadDetailResponse.md +1 -1
  24. data/docs/UpstreamPulpResponse.md +1 -1
  25. data/docs/UserResponse.md +2 -2
  26. data/docs/UserRoleResponse.md +1 -1
  27. data/docs/VulnReportApi.md +241 -0
  28. data/docs/VulnerabilityReportResponse.md +30 -0
  29. data/lib/pulpcore_client/api/vuln_report_api.rb +230 -0
  30. data/lib/pulpcore_client/models/artifact_distribution_response.rb +63 -63
  31. data/lib/pulpcore_client/models/generic_remote_response.rb +0 -15
  32. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +10 -1
  33. data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +0 -9
  34. data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +0 -15
  35. data/lib/pulpcore_client/models/open_pgp_keyring.rb +0 -15
  36. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +0 -15
  37. data/lib/pulpcore_client/models/open_pgp_public_key_response.rb +10 -1
  38. data/lib/pulpcore_client/models/open_pgp_public_subkey_response.rb +10 -1
  39. data/lib/pulpcore_client/models/open_pgp_signature_response.rb +10 -16
  40. data/lib/pulpcore_client/models/open_pgp_user_attribute_response.rb +10 -1
  41. data/lib/pulpcore_client/models/open_pgp_user_id_response.rb +10 -1
  42. data/lib/pulpcore_client/models/orphans_cleanup.rb +0 -24
  43. data/lib/pulpcore_client/models/paginated_access_policy_response_list.rb +0 -2
  44. data/lib/pulpcore_client/models/paginated_artifact_distribution_response_list.rb +0 -2
  45. data/lib/pulpcore_client/models/paginated_artifact_response_list.rb +0 -2
  46. data/lib/pulpcore_client/models/paginated_composite_content_guard_response_list.rb +0 -2
  47. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +0 -2
  48. data/lib/pulpcore_client/models/paginated_content_redirect_content_guard_response_list.rb +0 -2
  49. data/lib/pulpcore_client/models/paginated_distribution_response_list.rb +0 -2
  50. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +0 -2
  51. data/lib/pulpcore_client/models/paginated_filesystem_export_response_list.rb +0 -2
  52. data/lib/pulpcore_client/models/paginated_filesystem_exporter_response_list.rb +0 -2
  53. data/lib/pulpcore_client/models/paginated_generic_remote_response_list.rb +0 -2
  54. data/lib/pulpcore_client/models/paginated_group_response_list.rb +0 -2
  55. data/lib/pulpcore_client/models/paginated_group_role_response_list.rb +0 -2
  56. data/lib/pulpcore_client/models/paginated_group_user_response_list.rb +0 -2
  57. data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +0 -2
  58. data/lib/pulpcore_client/models/paginated_import_response_list.rb +0 -2
  59. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +0 -2
  60. data/lib/pulpcore_client/models/paginated_open_pgp_distribution_response_list.rb +0 -2
  61. data/lib/pulpcore_client/models/paginated_open_pgp_keyring_response_list.rb +0 -2
  62. data/lib/pulpcore_client/models/paginated_open_pgp_public_key_response_list.rb +0 -2
  63. data/lib/pulpcore_client/models/paginated_open_pgp_public_subkey_response_list.rb +0 -2
  64. data/lib/pulpcore_client/models/paginated_open_pgp_signature_response_list.rb +0 -2
  65. data/lib/pulpcore_client/models/paginated_open_pgp_user_attribute_response_list.rb +0 -2
  66. data/lib/pulpcore_client/models/paginated_open_pgp_user_id_response_list.rb +0 -2
  67. data/lib/pulpcore_client/models/paginated_publication_response_list.rb +0 -2
  68. data/lib/pulpcore_client/models/paginated_pulp_export_response_list.rb +0 -2
  69. data/lib/pulpcore_client/models/paginated_pulp_exporter_response_list.rb +0 -2
  70. data/lib/pulpcore_client/models/paginated_pulp_importer_response_list.rb +0 -2
  71. data/lib/pulpcore_client/models/paginated_rbac_content_guard_response_list.rb +0 -2
  72. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +0 -2
  73. data/lib/pulpcore_client/models/paginated_repository_version_response_list.rb +0 -2
  74. data/lib/pulpcore_client/models/paginated_role_response_list.rb +0 -2
  75. data/lib/pulpcore_client/models/paginated_signing_service_response_list.rb +0 -2
  76. data/lib/pulpcore_client/models/paginated_task_group_response_list.rb +0 -2
  77. data/lib/pulpcore_client/models/paginated_task_response_list.rb +0 -2
  78. data/lib/pulpcore_client/models/paginated_task_schedule_response_list.rb +0 -2
  79. data/lib/pulpcore_client/models/paginated_upload_response_list.rb +0 -2
  80. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +0 -2
  81. data/lib/pulpcore_client/models/paginated_user_response_list.rb +0 -2
  82. data/lib/pulpcore_client/models/paginated_user_role_response_list.rb +0 -2
  83. data/lib/pulpcore_client/models/paginated_vulnerability_report_response_list.rb +257 -0
  84. data/lib/pulpcore_client/models/paginated_worker_response_list.rb +0 -2
  85. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +0 -15
  86. data/lib/pulpcore_client/models/purge.rb +2 -0
  87. data/lib/pulpcore_client/models/repository_response.rb +0 -15
  88. data/lib/pulpcore_client/models/repository_version_response.rb +13 -4
  89. data/lib/pulpcore_client/models/storage_response.rb +0 -45
  90. data/lib/pulpcore_client/models/vulnerability_report_response.rb +277 -0
  91. data/lib/pulpcore_client/version.rb +1 -1
  92. data/lib/pulpcore_client.rb +3 -0
  93. data/spec/api/vuln_report_api_spec.rb +79 -0
  94. data/spec/models/artifact_distribution_response_spec.rb +10 -10
  95. data/spec/models/multiple_artifact_content_response_spec.rb +6 -0
  96. data/spec/models/open_pgp_public_key_response_spec.rb +6 -0
  97. data/spec/models/open_pgp_public_subkey_response_spec.rb +6 -0
  98. data/spec/models/open_pgp_signature_response_spec.rb +6 -0
  99. data/spec/models/open_pgp_user_attribute_response_spec.rb +6 -0
  100. data/spec/models/open_pgp_user_id_response_spec.rb +6 -0
  101. data/spec/models/paginated_vulnerability_report_response_list_spec.rb +54 -0
  102. data/spec/models/repository_version_response_spec.rb +6 -0
  103. data/spec/models/vulnerability_report_response_spec.rb +72 -0
  104. 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
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.84.0'
14
+ VERSION = '3.85.0'
15
15
  end
@@ -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. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;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. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;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. \&quot;Normal\&quot; Django Models and Master/Detail models are supported by the &#x60;&#x60;register_with&#x60;&#x60; 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 &#39;pk&#39; endpoint_name (str): The name of the final path segment that should identify the ViewSet&#39;s collection endpoint. nest_prefix (str): Optional prefix under which this ViewSet should be nested. This must correspond to the \&quot;parent_prefix\&quot; 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&#39;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
@@ -33,61 +33,61 @@ describe PulpcoreClient::ArtifactDistributionResponse do
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "name"' do
36
+ describe 'test attribute "prn"' 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 "pulp_last_updated"' do
42
+ describe 'test attribute "hidden"' 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 "pulp_created"' do
48
+ describe 'test attribute "no_content_change_since"' 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 "pulp_labels"' do
54
+ describe 'test attribute "name"' 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 "content_guard"' do
60
+ describe 'test attribute "base_path"' 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 "base_url"' do
66
+ describe 'test attribute "content_guard"' 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
70
70
  end
71
71
 
72
- describe 'test attribute "no_content_change_since"' do
72
+ describe 'test attribute "base_url"' do
73
73
  it 'should work' do
74
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
75
75
  end
76
76
  end
77
77
 
78
- describe 'test attribute "base_path"' do
78
+ describe 'test attribute "pulp_last_updated"' 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 "prn"' do
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 "hidden"' do
90
+ describe 'test attribute "pulp_labels"' 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