Interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder (2.51.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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
String

The script.

getScriptBytes()

public abstract ByteString getScriptBytes()

Required. The shell script to be executed.

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

Returns
Type Description
ByteString

The bytes for script.