gogol-compute-0.4.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.RegionInstanceGroupManagers.Resize

Contents

Description

Changes the intended size of 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 one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. 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.regionInstanceGroupManagers.resize.

Synopsis

REST Resource

type RegionInstanceGroupManagersResizeResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("regions" :> (Capture "region" 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.regionInstanceGroupManagers.resize method which the RegionInstanceGroupManagersResize request conforms to.

Creating a Request

data RegionInstanceGroupManagersResize Source #

Changes the intended size of 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 one or more instances. The resize operation is marked DONE if the resize request is successful. The underlying actions take additional time. You must separately verify the status of the creating or deleting actions with the listmanagedinstances method. 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: regionInstanceGroupManagersResize smart constructor.

Instances
Eq RegionInstanceGroupManagersResize Source # 
Instance details

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

Data RegionInstanceGroupManagersResize Source # 
Instance details

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

Methods

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

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

toConstr :: RegionInstanceGroupManagersResize -> Constr #

dataTypeOf :: RegionInstanceGroupManagersResize -> DataType #

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

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

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

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

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

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

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

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

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

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

Show RegionInstanceGroupManagersResize Source # 
Instance details

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

Generic RegionInstanceGroupManagersResize Source # 
Instance details

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

Associated Types

type Rep RegionInstanceGroupManagersResize :: Type -> Type #

GoogleRequest RegionInstanceGroupManagersResize Source # 
Instance details

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

type Rep RegionInstanceGroupManagersResize Source # 
Instance details

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

type Rep RegionInstanceGroupManagersResize = D1 (MetaData "RegionInstanceGroupManagersResize" "Network.Google.Resource.Compute.RegionInstanceGroupManagers.Resize" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "RegionInstanceGroupManagersResize'" PrefixI True) ((S1 (MetaSel (Just "_rigmrRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_rigmrProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_rigmrSize") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32)) :*: (S1 (MetaSel (Just "_rigmrInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_rigmrRegion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes RegionInstanceGroupManagersResize Source # 
Instance details

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

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

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

Request Lenses

rigmrRequestId :: Lens' RegionInstanceGroupManagersResize (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).

rigmrSize :: Lens' RegionInstanceGroupManagersResize Int32 Source #

Number of instances that should exist in this instance group manager.

rigmrRegion :: Lens' RegionInstanceGroupManagersResize Text Source #

Name of the region scoping this request.