Class: Google::Apis::SecuritycenterV1::DetectorReference

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

Returns a new instance of DetectorReference.



2297
2298
2299
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2297

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


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

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


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

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


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

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


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

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


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

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2302
2303
2304
2305
2306
2307
2308
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2302

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