Class: Google::Apis::SecuritycenterV1beta2::File

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

Returns a new instance of File.



2318
2319
2320
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2318

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

Instance Attribute Details

#contentsString

Corresponds to the JSON property contents

Returns:

  • (String)


2275
2276
2277
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2275

def contents
  @contents
end

#disk_pathGoogle::Apis::SecuritycenterV1beta2::DiskPath

Corresponds to the JSON property diskPath



2280
2281
2282
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2280

def disk_path
  @disk_path
end

#file_load_stateString

Corresponds to the JSON property fileLoadState

Returns:

  • (String)


2285
2286
2287
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2285

def file_load_state
  @file_load_state
end

#hashed_sizeFixnum

Corresponds to the JSON property hashedSize

Returns:

  • (Fixnum)


2290
2291
2292
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2290

def hashed_size
  @hashed_size
end

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

Corresponds to the JSON property operations



2295
2296
2297
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2295

def operations
  @operations
end

#partially_hashedBoolean Also known as: partially_hashed?

Corresponds to the JSON property partiallyHashed

Returns:

  • (Boolean)


2300
2301
2302
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2300

def partially_hashed
  @partially_hashed
end

#pathString

Corresponds to the JSON property path

Returns:

  • (String)


2306
2307
2308
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2306

def path
  @path
end

#sha256String

Corresponds to the JSON property sha256

Returns:

  • (String)


2311
2312
2313
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2311

def sha256
  @sha256
end

#sizeFixnum

Corresponds to the JSON property size

Returns:

  • (Fixnum)


2316
2317
2318
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2316

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2323

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