Class: Azure::Network::Mgmt::V2019_06_01::Models::PolicySettings
- Inherits:
-
Object
- Object
- Azure::Network::Mgmt::V2019_06_01::Models::PolicySettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_network/models/policy_settings.rb
Overview
Defines contents of a web application firewall global configuration.
Instance Attribute Summary collapse
-
#enabled_state ⇒ WebApplicationFirewallEnabledState
in enabled state or disabled state.
-
#mode ⇒ WebApplicationFirewallMode
mode or prevention mode at policy level.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for PolicySettings class as Ruby Hash.
Instance Attribute Details
#enabled_state ⇒ WebApplicationFirewallEnabledState
in enabled state or disabled state. Possible values include: ‘Disabled’, ‘Enabled’
18 19 20 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/models/policy_settings.rb', line 18 def enabled_state @enabled_state end |
#mode ⇒ WebApplicationFirewallMode
mode or prevention mode at policy level. Possible values include: ‘Prevention’, ‘Detection’
23 24 25 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/models/policy_settings.rb', line 23 def mode @mode end |
Class Method Details
.mapper ⇒ Object
Mapper for PolicySettings class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2019-06-01/generated/azure_mgmt_network/models/policy_settings.rb', line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PolicySettings', type: { name: 'Composite', class_name: 'PolicySettings', model_properties: { enabled_state: { client_side_validation: true, required: false, serialized_name: 'enabledState', type: { name: 'String' } }, mode: { client_side_validation: true, required: false, serialized_name: 'mode', type: { name: 'String' } } } } } end |