Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec (v0.9.1)

Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::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>
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

#file=

def file=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File
Parameter
Returns

#interpreter

def interpreter() -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter

#interpreter=

def interpreter=(value) -> ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter
Parameter

#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.