class Google::Apis::OsconfigV1alpha::OsPolicyResourceExecResourceExec
A file or script to execute.
Attributes
Optional arguments to pass to the source during execution. Corresponds to the JSON property `args` @return [Array<String>]
A remote or local file. Corresponds to the JSON property `file` @return [Google::Apis::OsconfigV1alpha::OsPolicyResourceFile]
Required. The script interpreter to use. Corresponds to the JSON property `interpreter` @return [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. Corresponds to the JSON property `outputFilePath` @return [String]
An inline script. The size of the script is limited to 1024 characters. Corresponds to the JSON property `script` @return [String]
Public Class Methods
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1602 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/osconfig_v1alpha/classes.rb, line 1607 def update!(**args) @args = args[:args] if args.key?(:args) @file = args[:file] if args.key?(:file) @interpreter = args[:interpreter] if args.key?(:interpreter) @output_file_path = args[:output_file_path] if args.key?(:output_file_path) @script = args[:script] if args.key?(:script) end