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.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 "requestId" 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 # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

Data InstancesSetDiskAutoDelete Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

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 # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

Generic InstancesSetDiskAutoDelete Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

Associated Types

type Rep InstancesSetDiskAutoDelete :: Type -> Type #

GoogleRequest InstancesSetDiskAutoDelete Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

type Rep InstancesSetDiskAutoDelete Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

type Rep InstancesSetDiskAutoDelete = D1 (MetaData "InstancesSetDiskAutoDelete" "Network.Google.Resource.Compute.Instances.SetDiskAutoDelete" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "InstancesSetDiskAutoDelete'" PrefixI True) ((S1 (MetaSel (Just "_isdadRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_isdadProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_isdadAutoDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))) :*: (S1 (MetaSel (Just "_isdadZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_isdadDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_isdadInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesSetDiskAutoDelete Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

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

Defined in Network.Google.Resource.Compute.Instances.SetDiskAutoDelete

Request Lenses

isdadRequestId :: Lens' InstancesSetDiskAutoDelete (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).

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. Make a get() request on the instance to view currently attached disks and device names.

isdadInstance :: Lens' InstancesSetDiskAutoDelete Text Source #

The instance name for this request.