gogol-android-enterprise-0.3.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.Devices.GetState

Contents

Description

Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.

See: Google Play EMM API Reference for androidenterprise.devices.getState.

Synopsis

REST Resource

type DevicesGetStateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("state" :> (QueryParam "alt" AltJSON :> Get '[JSON] DeviceState))))))))) Source #

A resource alias for androidenterprise.devices.getState method which the DevicesGetState request conforms to.

Creating a Request

devicesGetState Source #

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

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

data DevicesGetState Source #

Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.

See: devicesGetState smart constructor.

Instances

Eq DevicesGetState Source # 
Data DevicesGetState Source # 

Methods

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

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

toConstr :: DevicesGetState -> Constr #

dataTypeOf :: DevicesGetState -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DevicesGetState Source # 
Generic DevicesGetState Source # 
GoogleRequest DevicesGetState Source # 
type Rep DevicesGetState Source # 
type Rep DevicesGetState = D1 (MetaData "DevicesGetState" "Network.Google.Resource.AndroidEnterprise.Devices.GetState" "gogol-android-enterprise-0.3.0-CY7ecx5snBQ31L6me2CTsO" False) (C1 (MetaCons "DevicesGetState'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dgsEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_dgsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dgsDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes DevicesGetState Source # 
type Scopes DevicesGetState = (:) Symbol "https://www.googleapis.com/auth/androidenterprise" ([] Symbol)
type Rs DevicesGetState Source # 

Request Lenses

dgsEnterpriseId :: Lens' DevicesGetState Text Source #

The ID of the enterprise.

dgsUserId :: Lens' DevicesGetState Text Source #

The ID of the user.

dgsDeviceId :: Lens' DevicesGetState Text Source #

The ID of the device.