class Azure::Network::Mgmt::V2016_06_01::Models::VirtualNetworkPeering

Peerings in a VirtualNetwork resource

Attributes

allow_forwarded_traffic[RW]

@return [Boolean] Gets or sets whether the forwarded traffic from the VMs in the remote virtual network will be allowed/disallowed

allow_gateway_transit[RW]

@return [Boolean] Gets or sets if gatewayLinks can be used in remote virtual network’s link to this virtual network

allow_virtual_network_access[RW]

@return [Boolean] Gets or sets whether the VMs in the linked virtual network space would be able to access all the VMs in local Virtual network space

etag[RW]

@return [String] A unique read-only string that changes whenever the resource is updated

name[RW]

@return [String] Gets or sets the name of the resource that is unique within a resource group. This name can be used to access the resource

peering_state[RW]

@return [VirtualNetworkPeeringState] Gets the status of the virtual network peering. Possible values include: 'Initiated', 'Connected', 'Disconnected'

provisioning_state[RW]

@return [String] Gets provisioning state of the resource

remote_virtual_network[RW]

@return [SubResource] Gets or sets the reference of the remote virtual network

use_remote_gateways[RW]

@return [Boolean] Gets or sets if remote gateways can be used on this virtual 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 1 peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway.

Public Class Methods

mapper() click to toggle source

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

# File lib/2016-06-01/generated/azure_mgmt_network/models/virtual_network_peering.rb, line 61
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