public sealed class Task.Types.ExecutionSpec : IMessage<Task.Types.ExecutionSpec>, IEquatable<Task.Types.ExecutionSpec>, IDeepCloneable<Task.Types.ExecutionSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Dataplex v1 API class Task.Types.ExecutionSpec.
Execution related settings, like retry and service_account.
Optional. The arguments to pass to the task.
The args can use placeholders of the format ${placeholder} as
part of key/value string. These will be interpolated before passing the
args to the driver. Currently supported placeholders:
${task_id}
${job_time}
To pass positional args, set the key as TASK_ARGS. The value should be a
comma-separated string of all the positional arguments. To use a
delimiter other than comma, refer to
https://cloud.google.com/sdk/gcloud/reference/topic/escaping. In case of
other keys being present in the args, then TASK_ARGS will be passed as
the last argument.
Optional. The Cloud KMS key to use for encryption, of the form:
projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}.
Optional. The project in which jobs are run. By default, the project
containing the Lake is used. If a project is provided, the
[ExecutionSpec.service_account][google.cloud.dataplex.v1.Task.ExecutionSpec.service_account]
must belong to this project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe page provides documentation for the \u003ccode\u003eTask.Types.ExecutionSpec\u003c/code\u003e class within the Google Cloud Dataplex V1 API, detailing execution-related settings for tasks.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the \u003ccode\u003eTask.Types.ExecutionSpec\u003c/code\u003e class are available, ranging from version 1.0.0 to the latest version, 3.6.0, with links to specific version documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExecutionSpec\u003c/code\u003e class includes properties such as \u003ccode\u003eArgs\u003c/code\u003e for task arguments, \u003ccode\u003eKmsKey\u003c/code\u003e for encryption, \u003ccode\u003eMaxJobExecutionLifetime\u003c/code\u003e for job duration, \u003ccode\u003eProject\u003c/code\u003e for job execution location, and \u003ccode\u003eServiceAccount\u003c/code\u003e for task execution identity.\u003c/p\u003e\n"],["\u003cp\u003eThe Task.Types.ExecutionSpec can implement the interface IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe Task.Types.ExecutionSpec class has 2 constructors.\u003c/p\u003e\n"]]],[],null,["# Cloud Dataplex v1 API - Class Task.Types.ExecutionSpec (3.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.8.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.7.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.6.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.5.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.4.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.3.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.2.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.1.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/3.0.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.15.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.14.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.13.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.12.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.11.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.10.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.9.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.8.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.7.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.6.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.5.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.4.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.3.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.2.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.1.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/2.0.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/1.0.0/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec) \n\n public sealed class Task.Types.ExecutionSpec : IMessage\u003cTask.Types.ExecutionSpec\u003e, IEquatable\u003cTask.Types.ExecutionSpec\u003e, IDeepCloneable\u003cTask.Types.ExecutionSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Dataplex v1 API class Task.Types.ExecutionSpec.\n\nExecution related settings, like retry and service_account. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Task.Types.ExecutionSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Task](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types)[ExecutionSpec](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Task](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types)[ExecutionSpec](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Task](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task)[Types](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types)[ExecutionSpec](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1.Task.Types.ExecutionSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dataplex.V1](/dotnet/docs/reference/Google.Cloud.Dataplex.V1/latest/Google.Cloud.Dataplex.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataplex.V1.dll\n\nConstructors\n------------\n\n### ExecutionSpec()\n\n public ExecutionSpec()\n\n### ExecutionSpec(ExecutionSpec)\n\n public ExecutionSpec(Task.Types.ExecutionSpec other)\n\nProperties\n----------\n\n### Args\n\n public MapField\u003cstring, string\u003e Args { get; }\n\nOptional. The arguments to pass to the task.\nThe args can use placeholders of the format ${placeholder} as\npart of key/value string. These will be interpolated before passing the\nargs to the driver. Currently supported placeholders:\n\n- ${task_id}\n- ${job_time} To pass positional args, set the key as TASK_ARGS. The value should be a comma-separated string of all the positional arguments. To use a delimiter other than comma, refer to \u003chttps://cloud.google.com/sdk/gcloud/reference/topic/escaping\u003e. In case of other keys being present in the args, then TASK_ARGS will be passed as the last argument.\n\n### KmsKey\n\n public string KmsKey { get; set; }\n\nOptional. The Cloud KMS key to use for encryption, of the form:\n`projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}`.\n\n### MaxJobExecutionLifetime\n\n public Duration MaxJobExecutionLifetime { get; set; }\n\nOptional. The maximum duration after which the job execution is expired.\n\n### Project\n\n public string Project { get; set; }\n\nOptional. The project in which jobs are run. By default, the project\ncontaining the Lake is used. If a project is provided, the\n\\[ExecutionSpec.service_account\\]\\[google.cloud.dataplex.v1.Task.ExecutionSpec.service_account\\]\nmust belong to this project.\n\n### ServiceAccount\n\n public string ServiceAccount { get; set; }\n\nRequired. Service account to use to execute a task.\nIf not provided, the default Compute service account for the project is\nused."]]