Class: Google::Apis::SecuritycenterV1beta1::DetectorReference

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

Returns a new instance of DetectorReference.



1994
1995
1996
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1994

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


1972
1973
1974
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1972

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


1977
1978
1979
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1977

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


1982
1983
1984
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1982

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


1987
1988
1989
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1987

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


1992
1993
1994
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1992

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1999
2000
2001
2002
2003
2004
2005
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 1999

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