gogol-admin-directory-0.4.0: Google Admin Directory SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Directory.OrgUnits.Insert

Contents

Description

Add organizational unit

See: Admin Directory API Reference for directory.orgunits.insert.

Synopsis

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

orgUnitsInsert Source #

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
Eq OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Data OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrgUnitsInsert -> c OrgUnitsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrgUnitsInsert #

toConstr :: OrgUnitsInsert -> Constr #

dataTypeOf :: OrgUnitsInsert -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrgUnitsInsert) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrgUnitsInsert) #

gmapT :: (forall b. Data b => b -> b) -> OrgUnitsInsert -> OrgUnitsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrgUnitsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrgUnitsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> OrgUnitsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> OrgUnitsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrgUnitsInsert -> m OrgUnitsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrgUnitsInsert -> m OrgUnitsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrgUnitsInsert -> m OrgUnitsInsert #

Show OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Generic OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Associated Types

type Rep OrgUnitsInsert :: Type -> Type #

GoogleRequest OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Associated Types

type Rs OrgUnitsInsert :: Type #

type Scopes OrgUnitsInsert :: [Symbol] #

type Rep OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

type Rep OrgUnitsInsert = D1 (MetaData "OrgUnitsInsert" "Network.Google.Resource.Directory.OrgUnits.Insert" "gogol-admin-directory-0.4.0-18Kt4WHsDGO3AIyYatQRRN" False) (C1 (MetaCons "OrgUnitsInsert'" PrefixI True) (S1 (MetaSel (Just "_ouiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 OrgUnit) :*: S1 (MetaSel (Just "_ouiCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

type Scopes OrgUnitsInsert = "https://www.googleapis.com/auth/admin.directory.orgunit" ': ([] :: [Symbol])
type Rs OrgUnitsInsert Source # 
Instance details

Defined in Network.Google.Resource.Directory.OrgUnits.Insert

Request Lenses

ouiPayload :: Lens' OrgUnitsInsert OrgUnit Source #

Multipart request metadata.

ouiCustomerId :: Lens' OrgUnitsInsert Text Source #

Immutable ID of the G Suite account