Class: Azure::Network::Mgmt::V2016_12_01::Models::VirtualNetworkPeering

Inherits:
SubResource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb

Overview

Peerings in a virtual network resource.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#id

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


21
22
23
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 21

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


25
26
27
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 25

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


17
18
19
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 17

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


52
53
54
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 52

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


48
49
50
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 48

def name
  @name
end

#peering_stateVirtualNetworkPeeringState

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

Returns:


41
42
43
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 41

def peering_state
  @peering_state
end

#provisioning_stateString

Returns The provisioning state of the resource.

Returns:

  • (String)

    The provisioning state of the resource.


44
45
46
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 44

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.


35
36
37
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 35

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


32
33
34
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 32

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.


59
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
143
144
145
146
147
148
149
150
151
152
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/virtual_network_peering.rb', line 59

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