Class: Google::Apis::SecuritycenterV1beta1::File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



2481
2482
2483
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2481

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentsString

Corresponds to the JSON property contents

Returns:

  • (String)


2438
2439
2440
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2438

def contents
  @contents
end

#disk_pathGoogle::Apis::SecuritycenterV1beta1::DiskPath

Corresponds to the JSON property diskPath



2443
2444
2445
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2443

def disk_path
  @disk_path
end

#file_load_stateString

Corresponds to the JSON property fileLoadState

Returns:

  • (String)


2448
2449
2450
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2448

def file_load_state
  @file_load_state
end

#hashed_sizeFixnum

Corresponds to the JSON property hashedSize

Returns:

  • (Fixnum)


2453
2454
2455
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2453

def hashed_size
  @hashed_size
end

#operationsArray<Google::Apis::SecuritycenterV1beta1::FileOperation>

Corresponds to the JSON property operations



2458
2459
2460
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2458

def operations
  @operations
end

#partially_hashedBoolean Also known as: partially_hashed?

Corresponds to the JSON property partiallyHashed

Returns:

  • (Boolean)


2463
2464
2465
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2463

def partially_hashed
  @partially_hashed
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


2469
2470
2471
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2469

def path
  @path
end

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


2474
2475
2476
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2474

def sha256
  @sha256
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


2479
2480
2481
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2479

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 2486

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