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