Class: Google::Apis::SecuritycenterV1beta2::DetectorReference

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DetectorReference

Returns a new instance of DetectorReference.



1925
1926
1927
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1925

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


1903
1904
1905
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1903

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


1908
1909
1910
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1908

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


1913
1914
1915
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1913

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


1918
1919
1920
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1918

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


1923
1924
1925
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1923

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1930
1931
1932
1933
1934
1935
1936
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 1930

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