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
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::V1::File::DiskPath
Returns
- (::Google::Cloud::SecurityCenter::V1::File::DiskPath) — Path of the file in terms of underlying disk/partition identifiers.
#disk_path=
def disk_path=(value) -> ::Google::Cloud::SecurityCenter::V1::File::DiskPath
Parameter
- value (::Google::Cloud::SecurityCenter::V1::File::DiskPath) — Path of the file in terms of underlying disk/partition identifiers.
Returns
- (::Google::Cloud::SecurityCenter::V1::File::DiskPath) — Path of the file in terms of underlying disk/partition identifiers.
#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.