# Class ScanConfig (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.2 1.16.0 1.15.1 1.14.5 1.13.0 1.12.2 1.11.1 1.10.0 1.9.2 1.8.3 1.7.2 1.6.1 1.5.0 1.4.3 1.3.0 1.2.0 1.1.0 1.0.0 0.4.2 0.3.0

    ScanConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A ScanConfig resource contains the configurations to launch a
scan. next id: 12

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. |
| `display_name` | `str` Required. The user provided display name of the ScanConfig. |
| `max_qps` | `int` 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 \[5, 20\] range will be rejected with INVALID_ARGUMENT error. |
| `starting_urls` | `MutableSequence[str]` Required. The starting URLs from which the scanner finds site pages. |
| `authentication` | `https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1alpha.types.ScanConfig.Authentication` The authentication configuration. If specified, service will use the authentication configuration during scanning. |
| `user_agent` | `https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1alpha.types.ScanConfig.UserAgent` The user agent used during scanning. |
| `blacklist_patterns` | `MutableSequence[str]` The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls |
| `schedule` | `https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1alpha.types.ScanConfig.Schedule` The schedule of the ScanConfig. |
| `target_platforms` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1alpha.types.ScanConfig.TargetPlatform]` Set of Cloud Platforms targeted by the scan. If empty, APP_ENGINE will be used as a default. |
| `latest_run` | `https://docs.cloud.google.com/python/docs/reference/websecurityscanner/latest/google.cloud.websecurityscanner_v1alpha.types.ScanRun` Latest ScanRun if available. |

## Classes

### Authentication

    Authentication(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Scan authentication configuration.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### Schedule

    Schedule(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Scan schedule configuration.

### TargetPlatform

    TargetPlatform(value)

Cloud platforms supported by Cloud Web Security Scanner.

### UserAgent

    UserAgent(value)

Type of user agents used for scanning.