Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec.
A file or script to execute.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#args
def args() -> ::Array<::String>
- (::Array<::String>) — Optional arguments to pass to the source during execution.
#args=
def args=(value) -> ::Array<::String>
- value (::Array<::String>) — Optional arguments to pass to the source during execution.
- (::Array<::String>) — Optional arguments to pass to the source during execution.
#file
def file() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
-
(::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local file.
Note: The following fields are mutually exclusive:
file
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#file=
def file=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File
-
value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local file.
Note: The following fields are mutually exclusive:
file
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::OsConfig::V1::OSPolicy::Resource::File) — A remote or local file.
Note: The following fields are mutually exclusive:
file
,script
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#interpreter
def interpreter() -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
#interpreter=
def interpreter=(value) -> ::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter
- value (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
- (::Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter) — Required. The script interpreter to use.
#output_file_path
def output_file_path() -> ::String
- (::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
- 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.
- (::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
-
(::String) — An inline script.
The size of the script is limited to 1024 characters.
Note: The following fields are mutually exclusive:
script
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#script=
def script=(value) -> ::String
-
value (::String) — An inline script.
The size of the script is limited to 1024 characters.
Note: The following fields are mutually exclusive:
script
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — An inline script.
The size of the script is limited to 1024 characters.
Note: The following fields are mutually exclusive:
script
,file
. If a field in that set is populated, all other fields in the set will automatically be cleared.