Google Cloud OS Config v1 API - Class OSPolicy.Types.Resource.Types.File (2.2.0)

public sealed class OSPolicy.Types.Resource.Types.File : IMessage<OSPolicy.Types.Resource.Types.File>, IEquatable<OSPolicy.Types.Resource.Types.File>, IDeepCloneable<OSPolicy.Types.Resource.Types.File>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1 API class OSPolicy.Types.Resource.Types.File.

A remote or local file.

Inheritance

object > OSPolicy.Types.Resource.Types.File

Namespace

Google.Cloud.OsConfig.V1

Assembly

Google.Cloud.OsConfig.V1.dll

Constructors

File()

public File()

File(File)

public File(OSPolicy.Types.Resource.Types.File other)
Parameter
NameDescription
otherOSPolicyTypesResourceTypesFile

Properties

AllowInsecure

public bool AllowInsecure { get; set; }

Defaults to false. When false, files are subject to validations based on the file type:

Remote: A checksum must be specified. Cloud Storage: An object generation number must be specified.

Property Value
TypeDescription
bool

Gcs

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

A Cloud Storage object.

Property Value
TypeDescription
OSPolicyTypesResourceTypesFileTypesGcs

HasLocalPath

public bool HasLocalPath { get; }

Gets whether the "local_path" field is set

Property Value
TypeDescription
bool

LocalPath

public string LocalPath { get; set; }

A local path within the VM to use.

Property Value
TypeDescription
string

Remote

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

A generic remote file.

Property Value
TypeDescription
OSPolicyTypesResourceTypesFileTypesRemote

TypeCase

public OSPolicy.Types.Resource.Types.File.TypeOneofCase TypeCase { get; }
Property Value
TypeDescription
OSPolicyTypesResourceTypesFileTypeOneofCase