Skip to content

Commit c64c143

Browse files
feat: Automated regeneration of CloudBuild client (googleapis#10693)
Auto-created at 2022-11-10 13:20:44 +0000 using the toys pull request generator.
1 parent 73c96c2 commit c64c143

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

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

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

23-
@discovery_revision "20221027"
23+
@discovery_revision "20221103"
2424

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

clients/cloud_build/lib/google_api/cloud_build/v1/model/build_trigger.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildTrigger do
4040
* `includedFiles` (*type:* `list(String.t)`, *default:* `nil`) - If any of the files altered in the commit pass the ignored_files filter and included_files is empty, then as far as this filter is concerned, we should trigger the build. If any of the files altered in the commit pass the ignored_files filter and included_files is not empty, then we make sure that at least one of those files matches a included_files glob. If not, then we do not trigger a build.
4141
* `name` (*type:* `String.t`, *default:* `nil`) - User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
4242
* `pubsubConfig` (*type:* `GoogleApi.CloudBuild.V1.Model.PubsubConfig.t`, *default:* `nil`) - PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
43+
* `repositoryEventConfig` (*type:* `GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig.t`, *default:* `nil`) - The configuration of a trigger that creates a build whenever an event from Repo API is received.
4344
* `resourceName` (*type:* `String.t`, *default:* `nil`) - The `Trigger` name with format: `projects/{project}/locations/{location}/triggers/{trigger}`, where {trigger} is a unique identifier generated by the service.
4445
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - The service account used for all user-controlled operations including UpdateBuildTrigger, RunBuildTrigger, CreateBuild, and CancelBuild. If no service account is set, then the standard Cloud Build service account ([PROJECT_NUM]@system.gserviceaccount.com) will be used instead. Format: `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_ID_OR_EMAIL}`
4546
* `sourceToBuild` (*type:* `GoogleApi.CloudBuild.V1.Model.GitRepoSource.t`, *default:* `nil`) - The repo and ref of the repository from which to build. This field is used only for those triggers that do not respond to SCM events. Triggers that respond to such events build source at whatever commit caused the event. This field is currently only used by Webhook, Pub/Sub, Manual, and Cron triggers.
@@ -73,6 +74,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildTrigger do
7374
:includedFiles => list(String.t()) | nil,
7475
:name => String.t() | nil,
7576
:pubsubConfig => GoogleApi.CloudBuild.V1.Model.PubsubConfig.t() | nil,
77+
:repositoryEventConfig => GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig.t() | nil,
7678
:resourceName => String.t() | nil,
7779
:serviceAccount => String.t() | nil,
7880
:sourceToBuild => GoogleApi.CloudBuild.V1.Model.GitRepoSource.t() | nil,
@@ -105,6 +107,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildTrigger do
105107
field(:includedFiles, type: :list)
106108
field(:name)
107109
field(:pubsubConfig, as: GoogleApi.CloudBuild.V1.Model.PubsubConfig)
110+
field(:repositoryEventConfig, as: GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig)
108111
field(:resourceName)
109112
field(:serviceAccount)
110113
field(:sourceToBuild, as: GoogleApi.CloudBuild.V1.Model.GitRepoSource)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig do
19+
@moduledoc """
20+
The configuration of a trigger that creates a build whenever an event from Repo API is received.
21+
22+
## Attributes
23+
24+
* `pullRequest` (*type:* `GoogleApi.CloudBuild.V1.Model.PullRequestFilter.t`, *default:* `nil`) - Filter to match changes in pull requests.
25+
* `push` (*type:* `GoogleApi.CloudBuild.V1.Model.PushFilter.t`, *default:* `nil`) - Filter to match changes in refs like branches, tags.
26+
* `repository` (*type:* `String.t`, *default:* `nil`) - The resource name of the Repo API resource.
27+
* `repositoryType` (*type:* `String.t`, *default:* `nil`) - Output only. The type of the SCM vendor the repository points to.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:pullRequest => GoogleApi.CloudBuild.V1.Model.PullRequestFilter.t() | nil,
34+
:push => GoogleApi.CloudBuild.V1.Model.PushFilter.t() | nil,
35+
:repository => String.t() | nil,
36+
:repositoryType => String.t() | nil
37+
}
38+
39+
field(:pullRequest, as: GoogleApi.CloudBuild.V1.Model.PullRequestFilter)
40+
field(:push, as: GoogleApi.CloudBuild.V1.Model.PushFilter)
41+
field(:repository)
42+
field(:repositoryType)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig do
46+
def decode(value, options) do
47+
GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.RepositoryEventConfig do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end

0 commit comments

Comments
 (0)