Class: Azure::Consumption::Mgmt::V2019_04_01_preview::Models::Notification

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb

Overview

The notification associated with a budget.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#contact_emailsArray<String>

to when the threshold is exceeded.

Returns:

  • (Array<String>)

    Email addresses to send the budget notification



29
30
31
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 29

def contact_emails
  @contact_emails
end

#contact_groupsArray<String>

to when the threshold is exceeded.

Returns:

  • (Array<String>)

    Action groups to send the budget notification



37
38
39
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 37

def contact_groups
  @contact_groups
end

#contact_rolesArray<String>

to when the threshold is exceeded.

Returns:

  • (Array<String>)

    Contact roles to send the budget notification



33
34
35
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 33

def contact_roles
  @contact_roles
end

#enabledBoolean

Returns The notification is enabled or not.

Returns:

  • (Boolean)

    The notification is enabled or not.



16
17
18
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 16

def enabled
  @enabled
end

#operatorOperatorType

include: ‘EqualTo’, ‘GreaterThan’, ‘GreaterThanOrEqualTo’

Returns:

  • (OperatorType)

    The comparison operator. Possible values



20
21
22
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 20

def operator
  @operator
end

#thresholdObject

sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.

Returns:

  • Threshold value associated with a notification. Notification is



25
26
27
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 25

def threshold
  @threshold
end

Class Method Details

.mapperObject

Mapper for Notification class as Ruby Hash. This will be used for serialization/deserialization.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/2019-04-01-preview/generated/azure_mgmt_consumption/models/notification.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Notification',
    type: {
      name: 'Composite',
      class_name: 'Notification',
      model_properties: {
        enabled: {
          client_side_validation: true,
          required: true,
          serialized_name: 'enabled',
          type: {
            name: 'Boolean'
          }
        },
        operator: {
          client_side_validation: true,
          required: true,
          serialized_name: 'operator',
          type: {
            name: 'String'
          }
        },
        threshold: {
          client_side_validation: true,
          required: true,
          serialized_name: 'threshold',
          type: {
            name: 'Number'
          }
        },
        contact_emails: {
          client_side_validation: true,
          required: true,
          serialized_name: 'contactEmails',
          constraints: {
            MaxItems: 50,
            MinItems: 1
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        contact_roles: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contactRoles',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        contact_groups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'contactGroups',
          constraints: {
            MaxItems: 50,
            MinItems: 0
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end