Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue
- 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
-
#severity ⇒ String
The severity of errors if the threshold is not met.
-
#value ⇒ Float
The value of the threshold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaRequirementThresholdBindingThresholdValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#severity ⇒ String
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
14252 14253 14254 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14252 def severity @severity end |
#value ⇒ Float
The value of the threshold.
Corresponds to the JSON property value
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 |