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.Enterprises.GetServiceAccount

Contents

Description

Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.

See: Google Play EMM API Reference for androidenterprise.enterprises.getServiceAccount.

Synopsis

REST Resource

type EnterprisesGetServiceAccountResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("serviceAccount" :> (QueryParam "keyType" EnterprisesGetServiceAccountKeyType :> (QueryParam "alt" AltJSON :> Get '[JSON] ServiceAccount)))))) Source #

A resource alias for androidenterprise.enterprises.getServiceAccount method which the EnterprisesGetServiceAccount request conforms to.

Creating a Request

enterprisesGetServiceAccount Source #

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

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

data EnterprisesGetServiceAccount Source #

Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.

See: enterprisesGetServiceAccount smart constructor.

Instances
Eq EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

Data EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

Methods

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

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

toConstr :: EnterprisesGetServiceAccount -> Constr #

dataTypeOf :: EnterprisesGetServiceAccount -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

Generic EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

Associated Types

type Rep EnterprisesGetServiceAccount :: Type -> Type #

GoogleRequest EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

type Rep EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

type Rep EnterprisesGetServiceAccount = D1 (MetaData "EnterprisesGetServiceAccount" "Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "EnterprisesGetServiceAccount'" PrefixI True) (S1 (MetaSel (Just "_egsaKeyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe EnterprisesGetServiceAccountKeyType)) :*: S1 (MetaSel (Just "_egsaEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes EnterprisesGetServiceAccount Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

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

Defined in Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount

Request Lenses

egsaKeyType :: Lens' EnterprisesGetServiceAccount (Maybe EnterprisesGetServiceAccountKeyType) Source #

The type of credential to return with the service account. Required.