Skip to content

Commit fb31e7d

Browse files
feat: Automated regeneration of websecurityscanner v1 client (googleapis#21422)
Auto-created at 2025-01-19 10:14:33 +0000 using the toys pull request generator.
1 parent 2ca30a9 commit fb31e7d

File tree

6 files changed

+34
-9
lines changed

6 files changed

+34
-9
lines changed

api_names_out.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352153,6 +352153,7 @@
352153352153
"/websecurityscanner:v1/ScanConfig/displayName": display_name
352154352154
"/websecurityscanner:v1/ScanConfig/exportToSecurityCommandCenter": export_to_security_command_center
352155352155
"/websecurityscanner:v1/ScanConfig/ignoreHttpStatusErrors": ignore_http_status_errors
352156+
"/websecurityscanner:v1/ScanConfig/latestRun": latest_run
352156352157
"/websecurityscanner:v1/ScanConfig/managedScan": managed_scan
352157352158
"/websecurityscanner:v1/ScanConfig/maxQps": max_qps
352158352159
"/websecurityscanner:v1/ScanConfig/name": name
@@ -352161,6 +352162,8 @@
352161352162
"/websecurityscanner:v1/ScanConfig/startingUrls": starting_urls
352162352163
"/websecurityscanner:v1/ScanConfig/startingUrls/starting_url": starting_url
352163352164
"/websecurityscanner:v1/ScanConfig/staticIpScan": static_ip_scan
352165+
"/websecurityscanner:v1/ScanConfig/targetPlatforms": target_platforms
352166+
"/websecurityscanner:v1/ScanConfig/targetPlatforms/target_platform": target_platform
352164352167
"/websecurityscanner:v1/ScanConfig/userAgent": user_agent
352165352168
"/websecurityscanner:v1/ScanConfigError": scan_config_error
352166352169
"/websecurityscanner:v1/ScanConfigError/code": code

generated/google-apis-websecurityscanner_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-websecurityscanner_v1
22

3+
### v0.22.0 (2025-01-19)
4+
5+
* Regenerated from discovery document revision 20250105
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.21.0 (2024-05-19)
49

510
* Regenerated using generator version 0.15.0

generated/google-apis-websecurityscanner_v1/lib/google/apis/websecurityscanner_v1/classes.rb

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,12 @@ class ScanConfig
596596
attr_accessor :ignore_http_status_errors
597597
alias_method :ignore_http_status_errors?, :ignore_http_status_errors
598598

599+
# A ScanRun is a output-only resource representing an actual run of the scan.
600+
# Next id: 12
601+
# Corresponds to the JSON property `latestRun`
602+
# @return [Google::Apis::WebsecurityscannerV1::ScanRun]
603+
attr_accessor :latest_run
604+
599605
# Whether the scan config is managed by Web Security Scanner, output only.
600606
# Corresponds to the JSON property `managedScan`
601607
# @return [Boolean]
@@ -610,9 +616,9 @@ class ScanConfig
610616
# @return [Fixnum]
611617
attr_accessor :max_qps
612618

613-
# The resource name of the ScanConfig. The name follows the format of 'projects/`
614-
# projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are generated by
615-
# the system.
619+
# Identifier. The resource name of the ScanConfig. The name follows the format
620+
# of 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
621+
# generated by the system.
616622
# Corresponds to the JSON property `name`
617623
# @return [String]
618624
attr_accessor :name
@@ -639,6 +645,12 @@ class ScanConfig
639645
attr_accessor :static_ip_scan
640646
alias_method :static_ip_scan?, :static_ip_scan
641647

648+
# Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will
649+
# be used as a default.
650+
# Corresponds to the JSON property `targetPlatforms`
651+
# @return [Array<String>]
652+
attr_accessor :target_platforms
653+
642654
# The user agent used during scanning.
643655
# Corresponds to the JSON property `userAgent`
644656
# @return [String]
@@ -655,13 +667,15 @@ def update!(**args)
655667
@display_name = args[:display_name] if args.key?(:display_name)
656668
@export_to_security_command_center = args[:export_to_security_command_center] if args.key?(:export_to_security_command_center)
657669
@ignore_http_status_errors = args[:ignore_http_status_errors] if args.key?(:ignore_http_status_errors)
670+
@latest_run = args[:latest_run] if args.key?(:latest_run)
658671
@managed_scan = args[:managed_scan] if args.key?(:managed_scan)
659672
@max_qps = args[:max_qps] if args.key?(:max_qps)
660673
@name = args[:name] if args.key?(:name)
661674
@risk_level = args[:risk_level] if args.key?(:risk_level)
662675
@schedule = args[:schedule] if args.key?(:schedule)
663676
@starting_urls = args[:starting_urls] if args.key?(:starting_urls)
664677
@static_ip_scan = args[:static_ip_scan] if args.key?(:static_ip_scan)
678+
@target_platforms = args[:target_platforms] if args.key?(:target_platforms)
665679
@user_agent = args[:user_agent] if args.key?(:user_agent)
666680
end
667681
end

generated/google-apis-websecurityscanner_v1/lib/google/apis/websecurityscanner_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module WebsecurityscannerV1
1818
# Version of the google-apis-websecurityscanner_v1 gem
19-
GEM_VERSION = "0.21.0"
19+
GEM_VERSION = "0.22.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.0"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20231021"
25+
REVISION = "20250105"
2626
end
2727
end
2828
end

generated/google-apis-websecurityscanner_v1/lib/google/apis/websecurityscanner_v1/representations.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
378378
property :display_name, as: 'displayName'
379379
property :export_to_security_command_center, as: 'exportToSecurityCommandCenter'
380380
property :ignore_http_status_errors, as: 'ignoreHttpStatusErrors'
381+
property :latest_run, as: 'latestRun', class: Google::Apis::WebsecurityscannerV1::ScanRun, decorator: Google::Apis::WebsecurityscannerV1::ScanRun::Representation
382+
381383
property :managed_scan, as: 'managedScan'
382384
property :max_qps, as: 'maxQps'
383385
property :name, as: 'name'
@@ -386,6 +388,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
386388

387389
collection :starting_urls, as: 'startingUrls'
388390
property :static_ip_scan, as: 'staticIpScan'
391+
collection :target_platforms, as: 'targetPlatforms'
389392
property :user_agent, as: 'userAgent'
390393
end
391394
end

generated/google-apis-websecurityscanner_v1/lib/google/apis/websecurityscanner_v1/service.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ def list_project_scan_configs(parent, page_size: nil, page_token: nil, fields: n
189189

190190
# Updates a ScanConfig. This method support partial update of a ScanConfig.
191191
# @param [String] name
192-
# The resource name of the ScanConfig. The name follows the format of 'projects/`
193-
# projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are generated by
194-
# the system.
192+
# Identifier. The resource name of the ScanConfig. The name follows the format
193+
# of 'projects/`projectId`/scanConfigs/`scanConfigId`'. The ScanConfig IDs are
194+
# generated by the system.
195195
# @param [Google::Apis::WebsecurityscannerV1::ScanConfig] scan_config_object
196196
# @param [String] update_mask
197197
# Required. The update mask applies to the resource. For the `FieldMask`

0 commit comments

Comments
 (0)