| 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 |
Network.Google.Resource.Directory.OrgUnits.Insert
Description
Add organizational unit
See: Admin Directory API Reference for directory.orgunits.insert.
Synopsis
- type OrgUnitsInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Post '[JSON] OrgUnit)))))))
- orgUnitsInsert :: OrgUnit -> Text -> OrgUnitsInsert
- data OrgUnitsInsert
- ouiPayload :: Lens' OrgUnitsInsert OrgUnit
- ouiCustomerId :: Lens' OrgUnitsInsert Text
REST Resource
type OrgUnitsInsertResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrgUnit :> Post '[JSON] OrgUnit))))))) Source #
A resource alias for directory.orgunits.insert method which the
OrgUnitsInsert request conforms to.
Creating a Request
Arguments
| :: OrgUnit | |
| -> Text | |
| -> OrgUnitsInsert |
Creates a value of OrgUnitsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrgUnitsInsert Source #
Add organizational unit
See: orgUnitsInsert smart constructor.
Instances
Request Lenses
ouiPayload :: Lens' OrgUnitsInsert OrgUnit Source #
Multipart request metadata.
ouiCustomerId :: Lens' OrgUnitsInsert Text Source #
Immutable ID of the G Suite account