Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Condition
- Inherits:
-
Object
- Object
- Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Condition
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb
Overview
condition to trigger an action rule
Instance Attribute Summary collapse
-
#operator ⇒ Operator
include: ‘Equals’, ‘NotEquals’, ‘Contains’, ‘DoesNotContain’.
-
#values ⇒ Array<String>
List of values to match for a given condition.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Condition class as Ruby Hash.
Instance Attribute Details
#operator ⇒ Operator
include: ‘Equals’, ‘NotEquals’, ‘Contains’, ‘DoesNotContain’
17 18 19 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb', line 17 def operator @operator end |
#values ⇒ Array<String>
Returns list of values to match for a given condition.
20 21 22 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb', line 20 def values @values end |
Class Method Details
.mapper ⇒ Object
Mapper for Condition class as Ruby Hash. This will be used for serialization/deserialization.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb', line 27 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Condition', type: { name: 'Composite', class_name: 'Condition', model_properties: { operator: { client_side_validation: true, required: false, serialized_name: 'operator', type: { name: 'String' } }, values: { client_side_validation: true, required: false, serialized_name: 'values', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end |