Class: Google::Cloud::SecurityCenter::V1::File
- Inherits:
-
Object
- Object
- Google::Cloud::SecurityCenter::V1::File
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/securitycenter/v1/file.rb
Overview
File information about the related binary/library used by an executable, or the script used by a script interpreter
Defined Under Namespace
Classes: DiskPath
Instance Attribute Summary collapse
-
#contents ⇒ ::String
Prefix of the file contents as a JSON-encoded string.
-
#disk_path ⇒ ::Google::Cloud::SecurityCenter::V1::File::DiskPath
Path of the file in terms of underlying disk/partition identifiers.
-
#hashed_size ⇒ ::Integer
The length in bytes of the file prefix that was hashed.
-
#partially_hashed ⇒ ::Boolean
True when the hash covers only a prefix of the file.
-
#path ⇒ ::String
Absolute path of the file as a JSON encoded string.
-
#sha256 ⇒ ::String
SHA256 hash of the first hashed_size bytes of the file encoded as a hex string.
-
#size ⇒ ::Integer
Size of the file in bytes.
Instance Attribute Details
#contents ⇒ ::String
Returns Prefix of the file contents as a JSON-encoded string.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#disk_path ⇒ ::Google::Cloud::SecurityCenter::V1::File::DiskPath
Returns Path of the file in terms of underlying disk/partition identifiers.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#hashed_size ⇒ ::Integer
Returns The length in bytes of the file prefix that was hashed. If hashed_size == size, any hashes reported represent the entire file.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#partially_hashed ⇒ ::Boolean
Returns True when the hash covers only a prefix of the file.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#path ⇒ ::String
Returns Absolute path of the file as a JSON encoded string.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#sha256 ⇒ ::String
Returns 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.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#size ⇒ ::Integer
Returns Size of the file in bytes.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'proto_docs/google/cloud/securitycenter/v1/file.rb', line 51 class File include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Path of the file in terms of underlying disk/partition identifiers. # @!attribute [rw] partition_uuid # @return [::String] # UUID of the partition (format # https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) # @!attribute [rw] relative_path # @return [::String] # Relative path of the file in the partition as a JSON encoded string. # Example: /home/user1/executable_file.sh class DiskPath include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |