Class: Google::Apis::SecuritycenterV1beta2::File
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#contents ⇒ String
Corresponds to the JSON property
contents. -
#disk_path ⇒ Google::Apis::SecuritycenterV1beta2::DiskPath
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::SecuritycenterV1beta2::FileOperation>
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) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
2436 2437 2438 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#contents ⇒ String
Corresponds to the JSON property contents
2393 2394 2395 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2393 def contents @contents end |
#disk_path ⇒ Google::Apis::SecuritycenterV1beta2::DiskPath
Corresponds to the JSON property diskPath
2398 2399 2400 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2398 def disk_path @disk_path end |
#file_load_state ⇒ String
Corresponds to the JSON property fileLoadState
2403 2404 2405 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2403 def file_load_state @file_load_state end |
#hashed_size ⇒ Fixnum
Corresponds to the JSON property hashedSize
2408 2409 2410 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2408 def hashed_size @hashed_size end |
#operations ⇒ Array<Google::Apis::SecuritycenterV1beta2::FileOperation>
Corresponds to the JSON property operations
2413 2414 2415 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2413 def operations @operations end |
#partially_hashed ⇒ Boolean Also known as: partially_hashed?
Corresponds to the JSON property partiallyHashed
2418 2419 2420 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2418 def partially_hashed @partially_hashed end |
#path ⇒ String
Corresponds to the JSON property path
2424 2425 2426 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2424 def path @path end |
#sha256 ⇒ String
Corresponds to the JSON property sha256
2429 2430 2431 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2429 def sha256 @sha256 end |
#size ⇒ Fixnum
Corresponds to the JSON property size
2434 2435 2436 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2434 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2441 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 |