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.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 # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

Data DevicesGetState Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

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 # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

Generic DevicesGetState Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

Associated Types

type Rep DevicesGetState :: Type -> Type #

GoogleRequest DevicesGetState Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

Associated Types

type Rs DevicesGetState :: Type #

type Scopes DevicesGetState :: [Symbol] #

type Rep DevicesGetState Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

type Rep DevicesGetState = D1 (MetaData "DevicesGetState" "Network.Google.Resource.AndroidEnterprise.Devices.GetState" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "DevicesGetState'" PrefixI True) (S1 (MetaSel (Just "_dgsEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_dgsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dgsDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DevicesGetState Source # 
Instance details

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

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

Defined in Network.Google.Resource.AndroidEnterprise.Devices.GetState

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.