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.InstanceGroupManagers.Resize

Contents

Description

Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method.

See: Compute Engine API Reference for compute.instanceGroupManagers.resize.

Synopsis

REST Resource

type InstanceGroupManagersResizeResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instanceGroupManagers" :> (Capture "instanceGroupManager" Text :> ("resize" :> (QueryParam "size" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.instanceGroupManagers.resize method which the InstanceGroupManagersResize request conforms to.

Creating a Request

instanceGroupManagersResize Source #

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

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

data InstanceGroupManagersResize Source #

Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is marked DONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method.

See: instanceGroupManagersResize smart constructor.

Instances

Eq InstanceGroupManagersResize Source # 
Data InstanceGroupManagersResize Source # 

Methods

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

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

toConstr :: InstanceGroupManagersResize -> Constr #

dataTypeOf :: InstanceGroupManagersResize -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceGroupManagersResize Source # 
Generic InstanceGroupManagersResize Source # 
GoogleRequest InstanceGroupManagersResize Source # 
type Rep InstanceGroupManagersResize Source # 
type Rep InstanceGroupManagersResize = D1 (MetaData "InstanceGroupManagersResize" "Network.Google.Resource.Compute.InstanceGroupManagers.Resize" "gogol-compute-0.3.0-JmC4j0JQjdEJ6YK33fLFL4" False) (C1 (MetaCons "InstanceGroupManagersResize'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_igmrProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_igmrSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)))) ((:*:) (S1 (MetaSel (Just Symbol "_igmrInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_igmrZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstanceGroupManagersResize Source # 
type Scopes InstanceGroupManagersResize = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstanceGroupManagersResize Source # 

Request Lenses

igmrProject :: Lens' InstanceGroupManagersResize Text Source #

Project ID for this request.

igmrSize :: Lens' InstanceGroupManagersResize Int32 Source #

The number of running instances that the managed instance group should maintain at any given time. The group automatically adds or removes instances to maintain the number of instances specified by this parameter.

igmrInstanceGroupManager :: Lens' InstanceGroupManagersResize Text Source #

The name of the managed instance group.

igmrZone :: Lens' InstanceGroupManagersResize Text Source #

The name of the zone where the managed instance group is located.