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 |
Creates a private connection that establishes a VPC Network Peering connection to a VPC network in the service producer's organization. The administrator of the service consumer's VPC network invokes this method. The administrator must assign one or more allocated IP ranges for provisioning subnetworks in the service producer's VPC network. This connection is used for all supported services in the service producer's organization, so it only needs to be invoked once. The response from the `get` operation will be of type `Connection` if the operation successfully completes.
See: Service Networking API Reference for servicenetworking.services.connections.create
.
Synopsis
- type ServicesConnectionsCreateResource = "v1" :> (Capture "parent" Text :> ("connections" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Connection :> Post '[JSON] Operation)))))))))
- servicesConnectionsCreate :: Text -> Connection -> ServicesConnectionsCreate
- data ServicesConnectionsCreate
- sccParent :: Lens' ServicesConnectionsCreate Text
- sccXgafv :: Lens' ServicesConnectionsCreate (Maybe Xgafv)
- sccUploadProtocol :: Lens' ServicesConnectionsCreate (Maybe Text)
- sccAccessToken :: Lens' ServicesConnectionsCreate (Maybe Text)
- sccUploadType :: Lens' ServicesConnectionsCreate (Maybe Text)
- sccPayload :: Lens' ServicesConnectionsCreate Connection
- sccCallback :: Lens' ServicesConnectionsCreate (Maybe Text)
REST Resource
type ServicesConnectionsCreateResource = "v1" :> (Capture "parent" Text :> ("connections" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Connection :> Post '[JSON] Operation))))))))) Source #
A resource alias for servicenetworking.services.connections.create
method which the
ServicesConnectionsCreate
request conforms to.
Creating a Request
servicesConnectionsCreate Source #
Creates a value of ServicesConnectionsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesConnectionsCreate Source #
Creates a private connection that establishes a VPC Network Peering connection to a VPC network in the service producer's organization. The administrator of the service consumer's VPC network invokes this method. The administrator must assign one or more allocated IP ranges for provisioning subnetworks in the service producer's VPC network. This connection is used for all supported services in the service producer's organization, so it only needs to be invoked once. The response from the `get` operation will be of type `Connection` if the operation successfully completes.
See: servicesConnectionsCreate
smart constructor.
Instances
Request Lenses
sccParent :: Lens' ServicesConnectionsCreate Text Source #
The service that is managing peering connectivity for a service producer's organization. For Google services that support this functionality, this value is `services/servicenetworking.googleapis.com`.
sccUploadProtocol :: Lens' ServicesConnectionsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sccAccessToken :: Lens' ServicesConnectionsCreate (Maybe Text) Source #
OAuth access token.
sccUploadType :: Lens' ServicesConnectionsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sccPayload :: Lens' ServicesConnectionsCreate Connection Source #
Multipart request metadata.
sccCallback :: Lens' ServicesConnectionsCreate (Maybe Text) Source #
JSONP