Google Cloud OS Config v1alpha API - Class OSPolicy.Types.Resource.Types.ExecResource.Types.Exec (2.0.0-alpha03)

public sealed class OSPolicy.Types.Resource.Types.ExecResource.Types.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

Reference documentation and code samples for the Google Cloud OS Config v1alpha API class OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.

A file or script to execute.

Inheritance

object > OSPolicy.Types.Resource.Types.ExecResource.Types.Exec

Namespace

Google.Cloud.OsConfig.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.dll

Constructors

Exec()

public Exec()

Exec(Exec)

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

Properties

Args

public RepeatedField<string> Args { get; }

Optional arguments to pass to the source during execution.

Property Value
TypeDescription
RepeatedFieldstring

File

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

A remote or local file.

Property Value
TypeDescription
OSPolicyTypesResourceTypesFile

HasScript

public bool HasScript { get; }

Gets whether the "script" field is set

Property Value
TypeDescription
bool

Interpreter

public OSPolicy.Types.Resource.Types.ExecResource.Types.Exec.Types.Interpreter Interpreter { get; set; }

Required. The script interpreter to use.

Property Value
TypeDescription
OSPolicyTypesResourceTypesExecResourceTypesExecTypesInterpreter

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
OSPolicyTypesResourceTypesExecResourceTypesExecSourceOneofCase