Class: Azure::ARM::Storage::Models::IPRule

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/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:



22
23
24
# File 'lib/generated/azure_mgmt_storage/models/iprule.rb', line 22

def action
  @action
end

#ipaddress_or_rangeString

address is allowed.

Returns:

  • (String)

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



18
19
20
# File 'lib/generated/azure_mgmt_storage/models/iprule.rb', line 18

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.



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
# File 'lib/generated/azure_mgmt_storage/models/iprule.rb', line 29

def self.mapper()
  {
    required: false,
    serialized_name: 'IPRule',
    type: {
      name: 'Composite',
      class_name: 'IPRule',
      model_properties: {
        ipaddress_or_range: {
          required: true,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        action: {
          required: false,
          serialized_name: 'action',
          default_value: 'Allow',
          type: {
            name: 'Enum',
            module: 'Action'
          }
        }
      }
    }
  }
end