gogol-servicenetworking-0.5.0: Google Service Networking SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.ServiceNetworking.Services.Connections.Create

Contents

Description

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

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
Eq ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

Data ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ServicesConnectionsCreate -> c ServicesConnectionsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ServicesConnectionsCreate #

toConstr :: ServicesConnectionsCreate -> Constr #

dataTypeOf :: ServicesConnectionsCreate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ServicesConnectionsCreate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ServicesConnectionsCreate) #

gmapT :: (forall b. Data b => b -> b) -> ServicesConnectionsCreate -> ServicesConnectionsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ServicesConnectionsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ServicesConnectionsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> ServicesConnectionsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ServicesConnectionsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ServicesConnectionsCreate -> m ServicesConnectionsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ServicesConnectionsCreate -> m ServicesConnectionsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ServicesConnectionsCreate -> m ServicesConnectionsCreate #

Show ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

Generic ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

Associated Types

type Rep ServicesConnectionsCreate :: Type -> Type #

GoogleRequest ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

type Rep ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

type Rep ServicesConnectionsCreate = D1 (MetaData "ServicesConnectionsCreate" "Network.Google.Resource.ServiceNetworking.Services.Connections.Create" "gogol-servicenetworking-0.5.0-8ZYyNJVUNnRE5WvJBnqzZ8" False) (C1 (MetaCons "ServicesConnectionsCreate'" PrefixI True) ((S1 (MetaSel (Just "_sccParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_sccXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_sccUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_sccAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sccUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_sccPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Connection) :*: S1 (MetaSel (Just "_sccCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

type Scopes ServicesConnectionsCreate = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/service.management" ': ([] :: [Symbol]))
type Rs ServicesConnectionsCreate Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.Connections.Create

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").

sccUploadType :: Lens' ServicesConnectionsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").