gogol-compute-0.3.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.Instances.Stop

Contents

Description

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.

See: Compute Engine API Reference for compute.instances.stop.

Synopsis

REST Resource

type InstancesStopResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("stop" :> (QueryParam "alt" AltJSON :> Post '[JSON] Operation))))))))) #

A resource alias for compute.instances.stop method which the InstancesStop request conforms to.

Creating a Request

instancesStop #

Creates a value of InstancesStop with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data InstancesStop #

Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur per-minute, virtual machine usage charges while they are stopped, but any resources that the virtual machine is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.

See: instancesStop smart constructor.

Instances

Eq InstancesStop # 
Data InstancesStop # 

Methods

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

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

toConstr :: InstancesStop -> Constr #

dataTypeOf :: InstancesStop -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesStop # 
Generic InstancesStop # 

Associated Types

type Rep InstancesStop :: * -> * #

GoogleRequest InstancesStop # 

Associated Types

type Rs InstancesStop :: * #

type Scopes InstancesStop :: [Symbol] #

type Rep InstancesStop # 
type Rep InstancesStop = D1 (MetaData "InstancesStop" "Network.Google.Resource.Compute.Instances.Stop" "gogol-compute-0.3.0-AiveJYGMkh6DCzxhlPqzD9" False) (C1 (MetaCons "InstancesStop'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_isProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_isZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_isInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesStop # 
type Scopes InstancesStop = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesStop # 

Request Lenses

isProject :: Lens' InstancesStop Text #

Project ID for this request.

isZone :: Lens' InstancesStop Text #

The name of the zone for this request.

isInstance :: Lens' InstancesStop Text #

Name of the instance resource to stop.