Class OSPolicy.Types.Resource.Types.ExecResource.Types.Exec (2.0.0)

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.

Inheritance

Object > OSPolicy.Types.Resource.Types.ExecResource.Types.Exec

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

Exec()

public Exec()

Exec(OSPolicy.Types.Resource.Types.ExecResource.Types.Exec)

public Exec(OSPolicy.Types.Resource.Types.ExecResource.Types.Exec other)
Parameter
NameDescription
otherOSPolicy.Types.Resource.Types.ExecResource.Types.Exec

Properties

Args

public RepeatedField<string> Args { get; }

Optional arguments to pass to the source during execution.

Property Value
TypeDescription
RepeatedField<String>

File

public OSPolicy.Types.Resource.Types.File File { get; set; }

A remote or local file.

Property Value
TypeDescription
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
TypeDescription
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
TypeDescription
String

Script

public string Script { get; set; }

An inline script. The size of the script is limited to 1024 characters.

Property Value
TypeDescription
String

SourceCase

public OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.SourceOneofCase