Class ExecStepConfig (1.17.0)

ExecStepConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Common configurations for an ExecStep.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
local_path str
An absolute path to the executable on the VM. This field is a member of oneof_ executable.
gcs_object google.cloud.osconfig_v1.types.GcsObject
A Cloud Storage object containing the executable. This field is a member of oneof_ executable.
allowed_success_codes MutableSequence[int]
Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
interpreter google.cloud.osconfig_v1.types.ExecStepConfig.Interpreter
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] (https://en.wikipedia.org/wiki/Shebang_(Unix)).

Classes

Interpreter

Interpreter(value)

The interpreter used to execute the a file.

Values: INTERPRETER_UNSPECIFIED (0): Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the interpreter will be parsed from the shebang line of the script if unspecified. SHELL (1): Indicates that the script is run with /bin/sh on Linux and cmd on Windows. POWERSHELL (2): Indicates that the file is run with PowerShell flags -NonInteractive, -NoProfile, and -ExecutionPolicy Bypass.