Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2DetectorReference

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

Returns a new instance of GoogleCloudSecuritycenterV2DetectorReference.



6340
6341
6342
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6340

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


6318
6319
6320
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6318

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


6323
6324
6325
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6323

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


6328
6329
6330
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6328

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


6333
6334
6335
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6333

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


6338
6339
6340
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6338

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6345
6346
6347
6348
6349
6350
6351
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6345

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