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.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 "guestFlush" Bool :> (QueryParam "requestId" Text :> (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 # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

Data DisksCreateSnapshot Source # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

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

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

Generic DisksCreateSnapshot Source # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

Associated Types

type Rep DisksCreateSnapshot :: Type -> Type #

GoogleRequest DisksCreateSnapshot Source # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

Associated Types

type Rs DisksCreateSnapshot :: Type #

type Scopes DisksCreateSnapshot :: [Symbol] #

type Rep DisksCreateSnapshot Source # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

type Rep DisksCreateSnapshot = D1 (MetaData "DisksCreateSnapshot" "Network.Google.Resource.Compute.Disks.CreateSnapshot" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "DisksCreateSnapshot'" PrefixI True) ((S1 (MetaSel (Just "_dcsGuestFlush") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 (MetaSel (Just "_dcsRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dcsProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_dcsDisk") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_dcsZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dcsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Snapshot)))))
type Scopes DisksCreateSnapshot Source # 
Instance details

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

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

Defined in Network.Google.Resource.Compute.Disks.CreateSnapshot

Request Lenses

dcsRequestId :: Lens' DisksCreateSnapshot (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).

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.