{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Get
(
EnterprisesDevicesOperationsGetResource
, enterprisesDevicesOperationsGet
, EnterprisesDevicesOperationsGet
, edogXgafv
, edogUploadProtocol
, edogAccessToken
, edogUploadType
, edogName
, edogCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesDevicesOperationsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Operation
data EnterprisesDevicesOperationsGet = EnterprisesDevicesOperationsGet'
{ _edogXgafv :: !(Maybe Xgafv)
, _edogUploadProtocol :: !(Maybe Text)
, _edogAccessToken :: !(Maybe Text)
, _edogUploadType :: !(Maybe Text)
, _edogName :: !Text
, _edogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesDevicesOperationsGet
:: Text
-> EnterprisesDevicesOperationsGet
enterprisesDevicesOperationsGet pEdogName_ =
EnterprisesDevicesOperationsGet'
{ _edogXgafv = Nothing
, _edogUploadProtocol = Nothing
, _edogAccessToken = Nothing
, _edogUploadType = Nothing
, _edogName = pEdogName_
, _edogCallback = Nothing
}
edogXgafv :: Lens' EnterprisesDevicesOperationsGet (Maybe Xgafv)
edogXgafv
= lens _edogXgafv (\ s a -> s{_edogXgafv = a})
edogUploadProtocol :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)
edogUploadProtocol
= lens _edogUploadProtocol
(\ s a -> s{_edogUploadProtocol = a})
edogAccessToken :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)
edogAccessToken
= lens _edogAccessToken
(\ s a -> s{_edogAccessToken = a})
edogUploadType :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)
edogUploadType
= lens _edogUploadType
(\ s a -> s{_edogUploadType = a})
edogName :: Lens' EnterprisesDevicesOperationsGet Text
edogName = lens _edogName (\ s a -> s{_edogName = a})
edogCallback :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)
edogCallback
= lens _edogCallback (\ s a -> s{_edogCallback = a})
instance GoogleRequest
EnterprisesDevicesOperationsGet where
type Rs EnterprisesDevicesOperationsGet = Operation
type Scopes EnterprisesDevicesOperationsGet =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesDevicesOperationsGet'{..}
= go _edogName _edogXgafv _edogUploadProtocol
_edogAccessToken
_edogUploadType
_edogCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy ::
Proxy EnterprisesDevicesOperationsGetResource)
mempty