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.
Implements
IMessageOSPolicyTypesResourceTypesFile, IEquatableOSPolicyTypesResourceTypesFile, IDeepCloneableOSPolicyTypesResourceTypesFile, IBufferMessage, IMessageNamespace
Google.Cloud.OsConfig.V1Assembly
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 |