Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::File (v0.27.0)

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

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

Inherits

  • Object

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. (Currently only populated for Malicious Script Executed findings.)

#contents=

def contents=(value) -> ::String
Parameter
  • value (::String) — Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)
Returns
  • (::String) — Prefix of the file contents as a JSON encoded string. (Currently only populated for Malicious Script Executed findings.)

#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.