gogol-androiddeviceprovisioning-0.4.0: Google Android Device Provisioning Partner 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.AndroidDeviceProvisioning.Partners.Devices.Claim

Contents

Description

Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.

See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.devices.claim.

Synopsis

REST Resource

type PartnersDevicesClaimResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:claim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClaimDeviceRequest :> Post '[JSON] ClaimDeviceResponse)))))))))) Source #

A resource alias for androiddeviceprovisioning.partners.devices.claim method which the PartnersDevicesClaim request conforms to.

Creating a Request

partnersDevicesClaim Source #

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

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

data PartnersDevicesClaim Source #

Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.

See: partnersDevicesClaim smart constructor.

Instances
Eq PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Data PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Methods

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

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

toConstr :: PartnersDevicesClaim -> Constr #

dataTypeOf :: PartnersDevicesClaim -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Generic PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Associated Types

type Rep PartnersDevicesClaim :: Type -> Type #

GoogleRequest PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Associated Types

type Rs PartnersDevicesClaim :: Type #

type Scopes PartnersDevicesClaim :: [Symbol] #

type Rep PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

type Rep PartnersDevicesClaim = D1 (MetaData "PartnersDevicesClaim" "Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim" "gogol-androiddeviceprovisioning-0.4.0-8GRqRwv1LfcIpEsrUb285r" False) (C1 (MetaCons "PartnersDevicesClaim'" PrefixI True) ((S1 (MetaSel (Just "_pdcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pdcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pdcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pdcPartnerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int64)) :*: S1 (MetaSel (Just "_pdcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pdcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ClaimDeviceRequest) :*: S1 (MetaSel (Just "_pdcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

type Rs PartnersDevicesClaim Source # 
Instance details

Defined in Network.Google.Resource.AndroidDeviceProvisioning.Partners.Devices.Claim

Request Lenses

pdcUploadProtocol :: Lens' PartnersDevicesClaim (Maybe Text) Source #

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

pdcPartnerId :: Lens' PartnersDevicesClaim Int64 Source #

Required. The ID of the reseller partner.

pdcUploadType :: Lens' PartnersDevicesClaim (Maybe Text) Source #

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