Skip to content

Commit

Permalink
feat: Automated regeneration of WebSecurityScanner client (#12826)
Browse files Browse the repository at this point in the history
Auto-created at 2025-01-15 13:16:43 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Jan 15, 2025
1 parent ca41a99 commit abebe26
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion clients/web_security_scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""

Expand All @@ -44,13 +46,15 @@ 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,
:riskLevel => String.t() | nil,
: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
}

Expand All @@ -59,13 +63,15 @@ 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)
field(:riskLevel)
field(:schedule, as: GoogleApi.WebSecurityScanner.V1.Model.Schedule)
field(:startingUrls, type: :list)
field(:staticIpScan)
field(:targetPlatforms, type: :list)
field(:userAgent)
end

Expand Down
2 changes: 1 addition & 1 deletion clients/web_security_scanner/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.WebSecurityScanner.Mixfile do
use Mix.Project

@version "0.18.0"
@version "0.19.0"

def project() do
[
Expand Down

0 comments on commit abebe26

Please sign in to comment.