Google Cloud OS Config v1 API - Class ExecStepConfig (2.3.0)

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.

Inheritance

object > ExecStepConfig

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

ExecStepConfig()

public ExecStepConfig()

ExecStepConfig(ExecStepConfig)

public ExecStepConfig(ExecStepConfig other)
Parameter
NameDescription
otherExecStepConfig

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
TypeDescription
RepeatedFieldint

ExecutableCase

public ExecStepConfig.ExecutableOneofCase ExecutableCase { get; }
Property Value
TypeDescription
ExecStepConfigExecutableOneofCase

GcsObject

public GcsObject GcsObject { get; set; }

A Cloud Storage object containing the executable.

Property Value
TypeDescription
GcsObject

HasLocalPath

public bool HasLocalPath { get; }

Gets whether the "local_path" field is set

Property Value
TypeDescription
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
TypeDescription
ExecStepConfigTypesInterpreter

LocalPath

public string LocalPath { get; set; }

An absolute path to the executable on the VM.

Property Value
TypeDescription
string