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