{-# 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.Dpcs.List
(
CustomersDpcsListResource
, customersDpcsList
, CustomersDpcsList
, cdlParent
, cdlXgafv
, cdlUploadProtocol
, cdlAccessToken
, cdlUploadType
, cdlCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDpcsListResource =
"v1" :>
Capture "parent" Text :>
"dpcs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] CustomerListDpcsResponse
data CustomersDpcsList = CustomersDpcsList'
{ _cdlParent :: !Text
, _cdlXgafv :: !(Maybe Xgafv)
, _cdlUploadProtocol :: !(Maybe Text)
, _cdlAccessToken :: !(Maybe Text)
, _cdlUploadType :: !(Maybe Text)
, _cdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDpcsList
:: Text
-> CustomersDpcsList
customersDpcsList pCdlParent_ =
CustomersDpcsList'
{ _cdlParent = pCdlParent_
, _cdlXgafv = Nothing
, _cdlUploadProtocol = Nothing
, _cdlAccessToken = Nothing
, _cdlUploadType = Nothing
, _cdlCallback = Nothing
}
cdlParent :: Lens' CustomersDpcsList Text
cdlParent
= lens _cdlParent (\ s a -> s{_cdlParent = a})
cdlXgafv :: Lens' CustomersDpcsList (Maybe Xgafv)
cdlXgafv = lens _cdlXgafv (\ s a -> s{_cdlXgafv = a})
cdlUploadProtocol :: Lens' CustomersDpcsList (Maybe Text)
cdlUploadProtocol
= lens _cdlUploadProtocol
(\ s a -> s{_cdlUploadProtocol = a})
cdlAccessToken :: Lens' CustomersDpcsList (Maybe Text)
cdlAccessToken
= lens _cdlAccessToken
(\ s a -> s{_cdlAccessToken = a})
cdlUploadType :: Lens' CustomersDpcsList (Maybe Text)
cdlUploadType
= lens _cdlUploadType
(\ s a -> s{_cdlUploadType = a})
cdlCallback :: Lens' CustomersDpcsList (Maybe Text)
cdlCallback
= lens _cdlCallback (\ s a -> s{_cdlCallback = a})
instance GoogleRequest CustomersDpcsList where
type Rs CustomersDpcsList = CustomerListDpcsResponse
type Scopes CustomersDpcsList = '[]
requestClient CustomersDpcsList'{..}
= go _cdlParent _cdlXgafv _cdlUploadProtocol
_cdlAccessToken
_cdlUploadType
_cdlCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersDpcsListResource)
mempty