gogol-replicapool-0.4.0: Google Replica Pool 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.ReplicaPool.Pools.Resize

Contents

Description

Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.

See: Replica Pool API Reference for replicapool.pools.resize.

Synopsis

REST Resource

type PoolsResizeResource = "replicapool" :> ("v1beta1" :> ("projects" :> (Capture "projectName" Text :> ("zones" :> (Capture "zone" Text :> ("pools" :> (Capture "poolName" Text :> ("resize" :> (QueryParam "numReplicas" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] Pool)))))))))) Source #

A resource alias for replicapool.pools.resize method which the PoolsResize request conforms to.

Creating a Request

poolsResize Source #

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

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

data PoolsResize Source #

Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.

See: poolsResize smart constructor.

Instances
Eq PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Data PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Methods

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

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

toConstr :: PoolsResize -> Constr #

dataTypeOf :: PoolsResize -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Generic PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Associated Types

type Rep PoolsResize :: Type -> Type #

GoogleRequest PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Associated Types

type Rs PoolsResize :: Type #

type Scopes PoolsResize :: [Symbol] #

type Rep PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

type Rep PoolsResize = D1 (MetaData "PoolsResize" "Network.Google.Resource.ReplicaPool.Pools.Resize" "gogol-replicapool-0.4.0-l56ptZixCn8PWsfP2iNmj" False) (C1 (MetaCons "PoolsResize'" PrefixI True) ((S1 (MetaSel (Just "_prNumReplicas") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))) :*: S1 (MetaSel (Just "_prPoolName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_prZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_prProjectName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes PoolsResize Source # 
Instance details

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

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

Defined in Network.Google.Resource.ReplicaPool.Pools.Resize

Request Lenses

prNumReplicas :: Lens' PoolsResize (Maybe Int32) Source #

The desired number of replicas to resize to. If this number is larger than the existing number of replicas, new replicas will be added. If the number is smaller, then existing replicas will be deleted.

prPoolName :: Lens' PoolsResize Text Source #

The name of the replica pool for this request.

prZone :: Lens' PoolsResize Text Source #

The zone for this replica pool.

prProjectName :: Lens' PoolsResize Text Source #

The project ID for this replica pool.