Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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))))))))
- enterprisesDevicesIssueCommand :: Command -> Text -> EnterprisesDevicesIssueCommand
- data EnterprisesDevicesIssueCommand
- edicXgafv :: Lens' EnterprisesDevicesIssueCommand (Maybe Xgafv)
- edicUploadProtocol :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)
- edicAccessToken :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)
- edicUploadType :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)
- edicPayload :: Lens' EnterprisesDevicesIssueCommand Command
- edicName :: Lens' EnterprisesDevicesIssueCommand Text
- edicCallback :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)
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
Request Lenses
edicUploadProtocol :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
edicAccessToken :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #
OAuth access token.
edicUploadType :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
edicPayload :: Lens' EnterprisesDevicesIssueCommand Command Source #
Multipart request metadata.
edicName :: Lens' EnterprisesDevicesIssueCommand Text Source #
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
edicCallback :: Lens' EnterprisesDevicesIssueCommand (Maybe Text) Source #
JSONP