gogol-compute-0.5.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 an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your 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 "requestId" Text :> (QueryParam "forceAttach" Bool :> (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 an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.

See: instancesAttachDisk smart constructor.

Instances
Eq InstancesAttachDisk Source # 
Instance details

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

Data InstancesAttachDisk Source # 
Instance details

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

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

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

Generic InstancesAttachDisk Source # 
Instance details

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

Associated Types

type Rep InstancesAttachDisk :: Type -> Type #

GoogleRequest InstancesAttachDisk Source # 
Instance details

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

Associated Types

type Rs InstancesAttachDisk :: Type #

type Scopes InstancesAttachDisk :: [Symbol] #

type Rep InstancesAttachDisk Source # 
Instance details

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

type Rep InstancesAttachDisk = D1 (MetaData "InstancesAttachDisk" "Network.Google.Resource.Compute.Instances.AttachDisk" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "InstancesAttachDisk'" PrefixI True) ((S1 (MetaSel (Just "_insRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_insProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_insZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_insPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AttachedDisk) :*: (S1 (MetaSel (Just "_insForceAttach") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_insInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesAttachDisk Source # 
Instance details

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

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

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

Request Lenses

insRequestId :: Lens' InstancesAttachDisk (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).

insProject :: Lens' InstancesAttachDisk Text Source #

Project ID for this request.

insZone :: Lens' InstancesAttachDisk Text Source #

The name of the zone for this request.

insForceAttach :: Lens' InstancesAttachDisk (Maybe Bool) Source #

Whether to force attach the disk even if it's currently attached to another instance.

insInstance :: Lens' InstancesAttachDisk Text Source #

The instance name for this request.