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.SetState

Contents

Description

Sets 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.setState.

Synopsis

REST Resource

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

A resource alias for androidenterprise.devices.setState method which the DevicesSetState request conforms to.

Creating a Request

devicesSetState Source #

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

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

data DevicesSetState Source #

Sets 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: devicesSetState smart constructor.

Instances

Eq DevicesSetState Source # 
Data DevicesSetState Source # 

Methods

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

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

toConstr :: DevicesSetState -> Constr #

dataTypeOf :: DevicesSetState -> DataType #

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

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

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

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

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

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

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

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

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

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

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

Request Lenses

dssEnterpriseId :: Lens' DevicesSetState Text Source #

The ID of the enterprise.

dssPayload :: Lens' DevicesSetState DeviceState Source #

Multipart request metadata.

dssUserId :: Lens' DevicesSetState Text Source #

The ID of the user.

dssDeviceId :: Lens' DevicesSetState Text Source #

The ID of the device.