A file or script to execute.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#args
def args() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional arguments to pass to the source during execution.
#args=
def args=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional arguments to pass to the source during execution.
Returns
- (::Array<::String>) — Optional arguments to pass to the source during execution.
#file
def file() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File) — A remote or local file.
#file=
def file=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File
Parameter
- value (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File) — A remote or local file.
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File) — A remote or local file.
#interpreter
def interpreter() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
#interpreter=
def interpreter=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter
Parameter
- value (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
Returns
- (::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
#output_file_path
def output_file_path() -> ::String
Returns
- (::String) — 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.
#output_file_path=
def output_file_path=(value) -> ::String
Parameter
- value (::String) — 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.
Returns
- (::String) — 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.
#script
def script() -> ::String
Returns
- (::String) — An inline script. The size of the script is limited to 1024 characters.
#script=
def script=(value) -> ::String
Parameter
- value (::String) — An inline script. The size of the script is limited to 1024 characters.
Returns
- (::String) — An inline script. The size of the script is limited to 1024 characters.