Skip to content

Commit 6faf268

Browse files
feat: Automated regeneration of CloudBuild client (googleapis#12960)
Auto-created at 2025-02-12 13:15:13 +0000 using the toys pull request generator.
1 parent 0e2c1ad commit 6faf268

File tree

10 files changed

+178
-6
lines changed

10 files changed

+178
-6
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 "20250114"
23+
@discovery_revision "20250211"
2424

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Build do
2626
* `availableSecrets` (*type:* `GoogleApi.CloudBuild.V1.Model.Secrets.t`, *default:* `nil`) - Secrets and secret environment variables.
2727
* `buildTriggerId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the `BuildTrigger` that triggered this build, if it was triggered automatically.
2828
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which the request to create the build was received.
29+
* `dependencies` (*type:* `list(GoogleApi.CloudBuild.V1.Model.Dependency.t)`, *default:* `nil`) - Optional. Dependencies that the Cloud Build worker will fetch before executing user steps.
2930
* `failureInfo` (*type:* `GoogleApi.CloudBuild.V1.Model.FailureInfo.t`, *default:* `nil`) - Output only. Contains information about the build when status=FAILURE.
3031
* `finishTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Time at which execution of the build was finished. The difference between finish_time and start_time is the duration of the build's execution.
3132
* `gitConfig` (*type:* `GoogleApi.CloudBuild.V1.Model.GitConfig.t`, *default:* `nil`) - Optional. Configuration for git operations.
@@ -61,6 +62,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Build do
6162
:availableSecrets => GoogleApi.CloudBuild.V1.Model.Secrets.t() | nil,
6263
:buildTriggerId => String.t() | nil,
6364
:createTime => DateTime.t() | nil,
65+
:dependencies => list(GoogleApi.CloudBuild.V1.Model.Dependency.t()) | nil,
6466
:failureInfo => GoogleApi.CloudBuild.V1.Model.FailureInfo.t() | nil,
6567
:finishTime => DateTime.t() | nil,
6668
:gitConfig => GoogleApi.CloudBuild.V1.Model.GitConfig.t() | nil,
@@ -93,6 +95,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.Build do
9395
field(:availableSecrets, as: GoogleApi.CloudBuild.V1.Model.Secrets)
9496
field(:buildTriggerId)
9597
field(:createTime, as: DateTime)
98+
field(:dependencies, as: GoogleApi.CloudBuild.V1.Model.Dependency, type: :list)
9699
field(:failureInfo, as: GoogleApi.CloudBuild.V1.Model.FailureInfo)
97100
field(:finishTime, as: DateTime)
98101
field(:gitConfig, as: GoogleApi.CloudBuild.V1.Model.GitConfig)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
3131
* `logging` (*type:* `String.t`, *default:* `nil`) - Option to specify the logging mode, which determines if and where build logs are stored.
3232
* `machineType` (*type:* `String.t`, *default:* `nil`) - Compute Engine machine type on which to run the build.
3333
* `pool` (*type:* `GoogleApi.CloudBuild.V1.Model.PoolOption.t`, *default:* `nil`) - Optional. Specification for execution on a `WorkerPool`. See [running builds in a private pool](https://cloud.google.com/build/docs/private-pools/run-builds-in-private-pool) for more information.
34+
* `pubsubTopic` (*type:* `String.t`, *default:* `nil`) - Optional. Option to specify the Pub/Sub topic to receive build status updates.
3435
* `requestedVerifyOption` (*type:* `String.t`, *default:* `nil`) - Requested verifiability options.
3536
* `secretEnv` (*type:* `list(String.t)`, *default:* `nil`) - A list of global environment variables, which are encrypted using a Cloud Key Management Service crypto key. These values must be specified in the build's `Secret`. These variables will be available to all build steps in this build.
3637
* `sourceProvenanceHash` (*type:* `list(String.t)`, *default:* `nil`) - Requested hash for SourceProvenance.
@@ -52,6 +53,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
5253
:logging => String.t() | nil,
5354
:machineType => String.t() | nil,
5455
:pool => GoogleApi.CloudBuild.V1.Model.PoolOption.t() | nil,
56+
:pubsubTopic => String.t() | nil,
5557
:requestedVerifyOption => String.t() | nil,
5658
:secretEnv => list(String.t()) | nil,
5759
:sourceProvenanceHash => list(String.t()) | nil,
@@ -70,6 +72,7 @@ defmodule GoogleApi.CloudBuild.V1.Model.BuildOptions do
7072
field(:logging)
7173
field(:machineType)
7274
field(:pool, as: GoogleApi.CloudBuild.V1.Model.PoolOption)
75+
field(:pubsubTopic)
7376
field(:requestedVerifyOption)
7477
field(:secretEnv, type: :list)
7578
field(:sourceProvenanceHash, type: :list)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.Dependency do
19+
@moduledoc """
20+
A dependency that the Cloud Build worker will fetch before executing user steps.
21+
22+
## Attributes
23+
24+
* `empty` (*type:* `boolean()`, *default:* `nil`) - If set to true disable all dependency fetching (ignoring the default source as well).
25+
* `gitSource` (*type:* `GoogleApi.CloudBuild.V1.Model.GitSourceDependency.t`, *default:* `nil`) - Represents a git repository as a build dependency.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:empty => boolean() | nil,
32+
:gitSource => GoogleApi.CloudBuild.V1.Model.GitSourceDependency.t() | nil
33+
}
34+
35+
field(:empty)
36+
field(:gitSource, as: GoogleApi.CloudBuild.V1.Model.GitSourceDependency)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.Dependency do
40+
def decode(value, options) do
41+
GoogleApi.CloudBuild.V1.Model.Dependency.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.Dependency do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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.GitSourceDependency do
19+
@moduledoc """
20+
Represents a git repository as a build dependency.
21+
22+
## Attributes
23+
24+
* `depth` (*type:* `String.t`, *default:* `nil`) - Optional. How much history should be fetched for the build (default 1, -1 for all history).
25+
* `destPath` (*type:* `String.t`, *default:* `nil`) - Required. Where should the files be placed on the worker.
26+
* `recurseSubmodules` (*type:* `boolean()`, *default:* `nil`) - Optional. True if submodules should be fetched too (default false).
27+
* `repository` (*type:* `GoogleApi.CloudBuild.V1.Model.GitSourceRepository.t`, *default:* `nil`) - Required. The kind of repo (url or dev connect).
28+
* `revision` (*type:* `String.t`, *default:* `nil`) - Required. The revision that we will fetch the repo at.
29+
"""
30+
31+
use GoogleApi.Gax.ModelBase
32+
33+
@type t :: %__MODULE__{
34+
:depth => String.t() | nil,
35+
:destPath => String.t() | nil,
36+
:recurseSubmodules => boolean() | nil,
37+
:repository => GoogleApi.CloudBuild.V1.Model.GitSourceRepository.t() | nil,
38+
:revision => String.t() | nil
39+
}
40+
41+
field(:depth)
42+
field(:destPath)
43+
field(:recurseSubmodules)
44+
field(:repository, as: GoogleApi.CloudBuild.V1.Model.GitSourceRepository)
45+
field(:revision)
46+
end
47+
48+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.GitSourceDependency do
49+
def decode(value, options) do
50+
GoogleApi.CloudBuild.V1.Model.GitSourceDependency.decode(value, options)
51+
end
52+
end
53+
54+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.GitSourceDependency do
55+
def encode(value, options) do
56+
GoogleApi.Gax.ModelBase.encode(value, options)
57+
end
58+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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.GitSourceRepository do
19+
@moduledoc """
20+
A repository for a git source.
21+
22+
## Attributes
23+
24+
* `developerConnect` (*type:* `String.t`, *default:* `nil`) - The Developer Connect Git repository link or the url that matches a repository link in the current project, formatted as `projects/*/locations/*/connections/*/gitRepositoryLink/*`
25+
* `url` (*type:* `String.t`, *default:* `nil`) - Location of the Git repository.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:developerConnect => String.t() | nil,
32+
:url => String.t() | nil
33+
}
34+
35+
field(:developerConnect)
36+
field(:url)
37+
end
38+
39+
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V1.Model.GitSourceRepository do
40+
def decode(value, options) do
41+
GoogleApi.CloudBuild.V1.Model.GitSourceRepository.decode(value, options)
42+
end
43+
end
44+
45+
defimpl Poison.Encoder, for: GoogleApi.CloudBuild.V1.Model.GitSourceRepository do
46+
def encode(value, options) do
47+
GoogleApi.Gax.ModelBase.encode(value, options)
48+
end
49+
end

clients/cloud_build/lib/google_api/cloud_build/v2/api/projects.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ defmodule GoogleApi.CloudBuild.V2.Api.Projects do
538538
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
539539
* `:pageSize` (*type:* `integer()`) - Number of results to return in the list.
540540
* `:pageToken` (*type:* `String.t`) - Page start.
541+
* `:returnPartialSuccess` (*type:* `boolean()`) - Optional. If set to true, the response will return partial results when some regions are unreachable. If set to false, the response will fail if any region is unreachable.
541542
* `opts` (*type:* `keyword()`) - Call options
542543
543544
## Returns
@@ -574,7 +575,8 @@ defmodule GoogleApi.CloudBuild.V2.Api.Projects do
574575
:uploadType => :query,
575576
:upload_protocol => :query,
576577
:pageSize => :query,
577-
:pageToken => :query
578+
:pageToken => :query,
579+
:returnPartialSuccess => :query
578580
}
579581

580582
request =
@@ -1423,6 +1425,7 @@ defmodule GoogleApi.CloudBuild.V2.Api.Projects do
14231425
* `:filter` (*type:* `String.t`) - A filter expression that filters resources listed in the response. Expressions must follow API improvement proposal [AIP-160](https://google.aip.dev/160). e.g. `remote_uri:"https://github.com*"`.
14241426
* `:pageSize` (*type:* `integer()`) - Number of results to return in the list.
14251427
* `:pageToken` (*type:* `String.t`) - Page start.
1428+
* `:returnPartialSuccess` (*type:* `boolean()`) - Optional. If set to true, the response will return partial results when some regions are unreachable. If set to false, the response will fail if any region is unreachable.
14261429
* `opts` (*type:* `keyword()`) - Call options
14271430
14281431
## Returns
@@ -1460,7 +1463,8 @@ defmodule GoogleApi.CloudBuild.V2.Api.Projects do
14601463
:upload_protocol => :query,
14611464
:filter => :query,
14621465
:pageSize => :query,
1463-
:pageToken => :query
1466+
:pageToken => :query,
1467+
:returnPartialSuccess => :query
14641468
}
14651469

14661470
request =

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

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

23-
@discovery_revision "20250129"
23+
@discovery_revision "20250211"
2424

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

clients/cloud_build/lib/google_api/cloud_build/v2/model/list_connections_response.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.CloudBuild.V2.Model.ListConnectionsResponse do
2323
2424
* `connections` (*type:* `list(GoogleApi.CloudBuild.V2.Model.Connection.t)`, *default:* `nil`) - The list of Connections.
2525
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results the server should return.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:connections => list(GoogleApi.CloudBuild.V2.Model.Connection.t()) | nil,
32-
:nextPageToken => String.t() | nil
33+
:nextPageToken => String.t() | nil,
34+
:unreachable => list(String.t()) | nil
3335
}
3436

3537
field(:connections, as: GoogleApi.CloudBuild.V2.Model.Connection, type: :list)
3638
field(:nextPageToken)
39+
field(:unreachable, type: :list)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V2.Model.ListConnectionsResponse do

clients/cloud_build/lib/google_api/cloud_build/v2/model/list_repositories_response.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,20 @@ defmodule GoogleApi.CloudBuild.V2.Model.ListRepositoriesResponse do
2323
2424
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token identifying a page of results the server should return.
2525
* `repositories` (*type:* `list(GoogleApi.CloudBuild.V2.Model.Repository.t)`, *default:* `nil`) - The list of Repositories.
26+
* `unreachable` (*type:* `list(String.t)`, *default:* `nil`) - Locations that could not be reached.
2627
"""
2728

2829
use GoogleApi.Gax.ModelBase
2930

3031
@type t :: %__MODULE__{
3132
:nextPageToken => String.t() | nil,
32-
:repositories => list(GoogleApi.CloudBuild.V2.Model.Repository.t()) | nil
33+
:repositories => list(GoogleApi.CloudBuild.V2.Model.Repository.t()) | nil,
34+
:unreachable => list(String.t()) | nil
3335
}
3436

3537
field(:nextPageToken)
3638
field(:repositories, as: GoogleApi.CloudBuild.V2.Model.Repository, type: :list)
39+
field(:unreachable, type: :list)
3740
end
3841

3942
defimpl Poison.Decoder, for: GoogleApi.CloudBuild.V2.Model.ListRepositoriesResponse do

0 commit comments

Comments
 (0)