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 |
Retrieve all organizational units
See: Admin Directory API Reference for directory.orgunits.list
.
Synopsis
- type OrgUnitsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (QueryParam "orgUnitPath" Text :> (QueryParam "type" OrgUnitsListType :> (QueryParam "alt" AltJSON :> Get '[JSON] OrgUnits))))))))
- orgUnitsList :: Text -> OrgUnitsList
- data OrgUnitsList
- oulOrgUnitPath :: Lens' OrgUnitsList Text
- oulCustomerId :: Lens' OrgUnitsList Text
- oulType :: Lens' OrgUnitsList (Maybe OrgUnitsListType)
REST Resource
type OrgUnitsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (QueryParam "orgUnitPath" Text :> (QueryParam "type" OrgUnitsListType :> (QueryParam "alt" AltJSON :> Get '[JSON] OrgUnits)))))))) Source #
A resource alias for directory.orgunits.list
method which the
OrgUnitsList
request conforms to.
Creating a Request
Creates a value of OrgUnitsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrgUnitsList Source #
Retrieve all organizational units
See: orgUnitsList
smart constructor.
Instances
Request Lenses
oulOrgUnitPath :: Lens' OrgUnitsList Text Source #
the URL-encoded organizational unit's path or its ID
oulCustomerId :: Lens' OrgUnitsList Text Source #
Immutable ID of the G Suite account
oulType :: Lens' OrgUnitsList (Maybe OrgUnitsListType) Source #
Whether to return all sub-organizations or just immediate children