Class: Google::Apis::WebsecurityscannerV1::ScanConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/websecurityscanner_v1/classes.rb,
generated/google/apis/websecurityscanner_v1/representations.rb,
generated/google/apis/websecurityscanner_v1/representations.rb

Overview

A ScanConfig resource contains the configurations to launch a scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ScanConfig

Returns a new instance of ScanConfig.



642
643
644
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 642

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authenticationGoogle::Apis::WebsecurityscannerV1::Authentication

Scan authentication configuration. Corresponds to the JSON property authentication



574
575
576
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 574

def authentication
  @authentication
end

#blacklist_patternsArray<String>

The blacklist URL patterns as described in https://cloud.google.com/security-scanner/docs/excluded-urls Corresponds to the JSON property blacklistPatterns

Returns:

  • (Array<String>)


580
581
582
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 580

def blacklist_patterns
  @blacklist_patterns
end

#display_nameString

Required. The user provided display name of the ScanConfig. Corresponds to the JSON property displayName

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 585

def display_name
  @display_name
end

#export_to_security_command_centerString

Controls export of scan configurations and results to Cloud Security Command Center. Corresponds to the JSON property exportToSecurityCommandCenter

Returns:

  • (String)


591
592
593
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 591

def export_to_security_command_center
  @export_to_security_command_center
end

#managed_scanBoolean Also known as: managed_scan?

Whether the scan config is managed by Cloud Web Security Scanner, output only. Corresponds to the JSON property managedScan

Returns:

  • (Boolean)


597
598
599
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 597

def managed_scan
  @managed_scan
end

#max_qpsFixnum

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

Returns:

  • (Fixnum)


606
607
608
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 606

def max_qps
  @max_qps
end

#nameString

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

Returns:

  • (String)


613
614
615
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 613

def name
  @name
end

#risk_levelString

The risk level selected for the scan Corresponds to the JSON property riskLevel

Returns:

  • (String)


618
619
620
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 618

def risk_level
  @risk_level
end

#scheduleGoogle::Apis::WebsecurityscannerV1::Schedule

Scan schedule configuration. Corresponds to the JSON property schedule



623
624
625
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 623

def schedule
  @schedule
end

#starting_urlsArray<String>

Required. The starting URLs from which the scanner finds site pages. Corresponds to the JSON property startingUrls

Returns:

  • (Array<String>)


628
629
630
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 628

def starting_urls
  @starting_urls
end

#static_ip_scanBoolean Also known as: static_ip_scan?

Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses. Corresponds to the JSON property staticIpScan

Returns:

  • (Boolean)


634
635
636
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 634

def static_ip_scan
  @static_ip_scan
end

#user_agentString

The user agent used during scanning. Corresponds to the JSON property userAgent

Returns:

  • (String)


640
641
642
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 640

def user_agent
  @user_agent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



647
648
649
650
651
652
653
654
655
656
657
658
659
660
# File 'generated/google/apis/websecurityscanner_v1/classes.rb', line 647

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)
  @export_to_security_command_center = args[:export_to_security_command_center] if args.key?(:export_to_security_command_center)
  @managed_scan = args[:managed_scan] if args.key?(:managed_scan)
  @max_qps = args[:max_qps] if args.key?(:max_qps)
  @name = args[:name] if args.key?(:name)
  @risk_level = args[:risk_level] if args.key?(:risk_level)
  @schedule = args[:schedule] if args.key?(:schedule)
  @starting_urls = args[:starting_urls] if args.key?(:starting_urls)
  @static_ip_scan = args[:static_ip_scan] if args.key?(:static_ip_scan)
  @user_agent = args[:user_agent] if args.key?(:user_agent)
end