public final class ScanConfig
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Web Security Scanner API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ScanConfig() |
Modifier and Type | Method and Description |
---|---|
ScanConfig |
clone() |
Authentication |
getAuthentication()
The authentication configuration.
|
java.util.List<java.lang.String> |
getBlacklistPatterns()
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs
/excluded-urls
|
java.lang.String |
getDisplayName()
Required.
|
ScanRun |
getLatestRun()
Latest ScanRun if available.
|
java.lang.Integer |
getMaxQps()
The maximum QPS during scanning.
|
java.lang.String |
getName()
The resource name of the ScanConfig.
|
Schedule |
getSchedule()
The schedule of the ScanConfig.
|
java.util.List<java.lang.String> |
getStartingUrls()
Required.
|
java.util.List<java.lang.String> |
getTargetPlatforms()
Set of Cloud Platforms targeted by the scan.
|
java.lang.String |
getUserAgent()
The user agent used during scanning.
|
ScanConfig |
set(java.lang.String fieldName,
java.lang.Object value) |
ScanConfig |
setAuthentication(Authentication authentication)
The authentication configuration.
|
ScanConfig |
setBlacklistPatterns(java.util.List<java.lang.String> blacklistPatterns)
The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs
/excluded-urls
|
ScanConfig |
setDisplayName(java.lang.String displayName)
Required.
|
ScanConfig |
setLatestRun(ScanRun latestRun)
Latest ScanRun if available.
|
ScanConfig |
setMaxQps(java.lang.Integer maxQps)
The maximum QPS during scanning.
|
ScanConfig |
setName(java.lang.String name)
The resource name of the ScanConfig.
|
ScanConfig |
setSchedule(Schedule schedule)
The schedule of the ScanConfig.
|
ScanConfig |
setStartingUrls(java.util.List<java.lang.String> startingUrls)
Required.
|
ScanConfig |
setTargetPlatforms(java.util.List<java.lang.String> targetPlatforms)
Set of Cloud Platforms targeted by the scan.
|
ScanConfig |
setUserAgent(java.lang.String userAgent)
The user agent used during scanning.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Authentication getAuthentication()
null
for nonepublic ScanConfig setAuthentication(Authentication authentication)
authentication
- authentication or null
for nonepublic java.util.List<java.lang.String> getBlacklistPatterns()
null
for nonepublic ScanConfig setBlacklistPatterns(java.util.List<java.lang.String> blacklistPatterns)
blacklistPatterns
- blacklistPatterns or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic ScanConfig setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic ScanRun getLatestRun()
null
for nonepublic ScanConfig setLatestRun(ScanRun latestRun)
latestRun
- latestRun or null
for nonepublic java.lang.Integer getMaxQps()
null
for nonepublic ScanConfig setMaxQps(java.lang.Integer maxQps)
maxQps
- maxQps or null
for nonepublic java.lang.String getName()
null
for nonepublic ScanConfig setName(java.lang.String name)
name
- name or null
for nonepublic Schedule getSchedule()
null
for nonepublic ScanConfig setSchedule(Schedule schedule)
schedule
- schedule or null
for nonepublic java.util.List<java.lang.String> getStartingUrls()
null
for nonepublic ScanConfig setStartingUrls(java.util.List<java.lang.String> startingUrls)
startingUrls
- startingUrls or null
for nonepublic java.util.List<java.lang.String> getTargetPlatforms()
null
for nonepublic ScanConfig setTargetPlatforms(java.util.List<java.lang.String> targetPlatforms)
targetPlatforms
- targetPlatforms or null
for nonepublic java.lang.String getUserAgent()
null
for nonepublic ScanConfig setUserAgent(java.lang.String userAgent)
userAgent
- userAgent or null
for nonepublic ScanConfig set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ScanConfig clone()
clone
in class com.google.api.client.json.GenericJson