Class: Azure::AlertsManagement::Mgmt::V2019_05_05_preview::Models::Condition

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#operatorOperator

include: ‘Equals’, ‘NotEquals’, ‘Contains’, ‘DoesNotContain’

Returns:

  • (Operator)

    operator for a given condition. Possible values



17
18
19
# File 'lib/2019-05-05-preview/generated/azure_mgmt_alerts_management/models/condition.rb', line 17

def operator
  @operator
end

#valuesArray<String>

Returns list of values to match for a given condition.

Returns:

  • (Array<String>)

    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

.mapperObject

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