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.Snapshots.SetLabels

Contents

Description

Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.

See: Compute Engine API Reference for compute.snapshots.setLabels.

Synopsis

REST Resource

type SnapshotsSetLabelsResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "resource" Text :> ("setLabels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetLabelsRequest :> Post '[JSON] Operation))))))))) Source #

A resource alias for compute.snapshots.setLabels method which the SnapshotsSetLabels request conforms to.

Creating a Request

snapshotsSetLabels Source #

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

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

data SnapshotsSetLabels Source #

Sets the labels on a snapshot. To learn more about labels, read the Labeling Resources documentation.

See: snapshotsSetLabels smart constructor.

Instances
Eq SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Data SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Methods

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

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

toConstr :: SnapshotsSetLabels -> Constr #

dataTypeOf :: SnapshotsSetLabels -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Generic SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Associated Types

type Rep SnapshotsSetLabels :: Type -> Type #

GoogleRequest SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Associated Types

type Rs SnapshotsSetLabels :: Type #

type Scopes SnapshotsSetLabels :: [Symbol] #

type Rep SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

type Rep SnapshotsSetLabels = D1 (MetaData "SnapshotsSetLabels" "Network.Google.Resource.Compute.Snapshots.SetLabels" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "SnapshotsSetLabels'" PrefixI True) (S1 (MetaSel (Just "_sslProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_sslPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 GlobalSetLabelsRequest) :*: S1 (MetaSel (Just "_sslResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes SnapshotsSetLabels Source # 
Instance details

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

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

Defined in Network.Google.Resource.Compute.Snapshots.SetLabels

Request Lenses

sslProject :: Lens' SnapshotsSetLabels Text Source #

Project ID for this request.

sslResource :: Lens' SnapshotsSetLabels Text Source #

Name or id of the resource for this request.