5.29.0 (latest) 5.28.0 5.27.0 5.26.0 5.25.0 5.24.0 5.23.0 5.22.0 5.21.0 5.20.0 5.19.0 5.18.0 5.17.0 5.16.0 5.15.0 5.14.0 5.13.0 5.12.0 5.11.0 5.10.0 5.9.0 5.8.0 5.7.0 5.6.0 5.5.0 5.4.0 5.3.0 5.2.0 5.1.0 5.0.0 4.0.0 3.4.0 3.3.0 3.2.0 3.1.0

    public sealed class ExecutionConfig : IMessage<ExecutionConfig>, IEquatable<ExecutionConfig>, IDeepCloneable<ExecutionConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dataproc v1 API class ExecutionConfig.

Execution configuration for a workload.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ExecutionConfig

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ExecutionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ExecutionConfig.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExecutionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ExecutionConfig.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ExecutionConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ExecutionConfig.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dataproc.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.md.txt)

## Assembly

Google.Cloud.Dataproc.V1.dll

## Constructors

### ExecutionConfig()

    public ExecutionConfig()

### ExecutionConfig(ExecutionConfig)

    public ExecutionConfig(ExecutionConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ExecutionConfig` |

## Properties

### AuthenticationConfig

    public AuthenticationConfig AuthenticationConfig { get; set; }

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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AuthenticationConfig` |   |

### HasNetworkUri

    public bool HasNetworkUri { get; }

Gets whether the "network_uri" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### HasSubnetworkUri

    public bool HasSubnetworkUri { get; }

Gets whether the "subnetwork_uri" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IdleTtl

    public Duration IdleTtl { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |

### KmsKey

    public string KmsKey { get; set; }

Optional. The Cloud KMS key to use for encryption.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### KmsKeyAsCryptoKeyName

    public CryptoKeyName KmsKeyAsCryptoKeyName { get; set; }

[CryptoKeyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.CryptoKeyName.md.txt)-typed view over the [KmsKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.ExecutionConfig.md.txt#Google_Cloud_Dataproc_V1_ExecutionConfig_KmsKey) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CryptoKeyName` |   |

### NetworkCase

    public ExecutionConfig.NetworkOneofCase NetworkCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ExecutionConfigNetworkOneofCase` |   |

### NetworkTags

    public RepeatedField<string> NetworkTags { get; }

Optional. Tags used for network traffic control.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### NetworkUri

    public string NetworkUri { get; set; }

Optional. Network URI to connect workload to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ResourceManagerTags

    public MapField<string, string> ResourceManagerTags { get; }

Optional. Associates Resource Manager tags with the workload nodes.
There is a max limit of 30 tags.
Keys and values can be either in numeric format, such as
`tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced
format, such as `{org_id|project_id}/{tag_key_short_name}` and
`{tag_value_short_name}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `MapFieldstringstring` |   |

### ServiceAccount

    public string ServiceAccount { get; set; }

Optional. Service account that used to execute workload.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### StagingBucket

    public string StagingBucket { get; set; }

Optional. A Cloud Storage bucket used to stage workload dependencies,
config files, and store workload output and other ephemeral data, such as
Spark history files. If you do not specify a staging bucket, Cloud Dataproc
will determine a Cloud Storage location according to the region where your
workload is running, and then create and manage project-level, per-location
staging and temporary buckets.
**This field requires a Cloud Storage bucket name, not a `gs://...` URI to
a Cloud Storage bucket.**

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### SubnetworkUri

    public string SubnetworkUri { get; set; }

Optional. Subnetwork URI to connect workload to.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Ttl

    public Duration Ttl { get; set; }

Optional. The duration after which the workload will be terminated,
specified as the JSON representation for
[Duration](https://protobuf.dev/programming-guides/proto3/#json).
When the workload exceeds this duration, it will be unconditionally
terminated without waiting for ongoing work to finish. If `ttl` is not
specified for a batch workload, the workload will be allowed to run until
it exits naturally (or run forever without exiting). If `ttl` is not
specified for an interactive session, it defaults to 24 hours. If `ttl` is
not specified for a batch that uses 2.1+ runtime version, it defaults to 4
hours. Minimum value is 10 minutes; maximum value is 14 days. 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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Duration` |   |