class Google::Apis::WebsecurityscannerV1alpha::ScanConfig

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

Attributes

authentication[RW]

Scan authentication configuration. Corresponds to the JSON property `authentication` @return [Google::Apis::WebsecurityscannerV1alpha::Authentication]

blacklist_patterns[RW]

The excluded URL patterns as described in cloud.google.com/security- command-center/docs/how-to-use-web-security-scanner#excluding_urls Corresponds to the JSON property `blacklistPatterns` @return [Array<String>]

display_name[RW]

Required. The user provided display name of the ScanConfig. Corresponds to the JSON property `displayName` @return [String]

latest_run[RW]

A ScanRun is a output-only resource representing an actual run of the scan. Corresponds to the JSON property `latestRun` @return [Google::Apis::WebsecurityscannerV1alpha::ScanRun]

max_qps[RW]

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. Corresponds to the JSON property `maxQps` @return [Fixnum]

name[RW]

The resource name of the ScanConfig. The name follows the format of 'projects/` projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are generated by the system. Corresponds to the JSON property `name` @return [String]

schedule[RW]

Scan schedule configuration. Corresponds to the JSON property `schedule` @return [Google::Apis::WebsecurityscannerV1alpha::Schedule]

starting_urls[RW]

Required. The starting URLs from which the scanner finds site pages. Corresponds to the JSON property `startingUrls` @return [Array<String>]

target_platforms[RW]

Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default. Corresponds to the JSON property `targetPlatforms` @return [Array<String>]

user_agent[RW]

The user agent used during scanning. Corresponds to the JSON property `userAgent` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/websecurityscanner_v1alpha/classes.rb, line 537
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/websecurityscanner_v1alpha/classes.rb, line 542
def update!(**args)
  @authentication = args[:authentication] if args.key?(:authentication)
  @blacklist_patterns = args[:blacklist_patterns] if args.key?(:blacklist_patterns)
  @display_name = args[:display_name] if args.key?(:display_name)
  @latest_run = args[:latest_run] if args.key?(:latest_run)
  @max_qps = args[:max_qps] if args.key?(:max_qps)
  @name = args[:name] if args.key?(:name)
  @schedule = args[:schedule] if args.key?(:schedule)
  @starting_urls = args[:starting_urls] if args.key?(:starting_urls)
  @target_platforms = args[:target_platforms] if args.key?(:target_platforms)
  @user_agent = args[:user_agent] if args.key?(:user_agent)
end