Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2File

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) ⇒ GoogleCloudSecuritycenterV2File

Returns a new instance of GoogleCloudSecuritycenterV2File.



6514
6515
6516
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6514

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

Instance Attribute Details

#contentsString

Corresponds to the JSON property contents

Returns:

  • (String)


6471
6472
6473
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6471

def contents
  @contents
end

#disk_pathGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2DiskPath

Corresponds to the JSON property diskPath



6476
6477
6478
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6476

def disk_path
  @disk_path
end

#file_load_stateString

Corresponds to the JSON property fileLoadState

Returns:

  • (String)


6481
6482
6483
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6481

def file_load_state
  @file_load_state
end

#hashed_sizeFixnum

Corresponds to the JSON property hashedSize

Returns:

  • (Fixnum)


6486
6487
6488
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6486

def hashed_size
  @hashed_size
end

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

Corresponds to the JSON property operations



6491
6492
6493
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6491

def operations
  @operations
end

#partially_hashedBoolean Also known as: partially_hashed?

Corresponds to the JSON property partiallyHashed

Returns:

  • (Boolean)


6496
6497
6498
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6496

def partially_hashed
  @partially_hashed
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


6502
6503
6504
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6502

def path
  @path
end

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


6507
6508
6509
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6507

def sha256
  @sha256
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


6512
6513
6514
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6512

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6519

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