{-# 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.Vendors.Customers.List
(
PartnersVendorsCustomersListResource
, partnersVendorsCustomersList
, PartnersVendorsCustomersList
, pvclParent
, pvclXgafv
, pvclUploadProtocol
, pvclAccessToken
, pvclUploadType
, pvclPageToken
, pvclPageSize
, pvclCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type PartnersVendorsCustomersListResource =
"v1" :>
Capture "parent" Text :>
"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] ListVendorCustomersResponse
data PartnersVendorsCustomersList = PartnersVendorsCustomersList'
{ _pvclParent :: !Text
, _pvclXgafv :: !(Maybe Xgafv)
, _pvclUploadProtocol :: !(Maybe Text)
, _pvclAccessToken :: !(Maybe Text)
, _pvclUploadType :: !(Maybe Text)
, _pvclPageToken :: !(Maybe Text)
, _pvclPageSize :: !(Maybe (Textual Int32))
, _pvclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
partnersVendorsCustomersList
:: Text
-> PartnersVendorsCustomersList
partnersVendorsCustomersList pPvclParent_ =
PartnersVendorsCustomersList'
{ _pvclParent = pPvclParent_
, _pvclXgafv = Nothing
, _pvclUploadProtocol = Nothing
, _pvclAccessToken = Nothing
, _pvclUploadType = Nothing
, _pvclPageToken = Nothing
, _pvclPageSize = Nothing
, _pvclCallback = Nothing
}
pvclParent :: Lens' PartnersVendorsCustomersList Text
pvclParent
= lens _pvclParent (\ s a -> s{_pvclParent = a})
pvclXgafv :: Lens' PartnersVendorsCustomersList (Maybe Xgafv)
pvclXgafv
= lens _pvclXgafv (\ s a -> s{_pvclXgafv = a})
pvclUploadProtocol :: Lens' PartnersVendorsCustomersList (Maybe Text)
pvclUploadProtocol
= lens _pvclUploadProtocol
(\ s a -> s{_pvclUploadProtocol = a})
pvclAccessToken :: Lens' PartnersVendorsCustomersList (Maybe Text)
pvclAccessToken
= lens _pvclAccessToken
(\ s a -> s{_pvclAccessToken = a})
pvclUploadType :: Lens' PartnersVendorsCustomersList (Maybe Text)
pvclUploadType
= lens _pvclUploadType
(\ s a -> s{_pvclUploadType = a})
pvclPageToken :: Lens' PartnersVendorsCustomersList (Maybe Text)
pvclPageToken
= lens _pvclPageToken
(\ s a -> s{_pvclPageToken = a})
pvclPageSize :: Lens' PartnersVendorsCustomersList (Maybe Int32)
pvclPageSize
= lens _pvclPageSize (\ s a -> s{_pvclPageSize = a})
. mapping _Coerce
pvclCallback :: Lens' PartnersVendorsCustomersList (Maybe Text)
pvclCallback
= lens _pvclCallback (\ s a -> s{_pvclCallback = a})
instance GoogleRequest PartnersVendorsCustomersList
where
type Rs PartnersVendorsCustomersList =
ListVendorCustomersResponse
type Scopes PartnersVendorsCustomersList = '[]
requestClient PartnersVendorsCustomersList'{..}
= go _pvclParent _pvclXgafv _pvclUploadProtocol
_pvclAccessToken
_pvclUploadType
_pvclPageToken
_pvclPageSize
_pvclCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy PartnersVendorsCustomersListResource)
mempty