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 organizational unit
See: Admin Directory API Reference for directory.orgunits.get
.
Synopsis
- type OrgUnitsGetResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] OrgUnit)))))))
- orgUnitsGet :: [Text] -> Text -> OrgUnitsGet
- data OrgUnitsGet
- ougOrgUnitPath :: Lens' OrgUnitsGet [Text]
- ougCustomerId :: Lens' OrgUnitsGet Text
REST Resource
type OrgUnitsGetResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customerId" Text :> ("orgunits" :> (Captures "orgUnitPath" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] OrgUnit))))))) Source #
A resource alias for directory.orgunits.get
method which the
OrgUnitsGet
request conforms to.
Creating a Request
Creates a value of OrgUnitsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrgUnitsGet Source #
Retrieve organizational unit
See: orgUnitsGet
smart constructor.
Instances
Request Lenses
ougOrgUnitPath :: Lens' OrgUnitsGet [Text] Source #
Full path of the organizational unit or its ID
ougCustomerId :: Lens' OrgUnitsGet Text Source #
Immutable ID of the G Suite account