| Copyright | (c) 2015-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.Compute.Images.Deprecate
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.
- type ImagesDeprecateResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("images" :> (Capture "image" Text :> ("deprecate" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeprecationStatus :> Post '[JSON] Operation)))))))))
- imagesDeprecate :: Text -> Text -> DeprecationStatus -> ImagesDeprecate
- data ImagesDeprecate
- imamImage :: Lens' ImagesDeprecate Text
- imamProject :: Lens' ImagesDeprecate Text
- imamPayload :: Lens' ImagesDeprecate DeprecationStatus
REST Resource
type ImagesDeprecateResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("images" :> (Capture "image" Text :> ("deprecate" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeprecationStatus :> Post '[JSON] Operation))))))))) #
A resource alias for compute.images.deprecate method which the
ImagesDeprecate request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeprecationStatus | |
| -> ImagesDeprecate |
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 #
Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.
See: imagesDeprecate smart constructor.
Instances
Request Lenses
imamImage :: Lens' ImagesDeprecate Text #
Image name.
imamProject :: Lens' ImagesDeprecate Text #
Project ID for this request.
imamPayload :: Lens' ImagesDeprecate DeprecationStatus #
Multipart request metadata.