Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2DetectorReference

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

Returns a new instance of GoogleCloudSecuritycenterV2DetectorReference.



6159
6160
6161
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6159

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

Instance Attribute Details

#detector_idString

Corresponds to the JSON property detectorId

Returns:

  • (String)


6137
6138
6139
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6137

def detector_id
  @detector_id
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


6142
6143
6144
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6142

def display_name
  @display_name
end

#explanationString

Corresponds to the JSON property explanation

Returns:

  • (String)


6147
6148
6149
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6147

def explanation
  @explanation
end

#recommendationString

Corresponds to the JSON property recommendation

Returns:

  • (String)


6152
6153
6154
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6152

def recommendation
  @recommendation
end

#severityString

Corresponds to the JSON property severity

Returns:

  • (String)


6157
6158
6159
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6157

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6164
6165
6166
6167
6168
6169
6170
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6164

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