Class: Azure::ARM::Network::Models::VirtualNetworkPeering

Inherits:
MsRestAzure::SubResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_network/models/virtual_network_peering.rb

Overview

Peerings in a virtual network resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allow_forwarded_trafficBoolean

remote virtual network will be allowed/disallowed.

Returns:

  • (Boolean)

    Whether the forwarded traffic from the VMs in the



22
23
24
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 22

def allow_forwarded_traffic
  @allow_forwarded_traffic
end

#allow_gateway_transitBoolean

networking to link to this virtual network.

Returns:

  • (Boolean)

    If gateway links can be used in remote virtual



26
27
28
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 26

def allow_gateway_transit
  @allow_gateway_transit
end

#allow_virtual_network_accessBoolean

would be able to access all the VMs in local Virtual network space.

Returns:

  • (Boolean)

    Whether the VMs in the linked virtual network space



18
19
20
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 18

def allow_virtual_network_access
  @allow_virtual_network_access
end

#etagString

resource is updated.

Returns:

  • (String)

    A unique read-only string that changes whenever the



53
54
55
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 53

def etag
  @etag
end

#nameString

resource group. This name can be used to access the resource.

Returns:

  • (String)

    The name of the resource that is unique within a



49
50
51
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 49

def name
  @name
end

#peering_stateVirtualNetworkPeeringState

peering. Possible values are ‘Initiated’, ‘Connected’, and ‘Disconnected’. Possible values include: ‘Initiated’, ‘Connected’, ‘Disconnected’

Returns:



42
43
44
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 42

def peering_state
  @peering_state
end

#provisioning_stateString

Returns The provisioning state of the resource.

Returns:

  • (String)

    The provisioning state of the resource.



45
46
47
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 45

def provisioning_state
  @provisioning_state
end

#remote_virtual_networkSubResource

Returns The reference of the remote virtual network.

Returns:

  • (SubResource)

    The reference of the remote virtual network.



36
37
38
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 36

def remote_virtual_network
  @remote_virtual_network
end

#use_remote_gatewaysBoolean

network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

Returns:

  • (Boolean)

    If remote gateways can be used on this virtual



33
34
35
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 33

def use_remote_gateways
  @use_remote_gateways
end

Class Method Details

.mapperObject

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



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 60

def self.mapper()
  {
    required: false,
    serialized_name: 'VirtualNetworkPeering',
    type: {
      name: 'Composite',
      class_name: 'VirtualNetworkPeering',
      model_properties: {
        id: {
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        allow_virtual_network_access: {
          required: false,
          serialized_name: 'properties.allowVirtualNetworkAccess',
          type: {
            name: 'Boolean'
          }
        },
        allow_forwarded_traffic: {
          required: false,
          serialized_name: 'properties.allowForwardedTraffic',
          type: {
            name: 'Boolean'
          }
        },
        allow_gateway_transit: {
          required: false,
          serialized_name: 'properties.allowGatewayTransit',
          type: {
            name: 'Boolean'
          }
        },
        use_remote_gateways: {
          required: false,
          serialized_name: 'properties.useRemoteGateways',
          type: {
            name: 'Boolean'
          }
        },
        remote_virtual_network: {
          required: false,
          serialized_name: 'properties.remoteVirtualNetwork',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        peering_state: {
          required: false,
          serialized_name: 'properties.peeringState',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        etag: {
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end