Google Cloud OS Config v1 API - Class OSPolicy.Types.Resource.Types.File (2.3.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
Name Description
other OSPolicyTypesResourceTypesFile

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
Type Description
bool

Gcs

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

A Cloud Storage object.

Property Value
Type Description
OSPolicyTypesResourceTypesFileTypesGcs

HasLocalPath

public bool HasLocalPath { get; }

Gets whether the "local_path" field is set

Property Value
Type Description
bool

LocalPath

public string LocalPath { get; set; }

A local path within the VM to use.

Property Value
Type Description
string

Remote

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

A generic remote file.

Property Value
Type Description
OSPolicyTypesResourceTypesFileTypesRemote

TypeCase

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