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 |
Creates a new shared drive.
See: Drive API Reference for drive.drives.create
.
Synopsis
- type DrivesCreateResource = "drive" :> ("v3" :> ("drives" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Drive :> Post '[JSON] Drive)))))
- drivesCreate :: Text -> Drive -> DrivesCreate
- data DrivesCreate
- dcRequestId :: Lens' DrivesCreate Text
- dcPayload :: Lens' DrivesCreate Drive
REST Resource
type DrivesCreateResource = "drive" :> ("v3" :> ("drives" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Drive :> Post '[JSON] Drive))))) Source #
A resource alias for drive.drives.create
method which the
DrivesCreate
request conforms to.
Creating a Request
Creates a value of DrivesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DrivesCreate Source #
Creates a new shared drive.
See: drivesCreate
smart constructor.
Instances
Request Lenses
dcRequestId :: Lens' DrivesCreate Text Source #
An ID, such as a random UUID, which uniquely identifies this user's request for idempotent creation of a shared drive. A repeated request by the same user and with the same request ID will avoid creating duplicates by attempting to create the same shared drive. If the shared drive already exists a 409 error will be returned.