Security Command Center v2 API - Class File (1.0.0)

public sealed class File : IMessage<File>, IEquatable<File>, IDeepCloneable<File>, IBufferMessage, IMessage

Reference documentation and code samples for the Security Command Center v2 API class File.

File information about the related binary/library used by an executable, or the script used by a script interpreter

Inheritance

object > File

Namespace

Google.Cloud.SecurityCenter.V2

Assembly

Google.Cloud.SecurityCenter.V2.dll

Constructors

File()

public File()

File(File)

public File(File other)
Parameter
Name Description
other File

Properties

Contents

public string Contents { get; set; }

Prefix of the file contents as a JSON-encoded string.

Property Value
Type Description
string

DiskPath

public File.Types.DiskPath DiskPath { get; set; }

Path of the file in terms of underlying disk/partition identifiers.

Property Value
Type Description
FileTypesDiskPath

HashedSize

public long HashedSize { get; set; }

The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.

Property Value
Type Description
long

PartiallyHashed

public bool PartiallyHashed { get; set; }

True when the hash covers only a prefix of the file.

Property Value
Type Description
bool

Path

public string Path { get; set; }

Absolute path of the file as a JSON encoded string.

Property Value
Type Description
string

Sha256

public string Sha256 { get; set; }

SHA256 hash of the first hashed_size bytes of the file encoded as a hex string. If hashed_size == size, sha256 represents the SHA256 hash of the entire file.

Property Value
Type Description
string

Size

public long Size { get; set; }

Size of the file in bytes.

Property Value
Type Description
long