Interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder (2.22.0)

public static interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedExitCodes(int index)

public abstract int getAllowedExitCodes(int index)

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]

repeated int32 allowed_exit_codes = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The allowedExitCodes at the given index.

getAllowedExitCodesCount()

public abstract int getAllowedExitCodesCount()

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]

repeated int32 allowed_exit_codes = 2;

Returns
TypeDescription
int

The count of allowedExitCodes.

getAllowedExitCodesList()

public abstract List<Integer> getAllowedExitCodesList()

Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0]

repeated int32 allowed_exit_codes = 2;

Returns
TypeDescription
List<Integer>

A list containing the allowedExitCodes.

getInterpreter()

public abstract GuestPolicies.SoftwareRecipe.Step.RunScript.Interpreter getInterpreter()

The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with shebang lines).

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;

Returns
TypeDescription
GuestPolicies.SoftwareRecipe.Step.RunScript.Interpreter

The interpreter.

getInterpreterValue()

public abstract int getInterpreterValue()

The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with shebang lines).

.google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for interpreter.

getScript()

public abstract String getScript()

Required. The shell script to be executed.

string script = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The script.

getScriptBytes()

public abstract ByteString getScriptBytes()

Required. The shell script to be executed.

string script = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for script.