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
Modifier and TypeMethodDescriptiongetArgs(int index) Optional arguments to pass to the source during execution.com.google.protobuf.ByteStringgetArgsBytes(int index) Optional arguments to pass to the source during execution.intOptional arguments to pass to the source during execution.Optional arguments to pass to the source during execution.getFile()A remote or local file.A remote or local file.Required.intRequired.Only recorded for enforce Exec.com.google.protobuf.ByteStringOnly recorded for enforce Exec.An inline script.com.google.protobuf.ByteStringAn inline script.booleanhasFile()A remote or local file.booleanAn inline script.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasFile
boolean hasFile()A remote or local file.
.google.cloud.osconfig.v1alpha.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.v1alpha.OSPolicy.Resource.File file = 1;- Returns:
- The file.
-
getFileOrBuilder
OSPolicy.Resource.FileOrBuilder getFileOrBuilder()A remote or local file.
.google.cloud.osconfig.v1alpha.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
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
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.v1alpha.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.v1alpha.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()
-