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

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

Data DevicesSetState Source # 
Instance details

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

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

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

Generic DevicesSetState Source # 
Instance details

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

Associated Types

type Rep DevicesSetState :: Type -> Type #

GoogleRequest DevicesSetState Source # 
Instance details

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

Associated Types

type Rs DevicesSetState :: Type #

type Scopes DevicesSetState :: [Symbol] #

type Rep DevicesSetState Source # 
Instance details

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

type Rep DevicesSetState = D1 (MetaData "DevicesSetState" "Network.Google.Resource.AndroidEnterprise.Devices.SetState" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "DevicesSetState'" PrefixI True) ((S1 (MetaSel (Just "_dssEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dssPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DeviceState)) :*: (S1 (MetaSel (Just "_dssUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dssDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes DevicesSetState Source # 
Instance details

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

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

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

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.