gogol-compute-0.3.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.SetMetadata

Contents

Description

Sets metadata for the specified instance to the data included in the request.

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

Synopsis

REST Resource

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

A resource alias for compute.instances.setMetadata method which the InstancesSetMetadata request conforms to.

Creating a Request

instancesSetMetadata Source #

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

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

data InstancesSetMetadata Source #

Sets metadata for the specified instance to the data included in the request.

See: instancesSetMetadata smart constructor.

Instances

Eq InstancesSetMetadata Source # 
Data InstancesSetMetadata Source # 

Methods

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

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

toConstr :: InstancesSetMetadata -> Constr #

dataTypeOf :: InstancesSetMetadata -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesSetMetadata Source # 
Generic InstancesSetMetadata Source # 
GoogleRequest InstancesSetMetadata Source # 
type Rep InstancesSetMetadata Source # 
type Rep InstancesSetMetadata = D1 (MetaData "InstancesSetMetadata" "Network.Google.Resource.Compute.Instances.SetMetadata" "gogol-compute-0.3.0-JmC4j0JQjdEJ6YK33fLFL4" False) (C1 (MetaCons "InstancesSetMetadata'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ismProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ismZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ismPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Metadata)) (S1 (MetaSel (Just Symbol "_ismInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesSetMetadata Source # 
type Scopes InstancesSetMetadata = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesSetMetadata Source # 

Request Lenses

ismProject :: Lens' InstancesSetMetadata Text Source #

Project ID for this request.

ismZone :: Lens' InstancesSetMetadata Text Source #

The name of the zone for this request.

ismPayload :: Lens' InstancesSetMetadata Metadata Source #

Multipart request metadata.

ismInstance :: Lens' InstancesSetMetadata Text Source #

Name of the instance scoping this request.