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 labels on an image. To learn more about labels, read the Labeling Resources documentation.
See: Compute Engine API Reference for compute.images.setLabels
.
Synopsis
- type ImagesSetLabelsResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("images" :> (Capture "resource" Text :> ("setLabels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetLabelsRequest :> Post '[JSON] Operation)))))))))
- imagesSetLabels :: Text -> GlobalSetLabelsRequest -> Text -> ImagesSetLabels
- data ImagesSetLabels
- islsProject :: Lens' ImagesSetLabels Text
- islsPayload :: Lens' ImagesSetLabels GlobalSetLabelsRequest
- islsResource :: Lens' ImagesSetLabels Text
REST Resource
type ImagesSetLabelsResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("images" :> (Capture "resource" Text :> ("setLabels" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GlobalSetLabelsRequest :> Post '[JSON] Operation))))))))) Source #
A resource alias for compute.images.setLabels
method which the
ImagesSetLabels
request conforms to.
Creating a Request
Creates a value of ImagesSetLabels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImagesSetLabels Source #
Sets the labels on an image. To learn more about labels, read the Labeling Resources documentation.
See: imagesSetLabels
smart constructor.
Instances
Request Lenses
islsProject :: Lens' ImagesSetLabels Text Source #
Project ID for this request.
islsPayload :: Lens' ImagesSetLabels GlobalSetLabelsRequest Source #
Multipart request metadata.
islsResource :: Lens' ImagesSetLabels Text Source #
Name or id of the resource for this request.