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

Contents

Description

Detaches a disk from an instance.

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

Synopsis

REST Resource

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

A resource alias for compute.instances.detachDisk method which the InstancesDetachDisk request conforms to.

Creating a Request

instancesDetachDisk Source #

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

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

data InstancesDetachDisk Source #

Detaches a disk from an instance.

See: instancesDetachDisk smart constructor.

Instances
Eq InstancesDetachDisk Source # 
Instance details

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

Data InstancesDetachDisk Source # 
Instance details

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

Methods

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

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

toConstr :: InstancesDetachDisk -> Constr #

dataTypeOf :: InstancesDetachDisk -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesDetachDisk Source # 
Instance details

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

Generic InstancesDetachDisk Source # 
Instance details

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

Associated Types

type Rep InstancesDetachDisk :: Type -> Type #

GoogleRequest InstancesDetachDisk Source # 
Instance details

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

Associated Types

type Rs InstancesDetachDisk :: Type #

type Scopes InstancesDetachDisk :: [Symbol] #

type Rep InstancesDetachDisk Source # 
Instance details

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

type Rep InstancesDetachDisk = D1 (MetaData "InstancesDetachDisk" "Network.Google.Resource.Compute.Instances.DetachDisk" "gogol-compute-0.4.0-2sGH21T2IC64ihLlqj83IP" False) (C1 (MetaCons "InstancesDetachDisk'" PrefixI True) ((S1 (MetaSel (Just "_idddRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_idddProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_idddZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_idddDeviceName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_idddInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesDetachDisk Source # 
Instance details

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

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

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

Request Lenses

idddRequestId :: Lens' InstancesDetachDisk (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).

idddProject :: Lens' InstancesDetachDisk Text Source #

Project ID for this request.

idddZone :: Lens' InstancesDetachDisk Text Source #

The name of the zone for this request.

idddDeviceName :: Lens' InstancesDetachDisk Text Source #

The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names.

idddInstance :: Lens' InstancesDetachDisk Text Source #

Instance name for this request.