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

Contents

Description

Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting 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.deleteInstances.

Synopsis

REST Resource

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

A resource alias for compute.instanceGroupManagers.deleteInstances method which the InstanceGroupManagersDeleteInstances request conforms to.

Creating a Request

data InstanceGroupManagersDeleteInstances Source #

Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces the targetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting 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: instanceGroupManagersDeleteInstances smart constructor.

Instances
Eq InstanceGroupManagersDeleteInstances Source # 
Instance details

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

Data InstanceGroupManagersDeleteInstances Source # 
Instance details

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

Methods

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

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

toConstr :: InstanceGroupManagersDeleteInstances -> Constr #

dataTypeOf :: InstanceGroupManagersDeleteInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceGroupManagersDeleteInstances Source # 
Instance details

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

Generic InstanceGroupManagersDeleteInstances Source # 
Instance details

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

GoogleRequest InstanceGroupManagersDeleteInstances Source # 
Instance details

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

type Rep InstanceGroupManagersDeleteInstances Source # 
Instance details

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

type Rep InstanceGroupManagersDeleteInstances = D1 (MetaData "InstanceGroupManagersDeleteInstances" "Network.Google.Resource.Compute.InstanceGroupManagers.DeleteInstances" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "InstanceGroupManagersDeleteInstances'" PrefixI True) ((S1 (MetaSel (Just "_igmdiRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_igmdiProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_igmdiInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_igmdiZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_igmdiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceGroupManagersDeleteInstancesRequest)))))
type Scopes InstanceGroupManagersDeleteInstances Source # 
Instance details

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

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

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

Request Lenses

igmdiRequestId :: Lens' InstanceGroupManagersDeleteInstances (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).

igmdiZone :: Lens' InstanceGroupManagersDeleteInstances Text Source #

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