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 |
Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request.
See: Compute Engine API Reference for compute.snapshots.get
.
Synopsis
- type SnapshotsGetResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "snapshot" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Snapshot)))))))
- snapshotsGet :: Text -> Text -> SnapshotsGet
- data SnapshotsGet
- sggSnapshot :: Lens' SnapshotsGet Text
- sggProject :: Lens' SnapshotsGet Text
REST Resource
type SnapshotsGetResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("snapshots" :> (Capture "snapshot" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Snapshot))))))) Source #
A resource alias for compute.snapshots.get
method which the
SnapshotsGet
request conforms to.
Creating a Request
Creates a value of SnapshotsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SnapshotsGet Source #
Returns the specified Snapshot resource. Gets a list of available snapshots by making a list() request.
See: snapshotsGet
smart constructor.
Instances
Request Lenses
sggSnapshot :: Lens' SnapshotsGet Text Source #
Name of the Snapshot resource to return.
sggProject :: Lens' SnapshotsGet Text Source #
Project ID for this request.