Skip to content

Commit 79f2577

Browse files
feat: Automated regeneration of Dataproc client (googleapis#13187)
Auto-created at 2025-03-19 13:20:12 +0000 using the toys pull request generator.
1 parent 2e05f6c commit 79f2577

14 files changed

+858
-4
lines changed

clients/dataproc/lib/google_api/dataproc/v1/api/projects.ex

Lines changed: 474 additions & 0 deletions
Large diffs are not rendered by default.

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

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

23-
@discovery_revision "20250207"
23+
@discovery_revision "20250315"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.Dataproc.V1.Model.AccessSessionSparkApplicationNativeBuildInfoResponse do
19+
@moduledoc """
20+
Details of a native build info for a Spark Application
21+
22+
## Attributes
23+
24+
* `executionData` (*type:* `GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t`, *default:* `nil`) - Native SQL Execution Data
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:executionData => GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t() | nil
31+
}
32+
33+
field(:executionData, as: GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeBuildInfoResponse do
38+
def decode(value, options) do
39+
GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeBuildInfoResponse.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeBuildInfoResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.Dataproc.V1.Model.AccessSessionSparkApplicationNativeSqlQueryResponse do
19+
@moduledoc """
20+
Details of a native query for a Spark Application
21+
22+
## Attributes
23+
24+
* `executionData` (*type:* `GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t`, *default:* `nil`) - Native SQL Execution Data
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:executionData => GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t() | nil
31+
}
32+
33+
field(:executionData, as: GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeSqlQueryResponse do
38+
def decode(value, options) do
39+
GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeSqlQueryResponse.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Dataproc.V1.Model.AccessSessionSparkApplicationNativeSqlQueryResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.Dataproc.V1.Model.AccessSparkApplicationNativeBuildInfoResponse do
19+
@moduledoc """
20+
Details of Native Build Info for a Spark Application
21+
22+
## Attributes
23+
24+
* `buildInfo` (*type:* `GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t`, *default:* `nil`) - Native Build Info Data
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:buildInfo => GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData.t() | nil
31+
}
32+
33+
field(:buildInfo, as: GoogleApi.Dataproc.V1.Model.NativeBuildInfoUiData)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeBuildInfoResponse do
38+
def decode(value, options) do
39+
GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeBuildInfoResponse.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeBuildInfoResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.Dataproc.V1.Model.AccessSparkApplicationNativeSqlQueryResponse do
19+
@moduledoc """
20+
Details of a query for a Spark Application
21+
22+
## Attributes
23+
24+
* `executionData` (*type:* `GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t`, *default:* `nil`) - Native SQL Execution Data
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:executionData => GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData.t() | nil
31+
}
32+
33+
field(:executionData, as: GoogleApi.Dataproc.V1.Model.NativeSqlExecutionUiData)
34+
end
35+
36+
defimpl Poison.Decoder,
37+
for: GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeSqlQueryResponse do
38+
def decode(value, options) do
39+
GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeSqlQueryResponse.decode(
40+
value,
41+
options
42+
)
43+
end
44+
end
45+
46+
defimpl Poison.Encoder,
47+
for: GoogleApi.Dataproc.V1.Model.AccessSparkApplicationNativeSqlQueryResponse do
48+
def encode(value, options) do
49+
GoogleApi.Gax.ModelBase.encode(value, options)
50+
end
51+
end
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Dataproc.V1.Model.AuthenticationConfig do
19+
@moduledoc """
20+
Authentication configuration for a workload is used to set the default identity for the workload execution. The config specifies the type of identity (service account or user) that will be used by workloads to access resources on the project(s).
21+
22+
## Attributes
23+
24+
* `userWorkloadAuthenticationType` (*type:* `String.t`, *default:* `nil`) - Optional. Authentication type for the user workload running in containers.
25+
"""
26+
27+
use GoogleApi.Gax.ModelBase
28+
29+
@type t :: %__MODULE__{
30+
:userWorkloadAuthenticationType => String.t() | nil
31+
}
32+
33+
field(:userWorkloadAuthenticationType)
34+
end
35+
36+
defimpl Poison.Decoder, for: GoogleApi.Dataproc.V1.Model.AuthenticationConfig do
37+
def decode(value, options) do
38+
GoogleApi.Dataproc.V1.Model.AuthenticationConfig.decode(value, options)
39+
end
40+
end
41+
42+
defimpl Poison.Encoder, for: GoogleApi.Dataproc.V1.Model.AuthenticationConfig do
43+
def encode(value, options) do
44+
GoogleApi.Gax.ModelBase.encode(value, options)
45+
end
46+
end

clients/dataproc/lib/google_api/dataproc/v1/model/execution_config.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ExecutionConfig do
2121
2222
## Attributes
2323
24+
* `authenticationConfig` (*type:* `GoogleApi.Dataproc.V1.Model.AuthenticationConfig.t`, *default:* `nil`) - Optional. Authentication configuration used to set the default identity for the workload execution. The config specifies the type of identity (service account or user) that will be used by workloads to access resources on the project(s).
2425
* `idleTtl` (*type:* `String.t`, *default:* `nil`) - Optional. Applies to sessions only. The duration to keep the session alive while it's idling. Exceeding this threshold causes the session to terminate. This field cannot be set on a batch workload. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 1 hour if not set. If both ttl and idle_ttl are specified for an interactive session, the conditions are treated as OR conditions: the workload will be terminated when it has been idle for idle_ttl or when ttl has been exceeded, whichever occurs first.
2526
* `kmsKey` (*type:* `String.t`, *default:* `nil`) - Optional. The Cloud KMS key to use for encryption.
2627
* `networkTags` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Tags used for network traffic control.
@@ -34,6 +35,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ExecutionConfig do
3435
use GoogleApi.Gax.ModelBase
3536

3637
@type t :: %__MODULE__{
38+
:authenticationConfig => GoogleApi.Dataproc.V1.Model.AuthenticationConfig.t() | nil,
3739
:idleTtl => String.t() | nil,
3840
:kmsKey => String.t() | nil,
3941
:networkTags => list(String.t()) | nil,
@@ -44,6 +46,7 @@ defmodule GoogleApi.Dataproc.V1.Model.ExecutionConfig do
4446
:ttl => String.t() | nil
4547
}
4648

49+
field(:authenticationConfig, as: GoogleApi.Dataproc.V1.Model.AuthenticationConfig)
4750
field(:idleTtl)
4851
field(:kmsKey)
4952
field(:networkTags, type: :list)

clients/dataproc/lib/google_api/dataproc/v1/model/gce_cluster_config.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ defmodule GoogleApi.Dataproc.V1.Model.GceClusterConfig do
2828
* `nodeGroupAffinity` (*type:* `GoogleApi.Dataproc.V1.Model.NodeGroupAffinity.t`, *default:* `nil`) - Optional. Node Group Affinity for sole-tenant clusters.
2929
* `privateIpv6GoogleAccess` (*type:* `String.t`, *default:* `nil`) - Optional. The type of IPv6 access for a cluster.
3030
* `reservationAffinity` (*type:* `GoogleApi.Dataproc.V1.Model.ReservationAffinity.t`, *default:* `nil`) - Optional. Reservation Affinity for consuming Zonal reservation.
31-
* `resourceManagerTags` (*type:* `map()`, *default:* `nil`) - Optional. Resource manager tags to add to all instances (see Resource manager tags resources (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)).
31+
* `resourceManagerTags` (*type:* `map()`, *default:* `nil`) - Optional. Resource manager tags (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) to add to all instances (see Use secure tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/attach-secure-tags)).
3232
* `serviceAccount` (*type:* `String.t`, *default:* `nil`) - Optional. The Dataproc service account (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/service-accounts#service_accounts_in_dataproc) (also see VM Data Plane identity (https://cloud.google.com/dataproc/docs/concepts/iam/dataproc-principals#vm_service_account_data_plane_identity)) used by Dataproc cluster VM instances to access Google Cloud Platform services.If not specified, the Compute Engine default service account (https://cloud.google.com/compute/docs/access/service-accounts#default_service_account) is used.
3333
* `serviceAccountScopes` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The URIs of service account scopes to be included in Compute Engine instances. The following base set of scopes is always included: https://www.googleapis.com/auth/cloud.useraccounts.readonly https://www.googleapis.com/auth/devstorage.read_write https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the following defaults are also provided: https://www.googleapis.com/auth/bigquery https://www.googleapis.com/auth/bigtable.admin.table https://www.googleapis.com/auth/bigtable.data https://www.googleapis.com/auth/devstorage.full_control
3434
* `shieldedInstanceConfig` (*type:* `GoogleApi.Dataproc.V1.Model.ShieldedInstanceConfig.t`, *default:* `nil`) - Optional. Shielded Instance Config for clusters using Compute Engine Shielded VMs (https://cloud.google.com/security/shielded-cloud/shielded-vm).

clients/dataproc/lib/google_api/dataproc/v1/model/metric.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defmodule GoogleApi.Dataproc.V1.Model.Metric do
2121
2222
## Attributes
2323
24-
* `metricOverrides` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK andd YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.
24+
* `metricOverrides` (*type:* `list(String.t)`, *default:* `nil`) - Optional. Specify one or more Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) to collect for the metric course (for the SPARK metric source (any Spark metric (https://spark.apache.org/docs/latest/monitoring.html#metrics) can be specified).Provide metrics in the following format: METRIC_SOURCE: INSTANCE:GROUP:METRIC Use camelcase as appropriate.Examples: yarn:ResourceManager:QueueMetrics:AppsCompleted spark:driver:DAGScheduler:job.allJobs sparkHistoryServer:JVM:Memory:NonHeapMemoryUsage.committed hiveserver2:JVM:Memory:NonHeapMemoryUsage.used Notes: Only the specified overridden metrics are collected for the metric source. For example, if one or more spark:executive metrics are listed as metric overrides, other SPARK metrics are not collected. The collection of the metrics for other enabled custom metric sources is unaffected. For example, if both SPARK and YARN metric sources are enabled, and overrides are provided for Spark metrics only, all YARN metrics are collected.
2525
* `metricSource` (*type:* `String.t`, *default:* `nil`) - Required. A standard set of metrics is collected unless metricOverrides are specified for the metric source (see Custom metrics (https://cloud.google.com/dataproc/docs/guides/dataproc-metrics#custom_metrics) for more information).
2626
"""
2727

0 commit comments

Comments
 (0)