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.ForwardingRules.Insert

Contents

Description

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

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

Synopsis

REST Resource

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

A resource alias for compute.forwardingRules.insert method which the ForwardingRulesInsert request conforms to.

Creating a Request

forwardingRulesInsert Source #

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

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

data ForwardingRulesInsert Source #

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

See: forwardingRulesInsert smart constructor.

Instances

Eq ForwardingRulesInsert Source # 
Data ForwardingRulesInsert Source # 

Methods

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

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

toConstr :: ForwardingRulesInsert -> Constr #

dataTypeOf :: ForwardingRulesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ForwardingRulesInsert Source # 
Generic ForwardingRulesInsert Source # 
GoogleRequest ForwardingRulesInsert Source # 
type Rep ForwardingRulesInsert Source # 
type Rep ForwardingRulesInsert = D1 (MetaData "ForwardingRulesInsert" "Network.Google.Resource.Compute.ForwardingRules.Insert" "gogol-compute-0.3.0-JmC4j0JQjdEJ6YK33fLFL4" False) (C1 (MetaCons "ForwardingRulesInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_friProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_friPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ForwardingRule)) (S1 (MetaSel (Just Symbol "_friRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes ForwardingRulesInsert Source # 
type Scopes ForwardingRulesInsert = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs ForwardingRulesInsert Source # 

Request Lenses

friProject :: Lens' ForwardingRulesInsert Text Source #

Project ID for this request.

friRegion :: Lens' ForwardingRulesInsert Text Source #

Name of the region scoping this request.