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

Contents

Description

Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning 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.abandonInstances.

Synopsis

REST Resource

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

A resource alias for compute.instanceGroupManagers.abandonInstances method which the InstanceGroupManagersAbandonInstances request conforms to.

Creating a Request

data InstanceGroupManagersAbandonInstances Source #

Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces the targetSize of the managed instance group by the number of instances that you abandon. This operation is marked as DONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning 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: instanceGroupManagersAbandonInstances smart constructor.

Instances
Eq InstanceGroupManagersAbandonInstances Source # 
Instance details

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

Data InstanceGroupManagersAbandonInstances Source # 
Instance details

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

Methods

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

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

toConstr :: InstanceGroupManagersAbandonInstances -> Constr #

dataTypeOf :: InstanceGroupManagersAbandonInstances -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstanceGroupManagersAbandonInstances Source # 
Instance details

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

Generic InstanceGroupManagersAbandonInstances Source # 
Instance details

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

GoogleRequest InstanceGroupManagersAbandonInstances Source # 
Instance details

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

type Rep InstanceGroupManagersAbandonInstances Source # 
Instance details

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

type Rep InstanceGroupManagersAbandonInstances = D1 (MetaData "InstanceGroupManagersAbandonInstances" "Network.Google.Resource.Compute.InstanceGroupManagers.AbandonInstances" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "InstanceGroupManagersAbandonInstances'" PrefixI True) ((S1 (MetaSel (Just "_igmaiRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_igmaiProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_igmaiInstanceGroupManager") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_igmaiZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_igmaiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstanceGroupManagersAbandonInstancesRequest)))))
type Scopes InstanceGroupManagersAbandonInstances Source # 
Instance details

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

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

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

Request Lenses

igmaiRequestId :: Lens' InstanceGroupManagersAbandonInstances (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).

igmaiZone :: Lens' InstanceGroupManagersAbandonInstances Text Source #

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