gogol-compute-0.5.0: Google Compute Engine 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.Compute.Networks.AddPeering

Contents

Description

Adds a peering to the specified network.

See: Compute Engine API Reference for compute.networks.addPeering.

Synopsis

REST Resource

type NetworksAddPeeringResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("networks" :> (Capture "network" Text :> ("addPeering" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] NetworksAddPeeringRequest :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.networks.addPeering method which the NetworksAddPeering request conforms to.

Creating a Request

networksAddPeering Source #

Creates a value of NetworksAddPeering with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data NetworksAddPeering Source #

Adds a peering to the specified network.

See: networksAddPeering smart constructor.

Instances
Eq NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Data NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Methods

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

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

toConstr :: NetworksAddPeering -> Constr #

dataTypeOf :: NetworksAddPeering -> DataType #

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

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

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

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

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

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

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

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

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

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

Show NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Generic NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Associated Types

type Rep NetworksAddPeering :: Type -> Type #

GoogleRequest NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Associated Types

type Rs NetworksAddPeering :: Type #

type Scopes NetworksAddPeering :: [Symbol] #

type Rep NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

type Rep NetworksAddPeering = D1 (MetaData "NetworksAddPeering" "Network.Google.Resource.Compute.Networks.AddPeering" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "NetworksAddPeering'" PrefixI True) ((S1 (MetaSel (Just "_napRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_napProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_napNetwork") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_napPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 NetworksAddPeeringRequest))))
type Scopes NetworksAddPeering Source # 
Instance details

Defined in Network.Google.Resource.Compute.Networks.AddPeering

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

Defined in Network.Google.Resource.Compute.Networks.AddPeering

Request Lenses

napRequestId :: Lens' NetworksAddPeering (Maybe Text) Source #

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

napProject :: Lens' NetworksAddPeering Text Source #

Project ID for this request.

napNetwork :: Lens' NetworksAddPeering Text Source #

Name of the network resource to add peering to.