@maxim_mazurok/gapi.client.websecurityscanner-v1 0.0.20230424 → 0.0.20230429
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.
- package/index.d.ts +633 -317
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://websecurityscanner.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230429
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,242 +24,323 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace websecurityscanner {
|
|
25
25
|
interface Authentication {
|
|
26
26
|
/** Authentication using a custom account. */
|
|
27
|
-
customAccount?:
|
|
27
|
+
customAccount?:
|
|
28
|
+
CustomAccount;
|
|
28
29
|
/** Authentication using a Google account. */
|
|
29
|
-
googleAccount?:
|
|
30
|
+
googleAccount?:
|
|
31
|
+
GoogleAccount;
|
|
30
32
|
/** Authentication using Identity-Aware-Proxy (IAP). */
|
|
31
|
-
iapCredential?:
|
|
33
|
+
iapCredential?:
|
|
34
|
+
IapCredential;
|
|
32
35
|
}
|
|
33
36
|
interface CrawledUrl {
|
|
34
37
|
/** Output only. The body of the request that was used to visit the URL. */
|
|
35
|
-
body?:
|
|
38
|
+
body?:
|
|
39
|
+
string;
|
|
36
40
|
/** Output only. The http method of the request that was used to visit the URL, in uppercase. */
|
|
37
|
-
httpMethod?:
|
|
41
|
+
httpMethod?:
|
|
42
|
+
string;
|
|
38
43
|
/** Output only. The URL that was crawled. */
|
|
39
|
-
url?:
|
|
44
|
+
url?:
|
|
45
|
+
string;
|
|
40
46
|
}
|
|
41
47
|
interface CustomAccount {
|
|
42
48
|
/** Required. The login form URL of the website. */
|
|
43
|
-
loginUrl?:
|
|
49
|
+
loginUrl?:
|
|
50
|
+
string;
|
|
44
51
|
/** Required. Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs. */
|
|
45
|
-
password?:
|
|
52
|
+
password?:
|
|
53
|
+
string;
|
|
46
54
|
/** Required. The user name of the custom account. */
|
|
47
|
-
username?:
|
|
55
|
+
username?:
|
|
56
|
+
string;
|
|
48
57
|
}
|
|
49
58
|
// tslint:disable-next-line:no-empty-interface
|
|
50
59
|
interface Empty {
|
|
51
60
|
}
|
|
52
61
|
interface Finding {
|
|
53
62
|
/** Output only. The body of the request that triggered the vulnerability. */
|
|
54
|
-
body?:
|
|
63
|
+
body?:
|
|
64
|
+
string;
|
|
55
65
|
/** Output only. The description of the vulnerability. */
|
|
56
|
-
description?:
|
|
66
|
+
description?:
|
|
67
|
+
string;
|
|
57
68
|
/** Output only. The URL where the browser lands when the vulnerability is detected. */
|
|
58
|
-
finalUrl?:
|
|
69
|
+
finalUrl?:
|
|
70
|
+
string;
|
|
59
71
|
/**
|
|
60
72
|
* Output only. The type of the Finding. Detailed and up-to-date information on findings can be found here:
|
|
61
73
|
* https://cloud.google.com/security-command-center/docs/how-to-remediate-web-security-scanner-findings
|
|
62
74
|
*/
|
|
63
|
-
findingType?:
|
|
75
|
+
findingType?:
|
|
76
|
+
string;
|
|
64
77
|
/** Output only. An addon containing information reported for a vulnerability with an HTML form, if any. */
|
|
65
|
-
form?:
|
|
78
|
+
form?:
|
|
79
|
+
Form;
|
|
66
80
|
/** Output only. If the vulnerability was originated from nested IFrame, the immediate parent IFrame is reported. */
|
|
67
|
-
frameUrl?:
|
|
81
|
+
frameUrl?:
|
|
82
|
+
string;
|
|
68
83
|
/** Output only. The URL produced by the server-side fuzzer and used in the request that triggered the vulnerability. */
|
|
69
|
-
fuzzedUrl?:
|
|
84
|
+
fuzzedUrl?:
|
|
85
|
+
string;
|
|
70
86
|
/** Output only. The http method of the request that triggered the vulnerability, in uppercase. */
|
|
71
|
-
httpMethod?:
|
|
87
|
+
httpMethod?:
|
|
88
|
+
string;
|
|
72
89
|
/**
|
|
73
90
|
* Output only. The resource name of the Finding. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'. The
|
|
74
91
|
* finding IDs are generated by the system.
|
|
75
92
|
*/
|
|
76
|
-
name?:
|
|
93
|
+
name?:
|
|
94
|
+
string;
|
|
77
95
|
/** Output only. An addon containing information about outdated libraries. */
|
|
78
|
-
outdatedLibrary?:
|
|
96
|
+
outdatedLibrary?:
|
|
97
|
+
OutdatedLibrary;
|
|
79
98
|
/** Output only. The URL containing human-readable payload that user can leverage to reproduce the vulnerability. */
|
|
80
|
-
reproductionUrl?:
|
|
99
|
+
reproductionUrl?:
|
|
100
|
+
string;
|
|
81
101
|
/** Output only. The severity level of the reported vulnerability. */
|
|
82
|
-
severity?:
|
|
102
|
+
severity?:
|
|
103
|
+
string;
|
|
83
104
|
/** Output only. The tracking ID uniquely identifies a vulnerability instance across multiple ScanRuns. */
|
|
84
|
-
trackingId?:
|
|
105
|
+
trackingId?:
|
|
106
|
+
string;
|
|
85
107
|
/** Output only. An addon containing detailed information regarding any resource causing the vulnerability such as JavaScript sources, image, audio files, etc. */
|
|
86
|
-
violatingResource?:
|
|
108
|
+
violatingResource?:
|
|
109
|
+
ViolatingResource;
|
|
87
110
|
/** Output only. An addon containing information about vulnerable or missing HTTP headers. */
|
|
88
|
-
vulnerableHeaders?:
|
|
111
|
+
vulnerableHeaders?:
|
|
112
|
+
VulnerableHeaders;
|
|
89
113
|
/** Output only. An addon containing information about request parameters which were found to be vulnerable. */
|
|
90
|
-
vulnerableParameters?:
|
|
114
|
+
vulnerableParameters?:
|
|
115
|
+
VulnerableParameters;
|
|
91
116
|
/** Output only. An addon containing information reported for an XSS, if any. */
|
|
92
|
-
xss?:
|
|
117
|
+
xss?:
|
|
118
|
+
Xss;
|
|
93
119
|
/** Output only. An addon containing information reported for an XXE, if any. */
|
|
94
|
-
xxe?:
|
|
120
|
+
xxe?:
|
|
121
|
+
Xxe;
|
|
95
122
|
}
|
|
96
123
|
interface FindingTypeStats {
|
|
97
124
|
/** Output only. The count of findings belonging to this finding type. */
|
|
98
|
-
findingCount?:
|
|
125
|
+
findingCount?:
|
|
126
|
+
number;
|
|
99
127
|
/** Output only. The finding type associated with the stats. */
|
|
100
|
-
findingType?:
|
|
128
|
+
findingType?:
|
|
129
|
+
string;
|
|
101
130
|
}
|
|
102
131
|
interface Form {
|
|
103
132
|
/** ! The URI where to send the form when it's submitted. */
|
|
104
|
-
actionUri?:
|
|
133
|
+
actionUri?:
|
|
134
|
+
string;
|
|
105
135
|
/** ! The names of form fields related to the vulnerability. */
|
|
106
|
-
fields?:
|
|
136
|
+
fields?:
|
|
137
|
+
string[];
|
|
107
138
|
}
|
|
108
139
|
interface GoogleAccount {
|
|
109
140
|
/** Required. Input only. The password of the Google account. The credential is stored encrypted and not returned in any response nor included in audit logs. */
|
|
110
|
-
password?:
|
|
141
|
+
password?:
|
|
142
|
+
string;
|
|
111
143
|
/** Required. The user name of the Google account. */
|
|
112
|
-
username?:
|
|
144
|
+
username?:
|
|
145
|
+
string;
|
|
113
146
|
}
|
|
114
147
|
interface Header {
|
|
115
148
|
/** Header name. */
|
|
116
|
-
name?:
|
|
149
|
+
name?:
|
|
150
|
+
string;
|
|
117
151
|
/** Header value. */
|
|
118
|
-
value?:
|
|
152
|
+
value?:
|
|
153
|
+
string;
|
|
119
154
|
}
|
|
120
155
|
interface IapCredential {
|
|
121
156
|
/** Authentication configuration when Web-Security-Scanner service account is added in Identity-Aware-Proxy (IAP) access policies. */
|
|
122
|
-
iapTestServiceAccountInfo?:
|
|
157
|
+
iapTestServiceAccountInfo?:
|
|
158
|
+
IapTestServiceAccountInfo;
|
|
123
159
|
}
|
|
124
160
|
interface IapTestServiceAccountInfo {
|
|
125
161
|
/** Required. Describes OAuth2 client id of resources protected by Identity-Aware-Proxy (IAP). */
|
|
126
|
-
targetAudienceClientId?:
|
|
162
|
+
targetAudienceClientId?:
|
|
163
|
+
string;
|
|
127
164
|
}
|
|
128
165
|
interface ListCrawledUrlsResponse {
|
|
129
166
|
/** The list of CrawledUrls returned. */
|
|
130
|
-
crawledUrls?:
|
|
167
|
+
crawledUrls?:
|
|
168
|
+
CrawledUrl[];
|
|
131
169
|
/** Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
132
|
-
nextPageToken?:
|
|
170
|
+
nextPageToken?:
|
|
171
|
+
string;
|
|
133
172
|
}
|
|
134
173
|
interface ListFindingsResponse {
|
|
135
174
|
/** The list of Findings returned. */
|
|
136
|
-
findings?:
|
|
175
|
+
findings?:
|
|
176
|
+
Finding[];
|
|
137
177
|
/** Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
138
|
-
nextPageToken?:
|
|
178
|
+
nextPageToken?:
|
|
179
|
+
string;
|
|
139
180
|
}
|
|
140
181
|
interface ListFindingTypeStatsResponse {
|
|
141
182
|
/** The list of FindingTypeStats returned. */
|
|
142
|
-
findingTypeStats?:
|
|
183
|
+
findingTypeStats?:
|
|
184
|
+
FindingTypeStats[];
|
|
143
185
|
}
|
|
144
186
|
interface ListScanConfigsResponse {
|
|
145
187
|
/** Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
146
|
-
nextPageToken?:
|
|
188
|
+
nextPageToken?:
|
|
189
|
+
string;
|
|
147
190
|
/** The list of ScanConfigs returned. */
|
|
148
|
-
scanConfigs?:
|
|
191
|
+
scanConfigs?:
|
|
192
|
+
ScanConfig[];
|
|
149
193
|
}
|
|
150
194
|
interface ListScanRunsResponse {
|
|
151
195
|
/** Token to retrieve the next page of results, or empty if there are no more results in the list. */
|
|
152
|
-
nextPageToken?:
|
|
196
|
+
nextPageToken?:
|
|
197
|
+
string;
|
|
153
198
|
/** The list of ScanRuns returned. */
|
|
154
|
-
scanRuns?:
|
|
199
|
+
scanRuns?:
|
|
200
|
+
ScanRun[];
|
|
155
201
|
}
|
|
156
202
|
interface OutdatedLibrary {
|
|
157
203
|
/** URLs to learn more information about the vulnerabilities in the library. */
|
|
158
|
-
learnMoreUrls?:
|
|
204
|
+
learnMoreUrls?:
|
|
205
|
+
string[];
|
|
159
206
|
/** The name of the outdated library. */
|
|
160
|
-
libraryName?:
|
|
207
|
+
libraryName?:
|
|
208
|
+
string;
|
|
161
209
|
/** The version number. */
|
|
162
|
-
version?:
|
|
210
|
+
version?:
|
|
211
|
+
string;
|
|
163
212
|
}
|
|
164
213
|
interface ScanConfig {
|
|
165
214
|
/** The authentication configuration. If specified, service will use the authentication configuration during scanning. */
|
|
166
|
-
authentication?:
|
|
215
|
+
authentication?:
|
|
216
|
+
Authentication;
|
|
167
217
|
/** The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls */
|
|
168
|
-
blacklistPatterns?:
|
|
218
|
+
blacklistPatterns?:
|
|
219
|
+
string[];
|
|
169
220
|
/** Required. The user provided display name of the ScanConfig. */
|
|
170
|
-
displayName?:
|
|
221
|
+
displayName?:
|
|
222
|
+
string;
|
|
171
223
|
/** Controls export of scan configurations and results to Security Command Center. */
|
|
172
|
-
exportToSecurityCommandCenter?:
|
|
224
|
+
exportToSecurityCommandCenter?:
|
|
225
|
+
string;
|
|
173
226
|
/** Whether to keep scanning even if most requests return HTTP error codes. */
|
|
174
|
-
ignoreHttpStatusErrors?:
|
|
227
|
+
ignoreHttpStatusErrors?:
|
|
228
|
+
boolean;
|
|
175
229
|
/** Whether the scan config is managed by Web Security Scanner, output only. */
|
|
176
|
-
managedScan?:
|
|
230
|
+
managedScan?:
|
|
231
|
+
boolean;
|
|
177
232
|
/**
|
|
178
233
|
* The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of
|
|
179
234
|
* [5, 20] range will be rejected with INVALID_ARGUMENT error.
|
|
180
235
|
*/
|
|
181
|
-
maxQps?:
|
|
236
|
+
maxQps?:
|
|
237
|
+
number;
|
|
182
238
|
/** The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. */
|
|
183
|
-
name?:
|
|
239
|
+
name?:
|
|
240
|
+
string;
|
|
184
241
|
/** The risk level selected for the scan */
|
|
185
|
-
riskLevel?:
|
|
242
|
+
riskLevel?:
|
|
243
|
+
string;
|
|
186
244
|
/** The schedule of the ScanConfig. */
|
|
187
|
-
schedule?:
|
|
245
|
+
schedule?:
|
|
246
|
+
Schedule;
|
|
188
247
|
/** Required. The starting URLs from which the scanner finds site pages. */
|
|
189
|
-
startingUrls?:
|
|
248
|
+
startingUrls?:
|
|
249
|
+
string[];
|
|
190
250
|
/** Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses. */
|
|
191
|
-
staticIpScan?:
|
|
251
|
+
staticIpScan?:
|
|
252
|
+
boolean;
|
|
192
253
|
/** The user agent used during scanning. */
|
|
193
|
-
userAgent?:
|
|
254
|
+
userAgent?:
|
|
255
|
+
string;
|
|
194
256
|
}
|
|
195
257
|
interface ScanConfigError {
|
|
196
258
|
/** Output only. Indicates the reason code for a configuration failure. */
|
|
197
|
-
code?:
|
|
259
|
+
code?:
|
|
260
|
+
string;
|
|
198
261
|
/**
|
|
199
262
|
* Output only. Indicates the full name of the ScanConfig field that triggers this error, for example "scan_config.max_qps". This field is provided for troubleshooting purposes only
|
|
200
263
|
* and its actual value can change in the future.
|
|
201
264
|
*/
|
|
202
|
-
fieldName?:
|
|
265
|
+
fieldName?:
|
|
266
|
+
string;
|
|
203
267
|
}
|
|
204
268
|
interface ScanRun {
|
|
205
269
|
/** Output only. The time at which the ScanRun reached termination state - that the ScanRun is either finished or stopped by user. */
|
|
206
|
-
endTime?:
|
|
270
|
+
endTime?:
|
|
271
|
+
string;
|
|
207
272
|
/** Output only. If result_state is an ERROR, this field provides the primary reason for scan's termination and more details, if such are available. */
|
|
208
|
-
errorTrace?:
|
|
273
|
+
errorTrace?:
|
|
274
|
+
ScanRunErrorTrace;
|
|
209
275
|
/** Output only. The execution state of the ScanRun. */
|
|
210
|
-
executionState?:
|
|
276
|
+
executionState?:
|
|
277
|
+
string;
|
|
211
278
|
/** Output only. Whether the scan run has found any vulnerabilities. */
|
|
212
|
-
hasVulnerabilities?:
|
|
279
|
+
hasVulnerabilities?:
|
|
280
|
+
boolean;
|
|
213
281
|
/**
|
|
214
282
|
* Output only. The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated
|
|
215
283
|
* by the system.
|
|
216
284
|
*/
|
|
217
|
-
name?:
|
|
285
|
+
name?:
|
|
286
|
+
string;
|
|
218
287
|
/**
|
|
219
288
|
* Output only. The percentage of total completion ranging from 0 to 100. If the scan is in queue, the value is 0. If the scan is running, the value ranges from 0 to 100. If the scan
|
|
220
289
|
* is finished, the value is 100.
|
|
221
290
|
*/
|
|
222
|
-
progressPercent?:
|
|
291
|
+
progressPercent?:
|
|
292
|
+
number;
|
|
223
293
|
/** Output only. The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED". */
|
|
224
|
-
resultState?:
|
|
294
|
+
resultState?:
|
|
295
|
+
string;
|
|
225
296
|
/** Output only. The time at which the ScanRun started. */
|
|
226
|
-
startTime?:
|
|
297
|
+
startTime?:
|
|
298
|
+
string;
|
|
227
299
|
/** Output only. The number of URLs crawled during this ScanRun. If the scan is in progress, the value represents the number of URLs crawled up to now. */
|
|
228
|
-
urlsCrawledCount?:
|
|
300
|
+
urlsCrawledCount?:
|
|
301
|
+
string;
|
|
229
302
|
/**
|
|
230
303
|
* Output only. The number of URLs tested during this ScanRun. If the scan is in progress, the value represents the number of URLs tested up to now. The number of URLs tested is
|
|
231
304
|
* usually larger than the number URLS crawled because typically a crawled URL is tested with multiple test payloads.
|
|
232
305
|
*/
|
|
233
|
-
urlsTestedCount?:
|
|
306
|
+
urlsTestedCount?:
|
|
307
|
+
string;
|
|
234
308
|
/** Output only. A list of warnings, if such are encountered during this scan run. */
|
|
235
|
-
warningTraces?:
|
|
309
|
+
warningTraces?:
|
|
310
|
+
ScanRunWarningTrace[];
|
|
236
311
|
}
|
|
237
312
|
interface ScanRunErrorTrace {
|
|
238
313
|
/** Output only. Indicates the error reason code. */
|
|
239
|
-
code?:
|
|
314
|
+
code?:
|
|
315
|
+
string;
|
|
240
316
|
/**
|
|
241
317
|
* Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has
|
|
242
318
|
* encountered too many NOT_FOUND responses.
|
|
243
319
|
*/
|
|
244
|
-
mostCommonHttpErrorCode?:
|
|
320
|
+
mostCommonHttpErrorCode?:
|
|
321
|
+
number;
|
|
245
322
|
/**
|
|
246
323
|
* Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan
|
|
247
324
|
* run.
|
|
248
325
|
*/
|
|
249
|
-
scanConfigError?:
|
|
326
|
+
scanConfigError?:
|
|
327
|
+
ScanConfigError;
|
|
250
328
|
}
|
|
251
329
|
interface ScanRunWarningTrace {
|
|
252
330
|
/** Output only. Indicates the warning code. */
|
|
253
|
-
code?:
|
|
331
|
+
code?:
|
|
332
|
+
string;
|
|
254
333
|
}
|
|
255
334
|
interface Schedule {
|
|
256
335
|
/** Required. The duration of time between executions in days. */
|
|
257
|
-
intervalDurationDays?:
|
|
336
|
+
intervalDurationDays?:
|
|
337
|
+
number;
|
|
258
338
|
/**
|
|
259
339
|
* A timestamp indicates when the next run will be scheduled. The value is refreshed by the server after each run. If unspecified, it will default to current server time, which means
|
|
260
340
|
* the scan will be scheduled to start immediately.
|
|
261
341
|
*/
|
|
262
|
-
scheduleTime?:
|
|
342
|
+
scheduleTime?:
|
|
343
|
+
string;
|
|
263
344
|
}
|
|
264
345
|
// tslint:disable-next-line:no-empty-interface
|
|
265
346
|
interface StartScanRunRequest {
|
|
@@ -269,556 +350,791 @@ declare namespace gapi.client {
|
|
|
269
350
|
}
|
|
270
351
|
interface ViolatingResource {
|
|
271
352
|
/** The MIME type of this resource. */
|
|
272
|
-
contentType?:
|
|
353
|
+
contentType?:
|
|
354
|
+
string;
|
|
273
355
|
/** URL of this violating resource. */
|
|
274
|
-
resourceUrl?:
|
|
356
|
+
resourceUrl?:
|
|
357
|
+
string;
|
|
275
358
|
}
|
|
276
359
|
interface VulnerableHeaders {
|
|
277
360
|
/** List of vulnerable headers. */
|
|
278
|
-
headers?:
|
|
361
|
+
headers?:
|
|
362
|
+
Header[];
|
|
279
363
|
/** List of missing headers. */
|
|
280
|
-
missingHeaders?:
|
|
364
|
+
missingHeaders?:
|
|
365
|
+
Header[];
|
|
281
366
|
}
|
|
282
367
|
interface VulnerableParameters {
|
|
283
368
|
/** The vulnerable parameter names. */
|
|
284
|
-
parameterNames?:
|
|
369
|
+
parameterNames?:
|
|
370
|
+
string[];
|
|
285
371
|
}
|
|
286
372
|
interface Xss {
|
|
287
373
|
/** The attack vector of the payload triggering this XSS. */
|
|
288
|
-
attackVector?:
|
|
374
|
+
attackVector?:
|
|
375
|
+
string;
|
|
289
376
|
/** An error message generated by a javascript breakage. */
|
|
290
|
-
errorMessage?:
|
|
377
|
+
errorMessage?:
|
|
378
|
+
string;
|
|
291
379
|
/** Stack traces leading to the point where the XSS occurred. */
|
|
292
|
-
stackTraces?:
|
|
380
|
+
stackTraces?:
|
|
381
|
+
string[];
|
|
293
382
|
/** The reproduction url for the seeding POST request of a Stored XSS. */
|
|
294
|
-
storedXssSeedingUrl?:
|
|
383
|
+
storedXssSeedingUrl?:
|
|
384
|
+
string;
|
|
295
385
|
}
|
|
296
386
|
interface Xxe {
|
|
297
387
|
/** Location within the request where the payload was placed. */
|
|
298
|
-
payloadLocation?:
|
|
388
|
+
payloadLocation?:
|
|
389
|
+
string;
|
|
299
390
|
/** The XML string that triggered the XXE vulnerability. Non-payload values might be redacted. */
|
|
300
|
-
payloadValue?:
|
|
391
|
+
payloadValue?:
|
|
392
|
+
string;
|
|
301
393
|
}
|
|
302
394
|
interface CrawledUrlsResource {
|
|
303
395
|
/** List CrawledUrls under a given ScanRun. */
|
|
304
396
|
list(request?: {
|
|
305
397
|
/** V1 error format. */
|
|
306
|
-
"$.xgafv"?:
|
|
398
|
+
"$.xgafv"?:
|
|
399
|
+
string;
|
|
307
400
|
/** OAuth access token. */
|
|
308
|
-
access_token?:
|
|
401
|
+
access_token?:
|
|
402
|
+
string;
|
|
309
403
|
/** Data format for response. */
|
|
310
|
-
alt?:
|
|
404
|
+
alt?:
|
|
405
|
+
string;
|
|
311
406
|
/** JSONP */
|
|
312
|
-
callback?:
|
|
407
|
+
callback?:
|
|
408
|
+
string;
|
|
313
409
|
/** Selector specifying which fields to include in a partial response. */
|
|
314
|
-
fields?:
|
|
410
|
+
fields?:
|
|
411
|
+
string;
|
|
315
412
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
316
|
-
key?:
|
|
413
|
+
key?:
|
|
414
|
+
string;
|
|
317
415
|
/** OAuth 2.0 token for the current user. */
|
|
318
|
-
oauth_token?:
|
|
416
|
+
oauth_token?:
|
|
417
|
+
string;
|
|
319
418
|
/** The maximum number of CrawledUrls to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */
|
|
320
|
-
pageSize?:
|
|
419
|
+
pageSize?:
|
|
420
|
+
number;
|
|
321
421
|
/**
|
|
322
422
|
* A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results
|
|
323
423
|
* is returned.
|
|
324
424
|
*/
|
|
325
|
-
pageToken?:
|
|
425
|
+
pageToken?:
|
|
426
|
+
string;
|
|
326
427
|
/** Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
327
|
-
parent:
|
|
428
|
+
parent:
|
|
429
|
+
string;
|
|
328
430
|
/** Returns response with indentations and line breaks. */
|
|
329
|
-
prettyPrint?:
|
|
431
|
+
prettyPrint?:
|
|
432
|
+
boolean;
|
|
330
433
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
331
|
-
quotaUser?:
|
|
434
|
+
quotaUser?:
|
|
435
|
+
string;
|
|
332
436
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
333
|
-
upload_protocol?:
|
|
437
|
+
upload_protocol?:
|
|
438
|
+
string;
|
|
334
439
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
335
|
-
uploadType?:
|
|
440
|
+
uploadType?:
|
|
441
|
+
string;
|
|
336
442
|
}): Request<ListCrawledUrlsResponse>;
|
|
337
443
|
}
|
|
338
444
|
interface FindingsResource {
|
|
339
445
|
/** Gets a Finding. */
|
|
340
446
|
get(request?: {
|
|
341
447
|
/** V1 error format. */
|
|
342
|
-
"$.xgafv"?:
|
|
448
|
+
"$.xgafv"?:
|
|
449
|
+
string;
|
|
343
450
|
/** OAuth access token. */
|
|
344
|
-
access_token?:
|
|
451
|
+
access_token?:
|
|
452
|
+
string;
|
|
345
453
|
/** Data format for response. */
|
|
346
|
-
alt?:
|
|
454
|
+
alt?:
|
|
455
|
+
string;
|
|
347
456
|
/** JSONP */
|
|
348
|
-
callback?:
|
|
457
|
+
callback?:
|
|
458
|
+
string;
|
|
349
459
|
/** Selector specifying which fields to include in a partial response. */
|
|
350
|
-
fields?:
|
|
460
|
+
fields?:
|
|
461
|
+
string;
|
|
351
462
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
352
|
-
key?:
|
|
463
|
+
key?:
|
|
464
|
+
string;
|
|
353
465
|
/**
|
|
354
466
|
* Required. The resource name of the Finding to be returned. The name follows the format of
|
|
355
467
|
* 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}/findings/{findingId}'.
|
|
356
468
|
*/
|
|
357
|
-
name:
|
|
469
|
+
name:
|
|
470
|
+
string;
|
|
358
471
|
/** OAuth 2.0 token for the current user. */
|
|
359
|
-
oauth_token?:
|
|
472
|
+
oauth_token?:
|
|
473
|
+
string;
|
|
360
474
|
/** Returns response with indentations and line breaks. */
|
|
361
|
-
prettyPrint?:
|
|
475
|
+
prettyPrint?:
|
|
476
|
+
boolean;
|
|
362
477
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
363
|
-
quotaUser?:
|
|
478
|
+
quotaUser?:
|
|
479
|
+
string;
|
|
364
480
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
365
|
-
upload_protocol?:
|
|
481
|
+
upload_protocol?:
|
|
482
|
+
string;
|
|
366
483
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
367
|
-
uploadType?:
|
|
484
|
+
uploadType?:
|
|
485
|
+
string;
|
|
368
486
|
}): Request<Finding>;
|
|
369
487
|
/** List Findings under a given ScanRun. */
|
|
370
488
|
list(request?: {
|
|
371
489
|
/** V1 error format. */
|
|
372
|
-
"$.xgafv"?:
|
|
490
|
+
"$.xgafv"?:
|
|
491
|
+
string;
|
|
373
492
|
/** OAuth access token. */
|
|
374
|
-
access_token?:
|
|
493
|
+
access_token?:
|
|
494
|
+
string;
|
|
375
495
|
/** Data format for response. */
|
|
376
|
-
alt?:
|
|
496
|
+
alt?:
|
|
497
|
+
string;
|
|
377
498
|
/** JSONP */
|
|
378
|
-
callback?:
|
|
499
|
+
callback?:
|
|
500
|
+
string;
|
|
379
501
|
/** Selector specifying which fields to include in a partial response. */
|
|
380
|
-
fields?:
|
|
502
|
+
fields?:
|
|
503
|
+
string;
|
|
381
504
|
/** The filter expression. The expression must be in the format: . Supported field: 'finding_type'. Supported operator: '='. */
|
|
382
|
-
filter?:
|
|
505
|
+
filter?:
|
|
506
|
+
string;
|
|
383
507
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
384
|
-
key?:
|
|
508
|
+
key?:
|
|
509
|
+
string;
|
|
385
510
|
/** OAuth 2.0 token for the current user. */
|
|
386
|
-
oauth_token?:
|
|
511
|
+
oauth_token?:
|
|
512
|
+
string;
|
|
387
513
|
/** The maximum number of Findings to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */
|
|
388
|
-
pageSize?:
|
|
514
|
+
pageSize?:
|
|
515
|
+
number;
|
|
389
516
|
/**
|
|
390
517
|
* A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results
|
|
391
518
|
* is returned.
|
|
392
519
|
*/
|
|
393
|
-
pageToken?:
|
|
520
|
+
pageToken?:
|
|
521
|
+
string;
|
|
394
522
|
/** Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
395
|
-
parent:
|
|
523
|
+
parent:
|
|
524
|
+
string;
|
|
396
525
|
/** Returns response with indentations and line breaks. */
|
|
397
|
-
prettyPrint?:
|
|
526
|
+
prettyPrint?:
|
|
527
|
+
boolean;
|
|
398
528
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
399
|
-
quotaUser?:
|
|
529
|
+
quotaUser?:
|
|
530
|
+
string;
|
|
400
531
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
401
|
-
upload_protocol?:
|
|
532
|
+
upload_protocol?:
|
|
533
|
+
string;
|
|
402
534
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
403
|
-
uploadType?:
|
|
535
|
+
uploadType?:
|
|
536
|
+
string;
|
|
404
537
|
}): Request<ListFindingsResponse>;
|
|
405
538
|
}
|
|
406
539
|
interface FindingTypeStatsResource {
|
|
407
540
|
/** List all FindingTypeStats under a given ScanRun. */
|
|
408
541
|
list(request?: {
|
|
409
542
|
/** V1 error format. */
|
|
410
|
-
"$.xgafv"?:
|
|
543
|
+
"$.xgafv"?:
|
|
544
|
+
string;
|
|
411
545
|
/** OAuth access token. */
|
|
412
|
-
access_token?:
|
|
546
|
+
access_token?:
|
|
547
|
+
string;
|
|
413
548
|
/** Data format for response. */
|
|
414
|
-
alt?:
|
|
549
|
+
alt?:
|
|
550
|
+
string;
|
|
415
551
|
/** JSONP */
|
|
416
|
-
callback?:
|
|
552
|
+
callback?:
|
|
553
|
+
string;
|
|
417
554
|
/** Selector specifying which fields to include in a partial response. */
|
|
418
|
-
fields?:
|
|
555
|
+
fields?:
|
|
556
|
+
string;
|
|
419
557
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
420
|
-
key?:
|
|
558
|
+
key?:
|
|
559
|
+
string;
|
|
421
560
|
/** OAuth 2.0 token for the current user. */
|
|
422
|
-
oauth_token?:
|
|
561
|
+
oauth_token?:
|
|
562
|
+
string;
|
|
423
563
|
/** Required. The parent resource name, which should be a scan run resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
424
|
-
parent:
|
|
564
|
+
parent:
|
|
565
|
+
string;
|
|
425
566
|
/** Returns response with indentations and line breaks. */
|
|
426
|
-
prettyPrint?:
|
|
567
|
+
prettyPrint?:
|
|
568
|
+
boolean;
|
|
427
569
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
428
|
-
quotaUser?:
|
|
570
|
+
quotaUser?:
|
|
571
|
+
string;
|
|
429
572
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
430
|
-
upload_protocol?:
|
|
573
|
+
upload_protocol?:
|
|
574
|
+
string;
|
|
431
575
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
432
|
-
uploadType?:
|
|
576
|
+
uploadType?:
|
|
577
|
+
string;
|
|
433
578
|
}): Request<ListFindingTypeStatsResponse>;
|
|
434
579
|
}
|
|
435
580
|
interface ScanRunsResource {
|
|
436
581
|
/** Gets a ScanRun. */
|
|
437
582
|
get(request?: {
|
|
438
583
|
/** V1 error format. */
|
|
439
|
-
"$.xgafv"?:
|
|
584
|
+
"$.xgafv"?:
|
|
585
|
+
string;
|
|
440
586
|
/** OAuth access token. */
|
|
441
|
-
access_token?:
|
|
587
|
+
access_token?:
|
|
588
|
+
string;
|
|
442
589
|
/** Data format for response. */
|
|
443
|
-
alt?:
|
|
590
|
+
alt?:
|
|
591
|
+
string;
|
|
444
592
|
/** JSONP */
|
|
445
|
-
callback?:
|
|
593
|
+
callback?:
|
|
594
|
+
string;
|
|
446
595
|
/** Selector specifying which fields to include in a partial response. */
|
|
447
|
-
fields?:
|
|
596
|
+
fields?:
|
|
597
|
+
string;
|
|
448
598
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
449
|
-
key?:
|
|
599
|
+
key?:
|
|
600
|
+
string;
|
|
450
601
|
/** Required. The resource name of the ScanRun to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
451
|
-
name:
|
|
602
|
+
name:
|
|
603
|
+
string;
|
|
452
604
|
/** OAuth 2.0 token for the current user. */
|
|
453
|
-
oauth_token?:
|
|
605
|
+
oauth_token?:
|
|
606
|
+
string;
|
|
454
607
|
/** Returns response with indentations and line breaks. */
|
|
455
|
-
prettyPrint?:
|
|
608
|
+
prettyPrint?:
|
|
609
|
+
boolean;
|
|
456
610
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
457
|
-
quotaUser?:
|
|
611
|
+
quotaUser?:
|
|
612
|
+
string;
|
|
458
613
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
459
|
-
upload_protocol?:
|
|
614
|
+
upload_protocol?:
|
|
615
|
+
string;
|
|
460
616
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
461
|
-
uploadType?:
|
|
617
|
+
uploadType?:
|
|
618
|
+
string;
|
|
462
619
|
}): Request<ScanRun>;
|
|
463
620
|
/** Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time. */
|
|
464
621
|
list(request?: {
|
|
465
622
|
/** V1 error format. */
|
|
466
|
-
"$.xgafv"?:
|
|
623
|
+
"$.xgafv"?:
|
|
624
|
+
string;
|
|
467
625
|
/** OAuth access token. */
|
|
468
|
-
access_token?:
|
|
626
|
+
access_token?:
|
|
627
|
+
string;
|
|
469
628
|
/** Data format for response. */
|
|
470
|
-
alt?:
|
|
629
|
+
alt?:
|
|
630
|
+
string;
|
|
471
631
|
/** JSONP */
|
|
472
|
-
callback?:
|
|
632
|
+
callback?:
|
|
633
|
+
string;
|
|
473
634
|
/** Selector specifying which fields to include in a partial response. */
|
|
474
|
-
fields?:
|
|
635
|
+
fields?:
|
|
636
|
+
string;
|
|
475
637
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
476
|
-
key?:
|
|
638
|
+
key?:
|
|
639
|
+
string;
|
|
477
640
|
/** OAuth 2.0 token for the current user. */
|
|
478
|
-
oauth_token?:
|
|
641
|
+
oauth_token?:
|
|
642
|
+
string;
|
|
479
643
|
/** The maximum number of ScanRuns to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */
|
|
480
|
-
pageSize?:
|
|
644
|
+
pageSize?:
|
|
645
|
+
number;
|
|
481
646
|
/**
|
|
482
647
|
* A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results
|
|
483
648
|
* is returned.
|
|
484
649
|
*/
|
|
485
|
-
pageToken?:
|
|
650
|
+
pageToken?:
|
|
651
|
+
string;
|
|
486
652
|
/** Required. The parent resource name, which should be a scan resource name in the format 'projects/{projectId}/scanConfigs/{scanConfigId}'. */
|
|
487
|
-
parent:
|
|
653
|
+
parent:
|
|
654
|
+
string;
|
|
488
655
|
/** Returns response with indentations and line breaks. */
|
|
489
|
-
prettyPrint?:
|
|
656
|
+
prettyPrint?:
|
|
657
|
+
boolean;
|
|
490
658
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
491
|
-
quotaUser?:
|
|
659
|
+
quotaUser?:
|
|
660
|
+
string;
|
|
492
661
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
493
|
-
upload_protocol?:
|
|
662
|
+
upload_protocol?:
|
|
663
|
+
string;
|
|
494
664
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
495
|
-
uploadType?:
|
|
665
|
+
uploadType?:
|
|
666
|
+
string;
|
|
496
667
|
}): Request<ListScanRunsResponse>;
|
|
497
668
|
/** Stops a ScanRun. The stopped ScanRun is returned. */
|
|
498
669
|
stop(request: {
|
|
499
670
|
/** V1 error format. */
|
|
500
|
-
"$.xgafv"?:
|
|
671
|
+
"$.xgafv"?:
|
|
672
|
+
string;
|
|
501
673
|
/** OAuth access token. */
|
|
502
|
-
access_token?:
|
|
674
|
+
access_token?:
|
|
675
|
+
string;
|
|
503
676
|
/** Data format for response. */
|
|
504
|
-
alt?:
|
|
677
|
+
alt?:
|
|
678
|
+
string;
|
|
505
679
|
/** JSONP */
|
|
506
|
-
callback?:
|
|
680
|
+
callback?:
|
|
681
|
+
string;
|
|
507
682
|
/** Selector specifying which fields to include in a partial response. */
|
|
508
|
-
fields?:
|
|
683
|
+
fields?:
|
|
684
|
+
string;
|
|
509
685
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
510
|
-
key?:
|
|
686
|
+
key?:
|
|
687
|
+
string;
|
|
511
688
|
/** Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
512
|
-
name:
|
|
689
|
+
name:
|
|
690
|
+
string;
|
|
513
691
|
/** OAuth 2.0 token for the current user. */
|
|
514
|
-
oauth_token?:
|
|
692
|
+
oauth_token?:
|
|
693
|
+
string;
|
|
515
694
|
/** Returns response with indentations and line breaks. */
|
|
516
|
-
prettyPrint?:
|
|
695
|
+
prettyPrint?:
|
|
696
|
+
boolean;
|
|
517
697
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
518
|
-
quotaUser?:
|
|
698
|
+
quotaUser?:
|
|
699
|
+
string;
|
|
519
700
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
520
|
-
upload_protocol?:
|
|
701
|
+
upload_protocol?:
|
|
702
|
+
string;
|
|
521
703
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
522
|
-
uploadType?:
|
|
704
|
+
uploadType?:
|
|
705
|
+
string;
|
|
523
706
|
/** Request body */
|
|
524
|
-
resource:
|
|
707
|
+
resource:
|
|
708
|
+
StopScanRunRequest;
|
|
525
709
|
}): Request<ScanRun>;
|
|
526
710
|
stop(request: {
|
|
527
711
|
/** V1 error format. */
|
|
528
|
-
"$.xgafv"?:
|
|
712
|
+
"$.xgafv"?:
|
|
713
|
+
string;
|
|
529
714
|
/** OAuth access token. */
|
|
530
|
-
access_token?:
|
|
715
|
+
access_token?:
|
|
716
|
+
string;
|
|
531
717
|
/** Data format for response. */
|
|
532
|
-
alt?:
|
|
718
|
+
alt?:
|
|
719
|
+
string;
|
|
533
720
|
/** JSONP */
|
|
534
|
-
callback?:
|
|
721
|
+
callback?:
|
|
722
|
+
string;
|
|
535
723
|
/** Selector specifying which fields to include in a partial response. */
|
|
536
|
-
fields?:
|
|
724
|
+
fields?:
|
|
725
|
+
string;
|
|
537
726
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
538
|
-
key?:
|
|
727
|
+
key?:
|
|
728
|
+
string;
|
|
539
729
|
/** Required. The resource name of the ScanRun to be stopped. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. */
|
|
540
|
-
name:
|
|
730
|
+
name:
|
|
731
|
+
string;
|
|
541
732
|
/** OAuth 2.0 token for the current user. */
|
|
542
|
-
oauth_token?:
|
|
733
|
+
oauth_token?:
|
|
734
|
+
string;
|
|
543
735
|
/** Returns response with indentations and line breaks. */
|
|
544
|
-
prettyPrint?:
|
|
736
|
+
prettyPrint?:
|
|
737
|
+
boolean;
|
|
545
738
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
546
|
-
quotaUser?:
|
|
739
|
+
quotaUser?:
|
|
740
|
+
string;
|
|
547
741
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
548
|
-
upload_protocol?:
|
|
742
|
+
upload_protocol?:
|
|
743
|
+
string;
|
|
549
744
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
550
|
-
uploadType?:
|
|
745
|
+
uploadType?:
|
|
746
|
+
string;
|
|
551
747
|
},
|
|
552
748
|
body: StopScanRunRequest): Request<ScanRun>;
|
|
553
|
-
crawledUrls:
|
|
554
|
-
|
|
555
|
-
|
|
749
|
+
crawledUrls:
|
|
750
|
+
CrawledUrlsResource;
|
|
751
|
+
findings:
|
|
752
|
+
FindingsResource;
|
|
753
|
+
findingTypeStats:
|
|
754
|
+
FindingTypeStatsResource;
|
|
556
755
|
}
|
|
557
756
|
interface ScanConfigsResource {
|
|
558
757
|
/** Creates a new ScanConfig. */
|
|
559
758
|
create(request: {
|
|
560
759
|
/** V1 error format. */
|
|
561
|
-
"$.xgafv"?:
|
|
760
|
+
"$.xgafv"?:
|
|
761
|
+
string;
|
|
562
762
|
/** OAuth access token. */
|
|
563
|
-
access_token?:
|
|
763
|
+
access_token?:
|
|
764
|
+
string;
|
|
564
765
|
/** Data format for response. */
|
|
565
|
-
alt?:
|
|
766
|
+
alt?:
|
|
767
|
+
string;
|
|
566
768
|
/** JSONP */
|
|
567
|
-
callback?:
|
|
769
|
+
callback?:
|
|
770
|
+
string;
|
|
568
771
|
/** Selector specifying which fields to include in a partial response. */
|
|
569
|
-
fields?:
|
|
772
|
+
fields?:
|
|
773
|
+
string;
|
|
570
774
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
571
|
-
key?:
|
|
775
|
+
key?:
|
|
776
|
+
string;
|
|
572
777
|
/** OAuth 2.0 token for the current user. */
|
|
573
|
-
oauth_token?:
|
|
778
|
+
oauth_token?:
|
|
779
|
+
string;
|
|
574
780
|
/** Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'. */
|
|
575
|
-
parent:
|
|
781
|
+
parent:
|
|
782
|
+
string;
|
|
576
783
|
/** Returns response with indentations and line breaks. */
|
|
577
|
-
prettyPrint?:
|
|
784
|
+
prettyPrint?:
|
|
785
|
+
boolean;
|
|
578
786
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
579
|
-
quotaUser?:
|
|
787
|
+
quotaUser?:
|
|
788
|
+
string;
|
|
580
789
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
581
|
-
upload_protocol?:
|
|
790
|
+
upload_protocol?:
|
|
791
|
+
string;
|
|
582
792
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
583
|
-
uploadType?:
|
|
793
|
+
uploadType?:
|
|
794
|
+
string;
|
|
584
795
|
/** Request body */
|
|
585
|
-
resource:
|
|
796
|
+
resource:
|
|
797
|
+
ScanConfig;
|
|
586
798
|
}): Request<ScanConfig>;
|
|
587
799
|
create(request: {
|
|
588
800
|
/** V1 error format. */
|
|
589
|
-
"$.xgafv"?:
|
|
801
|
+
"$.xgafv"?:
|
|
802
|
+
string;
|
|
590
803
|
/** OAuth access token. */
|
|
591
|
-
access_token?:
|
|
804
|
+
access_token?:
|
|
805
|
+
string;
|
|
592
806
|
/** Data format for response. */
|
|
593
|
-
alt?:
|
|
807
|
+
alt?:
|
|
808
|
+
string;
|
|
594
809
|
/** JSONP */
|
|
595
|
-
callback?:
|
|
810
|
+
callback?:
|
|
811
|
+
string;
|
|
596
812
|
/** Selector specifying which fields to include in a partial response. */
|
|
597
|
-
fields?:
|
|
813
|
+
fields?:
|
|
814
|
+
string;
|
|
598
815
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
599
|
-
key?:
|
|
816
|
+
key?:
|
|
817
|
+
string;
|
|
600
818
|
/** OAuth 2.0 token for the current user. */
|
|
601
|
-
oauth_token?:
|
|
819
|
+
oauth_token?:
|
|
820
|
+
string;
|
|
602
821
|
/** Required. The parent resource name where the scan is created, which should be a project resource name in the format 'projects/{projectId}'. */
|
|
603
|
-
parent:
|
|
822
|
+
parent:
|
|
823
|
+
string;
|
|
604
824
|
/** Returns response with indentations and line breaks. */
|
|
605
|
-
prettyPrint?:
|
|
825
|
+
prettyPrint?:
|
|
826
|
+
boolean;
|
|
606
827
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
607
|
-
quotaUser?:
|
|
828
|
+
quotaUser?:
|
|
829
|
+
string;
|
|
608
830
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
609
|
-
upload_protocol?:
|
|
831
|
+
upload_protocol?:
|
|
832
|
+
string;
|
|
610
833
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
611
|
-
uploadType?:
|
|
834
|
+
uploadType?:
|
|
835
|
+
string;
|
|
612
836
|
},
|
|
613
837
|
body: ScanConfig): Request<ScanConfig>;
|
|
614
838
|
/** Deletes an existing ScanConfig and its child resources. */
|
|
615
839
|
delete(request?: {
|
|
616
840
|
/** V1 error format. */
|
|
617
|
-
"$.xgafv"?:
|
|
841
|
+
"$.xgafv"?:
|
|
842
|
+
string;
|
|
618
843
|
/** OAuth access token. */
|
|
619
|
-
access_token?:
|
|
844
|
+
access_token?:
|
|
845
|
+
string;
|
|
620
846
|
/** Data format for response. */
|
|
621
|
-
alt?:
|
|
847
|
+
alt?:
|
|
848
|
+
string;
|
|
622
849
|
/** JSONP */
|
|
623
|
-
callback?:
|
|
850
|
+
callback?:
|
|
851
|
+
string;
|
|
624
852
|
/** Selector specifying which fields to include in a partial response. */
|
|
625
|
-
fields?:
|
|
853
|
+
fields?:
|
|
854
|
+
string;
|
|
626
855
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
627
|
-
key?:
|
|
856
|
+
key?:
|
|
857
|
+
string;
|
|
628
858
|
/** Required. The resource name of the ScanConfig to be deleted. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. */
|
|
629
|
-
name:
|
|
859
|
+
name:
|
|
860
|
+
string;
|
|
630
861
|
/** OAuth 2.0 token for the current user. */
|
|
631
|
-
oauth_token?:
|
|
862
|
+
oauth_token?:
|
|
863
|
+
string;
|
|
632
864
|
/** Returns response with indentations and line breaks. */
|
|
633
|
-
prettyPrint?:
|
|
865
|
+
prettyPrint?:
|
|
866
|
+
boolean;
|
|
634
867
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
635
|
-
quotaUser?:
|
|
868
|
+
quotaUser?:
|
|
869
|
+
string;
|
|
636
870
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
637
|
-
upload_protocol?:
|
|
871
|
+
upload_protocol?:
|
|
872
|
+
string;
|
|
638
873
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
639
|
-
uploadType?:
|
|
874
|
+
uploadType?:
|
|
875
|
+
string;
|
|
640
876
|
}): Request<{}>;
|
|
641
877
|
/** Gets a ScanConfig. */
|
|
642
878
|
get(request?: {
|
|
643
879
|
/** V1 error format. */
|
|
644
|
-
"$.xgafv"?:
|
|
880
|
+
"$.xgafv"?:
|
|
881
|
+
string;
|
|
645
882
|
/** OAuth access token. */
|
|
646
|
-
access_token?:
|
|
883
|
+
access_token?:
|
|
884
|
+
string;
|
|
647
885
|
/** Data format for response. */
|
|
648
|
-
alt?:
|
|
886
|
+
alt?:
|
|
887
|
+
string;
|
|
649
888
|
/** JSONP */
|
|
650
|
-
callback?:
|
|
889
|
+
callback?:
|
|
890
|
+
string;
|
|
651
891
|
/** Selector specifying which fields to include in a partial response. */
|
|
652
|
-
fields?:
|
|
892
|
+
fields?:
|
|
893
|
+
string;
|
|
653
894
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
654
|
-
key?:
|
|
895
|
+
key?:
|
|
896
|
+
string;
|
|
655
897
|
/** Required. The resource name of the ScanConfig to be returned. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. */
|
|
656
|
-
name:
|
|
898
|
+
name:
|
|
899
|
+
string;
|
|
657
900
|
/** OAuth 2.0 token for the current user. */
|
|
658
|
-
oauth_token?:
|
|
901
|
+
oauth_token?:
|
|
902
|
+
string;
|
|
659
903
|
/** Returns response with indentations and line breaks. */
|
|
660
|
-
prettyPrint?:
|
|
904
|
+
prettyPrint?:
|
|
905
|
+
boolean;
|
|
661
906
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
662
|
-
quotaUser?:
|
|
907
|
+
quotaUser?:
|
|
908
|
+
string;
|
|
663
909
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
664
|
-
upload_protocol?:
|
|
910
|
+
upload_protocol?:
|
|
911
|
+
string;
|
|
665
912
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
666
|
-
uploadType?:
|
|
913
|
+
uploadType?:
|
|
914
|
+
string;
|
|
667
915
|
}): Request<ScanConfig>;
|
|
668
916
|
/** Lists ScanConfigs under a given project. */
|
|
669
917
|
list(request?: {
|
|
670
918
|
/** V1 error format. */
|
|
671
|
-
"$.xgafv"?:
|
|
919
|
+
"$.xgafv"?:
|
|
920
|
+
string;
|
|
672
921
|
/** OAuth access token. */
|
|
673
|
-
access_token?:
|
|
922
|
+
access_token?:
|
|
923
|
+
string;
|
|
674
924
|
/** Data format for response. */
|
|
675
|
-
alt?:
|
|
925
|
+
alt?:
|
|
926
|
+
string;
|
|
676
927
|
/** JSONP */
|
|
677
|
-
callback?:
|
|
928
|
+
callback?:
|
|
929
|
+
string;
|
|
678
930
|
/** Selector specifying which fields to include in a partial response. */
|
|
679
|
-
fields?:
|
|
931
|
+
fields?:
|
|
932
|
+
string;
|
|
680
933
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
681
|
-
key?:
|
|
934
|
+
key?:
|
|
935
|
+
string;
|
|
682
936
|
/** OAuth 2.0 token for the current user. */
|
|
683
|
-
oauth_token?:
|
|
937
|
+
oauth_token?:
|
|
938
|
+
string;
|
|
684
939
|
/** The maximum number of ScanConfigs to return, can be limited by server. If not specified or not positive, the implementation will select a reasonable value. */
|
|
685
|
-
pageSize?:
|
|
940
|
+
pageSize?:
|
|
941
|
+
number;
|
|
686
942
|
/**
|
|
687
943
|
* A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous List request. If unspecified, the first page of results
|
|
688
944
|
* is returned.
|
|
689
945
|
*/
|
|
690
|
-
pageToken?:
|
|
946
|
+
pageToken?:
|
|
947
|
+
string;
|
|
691
948
|
/** Required. The parent resource name, which should be a project resource name in the format 'projects/{projectId}'. */
|
|
692
|
-
parent:
|
|
949
|
+
parent:
|
|
950
|
+
string;
|
|
693
951
|
/** Returns response with indentations and line breaks. */
|
|
694
|
-
prettyPrint?:
|
|
952
|
+
prettyPrint?:
|
|
953
|
+
boolean;
|
|
695
954
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
696
|
-
quotaUser?:
|
|
955
|
+
quotaUser?:
|
|
956
|
+
string;
|
|
697
957
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
698
|
-
upload_protocol?:
|
|
958
|
+
upload_protocol?:
|
|
959
|
+
string;
|
|
699
960
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
700
|
-
uploadType?:
|
|
961
|
+
uploadType?:
|
|
962
|
+
string;
|
|
701
963
|
}): Request<ListScanConfigsResponse>;
|
|
702
964
|
/** Updates a ScanConfig. This method support partial update of a ScanConfig. */
|
|
703
965
|
patch(request: {
|
|
704
966
|
/** V1 error format. */
|
|
705
|
-
"$.xgafv"?:
|
|
967
|
+
"$.xgafv"?:
|
|
968
|
+
string;
|
|
706
969
|
/** OAuth access token. */
|
|
707
|
-
access_token?:
|
|
970
|
+
access_token?:
|
|
971
|
+
string;
|
|
708
972
|
/** Data format for response. */
|
|
709
|
-
alt?:
|
|
973
|
+
alt?:
|
|
974
|
+
string;
|
|
710
975
|
/** JSONP */
|
|
711
|
-
callback?:
|
|
976
|
+
callback?:
|
|
977
|
+
string;
|
|
712
978
|
/** Selector specifying which fields to include in a partial response. */
|
|
713
|
-
fields?:
|
|
979
|
+
fields?:
|
|
980
|
+
string;
|
|
714
981
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
715
|
-
key?:
|
|
982
|
+
key?:
|
|
983
|
+
string;
|
|
716
984
|
/** The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. */
|
|
717
|
-
name:
|
|
985
|
+
name:
|
|
986
|
+
string;
|
|
718
987
|
/** OAuth 2.0 token for the current user. */
|
|
719
|
-
oauth_token?:
|
|
988
|
+
oauth_token?:
|
|
989
|
+
string;
|
|
720
990
|
/** Returns response with indentations and line breaks. */
|
|
721
|
-
prettyPrint?:
|
|
991
|
+
prettyPrint?:
|
|
992
|
+
boolean;
|
|
722
993
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
723
|
-
quotaUser?:
|
|
994
|
+
quotaUser?:
|
|
995
|
+
string;
|
|
724
996
|
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */
|
|
725
|
-
updateMask?:
|
|
997
|
+
updateMask?:
|
|
998
|
+
string;
|
|
726
999
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
727
|
-
upload_protocol?:
|
|
1000
|
+
upload_protocol?:
|
|
1001
|
+
string;
|
|
728
1002
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
729
|
-
uploadType?:
|
|
1003
|
+
uploadType?:
|
|
1004
|
+
string;
|
|
730
1005
|
/** Request body */
|
|
731
|
-
resource:
|
|
1006
|
+
resource:
|
|
1007
|
+
ScanConfig;
|
|
732
1008
|
}): Request<ScanConfig>;
|
|
733
1009
|
patch(request: {
|
|
734
1010
|
/** V1 error format. */
|
|
735
|
-
"$.xgafv"?:
|
|
1011
|
+
"$.xgafv"?:
|
|
1012
|
+
string;
|
|
736
1013
|
/** OAuth access token. */
|
|
737
|
-
access_token?:
|
|
1014
|
+
access_token?:
|
|
1015
|
+
string;
|
|
738
1016
|
/** Data format for response. */
|
|
739
|
-
alt?:
|
|
1017
|
+
alt?:
|
|
1018
|
+
string;
|
|
740
1019
|
/** JSONP */
|
|
741
|
-
callback?:
|
|
1020
|
+
callback?:
|
|
1021
|
+
string;
|
|
742
1022
|
/** Selector specifying which fields to include in a partial response. */
|
|
743
|
-
fields?:
|
|
1023
|
+
fields?:
|
|
1024
|
+
string;
|
|
744
1025
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
745
|
-
key?:
|
|
1026
|
+
key?:
|
|
1027
|
+
string;
|
|
746
1028
|
/** The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. */
|
|
747
|
-
name:
|
|
1029
|
+
name:
|
|
1030
|
+
string;
|
|
748
1031
|
/** OAuth 2.0 token for the current user. */
|
|
749
|
-
oauth_token?:
|
|
1032
|
+
oauth_token?:
|
|
1033
|
+
string;
|
|
750
1034
|
/** Returns response with indentations and line breaks. */
|
|
751
|
-
prettyPrint?:
|
|
1035
|
+
prettyPrint?:
|
|
1036
|
+
boolean;
|
|
752
1037
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
753
|
-
quotaUser?:
|
|
1038
|
+
quotaUser?:
|
|
1039
|
+
string;
|
|
754
1040
|
/** Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask */
|
|
755
|
-
updateMask?:
|
|
1041
|
+
updateMask?:
|
|
1042
|
+
string;
|
|
756
1043
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
757
|
-
upload_protocol?:
|
|
1044
|
+
upload_protocol?:
|
|
1045
|
+
string;
|
|
758
1046
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
759
|
-
uploadType?:
|
|
1047
|
+
uploadType?:
|
|
1048
|
+
string;
|
|
760
1049
|
},
|
|
761
1050
|
body: ScanConfig): Request<ScanConfig>;
|
|
762
1051
|
/** Start a ScanRun according to the given ScanConfig. */
|
|
763
1052
|
start(request: {
|
|
764
1053
|
/** V1 error format. */
|
|
765
|
-
"$.xgafv"?:
|
|
1054
|
+
"$.xgafv"?:
|
|
1055
|
+
string;
|
|
766
1056
|
/** OAuth access token. */
|
|
767
|
-
access_token?:
|
|
1057
|
+
access_token?:
|
|
1058
|
+
string;
|
|
768
1059
|
/** Data format for response. */
|
|
769
|
-
alt?:
|
|
1060
|
+
alt?:
|
|
1061
|
+
string;
|
|
770
1062
|
/** JSONP */
|
|
771
|
-
callback?:
|
|
1063
|
+
callback?:
|
|
1064
|
+
string;
|
|
772
1065
|
/** Selector specifying which fields to include in a partial response. */
|
|
773
|
-
fields?:
|
|
1066
|
+
fields?:
|
|
1067
|
+
string;
|
|
774
1068
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
775
|
-
key?:
|
|
1069
|
+
key?:
|
|
1070
|
+
string;
|
|
776
1071
|
/** Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. */
|
|
777
|
-
name:
|
|
1072
|
+
name:
|
|
1073
|
+
string;
|
|
778
1074
|
/** OAuth 2.0 token for the current user. */
|
|
779
|
-
oauth_token?:
|
|
1075
|
+
oauth_token?:
|
|
1076
|
+
string;
|
|
780
1077
|
/** Returns response with indentations and line breaks. */
|
|
781
|
-
prettyPrint?:
|
|
1078
|
+
prettyPrint?:
|
|
1079
|
+
boolean;
|
|
782
1080
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
783
|
-
quotaUser?:
|
|
1081
|
+
quotaUser?:
|
|
1082
|
+
string;
|
|
784
1083
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
785
|
-
upload_protocol?:
|
|
1084
|
+
upload_protocol?:
|
|
1085
|
+
string;
|
|
786
1086
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
787
|
-
uploadType?:
|
|
1087
|
+
uploadType?:
|
|
1088
|
+
string;
|
|
788
1089
|
/** Request body */
|
|
789
|
-
resource:
|
|
1090
|
+
resource:
|
|
1091
|
+
StartScanRunRequest;
|
|
790
1092
|
}): Request<ScanRun>;
|
|
791
1093
|
start(request: {
|
|
792
1094
|
/** V1 error format. */
|
|
793
|
-
"$.xgafv"?:
|
|
1095
|
+
"$.xgafv"?:
|
|
1096
|
+
string;
|
|
794
1097
|
/** OAuth access token. */
|
|
795
|
-
access_token?:
|
|
1098
|
+
access_token?:
|
|
1099
|
+
string;
|
|
796
1100
|
/** Data format for response. */
|
|
797
|
-
alt?:
|
|
1101
|
+
alt?:
|
|
1102
|
+
string;
|
|
798
1103
|
/** JSONP */
|
|
799
|
-
callback?:
|
|
1104
|
+
callback?:
|
|
1105
|
+
string;
|
|
800
1106
|
/** Selector specifying which fields to include in a partial response. */
|
|
801
|
-
fields?:
|
|
1107
|
+
fields?:
|
|
1108
|
+
string;
|
|
802
1109
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
803
|
-
key?:
|
|
1110
|
+
key?:
|
|
1111
|
+
string;
|
|
804
1112
|
/** Required. The resource name of the ScanConfig to be used. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. */
|
|
805
|
-
name:
|
|
1113
|
+
name:
|
|
1114
|
+
string;
|
|
806
1115
|
/** OAuth 2.0 token for the current user. */
|
|
807
|
-
oauth_token?:
|
|
1116
|
+
oauth_token?:
|
|
1117
|
+
string;
|
|
808
1118
|
/** Returns response with indentations and line breaks. */
|
|
809
|
-
prettyPrint?:
|
|
1119
|
+
prettyPrint?:
|
|
1120
|
+
boolean;
|
|
810
1121
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
811
|
-
quotaUser?:
|
|
1122
|
+
quotaUser?:
|
|
1123
|
+
string;
|
|
812
1124
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
813
|
-
upload_protocol?:
|
|
1125
|
+
upload_protocol?:
|
|
1126
|
+
string;
|
|
814
1127
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
815
|
-
uploadType?:
|
|
1128
|
+
uploadType?:
|
|
1129
|
+
string;
|
|
816
1130
|
},
|
|
817
1131
|
body: StartScanRunRequest): Request<ScanRun>;
|
|
818
|
-
scanRuns:
|
|
1132
|
+
scanRuns:
|
|
1133
|
+
ScanRunsResource;
|
|
819
1134
|
}
|
|
820
1135
|
interface ProjectsResource {
|
|
821
|
-
scanConfigs:
|
|
1136
|
+
scanConfigs:
|
|
1137
|
+
ScanConfigsResource;
|
|
822
1138
|
}
|
|
823
1139
|
|
|
824
1140
|
const projects: ProjectsResource;
|