public ExecStepConfig.Types.Interpreter Interpreter { get; set; }
The script interpreter to use to run the script. If no interpreter is
specified the script will be executed directly, which will likely
only succeed for scripts with shebang lines.
[[["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-12 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eExecStepConfig\u003c/code\u003e class in the Google Cloud OS Config v1 API defines common configurations for an executable step, allowing for detailed customization of execution processes.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.OsConfig.V1\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.OsConfig.V1.dll\u003c/code\u003e assembly, with the latest version being 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eExecStepConfig\u003c/code\u003e objects can specify an executable through a Cloud Storage object (\u003ccode\u003eGcsObject\u003c/code\u003e) or a local path on the VM (\u003ccode\u003eLocalPath\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInterpreter\u003c/code\u003e property allows you to specify the script interpreter to use, or if unspecified, the script will run directly via its shebang line.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllowedSuccessCodes\u003c/code\u003e property defines the return values indicating a successful execution, defaulting to \u003ccode\u003e[0]\u003c/code\u003e unless otherwise specified.\u003c/p\u003e\n"]]],[],null,["# Google Cloud OS Config v1 API - Class ExecStepConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.4.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.3.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.2.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.1.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/2.0.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.8.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.7.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.6.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.5.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.4.0/Google.Cloud.OsConfig.V1.ExecStepConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/1.3.0/Google.Cloud.OsConfig.V1.ExecStepConfig) \n\n public sealed class ExecStepConfig : IMessage\u003cExecStepConfig\u003e, IEquatable\u003cExecStepConfig\u003e, IDeepCloneable\u003cExecStepConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud OS Config v1 API class ExecStepConfig.\n\nCommon configurations for an ExecStep. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ExecStepConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ExecStepConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecStepConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ExecStepConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecStepConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ExecStepConfig](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1.ExecStepConfig), [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.OsConfig.V1](/dotnet/docs/reference/Google.Cloud.OsConfig.V1/latest/Google.Cloud.OsConfig.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.OsConfig.V1.dll\n\nConstructors\n------------\n\n### ExecStepConfig()\n\n public ExecStepConfig()\n\n### ExecStepConfig(ExecStepConfig)\n\n public ExecStepConfig(ExecStepConfig other)\n\nProperties\n----------\n\n### AllowedSuccessCodes\n\n public RepeatedField\u003cint\u003e AllowedSuccessCodes { get; }\n\nDefaults to \\[0\\]. A list of possible return values that the\nexecution can return to indicate a success.\n\n### ExecutableCase\n\n public ExecStepConfig.ExecutableOneofCase ExecutableCase { get; }\n\n### GcsObject\n\n public GcsObject GcsObject { get; set; }\n\nA Cloud Storage object containing the executable.\n\n### HasLocalPath\n\n public bool HasLocalPath { get; }\n\nGets whether the \"local_path\" field is set\n\n### Interpreter\n\n public ExecStepConfig.Types.Interpreter Interpreter { get; set; }\n\nThe script interpreter to use to run the script. If no interpreter is\nspecified the script will be executed directly, which will likely\nonly succeed for scripts with [shebang lines](https://en.wikipedia.org/wiki/Shebang_(Unix)).\n\n### LocalPath\n\n public string LocalPath { get; set; }\n\nAn absolute path to the executable on the VM."]]