gogol-compute-0.5.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. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.

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 "requestId" Text :> (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. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.

See: instanceGroupManagersResize smart constructor.

Instances
Eq InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

Data InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

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 # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

Generic InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

Associated Types

type Rep InstanceGroupManagersResize :: Type -> Type #

GoogleRequest InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

type Rep InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

type Rep InstanceGroupManagersResize = D1 (MetaData "InstanceGroupManagersResize" "Network.Google.Resource.Compute.InstanceGroupManagers.Resize" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "InstanceGroupManagersResize'" PrefixI True) ((S1 (MetaSel (Just "_igmrRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_igmrProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_igmrSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)) :*: (S1 (MetaSel (Just "_igmrInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_igmrZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstanceGroupManagersResize Source # 
Instance details

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

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

Defined in Network.Google.Resource.Compute.InstanceGroupManagers.Resize

Request Lenses

igmrRequestId :: Lens' InstanceGroupManagersResize (Maybe Text) Source #

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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.