Interface OSPolicy.Resource.ExecResource.ExecOrBuilder (2.9.0)

public static interface OSPolicy.Resource.ExecResource.ExecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getArgs(int index)

public abstract String getArgs(int index)

Optional arguments to pass to the source during execution.

repeated string args = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The args at the given index.

getArgsBytes(int index)

public abstract ByteString getArgsBytes(int index)

Optional arguments to pass to the source during execution.

repeated string args = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the args at the given index.

getArgsCount()

public abstract int getArgsCount()

Optional arguments to pass to the source during execution.

repeated string args = 3;

Returns
TypeDescription
int

The count of args.

getArgsList()

public abstract List<String> getArgsList()

Optional arguments to pass to the source during execution.

repeated string args = 3;

Returns
TypeDescription
List<String>

A list containing the args.

getFile()

public abstract OSPolicy.Resource.File getFile()

A remote or local file.

.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;

Returns
TypeDescription
OSPolicy.Resource.File

The file.

getFileOrBuilder()

public abstract OSPolicy.Resource.FileOrBuilder getFileOrBuilder()

A remote or local file.

.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;

Returns
TypeDescription
OSPolicy.Resource.FileOrBuilder

getInterpreter()

public abstract OSPolicy.Resource.ExecResource.Exec.Interpreter getInterpreter()

Required. The script interpreter to use.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.ExecResource.Exec.Interpreter

The interpreter.

getInterpreterValue()

public abstract int getInterpreterValue()

Required. The script interpreter to use.

.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for interpreter.

getOutputFilePath()

public abstract String getOutputFilePath()

Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.

string output_file_path = 5;

Returns
TypeDescription
String

The outputFilePath.

getOutputFilePathBytes()

public abstract ByteString getOutputFilePathBytes()

Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.

string output_file_path = 5;

Returns
TypeDescription
ByteString

The bytes for outputFilePath.

getScript()

public abstract String getScript()

An inline script. The size of the script is limited to 1024 characters.

string script = 2;

Returns
TypeDescription
String

The script.

getScriptBytes()

public abstract ByteString getScriptBytes()

An inline script. The size of the script is limited to 1024 characters.

string script = 2;

Returns
TypeDescription
ByteString

The bytes for script.

getSourceCase()

public abstract OSPolicy.Resource.ExecResource.Exec.SourceCase getSourceCase()
Returns
TypeDescription
OSPolicy.Resource.ExecResource.Exec.SourceCase

hasFile()

public abstract boolean hasFile()

A remote or local file.

.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;

Returns
TypeDescription
boolean

Whether the file field is set.

hasScript()

public abstract boolean hasScript()

An inline script. The size of the script is limited to 1024 characters.

string script = 2;

Returns
TypeDescription
boolean

Whether the script field is set.