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.RecreateInstances

Contents

Description

Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action 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. You can specify a maximum of 1000 instances with this method per request.

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

Synopsis

REST Resource

type InstanceGroupManagersRecreateInstancesResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instanceGroupManagers" :> (Capture "instanceGroupManager" Text :> ("recreateInstances" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstanceGroupManagersRecreateInstancesRequest :> Post '[JSON] Operation))))))))))) Source #

A resource alias for compute.instanceGroupManagers.recreateInstances method which the InstanceGroupManagersRecreateInstances request conforms to.

Creating a Request

data InstanceGroupManagersRecreateInstances Source #

Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action 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. You can specify a maximum of 1000 instances with this method per request.

See: instanceGroupManagersRecreateInstances smart constructor.

Instances
Eq InstanceGroupManagersRecreateInstances Source # 
Instance details

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

Data InstanceGroupManagersRecreateInstances Source # 
Instance details

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

Methods

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

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

toConstr :: InstanceGroupManagersRecreateInstances -> Constr #

dataTypeOf :: InstanceGroupManagersRecreateInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceGroupManagersRecreateInstances Source # 
Instance details

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

Generic InstanceGroupManagersRecreateInstances Source # 
Instance details

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

GoogleRequest InstanceGroupManagersRecreateInstances Source # 
Instance details

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

type Rep InstanceGroupManagersRecreateInstances Source # 
Instance details

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

type Rep InstanceGroupManagersRecreateInstances = D1 (MetaData "InstanceGroupManagersRecreateInstances" "Network.Google.Resource.Compute.InstanceGroupManagers.RecreateInstances" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "InstanceGroupManagersRecreateInstances'" PrefixI True) ((S1 (MetaSel (Just "_igmriRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_igmriProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_igmriInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_igmriZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_igmriPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceGroupManagersRecreateInstancesRequest)))))
type Scopes InstanceGroupManagersRecreateInstances Source # 
Instance details

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

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

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

Request Lenses

igmriRequestId :: Lens' InstanceGroupManagersRecreateInstances (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).

igmriZone :: Lens' InstanceGroupManagersRecreateInstances Text Source #

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