gogol-compute-0.2.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.Addresses.Insert

Contents

Description

Creates an address resource in the specified project using the data included in the request.

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

Synopsis

REST Resource

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

A resource alias for compute.addresses.insert method which the AddressesInsert request conforms to.

Creating a Request

addressesInsert Source #

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

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

data AddressesInsert Source #

Creates an address resource in the specified project using the data included in the request.

See: addressesInsert smart constructor.

Instances

Eq AddressesInsert Source # 
Data AddressesInsert Source # 

Methods

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

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

toConstr :: AddressesInsert -> Constr #

dataTypeOf :: AddressesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AddressesInsert Source # 
Generic AddressesInsert Source # 
GoogleRequest AddressesInsert Source # 
type Rep AddressesInsert Source # 
type Rep AddressesInsert = D1 (MetaData "AddressesInsert" "Network.Google.Resource.Compute.Addresses.Insert" "gogol-compute-0.2.0-Au6gUXsPbe4EHzC1JwxdWw" False) (C1 (MetaCons "AddressesInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_aiProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_aiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Address)) (S1 (MetaSel (Just Symbol "_aiRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes AddressesInsert Source # 
type Scopes AddressesInsert = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs AddressesInsert Source # 

Request Lenses

aiProject :: Lens' AddressesInsert Text Source #

Project ID for this request.

aiPayload :: Lens' AddressesInsert Address Source #

Multipart request metadata.

aiRegion :: Lens' AddressesInsert Text Source #

Name of the region for this request.