gogol-android-enterprise-0.4.0: Google Play EMM 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.AndroidEnterprise.Users.Insert

Contents

Description

Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.

See: Google Play EMM API Reference for androidenterprise.users.insert.

Synopsis

REST Resource

type UsersInsertResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] User :> Post '[JSON] User)))))) Source #

A resource alias for androidenterprise.users.insert method which the UsersInsert request conforms to.

Creating a Request

usersInsert Source #

Creates a value of UsersInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersInsert Source #

Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.

See: usersInsert smart constructor.

Instances
Eq UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Data UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Methods

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

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

toConstr :: UsersInsert -> Constr #

dataTypeOf :: UsersInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Generic UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Associated Types

type Rep UsersInsert :: Type -> Type #

GoogleRequest UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Associated Types

type Rs UsersInsert :: Type #

type Scopes UsersInsert :: [Symbol] #

type Rep UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

type Rep UsersInsert = D1 (MetaData "UsersInsert" "Network.Google.Resource.AndroidEnterprise.Users.Insert" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "UsersInsert'" PrefixI True) (S1 (MetaSel (Just "_uiEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_uiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 User)))
type Scopes UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

type Scopes UsersInsert = "https://www.googleapis.com/auth/androidenterprise" ': ([] :: [Symbol])
type Rs UsersInsert Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Users.Insert

Request Lenses

uiEnterpriseId :: Lens' UsersInsert Text Source #

The ID of the enterprise.

uiPayload :: Lens' UsersInsert User Source #

Multipart request metadata.