| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Compute.VPNTunnels.Insert
Description
Creates a VpnTunnel resource in the specified project and region using the data included in the request.
See: Compute Engine API Reference for compute.vpnTunnels.insert.
- type VPNTunnelsInsertResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("vpnTunnels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] VPNTunnel :> Post '[JSON] Operation))))))))
- vpnTunnelsInsert :: Text -> VPNTunnel -> Text -> VPNTunnelsInsert
- data VPNTunnelsInsert
- vtiProject :: Lens' VPNTunnelsInsert Text
- vtiPayload :: Lens' VPNTunnelsInsert VPNTunnel
- vtiRegion :: Lens' VPNTunnelsInsert Text
REST Resource
type VPNTunnelsInsertResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("vpnTunnels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] VPNTunnel :> Post '[JSON] Operation)))))))) #
A resource alias for compute.vpnTunnels.insert method which the
VPNTunnelsInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> VPNTunnel | |
| -> Text | |
| -> VPNTunnelsInsert |
Creates a value of VPNTunnelsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VPNTunnelsInsert #
Creates a VpnTunnel resource in the specified project and region using the data included in the request.
See: vpnTunnelsInsert smart constructor.
Instances
Request Lenses
vtiProject :: Lens' VPNTunnelsInsert Text #
Project ID for this request.
vtiPayload :: Lens' VPNTunnelsInsert VPNTunnel #
Multipart request metadata.
vtiRegion :: Lens' VPNTunnelsInsert Text #
Name of the region for this request.