Package com.google.cloud.osconfig.v1
Interface OSPolicy.Resource.ExecResource.ExecOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OSPolicy.Resource.ExecResource.Exec
,OSPolicy.Resource.ExecResource.Exec.Builder
- Enclosing class:
- OSPolicy.Resource.ExecResource
public static interface OSPolicy.Resource.ExecResource.ExecOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getArgs(int index)
Optional arguments to pass to the source during execution.com.google.protobuf.ByteString
getArgsBytes(int index)
Optional arguments to pass to the source during execution.int
getArgsCount()
Optional arguments to pass to the source during execution.List<String>
getArgsList()
Optional arguments to pass to the source during execution.OSPolicy.Resource.File
getFile()
A remote or local file.OSPolicy.Resource.FileOrBuilder
getFileOrBuilder()
A remote or local file.OSPolicy.Resource.ExecResource.Exec.Interpreter
getInterpreter()
Required.int
getInterpreterValue()
Required.String
getOutputFilePath()
Only recorded for enforce Exec.com.google.protobuf.ByteString
getOutputFilePathBytes()
Only recorded for enforce Exec.String
getScript()
An inline script.com.google.protobuf.ByteString
getScriptBytes()
An inline script.OSPolicy.Resource.ExecResource.Exec.SourceCase
getSourceCase()
boolean
hasFile()
A remote or local file.boolean
hasScript()
An inline script.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasFile
boolean hasFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
- Returns:
- Whether the file field is set.
-
getFile
OSPolicy.Resource.File getFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
- Returns:
- The file.
-
getFileOrBuilder
OSPolicy.Resource.FileOrBuilder getFileOrBuilder()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;
-
hasScript
boolean hasScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
- Returns:
- Whether the script field is set.
-
getScript
String getScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
- Returns:
- The script.
-
getScriptBytes
com.google.protobuf.ByteString getScriptBytes()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;
- Returns:
- The bytes for script.
-
getArgsList
List<String> getArgsList()
Optional arguments to pass to the source during execution.
repeated string args = 3;
- Returns:
- A list containing the args.
-
getArgsCount
int getArgsCount()
Optional arguments to pass to the source during execution.
repeated string args = 3;
- Returns:
- The count of args.
-
getArgs
String getArgs(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;
- Parameters:
index
- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
com.google.protobuf.ByteString getArgsBytes(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
getInterpreterValue
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:
- The enum numeric value on the wire for interpreter.
-
getInterpreter
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:
- The interpreter.
-
getOutputFilePath
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:
- The outputFilePath.
-
getOutputFilePathBytes
com.google.protobuf.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:
- The bytes for outputFilePath.
-
getSourceCase
OSPolicy.Resource.ExecResource.Exec.SourceCase getSourceCase()
-
-