public sealed class ExecStepConfig : IMessage<ExecStepConfig>, IEquatable<ExecStepConfig>, IDeepCloneable<ExecStepConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud OS Config v1 API class ExecStepConfig.
Common configurations for an ExecStep.
Implements
IMessageExecStepConfig, IEquatableExecStepConfig, IDeepCloneableExecStepConfig, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1Assembly
Google.Cloud.OsConfig.V1.dll
Constructors
ExecStepConfig()
public ExecStepConfig()
ExecStepConfig(ExecStepConfig)
public ExecStepConfig(ExecStepConfig other)
Parameter | |
---|---|
Name | Description |
other |
ExecStepConfig |
Properties
AllowedSuccessCodes
public RepeatedField<int> AllowedSuccessCodes { get; }
Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
Property Value | |
---|---|
Type | Description |
RepeatedFieldint |
ExecutableCase
public ExecStepConfig.ExecutableOneofCase ExecutableCase { get; }
Property Value | |
---|---|
Type | Description |
ExecStepConfigExecutableOneofCase |
GcsObject
public GcsObject GcsObject { get; set; }
A Cloud Storage object containing the executable.
Property Value | |
---|---|
Type | Description |
GcsObject |
HasLocalPath
public bool HasLocalPath { get; }
Gets whether the "local_path" field is set
Property Value | |
---|---|
Type | Description |
bool |
Interpreter
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.
Property Value | |
---|---|
Type | Description |
ExecStepConfigTypesInterpreter |
LocalPath
public string LocalPath { get; set; }
An absolute path to the executable on the VM.
Property Value | |
---|---|
Type | Description |
string |