{-# 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.Partners.Customers.List
(
PartnersCustomersListResource
, partnersCustomersList
, PartnersCustomersList
, pclXgafv
, pclUploadProtocol
, pclAccessToken
, pclPartnerId
, pclUploadType
, pclPageToken
, pclPageSize
, pclCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type PartnersCustomersListResource =
"v1" :>
"partners" :>
Capture "partnerId" (Textual Int64) :>
"customers" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListCustomersResponse
data PartnersCustomersList = PartnersCustomersList'
{ _pclXgafv :: !(Maybe Xgafv)
, _pclUploadProtocol :: !(Maybe Text)
, _pclAccessToken :: !(Maybe Text)
, _pclPartnerId :: !(Textual Int64)
, _pclUploadType :: !(Maybe Text)
, _pclPageToken :: !(Maybe Text)
, _pclPageSize :: !(Maybe (Textual Int32))
, _pclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
partnersCustomersList
:: Int64
-> PartnersCustomersList
partnersCustomersList pPclPartnerId_ =
PartnersCustomersList'
{ _pclXgafv = Nothing
, _pclUploadProtocol = Nothing
, _pclAccessToken = Nothing
, _pclPartnerId = _Coerce # pPclPartnerId_
, _pclUploadType = Nothing
, _pclPageToken = Nothing
, _pclPageSize = Nothing
, _pclCallback = Nothing
}
pclXgafv :: Lens' PartnersCustomersList (Maybe Xgafv)
pclXgafv = lens _pclXgafv (\ s a -> s{_pclXgafv = a})
pclUploadProtocol :: Lens' PartnersCustomersList (Maybe Text)
pclUploadProtocol
= lens _pclUploadProtocol
(\ s a -> s{_pclUploadProtocol = a})
pclAccessToken :: Lens' PartnersCustomersList (Maybe Text)
pclAccessToken
= lens _pclAccessToken
(\ s a -> s{_pclAccessToken = a})
pclPartnerId :: Lens' PartnersCustomersList Int64
pclPartnerId
= lens _pclPartnerId (\ s a -> s{_pclPartnerId = a})
. _Coerce
pclUploadType :: Lens' PartnersCustomersList (Maybe Text)
pclUploadType
= lens _pclUploadType
(\ s a -> s{_pclUploadType = a})
pclPageToken :: Lens' PartnersCustomersList (Maybe Text)
pclPageToken
= lens _pclPageToken (\ s a -> s{_pclPageToken = a})
pclPageSize :: Lens' PartnersCustomersList (Maybe Int32)
pclPageSize
= lens _pclPageSize (\ s a -> s{_pclPageSize = a}) .
mapping _Coerce
pclCallback :: Lens' PartnersCustomersList (Maybe Text)
pclCallback
= lens _pclCallback (\ s a -> s{_pclCallback = a})
instance GoogleRequest PartnersCustomersList where
type Rs PartnersCustomersList = ListCustomersResponse
type Scopes PartnersCustomersList = '[]
requestClient PartnersCustomersList'{..}
= go _pclPartnerId _pclXgafv _pclUploadProtocol
_pclAccessToken
_pclUploadType
_pclPageToken
_pclPageSize
_pclCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy PartnersCustomersListResource)
mempty