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

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

Data InstancesSetMetadata Source # 
Instance details

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

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

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

Generic InstancesSetMetadata Source # 
Instance details

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

Associated Types

type Rep InstancesSetMetadata :: Type -> Type #

GoogleRequest InstancesSetMetadata Source # 
Instance details

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

Associated Types

type Rs InstancesSetMetadata :: Type #

type Scopes InstancesSetMetadata :: [Symbol] #

type Rep InstancesSetMetadata Source # 
Instance details

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

type Rep InstancesSetMetadata = D1 (MetaData "InstancesSetMetadata" "Network.Google.Resource.Compute.Instances.SetMetadata" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "InstancesSetMetadata'" PrefixI True) ((S1 (MetaSel (Just "_ismRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ismProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_ismZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ismPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Metadata) :*: S1 (MetaSel (Just "_ismInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesSetMetadata Source # 
Instance details

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

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

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

Request Lenses

ismRequestId :: Lens' InstancesSetMetadata (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).

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.