class Azure::Network::Mgmt::V2019_04_01::Models::P2SVpnGateway

P2SVpnGateway Resource.

Attributes

custom_routes[RW]

@return [AddressSpace] The reference of the address space resource which represents the custom routes specified by the customer for P2SVpnGateway and P2S VpnClient.

etag[RW]

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

p2svpn_server_configuration[RW]

@return [SubResource] The P2SVpnServerConfiguration to which the p2sVpnGateway is attached to.

provisioning_state[RW]

@return [ProvisioningState] The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

virtual_hub[RW]

@return [SubResource] The VirtualHub to which the gateway belongs.

vpn_client_address_pool[RW]

@return [AddressSpace] The reference of the address space resource which represents Address space for P2S VpnClient.

vpn_client_connection_health[RW]

@return [VpnClientConnectionHealth] All P2S VPN clients' connection health status.

vpn_gateway_scale_unit[RW]

@return [Integer] The scale unit for this p2s vpn gateway.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-04-01/generated/azure_mgmt_network/models/p2svpn_gateway.rb, line 50
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'P2SVpnGateway',
    type: {
      name: 'Composite',
      class_name: 'P2SVpnGateway',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        virtual_hub: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.virtualHub',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        vpn_gateway_scale_unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.vpnGatewayScaleUnit',
          type: {
            name: 'Number'
          }
        },
        p2svpn_server_configuration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.p2SVpnServerConfiguration',
          type: {
            name: 'Composite',
            class_name: 'SubResource'
          }
        },
        vpn_client_address_pool: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.vpnClientAddressPool',
          type: {
            name: 'Composite',
            class_name: 'AddressSpace'
          }
        },
        custom_routes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.customRoutes',
          type: {
            name: 'Composite',
            class_name: 'AddressSpace'
          }
        },
        vpn_client_connection_health: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.vpnClientConnectionHealth',
          type: {
            name: 'Composite',
            class_name: 'VpnClientConnectionHealth'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end