Class OSPolicy.Types.Resource.Types.File (1.7.0)

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

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(OSPolicy.Types.Resource.Types.File)

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

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
Boolean

Gcs

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

A Cloud Storage object.

Property Value
TypeDescription
OSPolicy.Types.Resource.Types.File.Types.Gcs

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
OSPolicy.Types.Resource.Types.File.Types.Remote

TypeCase

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