Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::File (v0.5.0)

Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::File.

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

Inherits

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#contents

def contents() -> ::String
Returns
  • (::String) — Prefix of the file contents as a JSON-encoded string.

#contents=

def contents=(value) -> ::String
Parameter
  • value (::String) — Prefix of the file contents as a JSON-encoded string.
Returns
  • (::String) — Prefix of the file contents as a JSON-encoded string.

#disk_path

def disk_path() -> ::Google::Cloud::SecurityCenter::V2::File::DiskPath
Returns

#disk_path=

def disk_path=(value) -> ::Google::Cloud::SecurityCenter::V2::File::DiskPath
Parameter
Returns

#hashed_size

def hashed_size() -> ::Integer
Returns
  • (::Integer) — The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.

#hashed_size=

def hashed_size=(value) -> ::Integer
Parameter
  • value (::Integer) — The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
Returns
  • (::Integer) — The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.

#partially_hashed

def partially_hashed() -> ::Boolean
Returns
  • (::Boolean) — True when the hash covers only a prefix of the file.

#partially_hashed=

def partially_hashed=(value) -> ::Boolean
Parameter
  • value (::Boolean) — True when the hash covers only a prefix of the file.
Returns
  • (::Boolean) — True when the hash covers only a prefix of the file.

#path

def path() -> ::String
Returns
  • (::String) — Absolute path of the file as a JSON encoded string.

#path=

def path=(value) -> ::String
Parameter
  • value (::String) — Absolute path of the file as a JSON encoded string.
Returns
  • (::String) — Absolute path of the file as a JSON encoded string.

#sha256

def sha256() -> ::String
Returns
  • (::String) — 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.

#sha256=

def sha256=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#size

def size() -> ::Integer
Returns
  • (::Integer) — Size of the file in bytes.

#size=

def size=(value) -> ::Integer
Parameter
  • value (::Integer) — Size of the file in bytes.
Returns
  • (::Integer) — Size of the file in bytes.