Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2File

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2File

Returns a new instance of GoogleCloudSecuritycenterV2File.



6321
6322
6323
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6321

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

Instance Attribute Details

#contentsString

Corresponds to the JSON property contents

Returns:

  • (String)


6278
6279
6280
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6278

def contents
  @contents
end

#disk_pathGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DiskPath

Corresponds to the JSON property diskPath



6283
6284
6285
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6283

def disk_path
  @disk_path
end

#file_load_stateString

Corresponds to the JSON property fileLoadState

Returns:

  • (String)


6288
6289
6290
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6288

def file_load_state
  @file_load_state
end

#hashed_sizeFixnum

Corresponds to the JSON property hashedSize

Returns:

  • (Fixnum)


6293
6294
6295
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6293

def hashed_size
  @hashed_size
end

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

Corresponds to the JSON property operations



6298
6299
6300
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6298

def operations
  @operations
end

#partially_hashedBoolean Also known as: partially_hashed?

Corresponds to the JSON property partiallyHashed

Returns:

  • (Boolean)


6303
6304
6305
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6303

def partially_hashed
  @partially_hashed
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


6309
6310
6311
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6309

def path
  @path
end

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


6314
6315
6316
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6314

def sha256
  @sha256
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


6319
6320
6321
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6319

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6326

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