Class: Google::Apis::SecuritycenterV1::Asset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset.



577
578
579
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 577

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

Instance Attribute Details

#canonical_nameString

Corresponds to the JSON property canonicalName

Returns:

  • (String)


540
541
542
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 540

def canonical_name
  @canonical_name
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


545
546
547
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 545

def create_time
  @create_time
end

#iam_policyGoogle::Apis::SecuritycenterV1::IamPolicy

Corresponds to the JSON property iamPolicy



550
551
552
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 550

def iam_policy
  @iam_policy
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


555
556
557
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 555

def name
  @name
end

#resource_propertiesHash<String,Object>

Corresponds to the JSON property resourceProperties

Returns:



560
561
562
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 560

def resource_properties
  @resource_properties
end

#security_center_propertiesGoogle::Apis::SecuritycenterV1::SecurityCenterProperties

Corresponds to the JSON property securityCenterProperties



565
566
567
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 565

def security_center_properties
  @security_center_properties
end

#security_marksGoogle::Apis::SecuritycenterV1::SecurityMarks

Corresponds to the JSON property securityMarks



570
571
572
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 570

def security_marks
  @security_marks
end

#update_timeString

Corresponds to the JSON property updateTime

Returns:

  • (String)


575
576
577
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 575

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



582
583
584
585
586
587
588
589
590
591
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 582

def update!(**args)
  @canonical_name = args[:canonical_name] if args.key?(:canonical_name)
  @create_time = args[:create_time] if args.key?(:create_time)
  @iam_policy = args[:iam_policy] if args.key?(:iam_policy)
  @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