pulpcore_client 3.83.2 → 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.
- 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 +61 -61
- 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,241 @@
|
|
1
|
+
# PulpcoreClient::VulnReportApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost:24817*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete**](VulnReportApi.md#delete) | **DELETE** {vulnerability_report_href} | Delete a vulnerability report |
|
8
|
+
| [**list**](VulnReportApi.md#list) | **GET** /pulp/api/v3/vuln_report/ | List vulnerability reports |
|
9
|
+
| [**read**](VulnReportApi.md#read) | **GET** {vulnerability_report_href} | Inspect a vulnerability report |
|
10
|
+
|
11
|
+
|
12
|
+
## delete
|
13
|
+
|
14
|
+
> delete(vulnerability_report_href, opts)
|
15
|
+
|
16
|
+
Delete a vulnerability report
|
17
|
+
|
18
|
+
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.
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'pulpcore_client'
|
25
|
+
# setup authorization
|
26
|
+
PulpcoreClient.configure do |config|
|
27
|
+
# Configure HTTP basic authorization: basicAuth
|
28
|
+
config.username = 'YOUR USERNAME'
|
29
|
+
config.password = 'YOUR PASSWORD'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = PulpcoreClient::VulnReportApi.new
|
33
|
+
vulnerability_report_href = 'vulnerability_report_href_example' # String |
|
34
|
+
opts = {
|
35
|
+
x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
|
36
|
+
}
|
37
|
+
|
38
|
+
begin
|
39
|
+
# Delete a vulnerability report
|
40
|
+
api_instance.delete(vulnerability_report_href, opts)
|
41
|
+
rescue PulpcoreClient::ApiError => e
|
42
|
+
puts "Error when calling VulnReportApi->delete: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the delete_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
49
|
+
|
50
|
+
> <Array(nil, Integer, Hash)> delete_with_http_info(vulnerability_report_href, opts)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Delete a vulnerability report
|
55
|
+
data, status_code, headers = api_instance.delete_with_http_info(vulnerability_report_href, opts)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => nil
|
59
|
+
rescue PulpcoreClient::ApiError => e
|
60
|
+
puts "Error when calling VulnReportApi->delete_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **vulnerability_report_href** | **String** | | |
|
69
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
70
|
+
|
71
|
+
### Return type
|
72
|
+
|
73
|
+
nil (empty response body)
|
74
|
+
|
75
|
+
### Authorization
|
76
|
+
|
77
|
+
[basicAuth](../README.md#basicAuth)
|
78
|
+
|
79
|
+
### HTTP request headers
|
80
|
+
|
81
|
+
- **Content-Type**: Not defined
|
82
|
+
- **Accept**: Not defined
|
83
|
+
|
84
|
+
|
85
|
+
## list
|
86
|
+
|
87
|
+
> <PaginatedVulnerabilityReportResponseList> list(opts)
|
88
|
+
|
89
|
+
List vulnerability reports
|
90
|
+
|
91
|
+
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.
|
92
|
+
|
93
|
+
### Examples
|
94
|
+
|
95
|
+
```ruby
|
96
|
+
require 'time'
|
97
|
+
require 'pulpcore_client'
|
98
|
+
# setup authorization
|
99
|
+
PulpcoreClient.configure do |config|
|
100
|
+
# Configure HTTP basic authorization: basicAuth
|
101
|
+
config.username = 'YOUR USERNAME'
|
102
|
+
config.password = 'YOUR PASSWORD'
|
103
|
+
end
|
104
|
+
|
105
|
+
api_instance = PulpcoreClient::VulnReportApi.new
|
106
|
+
opts = {
|
107
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
108
|
+
limit: 56, # Integer | Number of results to return per page.
|
109
|
+
offset: 56, # Integer | The initial index from which to return the results.
|
110
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
111
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
112
|
+
}
|
113
|
+
|
114
|
+
begin
|
115
|
+
# List vulnerability reports
|
116
|
+
result = api_instance.list(opts)
|
117
|
+
p result
|
118
|
+
rescue PulpcoreClient::ApiError => e
|
119
|
+
puts "Error when calling VulnReportApi->list: #{e}"
|
120
|
+
end
|
121
|
+
```
|
122
|
+
|
123
|
+
#### Using the list_with_http_info variant
|
124
|
+
|
125
|
+
This returns an Array which contains the response data, status code and headers.
|
126
|
+
|
127
|
+
> <Array(<PaginatedVulnerabilityReportResponseList>, Integer, Hash)> list_with_http_info(opts)
|
128
|
+
|
129
|
+
```ruby
|
130
|
+
begin
|
131
|
+
# List vulnerability reports
|
132
|
+
data, status_code, headers = api_instance.list_with_http_info(opts)
|
133
|
+
p status_code # => 2xx
|
134
|
+
p headers # => { ... }
|
135
|
+
p data # => <PaginatedVulnerabilityReportResponseList>
|
136
|
+
rescue PulpcoreClient::ApiError => e
|
137
|
+
puts "Error when calling VulnReportApi->list_with_http_info: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
| Name | Type | Description | Notes |
|
144
|
+
| ---- | ---- | ----------- | ----- |
|
145
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
146
|
+
| **limit** | **Integer** | Number of results to return per page. | [optional] |
|
147
|
+
| **offset** | **Integer** | The initial index from which to return the results. | [optional] |
|
148
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
149
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
150
|
+
|
151
|
+
### Return type
|
152
|
+
|
153
|
+
[**PaginatedVulnerabilityReportResponseList**](PaginatedVulnerabilityReportResponseList.md)
|
154
|
+
|
155
|
+
### Authorization
|
156
|
+
|
157
|
+
[basicAuth](../README.md#basicAuth)
|
158
|
+
|
159
|
+
### HTTP request headers
|
160
|
+
|
161
|
+
- **Content-Type**: Not defined
|
162
|
+
- **Accept**: application/json
|
163
|
+
|
164
|
+
|
165
|
+
## read
|
166
|
+
|
167
|
+
> <VulnerabilityReportResponse> read(vulnerability_report_href, opts)
|
168
|
+
|
169
|
+
Inspect a vulnerability report
|
170
|
+
|
171
|
+
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.
|
172
|
+
|
173
|
+
### Examples
|
174
|
+
|
175
|
+
```ruby
|
176
|
+
require 'time'
|
177
|
+
require 'pulpcore_client'
|
178
|
+
# setup authorization
|
179
|
+
PulpcoreClient.configure do |config|
|
180
|
+
# Configure HTTP basic authorization: basicAuth
|
181
|
+
config.username = 'YOUR USERNAME'
|
182
|
+
config.password = 'YOUR PASSWORD'
|
183
|
+
end
|
184
|
+
|
185
|
+
api_instance = PulpcoreClient::VulnReportApi.new
|
186
|
+
vulnerability_report_href = 'vulnerability_report_href_example' # String |
|
187
|
+
opts = {
|
188
|
+
x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
|
189
|
+
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
190
|
+
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
191
|
+
}
|
192
|
+
|
193
|
+
begin
|
194
|
+
# Inspect a vulnerability report
|
195
|
+
result = api_instance.read(vulnerability_report_href, opts)
|
196
|
+
p result
|
197
|
+
rescue PulpcoreClient::ApiError => e
|
198
|
+
puts "Error when calling VulnReportApi->read: #{e}"
|
199
|
+
end
|
200
|
+
```
|
201
|
+
|
202
|
+
#### Using the read_with_http_info variant
|
203
|
+
|
204
|
+
This returns an Array which contains the response data, status code and headers.
|
205
|
+
|
206
|
+
> <Array(<VulnerabilityReportResponse>, Integer, Hash)> read_with_http_info(vulnerability_report_href, opts)
|
207
|
+
|
208
|
+
```ruby
|
209
|
+
begin
|
210
|
+
# Inspect a vulnerability report
|
211
|
+
data, status_code, headers = api_instance.read_with_http_info(vulnerability_report_href, opts)
|
212
|
+
p status_code # => 2xx
|
213
|
+
p headers # => { ... }
|
214
|
+
p data # => <VulnerabilityReportResponse>
|
215
|
+
rescue PulpcoreClient::ApiError => e
|
216
|
+
puts "Error when calling VulnReportApi->read_with_http_info: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
### Parameters
|
221
|
+
|
222
|
+
| Name | Type | Description | Notes |
|
223
|
+
| ---- | ---- | ----------- | ----- |
|
224
|
+
| **vulnerability_report_href** | **String** | | |
|
225
|
+
| **x_task_diagnostics** | [**Array<String>**](String.md) | List of profilers to use on tasks. | [optional] |
|
226
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
227
|
+
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**VulnerabilityReportResponse**](VulnerabilityReportResponse.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[basicAuth](../README.md#basicAuth)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: Not defined
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# PulpcoreClient::VulnerabilityReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
8
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
9
|
+
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
10
|
+
| **pulp_last_updated** | **Time** | 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. | [optional][readonly] |
|
11
|
+
| **vulns** | **Object** | | |
|
12
|
+
| **repo_versions** | **Array<String>** | | [optional] |
|
13
|
+
| **content** | **String** | | [optional][readonly] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'pulpcore_client'
|
19
|
+
|
20
|
+
instance = PulpcoreClient::VulnerabilityReportResponse.new(
|
21
|
+
pulp_href: null,
|
22
|
+
prn: null,
|
23
|
+
pulp_created: null,
|
24
|
+
pulp_last_updated: null,
|
25
|
+
vulns: null,
|
26
|
+
repo_versions: null,
|
27
|
+
content: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,230 @@
|
|
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 'cgi'
|
14
|
+
|
15
|
+
module PulpcoreClient
|
16
|
+
class VulnReportApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete a vulnerability report
|
23
|
+
# 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.
|
24
|
+
# @param vulnerability_report_href [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
27
|
+
# @return [nil]
|
28
|
+
def delete(vulnerability_report_href, opts = {})
|
29
|
+
delete_with_http_info(vulnerability_report_href, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Delete a vulnerability report
|
34
|
+
# 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.
|
35
|
+
# @param vulnerability_report_href [String]
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def delete_with_http_info(vulnerability_report_href, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: VulnReportApi.delete ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'vulnerability_report_href' is set
|
44
|
+
if @api_client.config.client_side_validation && vulnerability_report_href.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'vulnerability_report_href' when calling VulnReportApi.delete"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '{vulnerability_report_href}'.sub('{' + 'vulnerability_report_href' + '}', CGI.escape(vulnerability_report_href.to_s).gsub('%2F', '/'))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
|
53
|
+
# header parameters
|
54
|
+
header_params = opts[:header_params] || {}
|
55
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:debug_body]
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type]
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"VulnReportApi.delete",
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: VulnReportApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# List vulnerability reports
|
87
|
+
# 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.
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
90
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
91
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
92
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
93
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
94
|
+
# @return [PaginatedVulnerabilityReportResponseList]
|
95
|
+
def list(opts = {})
|
96
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# List vulnerability reports
|
101
|
+
# 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.
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
104
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
105
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
106
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
107
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
108
|
+
# @return [Array<(PaginatedVulnerabilityReportResponseList, Integer, Hash)>] PaginatedVulnerabilityReportResponseList data, response status code and response headers
|
109
|
+
def list_with_http_info(opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug 'Calling API: VulnReportApi.list ...'
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/pulp/api/v3/vuln_report/'
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = opts[:query_params] || {}
|
118
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
119
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
120
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
121
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
122
|
+
|
123
|
+
# header parameters
|
124
|
+
header_params = opts[:header_params] || {}
|
125
|
+
# HTTP header 'Accept' (if needed)
|
126
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
127
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = opts[:form_params] || {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = opts[:debug_body]
|
134
|
+
|
135
|
+
# return_type
|
136
|
+
return_type = opts[:debug_return_type] || 'PaginatedVulnerabilityReportResponseList'
|
137
|
+
|
138
|
+
# auth_names
|
139
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
140
|
+
|
141
|
+
new_options = opts.merge(
|
142
|
+
:operation => :"VulnReportApi.list",
|
143
|
+
:header_params => header_params,
|
144
|
+
:query_params => query_params,
|
145
|
+
:form_params => form_params,
|
146
|
+
:body => post_body,
|
147
|
+
:auth_names => auth_names,
|
148
|
+
:return_type => return_type
|
149
|
+
)
|
150
|
+
|
151
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
152
|
+
if @api_client.config.debugging
|
153
|
+
@api_client.config.logger.debug "API called: VulnReportApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
154
|
+
end
|
155
|
+
return data, status_code, headers
|
156
|
+
end
|
157
|
+
|
158
|
+
# Inspect a vulnerability report
|
159
|
+
# 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.
|
160
|
+
# @param vulnerability_report_href [String]
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
163
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
164
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
165
|
+
# @return [VulnerabilityReportResponse]
|
166
|
+
def read(vulnerability_report_href, opts = {})
|
167
|
+
data, _status_code, _headers = read_with_http_info(vulnerability_report_href, opts)
|
168
|
+
data
|
169
|
+
end
|
170
|
+
|
171
|
+
# Inspect a vulnerability report
|
172
|
+
# 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.
|
173
|
+
# @param vulnerability_report_href [String]
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
176
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
177
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
178
|
+
# @return [Array<(VulnerabilityReportResponse, Integer, Hash)>] VulnerabilityReportResponse data, response status code and response headers
|
179
|
+
def read_with_http_info(vulnerability_report_href, opts = {})
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug 'Calling API: VulnReportApi.read ...'
|
182
|
+
end
|
183
|
+
# verify the required parameter 'vulnerability_report_href' is set
|
184
|
+
if @api_client.config.client_side_validation && vulnerability_report_href.nil?
|
185
|
+
fail ArgumentError, "Missing the required parameter 'vulnerability_report_href' when calling VulnReportApi.read"
|
186
|
+
end
|
187
|
+
# resource path
|
188
|
+
local_var_path = '{vulnerability_report_href}'.sub('{' + 'vulnerability_report_href' + '}', CGI.escape(vulnerability_report_href.to_s).gsub('%2F', '/'))
|
189
|
+
|
190
|
+
# query parameters
|
191
|
+
query_params = opts[:query_params] || {}
|
192
|
+
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
193
|
+
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
194
|
+
|
195
|
+
# header parameters
|
196
|
+
header_params = opts[:header_params] || {}
|
197
|
+
# HTTP header 'Accept' (if needed)
|
198
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
199
|
+
header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
|
200
|
+
|
201
|
+
# form parameters
|
202
|
+
form_params = opts[:form_params] || {}
|
203
|
+
|
204
|
+
# http body (model)
|
205
|
+
post_body = opts[:debug_body]
|
206
|
+
|
207
|
+
# return_type
|
208
|
+
return_type = opts[:debug_return_type] || 'VulnerabilityReportResponse'
|
209
|
+
|
210
|
+
# auth_names
|
211
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
212
|
+
|
213
|
+
new_options = opts.merge(
|
214
|
+
:operation => :"VulnReportApi.read",
|
215
|
+
:header_params => header_params,
|
216
|
+
:query_params => query_params,
|
217
|
+
:form_params => form_params,
|
218
|
+
:body => post_body,
|
219
|
+
:auth_names => auth_names,
|
220
|
+
:return_type => return_type
|
221
|
+
)
|
222
|
+
|
223
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: VulnReportApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|