Reference documentation and code samples for the Google Cloud OS Config v1 API enum OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter.
If an interpreter is not specified, the
source is executed directly. This execution, without an
interpreter, only succeeds for executables and scripts that have <a
href="https://en.wikipedia.org/wiki/Shebang_(Unix)"
class="external">shebang lines</a>.
Powershell
Indicates that the script runs with PowerShell.
Shell
Indicates that the script runs with /bin/sh on Linux and
cmd.exe on Windows.
Unspecified
Invalid value, the request will return validation error.
[[["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\u003eThis webpage provides documentation for the \u003ccode\u003eOSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter\u003c/code\u003e enum within the Google Cloud OS Config v1 API, specifically version 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInterpreter\u003c/code\u003e enum specifies how a script or executable should be run, offering options such as \u003ccode\u003eNone\u003c/code\u003e, \u003ccode\u003ePowershell\u003c/code\u003e, \u003ccode\u003eShell\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNone\u003c/code\u003e option means the file will run directly, typically relying on a shebang line, while \u003ccode\u003ePowershell\u003c/code\u003e uses PowerShell, and \u003ccode\u003eShell\u003c/code\u003e uses \u003ccode\u003e/bin/sh\u003c/code\u003e on Linux or \u003ccode\u003ecmd.exe\u003c/code\u003e on Windows.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUnspecified\u003c/code\u003e value is invalid and will result in a validation error if used in a request.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is available at version 2.4.0, followed by several other versions, down to version 1.3.0, and all are related to the \u003ccode\u003eOSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter\u003c/code\u003e enum.\u003c/p\u003e\n"]]],[],null,[]]