Class: Azure::Consumption::Mgmt::V2017_12_30_preview::Models::Notification
- Inherits:
-
Object
- Object
- Azure::Consumption::Mgmt::V2017_12_30_preview::Models::Notification
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb
Overview
The notification associated with a budget.
Instance Attribute Summary collapse
-
#contact_emails ⇒ Array<String>
to when the threshold is exceeded.
-
#contact_roles ⇒ Array<String>
to when the threshold is exceeded.
-
#enabled ⇒ Boolean
The notification is enabled or not.
-
#operator ⇒ OperatorType
include: 'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'.
-
#threshold ⇒ Object
sent when the cost exceeded the threshold.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Notification class as Ruby Hash.
Instance Attribute Details
#contact_emails ⇒ Array<String>
to when the threshold is exceeded.
29 30 31 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 29 def contact_emails @contact_emails end |
#contact_roles ⇒ Array<String>
to when the threshold is exceeded.
33 34 35 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 33 def contact_roles @contact_roles end |
#enabled ⇒ Boolean
Returns The notification is enabled or not.
16 17 18 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 16 def enabled @enabled end |
#operator ⇒ OperatorType
include: 'EqualTo', 'GreaterThan', 'GreaterThanOrEqualTo'
20 21 22 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 20 def operator @operator end |
#threshold ⇒ Object
sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.
25 26 27 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 25 def threshold @threshold end |
Class Method Details
.mapper ⇒ Object
Mapper for Notification class as Ruby Hash. This will be used for serialization/deserialization.
40 41 42 43 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 |
# File 'lib/2017-12-30-preview/generated/azure_mgmt_consumption/models/notification.rb', line 40 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' } } } } } } } end |