Skip to content

Commit d47de5f

Browse files
feat: Automated regeneration of BinaryAuthorization client (#13151)
Auto-created at 2025-03-13 13:20:53 +0000 using the toys pull request generator.
1 parent c071ffa commit d47de5f

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

clients/binary_authorization/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_binary_authorization, "~> 0.17"}]
14+
[{:google_api_binary_authorization, "~> 0.18"}]
1515
end
1616
```
1717

clients/binary_authorization/lib/google_api/binary_authorization/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.BinaryAuthorization.V1 do
2020
API client metadata for GoogleApi.BinaryAuthorization.V1.
2121
"""
2222

23-
@discovery_revision "20250117"
23+
@discovery_revision "20250311"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/binary_authorization/lib/google_api/binary_authorization/v1/model/verification_rule.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.BinaryAuthorization.V1.Model.VerificationRule do
2323
2424
* `attestationSource` (*type:* `GoogleApi.BinaryAuthorization.V1.Model.AttestationSource.t`, *default:* `nil`) - Specifies where to fetch the provenances attestations generated by the builder (group).
2525
* `configBasedBuildRequired` (*type:* `boolean()`, *default:* `nil`) - If true, require the image to be built from a top-level configuration. `trusted_source_repo_patterns` specifies the repositories containing this configuration.
26+
* `customConstraints` (*type:* `String.t`, *default:* `nil`) - Optional. A CEL expression for specifying custom constraints on the provenance payload. This can be used when users want to specify expectations on provenance fields that are not covered by the general check. For example, users can use this field to require that certain parameters should never be used during the build process.
2627
* `trustedBuilder` (*type:* `String.t`, *default:* `nil`) - Each verification rule is used for evaluation against provenances generated by a specific builder (group). For some of the builders, such as the Google Cloud Build, users don't need to explicitly specify their roots of trust in the policy since the evaluation service can automatically fetch them based on the builder (group).
2728
* `trustedSourceRepoPatterns` (*type:* `list(String.t)`, *default:* `nil`) - List of trusted source code repository URL patterns. These patterns match the full repository URL without its scheme (e.g. `https://`). The patterns must not include schemes. For example, the pattern `source.cloud.google.com/my-project/my-repo-name` matches the following URLs: - `source.cloud.google.com/my-project/my-repo-name` - `git+ssh://source.cloud.google.com/my-project/my-repo-name` - `https://source.cloud.google.com/my-project/my-repo-name` A pattern matches a URL either exactly or with `*` wildcards. `*` can be used in only two ways: 1. trailing `*` after hosturi/ to match varying endings; 2. trailing `**` after hosturi/ to match `/` as well. `*` and `**` can only be used as wildcards and can only occur at the end of the pattern after a `/`. (So it's not possible to match a URL that contains literal `*`.) For example: - `github.com/my-project/my-repo` is valid to match a single repo - `github.com/my-project/*` will match all direct repos in `my-project` - `github.com/**` matches all repos in GitHub
2829
"""
@@ -33,12 +34,14 @@ defmodule GoogleApi.BinaryAuthorization.V1.Model.VerificationRule do
3334
:attestationSource =>
3435
GoogleApi.BinaryAuthorization.V1.Model.AttestationSource.t() | nil,
3536
:configBasedBuildRequired => boolean() | nil,
37+
:customConstraints => String.t() | nil,
3638
:trustedBuilder => String.t() | nil,
3739
:trustedSourceRepoPatterns => list(String.t()) | nil
3840
}
3941

4042
field(:attestationSource, as: GoogleApi.BinaryAuthorization.V1.Model.AttestationSource)
4143
field(:configBasedBuildRequired)
44+
field(:customConstraints)
4245
field(:trustedBuilder)
4346
field(:trustedSourceRepoPatterns, type: :list)
4447
end

clients/binary_authorization/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.BinaryAuthorization.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.17.2"
21+
@version "0.18.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)