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))))))))) Source #

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

Creating a Request

instancesStop Source #

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 Source #

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 Source # 
Data InstancesStop Source # 

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 Source # 
Generic InstancesStop Source # 

Associated Types

type Rep InstancesStop :: * -> * #

GoogleRequest InstancesStop Source # 

Associated Types

type Rs InstancesStop :: * #

type Scopes InstancesStop :: [Symbol] #

type Rep InstancesStop Source # 
type Rep InstancesStop = D1 (MetaData "InstancesStop" "Network.Google.Resource.Compute.Instances.Stop" "gogol-compute-0.3.0-JmC4j0JQjdEJ6YK33fLFL4" 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 Source # 
type Scopes InstancesStop = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesStop Source # 

Request Lenses

isProject :: Lens' InstancesStop Text Source #

Project ID for this request.

isZone :: Lens' InstancesStop Text Source #

The name of the zone for this request.

isInstance :: Lens' InstancesStop Text Source #

Name of the instance resource to stop.