public sealed class Exec : IMessage<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IEquatable<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IDeepCloneable<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IBufferMessage, IMessage
A file or script to execute.
Implements
IMessage<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IEquatable<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IDeepCloneable<OSPolicy.Types.Resource.Types.ExecResource.Types.Exec>, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1AlphaAssembly
Google.Cloud.OsConfig.V1Alpha.dll
Constructors
Exec()
public Exec()
Exec(OSPolicy.Types.Resource.Types.ExecResource.Types.Exec)
public Exec(OSPolicy.Types.Resource.Types.ExecResource.Types.Exec other)
Parameter | |
---|---|
Name | Description |
other | OSPolicy.Types.Resource.Types.ExecResource.Types.Exec |
Properties
Args
public RepeatedField<string> Args { get; }
Optional arguments to pass to the source during execution.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
File
public OSPolicy.Types.Resource.Types.File File { get; set; }
A remote or local file.
Property Value | |
---|---|
Type | Description |
OSPolicy.Types.Resource.Types.File |
Interpreter
public OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter Interpreter { get; set; }
Required. The script interpreter to use.
Property Value | |
---|---|
Type | Description |
OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter |
OutputFilePath
public string OutputFilePath { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
Script
public string Script { get; set; }
An inline script. The size of the script is limited to 1024 characters.
Property Value | |
---|---|
Type | Description |
String |
SourceCase
public OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.SourceOneofCase SourceCase { get; }
Property Value | |
---|---|
Type | Description |
OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.SourceOneofCase |