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

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
Name Description
other OSPolicyTypesResourceTypesExecResourceTypesExec

Properties

Args

public RepeatedField<string> Args { get; }

Optional arguments to pass to the source during execution.

Property Value
Type Description
RepeatedFieldstring

File

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

A remote or local file.

Property Value
Type Description
OSPolicyTypesResourceTypesFile

HasScript

public bool HasScript { get; }

Gets whether the "script" field is set

Property Value
Type Description
bool

Interpreter

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

Required. The script interpreter to use.

Property Value
Type Description
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
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
OSPolicyTypesResourceTypesExecResourceTypesExecSourceOneofCase