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.Disks.CreateSnapshot

Contents

Description

Creates a snapshot of a specified persistent disk.

See: Compute Engine API Reference for compute.disks.createSnapshot.

Synopsis

REST Resource

type DisksCreateSnapshotResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("disks" :> (Capture "disk" Text :> ("createSnapshot" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Snapshot :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.disks.createSnapshot method which the DisksCreateSnapshot request conforms to.

Creating a Request

disksCreateSnapshot Source #

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

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

data DisksCreateSnapshot Source #

Creates a snapshot of a specified persistent disk.

See: disksCreateSnapshot smart constructor.

Instances

Eq DisksCreateSnapshot Source # 
Data DisksCreateSnapshot Source # 

Methods

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

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

toConstr :: DisksCreateSnapshot -> Constr #

dataTypeOf :: DisksCreateSnapshot -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DisksCreateSnapshot Source # 
Generic DisksCreateSnapshot Source # 
GoogleRequest DisksCreateSnapshot Source # 
type Rep DisksCreateSnapshot Source # 
type Rep DisksCreateSnapshot = D1 (MetaData "DisksCreateSnapshot" "Network.Google.Resource.Compute.Disks.CreateSnapshot" "gogol-compute-0.2.0-Au6gUXsPbe4EHzC1JwxdWw" False) (C1 (MetaCons "DisksCreateSnapshot'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dcsProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dcsDisk") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dcsZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dcsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Snapshot)))))
type Scopes DisksCreateSnapshot Source # 
type Scopes DisksCreateSnapshot = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs DisksCreateSnapshot Source # 

Request Lenses

dcsProject :: Lens' DisksCreateSnapshot Text Source #

Project ID for this request.

dcsDisk :: Lens' DisksCreateSnapshot Text Source #

Name of the persistent disk to snapshot.

dcsZone :: Lens' DisksCreateSnapshot Text Source #

The name of the zone for this request.

dcsPayload :: Lens' DisksCreateSnapshot Snapshot Source #

Multipart request metadata.