{-# 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.List
(
CustomersListResource
, customersList
, CustomersList
, clXgafv
, clUploadProtocol
, clAccessToken
, clUploadType
, clPageToken
, clPageSize
, clCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersListResource =
"v1" :>
"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] CustomerListCustomersResponse
data CustomersList = CustomersList'
{ _clXgafv :: !(Maybe Xgafv)
, _clUploadProtocol :: !(Maybe Text)
, _clAccessToken :: !(Maybe Text)
, _clUploadType :: !(Maybe Text)
, _clPageToken :: !(Maybe Text)
, _clPageSize :: !(Maybe (Textual Int32))
, _clCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersList
:: CustomersList
customersList =
CustomersList'
{ _clXgafv = Nothing
, _clUploadProtocol = Nothing
, _clAccessToken = Nothing
, _clUploadType = Nothing
, _clPageToken = Nothing
, _clPageSize = Nothing
, _clCallback = Nothing
}
clXgafv :: Lens' CustomersList (Maybe Xgafv)
clXgafv = lens _clXgafv (\ s a -> s{_clXgafv = a})
clUploadProtocol :: Lens' CustomersList (Maybe Text)
clUploadProtocol
= lens _clUploadProtocol
(\ s a -> s{_clUploadProtocol = a})
clAccessToken :: Lens' CustomersList (Maybe Text)
clAccessToken
= lens _clAccessToken
(\ s a -> s{_clAccessToken = a})
clUploadType :: Lens' CustomersList (Maybe Text)
clUploadType
= lens _clUploadType (\ s a -> s{_clUploadType = a})
clPageToken :: Lens' CustomersList (Maybe Text)
clPageToken
= lens _clPageToken (\ s a -> s{_clPageToken = a})
clPageSize :: Lens' CustomersList (Maybe Int32)
clPageSize
= lens _clPageSize (\ s a -> s{_clPageSize = a}) .
mapping _Coerce
clCallback :: Lens' CustomersList (Maybe Text)
clCallback
= lens _clCallback (\ s a -> s{_clCallback = a})
instance GoogleRequest CustomersList where
type Rs CustomersList = CustomerListCustomersResponse
type Scopes CustomersList = '[]
requestClient CustomersList'{..}
= go _clXgafv _clUploadProtocol _clAccessToken
_clUploadType
_clPageToken
_clPageSize
_clCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient (Proxy :: Proxy CustomersListResource)
mempty