gogol-compute-0.1.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.SetDiskAutoDelete

Contents

Description

Sets the auto-delete flag for a disk attached to an instance.

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

Synopsis

REST Resource

type InstancesSetDiskAutoDeleteResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setDiskAutoDelete" :> (QueryParam "autoDelete" Bool :> (QueryParam "deviceName" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Operation))))))))))) Source #

A resource alias for compute.instances.setDiskAutoDelete method which the InstancesSetDiskAutoDelete request conforms to.

Creating a Request

instancesSetDiskAutoDelete Source #

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

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

data InstancesSetDiskAutoDelete Source #

Sets the auto-delete flag for a disk attached to an instance.

See: instancesSetDiskAutoDelete smart constructor.

Instances

Eq InstancesSetDiskAutoDelete Source # 
Data InstancesSetDiskAutoDelete Source # 

Methods

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

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

toConstr :: InstancesSetDiskAutoDelete -> Constr #

dataTypeOf :: InstancesSetDiskAutoDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesSetDiskAutoDelete Source # 
Generic InstancesSetDiskAutoDelete Source # 
GoogleRequest InstancesSetDiskAutoDelete Source # 
type Rep InstancesSetDiskAutoDelete Source # 
type Rep InstancesSetDiskAutoDelete = D1 (MetaData "InstancesSetDiskAutoDelete" "Network.Google.Resource.Compute.Instances.SetDiskAutoDelete" "gogol-compute-0.1.0-Fd4nHFZ7jFE8hoV8Pam8UC" False) (C1 (MetaCons "InstancesSetDiskAutoDelete'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_isdadProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_isdadAutoDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_isdadZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_isdadDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_isdadInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Scopes InstancesSetDiskAutoDelete Source # 
type Scopes InstancesSetDiskAutoDelete = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesSetDiskAutoDelete Source # 

Request Lenses

isdadProject :: Lens' InstancesSetDiskAutoDelete Text Source #

Project ID for this request.

isdadAutoDelete :: Lens' InstancesSetDiskAutoDelete Bool Source #

Whether to auto-delete the disk when the instance is deleted.

isdadZone :: Lens' InstancesSetDiskAutoDelete Text Source #

The name of the zone for this request.

isdadDeviceName :: Lens' InstancesSetDiskAutoDelete Text Source #

The device name of the disk to modify.