gogol-androidmanagement-0.4.0: Google Android Management 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.AndroidManagement.Enterprises.EnrollmentTokens.Create

Contents

Description

Creates an enrollment token for a given enterprise.

See: Android Management API Reference for androidmanagement.enterprises.enrollmentTokens.create.

Synopsis

REST Resource

type EnterprisesEnrollmentTokensCreateResource = "v1" :> (Capture "parent" Text :> ("enrollmentTokens" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] EnrollmentToken :> Post '[JSON] EnrollmentToken))))))))) Source #

A resource alias for androidmanagement.enterprises.enrollmentTokens.create method which the EnterprisesEnrollmentTokensCreate request conforms to.

Creating a Request

enterprisesEnrollmentTokensCreate Source #

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

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

data EnterprisesEnrollmentTokensCreate Source #

Creates an enrollment token for a given enterprise.

See: enterprisesEnrollmentTokensCreate smart constructor.

Instances
Eq EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

Data EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

Methods

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

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

toConstr :: EnterprisesEnrollmentTokensCreate -> Constr #

dataTypeOf :: EnterprisesEnrollmentTokensCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

Generic EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

Associated Types

type Rep EnterprisesEnrollmentTokensCreate :: Type -> Type #

GoogleRequest EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

type Rep EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

type Rep EnterprisesEnrollmentTokensCreate = D1 (MetaData "EnterprisesEnrollmentTokensCreate" "Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create" "gogol-androidmanagement-0.4.0-Fw3CwgJUt5jG9Vgn9TvuqA" False) (C1 (MetaCons "EnterprisesEnrollmentTokensCreate'" PrefixI True) ((S1 (MetaSel (Just "_eetcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_eetcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_eetcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_eetcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_eetcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_eetcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 EnrollmentToken) :*: S1 (MetaSel (Just "_eetcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes EnterprisesEnrollmentTokensCreate Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

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

Defined in Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create

Request Lenses

eetcParent :: Lens' EnterprisesEnrollmentTokensCreate Text Source #

The name of the enterprise in the form enterprises/{enterpriseId}.

eetcUploadProtocol :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

eetcUploadType :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").