Class: Azure::Storage::Mgmt::V2019_06_01::Models::IPRule
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2019_06_01::Models::IPRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_storage/models/iprule.rb
Overview
IP rule with specific IP or IP range in CIDR format.
Instance Attribute Summary collapse
-
#action ⇒ Action
‘Allow’.
-
#ipaddress_or_range ⇒ String
address is allowed.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for IPRule class as Ruby Hash.
Instance Attribute Details
#action ⇒ Action
‘Allow’. Default value: ‘Allow’ .
21 22 23 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/iprule.rb', line 21 def action @action end |
#ipaddress_or_range ⇒ String
address is allowed.
17 18 19 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/iprule.rb', line 17 def ipaddress_or_range @ipaddress_or_range end |
Class Method Details
.mapper ⇒ Object
Mapper for IPRule class as Ruby Hash. This will be used for serialization/deserialization.
28 29 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_storage/models/iprule.rb', line 28 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'IPRule', type: { name: 'Composite', class_name: 'IPRule', model_properties: { ipaddress_or_range: { client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'String' } }, action: { client_side_validation: true, required: false, serialized_name: 'action', default_value: 'Allow', type: { name: 'Enum', module: 'Action' } } } } } end |