generated/google/apis/websecurityscanner_v1beta/classes.rb in google-api-client-0.36.4 vs generated/google/apis/websecurityscanner_v1beta/classes.rb in google-api-client-0.37.0

- old
+ new

@@ -34,18 +34,24 @@ # Describes authentication configuration that uses a Google account. # Corresponds to the JSON property `googleAccount` # @return [Google::Apis::WebsecurityscannerV1beta::GoogleAccount] attr_accessor :google_account + # Describes authentication configuration for Identity-Aware-Proxy (IAP). + # Corresponds to the JSON property `iapCredential` + # @return [Google::Apis::WebsecurityscannerV1beta::IapCredential] + attr_accessor :iap_credential + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @custom_account = args[:custom_account] if args.key?(:custom_account) @google_account = args[:google_account] if args.key?(:google_account) + @iap_credential = args[:iap_credential] if args.key?(:iap_credential) end end # A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web # Security Scanner Service crawls the web applications, following all links @@ -355,10 +361,51 @@ @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end end + # Describes authentication configuration for Identity-Aware-Proxy (IAP). + class IapCredential + include Google::Apis::Core::Hashable + + # Describes authentication configuration when Web-Security-Scanner + # service account is added in Identity-Aware-Proxy (IAP) access policies. + # Corresponds to the JSON property `iapTestServiceAccountInfo` + # @return [Google::Apis::WebsecurityscannerV1beta::IapTestServiceAccountInfo] + attr_accessor :iap_test_service_account_info + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @iap_test_service_account_info = args[:iap_test_service_account_info] if args.key?(:iap_test_service_account_info) + end + end + + # Describes authentication configuration when Web-Security-Scanner + # service account is added in Identity-Aware-Proxy (IAP) access policies. + class IapTestServiceAccountInfo + include Google::Apis::Core::Hashable + + # Required. Describes OAuth2 Client ID of resources protected by + # Identity-Aware-Proxy(IAP). + # Corresponds to the JSON property `targetAudienceClientId` + # @return [String] + attr_accessor :target_audience_client_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @target_audience_client_id = args[:target_audience_client_id] if args.key?(:target_audience_client_id) + end + end + # Response for the `ListCrawledUrls` method. class ListCrawledUrlsResponse include Google::Apis::Core::Hashable # The list of CrawledUrls returned. @@ -541,10 +588,17 @@ # Next id: 12 # Corresponds to the JSON property `latestRun` # @return [Google::Apis::WebsecurityscannerV1beta::ScanRun] attr_accessor :latest_run + # Whether the scan config is managed by Cloud Web Security Scanner, output + # only. + # Corresponds to the JSON property `managedScan` + # @return [Boolean] + attr_accessor :managed_scan + alias_method :managed_scan?, :managed_scan + # 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` @@ -571,10 +625,17 @@ # Required. The starting URLs from which the scanner finds site pages. # Corresponds to the JSON property `startingUrls` # @return [Array<String>] attr_accessor :starting_urls + # 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` + # @return [Boolean] + attr_accessor :static_ip_scan + alias_method :static_ip_scan?, :static_ip_scan + # Set of 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>] attr_accessor :target_platforms @@ -593,14 +654,16 @@ @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) @latest_run = args[:latest_run] if args.key?(:latest_run) + @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) @target_platforms = args[:target_platforms] if args.key?(:target_platforms) @user_agent = args[:user_agent] if args.key?(:user_agent) end end