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 machine type. Gets a list of available machine types by making a list() request.
See: Compute Engine API Reference for compute.machineTypes.get
.
Synopsis
- type MachineTypesGetResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("machineTypes" :> (Capture "machineType" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MachineType))))))))
- machineTypesGet :: Text -> Text -> Text -> MachineTypesGet
- data MachineTypesGet
- mtgProject :: Lens' MachineTypesGet Text
- mtgZone :: Lens' MachineTypesGet Text
- mtgMachineType :: Lens' MachineTypesGet Text
REST Resource
type MachineTypesGetResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("machineTypes" :> (Capture "machineType" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] MachineType)))))))) Source #
A resource alias for compute.machineTypes.get
method which the
MachineTypesGet
request conforms to.
Creating a Request
Creates a value of MachineTypesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MachineTypesGet Source #
Returns the specified machine type. Gets a list of available machine types by making a list() request.
See: machineTypesGet
smart constructor.
Instances
Request Lenses
mtgProject :: Lens' MachineTypesGet Text Source #
Project ID for this request.
mtgMachineType :: Lens' MachineTypesGet Text Source #
Name of the machine type to return.