Class: Google::Apis::SecuritycenterV1beta1::Asset

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

Returns a new instance of Asset.



492
493
494
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 492

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

Instance Attribute Details

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


465
466
467
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 465

def create_time
  @create_time
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


470
471
472
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 470

def name
  @name
end

#resource_propertiesHash<String,Object>

Corresponds to the JSON property resourceProperties

Returns:



475
476
477
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 475

def resource_properties
  @resource_properties
end

#security_center_propertiesGoogle::Apis::SecuritycenterV1beta1::SecurityCenterProperties

Corresponds to the JSON property securityCenterProperties



480
481
482
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 480

def security_center_properties
  @security_center_properties
end

#security_marksGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV1beta1SecurityMarks

Corresponds to the JSON property securityMarks



485
486
487
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 485

def security_marks
  @security_marks
end

#update_timeString

Corresponds to the JSON property updateTime

Returns:

  • (String)


490
491
492
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 490

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



497
498
499
500
501
502
503
504
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 497

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @resource_properties = args[:resource_properties] if args.key?(:resource_properties)
  @security_center_properties = args[:security_center_properties] if args.key?(:security_center_properties)
  @security_marks = args[:security_marks] if args.key?(:security_marks)
  @update_time = args[:update_time] if args.key?(:update_time)
end