public static interface OSPolicy.Resource.ExecResource.ExecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and 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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;OSPolicy.Resource.File getFile()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;OSPolicy.Resource.FileOrBuilder getFileOrBuilder()
A remote or local file.
.google.cloud.osconfig.v1.OSPolicy.Resource.File file = 1;boolean hasScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;String getScript()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;com.google.protobuf.ByteString getScriptBytes()
An inline script. The size of the script is limited to 1024 characters.
string script = 2;List<String> getArgsList()
Optional arguments to pass to the source during execution.
repeated string args = 3;int getArgsCount()
Optional arguments to pass to the source during execution.
repeated string args = 3;String getArgs(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;index - The index of the element to return.com.google.protobuf.ByteString getArgsBytes(int index)
Optional arguments to pass to the source during execution.
repeated string args = 3;index - The index of the value to return.int getInterpreterValue()
Required. The script interpreter to use.
.google.cloud.osconfig.v1.OSPolicy.Resource.ExecResource.Exec.Interpreter interpreter = 4 [(.google.api.field_behavior) = REQUIRED];
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];
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;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;OSPolicy.Resource.ExecResource.Exec.SourceCase getSourceCase()
Copyright © 2023 Google LLC. All rights reserved.