Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2File
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Instance Attribute Summary collapse
-
#contents ⇒ String
Corresponds to the JSON property
contents. -
#disk_path ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DiskPath
Corresponds to the JSON property
diskPath. -
#file_load_state ⇒ String
Corresponds to the JSON property
fileLoadState. -
#hashed_size ⇒ Fixnum
Corresponds to the JSON property
hashedSize. -
#operations ⇒ Array<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation>
Corresponds to the JSON property
operations. -
#partially_hashed ⇒ Boolean
(also: #partially_hashed?)
Corresponds to the JSON property
partiallyHashed. -
#path ⇒ String
Corresponds to the JSON property
path. -
#sha256 ⇒ String
Corresponds to the JSON property
sha256. -
#size ⇒ Fixnum
Corresponds to the JSON property
size.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2File
constructor
A new instance of GoogleCloudSecuritycenterV2File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2File
Returns a new instance of GoogleCloudSecuritycenterV2File.
6897 6898 6899 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
Corresponds to the JSON property contents
6854 6855 6856 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6854 def contents @contents end |
#disk_path ⇒ Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DiskPath
Corresponds to the JSON property diskPath
6859 6860 6861 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6859 def disk_path @disk_path end |
#file_load_state ⇒ String
Corresponds to the JSON property fileLoadState
6864 6865 6866 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6864 def file_load_state @file_load_state end |
#hashed_size ⇒ Fixnum
Corresponds to the JSON property hashedSize
6869 6870 6871 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6869 def hashed_size @hashed_size end |
#operations ⇒ Array<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2FileOperation>
Corresponds to the JSON property operations
6874 6875 6876 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6874 def operations @operations end |
#partially_hashed ⇒ Boolean Also known as: partially_hashed?
Corresponds to the JSON property partiallyHashed
6879 6880 6881 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6879 def partially_hashed @partially_hashed end |
#path ⇒ String
Corresponds to the JSON property path
6885 6886 6887 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6885 def path @path end |
#sha256 ⇒ String
Corresponds to the JSON property sha256
6890 6891 6892 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6890 def sha256 @sha256 end |
#size ⇒ Fixnum
Corresponds to the JSON property size
6895 6896 6897 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6895 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6902 def update!(**args) @contents = args[:contents] if args.key?(:contents) @disk_path = args[:disk_path] if args.key?(:disk_path) @file_load_state = args[:file_load_state] if args.key?(:file_load_state) @hashed_size = args[:hashed_size] if args.key?(:hashed_size) @operations = args[:operations] if args.key?(:operations) @partially_hashed = args[:partially_hashed] if args.key?(:partially_hashed) @path = args[:path] if args.key?(:path) @sha256 = args[:sha256] if args.key?(:sha256) @size = args[:size] if args.key?(:size) end |