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 |
Detaches a disk from an instance.
See: Compute Engine API Reference for compute.instances.detachDisk
.
- type InstancesDetachDiskResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("detachDisk" :> (QueryParam "deviceName" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Operation))))))))))
- instancesDetachDisk :: Text -> Text -> Text -> Text -> InstancesDetachDisk
- data InstancesDetachDisk
- iddProject :: Lens' InstancesDetachDisk Text
- iddZone :: Lens' InstancesDetachDisk Text
- iddDeviceName :: Lens' InstancesDetachDisk Text
- iddInstance :: Lens' InstancesDetachDisk Text
REST Resource
type InstancesDetachDiskResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("detachDisk" :> (QueryParam "deviceName" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Operation)))))))))) Source #
A resource alias for compute.instances.detachDisk
method which the
InstancesDetachDisk
request conforms to.
Creating a Request
Creates a value of InstancesDetachDisk
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data InstancesDetachDisk Source #
Detaches a disk from an instance.
See: instancesDetachDisk
smart constructor.
Request Lenses
iddProject :: Lens' InstancesDetachDisk Text Source #
Project ID for this request.
iddDeviceName :: Lens' InstancesDetachDisk Text Source #
Disk device name to detach.
iddInstance :: Lens' InstancesDetachDisk Text Source #
Instance name.