gogol-compute-0.3.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.Routers.Insert

Contents

Description

Creates a Router resource in the specified project and region using the data included in the request.

See: Compute Engine API Reference for compute.routers.insert.

Synopsis

REST Resource

type RoutersInsertResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" Text :> ("routers" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Router :> Post '[JSON] Operation)))))))) Source #

A resource alias for compute.routers.insert method which the RoutersInsert request conforms to.

Creating a Request

routersInsert Source #

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

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

data RoutersInsert Source #

Creates a Router resource in the specified project and region using the data included in the request.

See: routersInsert smart constructor.

Instances

Eq RoutersInsert Source # 
Data RoutersInsert Source # 

Methods

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

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

toConstr :: RoutersInsert -> Constr #

dataTypeOf :: RoutersInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RoutersInsert Source # 
Generic RoutersInsert Source # 

Associated Types

type Rep RoutersInsert :: * -> * #

GoogleRequest RoutersInsert Source # 

Associated Types

type Rs RoutersInsert :: * #

type Scopes RoutersInsert :: [Symbol] #

type Rep RoutersInsert Source # 
type Rep RoutersInsert = D1 (MetaData "RoutersInsert" "Network.Google.Resource.Compute.Routers.Insert" "gogol-compute-0.3.0-JmC4j0JQjdEJ6YK33fLFL4" False) (C1 (MetaCons "RoutersInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_riProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_riPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Router)) (S1 (MetaSel (Just Symbol "_riRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes RoutersInsert Source # 
type Scopes RoutersInsert = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs RoutersInsert Source # 

Request Lenses

riProject :: Lens' RoutersInsert Text Source #

Project ID for this request.

riPayload :: Lens' RoutersInsert Router Source #

Multipart request metadata.

riRegion :: Lens' RoutersInsert Text Source #

Name of the region for this request.