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.Images.Deprecate

Contents

Description

Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.

See: Compute Engine API Reference for compute.images.deprecate.

Synopsis

REST Resource

type ImagesDeprecateResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("images" :> (Capture "image" Text :> ("deprecate" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeprecationStatus :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.images.deprecate method which the ImagesDeprecate request conforms to.

Creating a Request

imagesDeprecate Source #

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

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

data ImagesDeprecate Source #

Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.

See: imagesDeprecate smart constructor.

Instances
Eq ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

Data ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

Methods

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

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

toConstr :: ImagesDeprecate -> Constr #

dataTypeOf :: ImagesDeprecate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

Generic ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

Associated Types

type Rep ImagesDeprecate :: Type -> Type #

GoogleRequest ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

Associated Types

type Rs ImagesDeprecate :: Type #

type Scopes ImagesDeprecate :: [Symbol] #

type Rep ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

type Rep ImagesDeprecate = D1 (MetaData "ImagesDeprecate" "Network.Google.Resource.Compute.Images.Deprecate" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "ImagesDeprecate'" PrefixI True) ((S1 (MetaSel (Just "_id1RequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_id1Image") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_id1Project") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_id1Payload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DeprecationStatus))))
type Scopes ImagesDeprecate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Images.Deprecate

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

Defined in Network.Google.Resource.Compute.Images.Deprecate

Request Lenses

id1RequestId :: Lens' ImagesDeprecate (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).

id1Project :: Lens' ImagesDeprecate Text Source #

Project ID for this request.