Class: Azure::Storage::Mgmt::V2018_03_01_preview::Models::IPRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb

Overview

IP rule with specific IP or IP range in CIDR format.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionAction

‘Allow’. Default value: ‘Allow’ .

Returns:

  • (Action)

    The action of IP ACL rule. Possible values include:



21
22
23
# File 'lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb', line 21

def action
  @action
end

#ipaddress_or_rangeString

address is allowed.

Returns:

  • (String)

    Specifies the IP or IP range in CIDR format. Only IPV4



17
18
19
# File 'lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb', line 17

def ipaddress_or_range
  @ipaddress_or_range
end

Class Method Details

.mapperObject

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/2018-03-01-preview/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