Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2DetectorReference

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

Returns a new instance of GoogleCloudSecuritycenterV2DetectorReference.



6673
6674
6675
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6673

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


6651
6652
6653
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6651

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


6656
6657
6658
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6656

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


6661
6662
6663
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6661

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


6666
6667
6668
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6666

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


6671
6672
6673
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6671

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6678
6679
6680
6681
6682
6683
6684
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6678

def update!(**args)
  @detector_id = args[:detector_id] if args.key?(:detector_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @explanation = args[:explanation] if args.key?(:explanation)
  @recommendation = args[:recommendation] if args.key?(:recommendation)
  @severity = args[:severity] if args.key?(:severity)
end