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 |
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))))))))) Source #
A resource alias for compute.images.deprecate
method which the
ImagesDeprecate
request conforms to.
Creating a Request
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.
Request Lenses
imamProject :: Lens' ImagesDeprecate Text Source #
Project ID for this request.
imamPayload :: Lens' ImagesDeprecate DeprecationStatus Source #
Multipart request metadata.