gogol-androidmanagement-0.4.0: Google Android Management 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.AndroidManagement.Enterprises.Devices.Patch

Contents

Description

Updates a device.

See: Android Management API Reference for androidmanagement.enterprises.devices.patch.

Synopsis

REST Resource

type EnterprisesDevicesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device))))))))) Source #

A resource alias for androidmanagement.enterprises.devices.patch method which the EnterprisesDevicesPatch request conforms to.

Creating a Request

enterprisesDevicesPatch Source #

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

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

data EnterprisesDevicesPatch Source #

Updates a device.

See: enterprisesDevicesPatch smart constructor.

Instances
Eq EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

Data EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

Methods

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

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

toConstr :: EnterprisesDevicesPatch -> Constr #

dataTypeOf :: EnterprisesDevicesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

Generic EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

Associated Types

type Rep EnterprisesDevicesPatch :: Type -> Type #

GoogleRequest EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

type Rep EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

type Rep EnterprisesDevicesPatch = D1 (MetaData "EnterprisesDevicesPatch" "Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch" "gogol-androidmanagement-0.4.0-Fw3CwgJUt5jG9Vgn9TvuqA" False) (C1 (MetaCons "EnterprisesDevicesPatch'" PrefixI True) (((S1 (MetaSel (Just "_edpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_edpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_edpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_edpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_edpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_edpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Device)) :*: (S1 (MetaSel (Just "_edpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_edpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes EnterprisesDevicesPatch Source # 
Instance details

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

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

Defined in Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch

Request Lenses

edpUploadProtocol :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

edpUpdateMask :: Lens' EnterprisesDevicesPatch (Maybe GFieldMask) Source #

The field mask indicating the fields to update. If not set, all modifiable fields will be modified.

edpUploadType :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

edpPayload :: Lens' EnterprisesDevicesPatch Device Source #

Multipart request metadata.

edpName :: Lens' EnterprisesDevicesPatch Text Source #

The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.