{-# 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.AndroidDeviceProvisioning.Customers.Configurations.Get
(
CustomersConfigurationsGetResource
, customersConfigurationsGet
, CustomersConfigurationsGet
, ccgXgafv
, ccgUploadProtocol
, ccgAccessToken
, ccgUploadType
, ccgName
, ccgCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersConfigurationsGetResource =
"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] Configuration
data CustomersConfigurationsGet = CustomersConfigurationsGet'
{ _ccgXgafv :: !(Maybe Xgafv)
, _ccgUploadProtocol :: !(Maybe Text)
, _ccgAccessToken :: !(Maybe Text)
, _ccgUploadType :: !(Maybe Text)
, _ccgName :: !Text
, _ccgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersConfigurationsGet
:: Text
-> CustomersConfigurationsGet
customersConfigurationsGet pCcgName_ =
CustomersConfigurationsGet'
{ _ccgXgafv = Nothing
, _ccgUploadProtocol = Nothing
, _ccgAccessToken = Nothing
, _ccgUploadType = Nothing
, _ccgName = pCcgName_
, _ccgCallback = Nothing
}
ccgXgafv :: Lens' CustomersConfigurationsGet (Maybe Xgafv)
ccgXgafv = lens _ccgXgafv (\ s a -> s{_ccgXgafv = a})
ccgUploadProtocol :: Lens' CustomersConfigurationsGet (Maybe Text)
ccgUploadProtocol
= lens _ccgUploadProtocol
(\ s a -> s{_ccgUploadProtocol = a})
ccgAccessToken :: Lens' CustomersConfigurationsGet (Maybe Text)
ccgAccessToken
= lens _ccgAccessToken
(\ s a -> s{_ccgAccessToken = a})
ccgUploadType :: Lens' CustomersConfigurationsGet (Maybe Text)
ccgUploadType
= lens _ccgUploadType
(\ s a -> s{_ccgUploadType = a})
ccgName :: Lens' CustomersConfigurationsGet Text
ccgName = lens _ccgName (\ s a -> s{_ccgName = a})
ccgCallback :: Lens' CustomersConfigurationsGet (Maybe Text)
ccgCallback
= lens _ccgCallback (\ s a -> s{_ccgCallback = a})
instance GoogleRequest CustomersConfigurationsGet
where
type Rs CustomersConfigurationsGet = Configuration
type Scopes CustomersConfigurationsGet = '[]
requestClient CustomersConfigurationsGet'{..}
= go _ccgName _ccgXgafv _ccgUploadProtocol
_ccgAccessToken
_ccgUploadType
_ccgCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersConfigurationsGetResource)
mempty