Class: Azure::ARM::Storage::Models::VirtualNetworkRule

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb

Overview

Virtual Network rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionAction

include: ‘Allow’. Default value: ‘Allow’ .

Returns:

  • (Action)

    The action of virtual network rule. Possible values



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

def action
  @action
end

#stateState

include: ‘provisioning’, ‘deprovisioning’, ‘succeeded’, ‘failed’, ‘networkSourceDeleted’

Returns:

  • (State)

    Gets the state of virtual network rule. Possible values



27
28
29
# File 'lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb', line 27

def state
  @state
end

#virtual_network_resource_idString

/subscriptions/subscriptionId/resourceGroups/groupName/providers/Microsoft.Network/virtualNetworks/vnetName/subnets/subnetName.

Returns:

  • (String)

    Resource ID of a subnet, for example:



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

def virtual_network_resource_id
  @virtual_network_resource_id
end

Class Method Details

.mapperObject

Mapper for VirtualNetworkRule class as Ruby Hash. This will be used for serialization/deserialization.



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
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/generated/azure_mgmt_storage/models/virtual_network_rule.rb', line 34

def self.mapper()
  {
    required: false,
    serialized_name: 'VirtualNetworkRule',
    type: {
      name: 'Composite',
      class_name: 'VirtualNetworkRule',
      model_properties: {
        virtual_network_resource_id: {
          required: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        action: {
          required: false,
          serialized_name: 'action',
          default_value: 'Allow',
          type: {
            name: 'Enum',
            module: 'Action'
          }
        },
        state: {
          required: false,
          serialized_name: 'state',
          type: {
            name: 'Enum',
            module: 'State'
          }
        }
      }
    }
  }
end