Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::CustomAlertRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-08-01-preview/generated/azure_mgmt_security/models/custom_alert_rule.rb

Overview

A custom alert rule.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCustomAlertRule

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

#descriptionString

Returns The description of the custom alert.

Returns:

  • (String)

    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_nameString

Returns The display name of the custom alert.

Returns:

  • (String)

    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_enabledBoolean

Returns Status of the custom alert.

Returns:

  • (Boolean)

    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

#ruleTypeObject

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

.mapperObject

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