From abebe264834b2c8e79caa45285c67a06747b0bdb Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 15 Jan 2025 05:26:23 -0800 Subject: [PATCH] feat: Automated regeneration of WebSecurityScanner client (#12826) Auto-created at 2025-01-15 13:16:43 +0000 using the toys pull request generator. --- clients/web_security_scanner/README.md | 2 +- .../google_api/web_security_scanner/v1/api/projects.ex | 2 +- .../lib/google_api/web_security_scanner/v1/metadata.ex | 2 +- .../web_security_scanner/v1/model/scan_config.ex | 8 +++++++- clients/web_security_scanner/mix.exs | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/clients/web_security_scanner/README.md b/clients/web_security_scanner/README.md index ec02e1da5c..29f9629071 100644 --- a/clients/web_security_scanner/README.md +++ b/clients/web_security_scanner/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_web_security_scanner, "~> 0.18"}] + [{:google_api_web_security_scanner, "~> 0.19"}] end ``` diff --git a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/api/projects.ex b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/api/projects.ex index 530aac8f62..2ba135a28f 100644 --- a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/api/projects.ex +++ b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/api/projects.ex @@ -319,7 +319,7 @@ defmodule GoogleApi.WebSecurityScanner.V1.Api.Projects do ## Parameters * `connection` (*type:* `GoogleApi.WebSecurityScanner.V1.Connection.t`) - Connection to server - * `name` (*type:* `String.t`) - The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. + * `name` (*type:* `String.t`) - Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. diff --git a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/metadata.ex b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/metadata.ex index 334e943201..711225eca2 100644 --- a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/metadata.ex +++ b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.WebSecurityScanner.V1 do API client metadata for GoogleApi.WebSecurityScanner.V1. """ - @discovery_revision "20231021" + @discovery_revision "20250105" def discovery_revision(), do: @discovery_revision end diff --git a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_config.ex b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_config.ex index fd2e601b65..78fefc8815 100644 --- a/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_config.ex +++ b/clients/web_security_scanner/lib/google_api/web_security_scanner/v1/model/scan_config.ex @@ -26,13 +26,15 @@ defmodule GoogleApi.WebSecurityScanner.V1.Model.ScanConfig do * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. The user provided display name of the ScanConfig. * `exportToSecurityCommandCenter` (*type:* `String.t`, *default:* `nil`) - Controls export of scan configurations and results to Security Command Center. * `ignoreHttpStatusErrors` (*type:* `boolean()`, *default:* `nil`) - Whether to keep scanning even if most requests return HTTP error codes. + * `latestRun` (*type:* `GoogleApi.WebSecurityScanner.V1.Model.ScanRun.t`, *default:* `nil`) - * `managedScan` (*type:* `boolean()`, *default:* `nil`) - Whether the scan config is managed by Web Security Scanner, output only. * `maxQps` (*type:* `integer()`, *default:* `nil`) - 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. - * `name` (*type:* `String.t`, *default:* `nil`) - The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. + * `name` (*type:* `String.t`, *default:* `nil`) - Identifier. The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system. * `riskLevel` (*type:* `String.t`, *default:* `nil`) - The risk level selected for the scan * `schedule` (*type:* `GoogleApi.WebSecurityScanner.V1.Model.Schedule.t`, *default:* `nil`) - The schedule of the ScanConfig. * `startingUrls` (*type:* `list(String.t)`, *default:* `nil`) - Required. The starting URLs from which the scanner finds site pages. * `staticIpScan` (*type:* `boolean()`, *default:* `nil`) - Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses. + * `targetPlatforms` (*type:* `list(String.t)`, *default:* `nil`) - Set of Google Cloud platforms targeted by the scan. If empty, APP_ENGINE will be used as a default. * `userAgent` (*type:* `String.t`, *default:* `nil`) - The user agent used during scanning. """ @@ -44,6 +46,7 @@ defmodule GoogleApi.WebSecurityScanner.V1.Model.ScanConfig do :displayName => String.t() | nil, :exportToSecurityCommandCenter => String.t() | nil, :ignoreHttpStatusErrors => boolean() | nil, + :latestRun => GoogleApi.WebSecurityScanner.V1.Model.ScanRun.t() | nil, :managedScan => boolean() | nil, :maxQps => integer() | nil, :name => String.t() | nil, @@ -51,6 +54,7 @@ defmodule GoogleApi.WebSecurityScanner.V1.Model.ScanConfig do :schedule => GoogleApi.WebSecurityScanner.V1.Model.Schedule.t() | nil, :startingUrls => list(String.t()) | nil, :staticIpScan => boolean() | nil, + :targetPlatforms => list(String.t()) | nil, :userAgent => String.t() | nil } @@ -59,6 +63,7 @@ defmodule GoogleApi.WebSecurityScanner.V1.Model.ScanConfig do field(:displayName) field(:exportToSecurityCommandCenter) field(:ignoreHttpStatusErrors) + field(:latestRun, as: GoogleApi.WebSecurityScanner.V1.Model.ScanRun) field(:managedScan) field(:maxQps) field(:name) @@ -66,6 +71,7 @@ defmodule GoogleApi.WebSecurityScanner.V1.Model.ScanConfig do field(:schedule, as: GoogleApi.WebSecurityScanner.V1.Model.Schedule) field(:startingUrls, type: :list) field(:staticIpScan) + field(:targetPlatforms, type: :list) field(:userAgent) end diff --git a/clients/web_security_scanner/mix.exs b/clients/web_security_scanner/mix.exs index 77de36f694..c6fe50b046 100644 --- a/clients/web_security_scanner/mix.exs +++ b/clients/web_security_scanner/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.WebSecurityScanner.Mixfile do use Mix.Project - @version "0.18.0" + @version "0.19.0" def project() do [