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