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

Contents

Description

Updates the device policy. This method supports patch semantics.

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

Synopsis

REST Resource

type DevicesPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> (QueryParam "updateMask" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device)))))))))) Source #

A resource alias for androidenterprise.devices.patch method which the DevicesPatch request conforms to.

Creating a Request

devicesPatch Source #

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

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

data DevicesPatch Source #

Updates the device policy. This method supports patch semantics.

See: devicesPatch smart constructor.

Instances
Eq DevicesPatch Source # 
Instance details

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

Data DevicesPatch Source # 
Instance details

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

Methods

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

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

toConstr :: DevicesPatch -> Constr #

dataTypeOf :: DevicesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show DevicesPatch Source # 
Instance details

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

Generic DevicesPatch Source # 
Instance details

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

Associated Types

type Rep DevicesPatch :: Type -> Type #

GoogleRequest DevicesPatch Source # 
Instance details

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

Associated Types

type Rs DevicesPatch :: Type #

type Scopes DevicesPatch :: [Symbol] #

type Rep DevicesPatch Source # 
Instance details

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

type Rep DevicesPatch = D1 (MetaData "DevicesPatch" "Network.Google.Resource.AndroidEnterprise.Devices.Patch" "gogol-android-enterprise-0.4.0-AXWt9Q8V4E0DkwyzrsX7x3" False) (C1 (MetaCons "DevicesPatch'" PrefixI True) ((S1 (MetaSel (Just "_dpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dpEnterpriseId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_dpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Device) :*: (S1 (MetaSel (Just "_dpUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dpDeviceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes DevicesPatch Source # 
Instance details

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

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

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

Request Lenses

dpUpdateMask :: Lens' DevicesPatch (Maybe Text) Source #

Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=,,...

dpEnterpriseId :: Lens' DevicesPatch Text Source #

The ID of the enterprise.

dpPayload :: Lens' DevicesPatch Device Source #

Multipart request metadata.

dpUserId :: Lens' DevicesPatch Text Source #

The ID of the user.

dpDeviceId :: Lens' DevicesPatch Text Source #

The ID of the device.