Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue

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

Overview

Specifies a threshold value for a given severity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue

Returns a new instance of GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue.



14259
14260
14261
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14259

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

Instance Attribute Details

#severityString

The severity of errors if the threshold is not met. It should be one of the severity fields in the requirement. Corresponds to the JSON property severity

Returns:

  • (String)


14252
14253
14254
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14252

def severity
  @severity
end

#valueFloat

The value of the threshold. Corresponds to the JSON property value

Returns:

  • (Float)


14257
14258
14259
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14257

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14264
14265
14266
14267
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14264

def update!(**args)
  @severity = args[:severity] if args.key?(:severity)
  @value = args[:value] if args.key?(:value)
end