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 |
Create schema.
See: Admin Directory API Reference for directory.schemas.insert
.
Synopsis
- type SchemasInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("schemas" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Schema :> Post '[JSON] Schema)))))))
- schemasInsert :: Schema -> Text -> SchemasInsert
- data SchemasInsert
- siPayload :: Lens' SchemasInsert Schema
- siCustomerId :: Lens' SchemasInsert Text
REST Resource
type SchemasInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("schemas" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Schema :> Post '[JSON] Schema))))))) Source #
A resource alias for directory.schemas.insert
method which the
SchemasInsert
request conforms to.
Creating a Request
Creates a value of SchemasInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SchemasInsert Source #
Create schema.
See: schemasInsert
smart constructor.
Instances
Request Lenses
siCustomerId :: Lens' SchemasInsert Text Source #
Immutable ID of the G Suite account