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

Contents

Description

Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.

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

Synopsis

REST Resource

type EnterprisesDevicesIssueCommandResource = "v1" :> (CaptureMode "name" "issueCommand" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Command :> Post '[JSON] Operation)))))))) Source #

A resource alias for androidmanagement.enterprises.devices.issueCommand method which the EnterprisesDevicesIssueCommand request conforms to.

Creating a Request

enterprisesDevicesIssueCommand Source #

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

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

data EnterprisesDevicesIssueCommand Source #

Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.

See: enterprisesDevicesIssueCommand smart constructor.

Instances
Eq EnterprisesDevicesIssueCommand Source # 
Instance details

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

Data EnterprisesDevicesIssueCommand Source # 
Instance details

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

Methods

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

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

toConstr :: EnterprisesDevicesIssueCommand -> Constr #

dataTypeOf :: EnterprisesDevicesIssueCommand -> DataType #

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

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

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

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

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

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

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

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

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

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

Show EnterprisesDevicesIssueCommand Source # 
Instance details

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

Generic EnterprisesDevicesIssueCommand Source # 
Instance details

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

Associated Types

type Rep EnterprisesDevicesIssueCommand :: Type -> Type #

GoogleRequest EnterprisesDevicesIssueCommand Source # 
Instance details

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

type Rep EnterprisesDevicesIssueCommand Source # 
Instance details

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

type Rep EnterprisesDevicesIssueCommand = D1 (MetaData "EnterprisesDevicesIssueCommand" "Network.Google.Resource.AndroidManagement.Enterprises.Devices.IssueCommand" "gogol-androidmanagement-0.4.0-Fw3CwgJUt5jG9Vgn9TvuqA" False) (C1 (MetaCons "EnterprisesDevicesIssueCommand'" PrefixI True) ((S1 (MetaSel (Just "_edicXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_edicUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_edicAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_edicUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_edicPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Command)) :*: (S1 (MetaSel (Just "_edicName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_edicCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes EnterprisesDevicesIssueCommand Source # 
Instance details

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

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

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

Request Lenses

edicUploadProtocol :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #

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

edicUploadType :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #

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

edicName :: Lens' EnterprisesDevicesIssueCommand Text Source #

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