blob: d4f8db040c0a4d633a837e4966b851f513f84087 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="websecurityscanner_v1alpha.html">Web Security Scanner API</a> . <a href="websecurityscanner_v1alpha.projects.html">projects</a> . <a href="websecurityscanner_v1alpha.projects.scanConfigs.html">scanConfigs</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="websecurityscanner_v1alpha.projects.scanConfigs.scanRuns.html">scanRuns()</a></code>
79</p>
80<p class="firstline">Returns the scanRuns Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates a new ScanConfig.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes an existing ScanConfig and its child resources.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Gets a ScanConfig.</p>
91<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070092 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070093<p class="firstline">Lists ScanConfigs under a given project.</p>
94<p class="toc_element">
95 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96<p class="firstline">Retrieves the next page of results.</p>
97<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070098 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Updates a ScanConfig. This method support partial update of a ScanConfig.</p>
100<p class="toc_element">
101 <code><a href="#start">start(name, body=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Start a ScanRun according to the given ScanConfig.</p>
103<h3>Method Details</h3>
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 <pre>Creates a new ScanConfig.
107
108Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700109 parent: string, Required. The parent resource name where the scan is created, which should be a
Bu Sun Kim65020912020-05-20 12:08:20 -0700110project resource name in the format &#x27;projects/{projectId}&#x27;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 The object takes the form of:
113
114{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 # next id: 12
116 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
117 # https://cloud.google.com/security-scanner/docs/excluded-urls
118 &quot;A String&quot;,
119 ],
120 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
121 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
122 # If the scan is in queue, the value is 0.
123 # If the scan is running, the value ranges from 0 to 100.
124 # If the scan is finished, the value is 100.
125 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
126 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
127 # is either finished or stopped by user.
128 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
129 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
130 # the value represents the number of URLs crawled up to now.
131 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
132 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
133 # the value represents the number of URLs tested up to now. The number of
134 # URLs tested is usually larger than the number URLS crawled because
135 # typically a crawled URL is tested with multiple test payloads.
136 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
137 # execution state reaches &quot;FINISHED&quot;.
138 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
139 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
140 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700141 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
143 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
144 &quot;A String&quot;,
145 ],
146 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
147 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
148 # used as a default.
149 &quot;A String&quot;,
150 ],
151 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
152 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
153 # refreshed by the server after each run. If unspecified, it will default
154 # to current server time, which means the scan will be scheduled to start
155 # immediately.
156 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700157 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700158 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
159 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
160 # generated by the system.
161 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
162 # inclusively. If the field is unspecified or its value is set 0, server will
163 # default to 15. Other values outside of [5, 20] range will be rejected with
164 # INVALID_ARGUMENT error.
165 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
166 # authentication configuration during scanning.
167 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
168 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
169 # and not returned in any response nor included in audit logs.
170 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
171 },
172 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
173 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
174 # and not returned in any response nor included in audit logs.
175 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
176 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
177 },
178 },
179 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180
181 x__xgafv: string, V1 error format.
182 Allowed values
183 1 - v1 error format
184 2 - v2 error format
185
186Returns:
187 An object of the form:
188
189 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 # next id: 12
191 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
192 # https://cloud.google.com/security-scanner/docs/excluded-urls
193 &quot;A String&quot;,
194 ],
195 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
196 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
197 # If the scan is in queue, the value is 0.
198 # If the scan is running, the value ranges from 0 to 100.
199 # If the scan is finished, the value is 100.
200 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
201 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
202 # is either finished or stopped by user.
203 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
204 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
205 # the value represents the number of URLs crawled up to now.
206 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
207 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
208 # the value represents the number of URLs tested up to now. The number of
209 # URLs tested is usually larger than the number URLS crawled because
210 # typically a crawled URL is tested with multiple test payloads.
211 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
212 # execution state reaches &quot;FINISHED&quot;.
213 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
214 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
215 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700216 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700217 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
218 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
219 &quot;A String&quot;,
220 ],
221 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
222 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
223 # used as a default.
224 &quot;A String&quot;,
225 ],
226 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
227 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
228 # refreshed by the server after each run. If unspecified, it will default
229 # to current server time, which means the scan will be scheduled to start
230 # immediately.
231 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700232 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700233 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
234 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
235 # generated by the system.
236 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
237 # inclusively. If the field is unspecified or its value is set 0, server will
238 # default to 15. Other values outside of [5, 20] range will be rejected with
239 # INVALID_ARGUMENT error.
240 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
241 # authentication configuration during scanning.
242 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
243 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
244 # and not returned in any response nor included in audit logs.
245 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
246 },
247 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
248 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
249 # and not returned in any response nor included in audit logs.
250 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
251 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
252 },
253 },
254 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255</div>
256
257<div class="method">
258 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
259 <pre>Deletes an existing ScanConfig and its child resources.
260
261Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700262 name: string, Required. The resource name of the ScanConfig to be deleted. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700263format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 x__xgafv: string, V1 error format.
265 Allowed values
266 1 - v1 error format
267 2 - v2 error format
268
269Returns:
270 An object of the form:
271
272 { # A generic empty message that you can re-use to avoid defining duplicated
273 # empty messages in your APIs. A typical example is to use it as the request
274 # or the response type of an API method. For instance:
275 #
276 # service Foo {
277 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
278 # }
279 #
280 # The JSON representation for `Empty` is empty JSON object `{}`.
281 }</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="get">get(name, x__xgafv=None)</code>
286 <pre>Gets a ScanConfig.
287
288Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700289 name: string, Required. The resource name of the ScanConfig to be returned. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700290format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700291 x__xgafv: string, V1 error format.
292 Allowed values
293 1 - v1 error format
294 2 - v2 error format
295
296Returns:
297 An object of the form:
298
299 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 # next id: 12
301 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
302 # https://cloud.google.com/security-scanner/docs/excluded-urls
303 &quot;A String&quot;,
304 ],
305 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
306 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
307 # If the scan is in queue, the value is 0.
308 # If the scan is running, the value ranges from 0 to 100.
309 # If the scan is finished, the value is 100.
310 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
311 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
312 # is either finished or stopped by user.
313 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
314 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
315 # the value represents the number of URLs crawled up to now.
316 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
317 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
318 # the value represents the number of URLs tested up to now. The number of
319 # URLs tested is usually larger than the number URLS crawled because
320 # typically a crawled URL is tested with multiple test payloads.
321 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
322 # execution state reaches &quot;FINISHED&quot;.
323 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
324 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
325 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
328 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
329 &quot;A String&quot;,
330 ],
331 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
332 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
333 # used as a default.
334 &quot;A String&quot;,
335 ],
336 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
337 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
338 # refreshed by the server after each run. If unspecified, it will default
339 # to current server time, which means the scan will be scheduled to start
340 # immediately.
341 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
344 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
345 # generated by the system.
346 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
347 # inclusively. If the field is unspecified or its value is set 0, server will
348 # default to 15. Other values outside of [5, 20] range will be rejected with
349 # INVALID_ARGUMENT error.
350 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
351 # authentication configuration during scanning.
352 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
353 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
354 # and not returned in any response nor included in audit logs.
355 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
356 },
357 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
358 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
359 # and not returned in any response nor included in audit logs.
360 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
361 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
362 },
363 },
364 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365</div>
366
367<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700368 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700369 <pre>Lists ScanConfigs under a given project.
370
371Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 parent: string, Required. The parent resource name, which should be a project resource name in the
Bu Sun Kim65020912020-05-20 12:08:20 -0700373format &#x27;projects/{projectId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700374 pageToken: string, A token identifying a page of results to be returned. This should be a
375`next_page_token` value returned from a previous List request.
376If unspecified, the first page of results is returned.
Bu Sun Kim65020912020-05-20 12:08:20 -0700377 pageSize: integer, The maximum number of ScanConfigs to return, can be limited by server.
378If not specified or not positive, the implementation will select a
379reasonable value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 x__xgafv: string, V1 error format.
381 Allowed values
382 1 - v1 error format
383 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700384
385Returns:
386 An object of the form:
387
388 { # Response for the `ListScanConfigs` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;scanConfigs&quot;: [ # The list of ScanConfigs returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 # next id: 12
392 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
393 # https://cloud.google.com/security-scanner/docs/excluded-urls
394 &quot;A String&quot;,
395 ],
396 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
397 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
398 # If the scan is in queue, the value is 0.
399 # If the scan is running, the value ranges from 0 to 100.
400 # If the scan is finished, the value is 100.
401 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
402 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
403 # is either finished or stopped by user.
404 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
405 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
406 # the value represents the number of URLs crawled up to now.
407 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
408 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
409 # the value represents the number of URLs tested up to now. The number of
410 # URLs tested is usually larger than the number URLS crawled because
411 # typically a crawled URL is tested with multiple test payloads.
412 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
413 # execution state reaches &quot;FINISHED&quot;.
414 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
415 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
416 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700417 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700418 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
419 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
420 &quot;A String&quot;,
421 ],
422 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
423 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
424 # used as a default.
425 &quot;A String&quot;,
426 ],
427 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
428 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
429 # refreshed by the server after each run. If unspecified, it will default
430 # to current server time, which means the scan will be scheduled to start
431 # immediately.
432 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
433 },
434 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
435 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
436 # generated by the system.
437 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
438 # inclusively. If the field is unspecified or its value is set 0, server will
439 # default to 15. Other values outside of [5, 20] range will be rejected with
440 # INVALID_ARGUMENT error.
441 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
442 # authentication configuration during scanning.
443 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
444 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
445 # and not returned in any response nor included in audit logs.
446 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
447 },
448 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
449 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
450 # and not returned in any response nor included in audit logs.
451 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
452 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
453 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700454 },
455 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
458 # more results in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700459 }</pre>
460</div>
461
462<div class="method">
463 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
464 <pre>Retrieves the next page of results.
465
466Args:
467 previous_request: The request for the previous page. (required)
468 previous_response: The response from the request for the previous page. (required)
469
470Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700471 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700472 page. Returns None if there are no more items in the collection.
473 </pre>
474</div>
475
476<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700477 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 <pre>Updates a ScanConfig. This method support partial update of a ScanConfig.
479
480Args:
481 name: string, The resource name of the ScanConfig. The name follows the format of
Bu Sun Kim65020912020-05-20 12:08:20 -0700482&#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700483generated by the system. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700484 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700485 The object takes the form of:
486
487{ # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 # next id: 12
489 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
490 # https://cloud.google.com/security-scanner/docs/excluded-urls
491 &quot;A String&quot;,
492 ],
493 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
494 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
495 # If the scan is in queue, the value is 0.
496 # If the scan is running, the value ranges from 0 to 100.
497 # If the scan is finished, the value is 100.
498 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
499 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
500 # is either finished or stopped by user.
501 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
502 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
503 # the value represents the number of URLs crawled up to now.
504 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
505 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
506 # the value represents the number of URLs tested up to now. The number of
507 # URLs tested is usually larger than the number URLS crawled because
508 # typically a crawled URL is tested with multiple test payloads.
509 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
510 # execution state reaches &quot;FINISHED&quot;.
511 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
512 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
513 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700515 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
516 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
517 &quot;A String&quot;,
518 ],
519 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
520 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
521 # used as a default.
522 &quot;A String&quot;,
523 ],
524 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
525 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
526 # refreshed by the server after each run. If unspecified, it will default
527 # to current server time, which means the scan will be scheduled to start
528 # immediately.
529 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700530 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
532 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
533 # generated by the system.
534 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
535 # inclusively. If the field is unspecified or its value is set 0, server will
536 # default to 15. Other values outside of [5, 20] range will be rejected with
537 # INVALID_ARGUMENT error.
538 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
539 # authentication configuration during scanning.
540 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
541 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
542 # and not returned in any response nor included in audit logs.
543 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
544 },
545 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
546 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
547 # and not returned in any response nor included in audit logs.
548 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
549 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
550 },
551 },
552 }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553
Dan O'Mearadd494642020-05-01 07:42:23 -0700554 updateMask: string, Required. The update mask applies to the resource. For the `FieldMask` definition,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700555see
556https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
557 x__xgafv: string, V1 error format.
558 Allowed values
559 1 - v1 error format
560 2 - v2 error format
561
562Returns:
563 An object of the form:
564
565 { # A ScanConfig resource contains the configurations to launch a scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700566 # next id: 12
567 &quot;blacklistPatterns&quot;: [ # The blacklist URL patterns as described in
568 # https://cloud.google.com/security-scanner/docs/excluded-urls
569 &quot;A String&quot;,
570 ],
571 &quot;latestRun&quot;: { # A ScanRun is a output-only resource representing an actual run of the scan. # Latest ScanRun if available.
572 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
573 # If the scan is in queue, the value is 0.
574 # If the scan is running, the value ranges from 0 to 100.
575 # If the scan is finished, the value is 100.
576 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
577 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
578 # is either finished or stopped by user.
579 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
580 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
581 # the value represents the number of URLs crawled up to now.
582 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
583 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
584 # the value represents the number of URLs tested up to now. The number of
585 # URLs tested is usually larger than the number URLS crawled because
586 # typically a crawled URL is tested with multiple test payloads.
587 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
588 # execution state reaches &quot;FINISHED&quot;.
589 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
590 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
591 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700592 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700593 &quot;displayName&quot;: &quot;A String&quot;, # Required. The user provided display name of the ScanConfig.
594 &quot;startingUrls&quot;: [ # Required. The starting URLs from which the scanner finds site pages.
595 &quot;A String&quot;,
596 ],
597 &quot;userAgent&quot;: &quot;A String&quot;, # The user agent used during scanning.
598 &quot;targetPlatforms&quot;: [ # Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be
599 # used as a default.
600 &quot;A String&quot;,
601 ],
602 &quot;schedule&quot;: { # Scan schedule configuration. # The schedule of the ScanConfig.
603 &quot;scheduleTime&quot;: &quot;A String&quot;, # A timestamp indicates when the next run will be scheduled. The value is
604 # refreshed by the server after each run. If unspecified, it will default
605 # to current server time, which means the scan will be scheduled to start
606 # immediately.
607 &quot;intervalDurationDays&quot;: 42, # Required. The duration of time between executions in days.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700608 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700609 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanConfig. The name follows the format of
610 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. The ScanConfig IDs are
611 # generated by the system.
612 &quot;maxQps&quot;: 42, # The maximum QPS during scanning. A valid value ranges from 5 to 20
613 # inclusively. If the field is unspecified or its value is set 0, server will
614 # default to 15. Other values outside of [5, 20] range will be rejected with
615 # INVALID_ARGUMENT error.
616 &quot;authentication&quot;: { # Scan authentication configuration. # The authentication configuration. If specified, service will use the
617 # authentication configuration during scanning.
618 &quot;googleAccount&quot;: { # Describes authentication configuration that uses a Google account. # Authentication using a Google account.
619 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the Google account. The credential is stored encrypted
620 # and not returned in any response nor included in audit logs.
621 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the Google account.
622 },
623 &quot;customAccount&quot;: { # Describes authentication configuration that uses a custom account. # Authentication using a custom account.
624 &quot;password&quot;: &quot;A String&quot;, # Required. Input only. The password of the custom account. The credential is stored encrypted
625 # and not returned in any response nor included in audit logs.
626 &quot;username&quot;: &quot;A String&quot;, # Required. The user name of the custom account.
627 &quot;loginUrl&quot;: &quot;A String&quot;, # Required. The login form URL of the website.
628 },
629 },
630 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700631</div>
632
633<div class="method">
634 <code class="details" id="start">start(name, body=None, x__xgafv=None)</code>
635 <pre>Start a ScanRun according to the given ScanConfig.
636
637Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700638 name: string, Required. The resource name of the ScanConfig to be used. The name follows the
Bu Sun Kim65020912020-05-20 12:08:20 -0700639format of &#x27;projects/{projectId}/scanConfigs/{scanConfigId}&#x27;. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700640 body: object, The request body.
641 The object takes the form of:
642
643{ # Request for the `StartScanRun` method.
644 }
645
646 x__xgafv: string, V1 error format.
647 Allowed values
648 1 - v1 error format
649 2 - v2 error format
650
651Returns:
652 An object of the form:
653
654 { # A ScanRun is a output-only resource representing an actual run of the scan.
Bu Sun Kim65020912020-05-20 12:08:20 -0700655 &quot;progressPercent&quot;: 42, # The percentage of total completion ranging from 0 to 100.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700656 # If the scan is in queue, the value is 0.
657 # If the scan is running, the value ranges from 0 to 100.
658 # If the scan is finished, the value is 100.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;executionState&quot;: &quot;A String&quot;, # The execution state of the ScanRun.
660 &quot;endTime&quot;: &quot;A String&quot;, # The time at which the ScanRun reached termination state - that the ScanRun
Dan O'Mearadd494642020-05-01 07:42:23 -0700661 # is either finished or stopped by user.
Bu Sun Kim65020912020-05-20 12:08:20 -0700662 &quot;startTime&quot;: &quot;A String&quot;, # The time at which the ScanRun started.
663 &quot;urlsCrawledCount&quot;: &quot;A String&quot;, # The number of URLs crawled during this ScanRun. If the scan is in progress,
664 # the value represents the number of URLs crawled up to now.
665 &quot;hasVulnerabilities&quot;: True or False, # Whether the scan run has found any vulnerabilities.
666 &quot;urlsTestedCount&quot;: &quot;A String&quot;, # The number of URLs tested during this ScanRun. If the scan is in progress,
667 # the value represents the number of URLs tested up to now. The number of
668 # URLs tested is usually larger than the number URLS crawled because
669 # typically a crawled URL is tested with multiple test payloads.
670 &quot;resultState&quot;: &quot;A String&quot;, # The result state of the ScanRun. This field is only available after the
671 # execution state reaches &quot;FINISHED&quot;.
672 &quot;name&quot;: &quot;A String&quot;, # The resource name of the ScanRun. The name follows the format of
673 # &#x27;projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}&#x27;.
674 # The ScanRun IDs are generated by the system.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700675 }</pre>
676</div>
677
678</body></html>