Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule
- Inherits:
-
Object
- Object
- Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb
Overview
A custom alert rule.
Direct Known Subclasses
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the custom alert.
-
#display_name ⇒ String
The display name of the custom alert.
-
#is_enabled ⇒ Boolean
Status of the custom alert.
-
#ruleType ⇒ Object
Returns the value of attribute ruleType.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CustomAlertRule class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ CustomAlertRule
constructor
A new instance of CustomAlertRule.
Constructor Details
#initialize ⇒ CustomAlertRule
Returns a new instance of CustomAlertRule.
41 42 43 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 41 def initialize @ruleType = "CustomAlertRule" end |
Instance Attribute Details
#description ⇒ String
Returns The description of the custom alert.
51 52 53 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 51 def description @description end |
#display_name ⇒ String
Returns The display name of the custom alert.
48 49 50 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 48 def display_name @display_name end |
#is_enabled ⇒ Boolean
Returns Status of the custom alert.
54 55 56 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 54 def is_enabled @is_enabled end |
#ruleType ⇒ Object
Returns the value of attribute ruleType.
45 46 47 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 45 def ruleType @ruleType end |
Class Method Details
.mapper ⇒ Object
Mapper for CustomAlertRule class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb', line 61 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CustomAlertRule', type: { name: 'Composite', polymorphic_discriminator: 'ruleType', uber_parent: 'CustomAlertRule', class_name: 'CustomAlertRule', model_properties: { display_name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'displayName', type: { name: 'String' } }, description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'description', type: { name: 'String' } }, is_enabled: { client_side_validation: true, required: true, serialized_name: 'isEnabled', type: { name: 'Boolean' } } } } } end |