Exec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
A file or script to execute.
Attributes | |
---|---|
Name | Description |
file |
google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.File
A remote or local file. |
script |
str
An inline script. The size of the script is limited to 1024 characters. |
args |
Sequence[str]
Optional arguments to pass to the source during execution. |
interpreter |
google.cloud.osconfig_v1alpha.types.OSPolicy.Resource.ExecResource.Exec.Interpreter
Required. The script interpreter to use. |
output_file_path |
str
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. |
Classes
Interpreter
Interpreter(value)
The interpreter to use.