gogol-compute-0.2.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.AttachDisk

Contents

Description

Attaches a Disk resource to an instance.

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

Synopsis

REST Resource

type InstancesAttachDiskResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("attachDisk" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AttachedDisk :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.instances.attachDisk method which the InstancesAttachDisk request conforms to.

Creating a Request

instancesAttachDisk Source #

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

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

data InstancesAttachDisk Source #

Attaches a Disk resource to an instance.

See: instancesAttachDisk smart constructor.

Instances

Eq InstancesAttachDisk Source # 
Data InstancesAttachDisk Source # 

Methods

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

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

toConstr :: InstancesAttachDisk -> Constr #

dataTypeOf :: InstancesAttachDisk -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesAttachDisk Source # 
Generic InstancesAttachDisk Source # 
GoogleRequest InstancesAttachDisk Source # 
type Rep InstancesAttachDisk Source # 
type Rep InstancesAttachDisk = D1 (MetaData "InstancesAttachDisk" "Network.Google.Resource.Compute.Instances.AttachDisk" "gogol-compute-0.2.0-Au6gUXsPbe4EHzC1JwxdWw" False) (C1 (MetaCons "InstancesAttachDisk'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_iadProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_iadZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_iadPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AttachedDisk)) (S1 (MetaSel (Just Symbol "_iadInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesAttachDisk Source # 
type Scopes InstancesAttachDisk = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesAttachDisk Source # 

Request Lenses

iadProject :: Lens' InstancesAttachDisk Text Source #

Project ID for this request.

iadZone :: Lens' InstancesAttachDisk Text Source #

The name of the zone for this request.

iadInstance :: Lens' InstancesAttachDisk Text Source #

The instance name for this request.