{-# 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.Devices.List
(
CustomersDevicesListResource
, customersDevicesList
, CustomersDevicesList
, cParent
, cXgafv
, cUploadProtocol
, cAccessToken
, cUploadType
, cPageToken
, cPageSize
, cCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDevicesListResource =
"v1" :>
Capture "parent" Text :>
"devices" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int64) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] CustomerListDevicesResponse
data CustomersDevicesList = CustomersDevicesList'
{ _cParent :: !Text
, _cXgafv :: !(Maybe Xgafv)
, _cUploadProtocol :: !(Maybe Text)
, _cAccessToken :: !(Maybe Text)
, _cUploadType :: !(Maybe Text)
, _cPageToken :: !(Maybe Text)
, _cPageSize :: !(Maybe (Textual Int64))
, _cCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDevicesList
:: Text
-> CustomersDevicesList
customersDevicesList pCParent_ =
CustomersDevicesList'
{ _cParent = pCParent_
, _cXgafv = Nothing
, _cUploadProtocol = Nothing
, _cAccessToken = Nothing
, _cUploadType = Nothing
, _cPageToken = Nothing
, _cPageSize = Nothing
, _cCallback = Nothing
}
cParent :: Lens' CustomersDevicesList Text
cParent = lens _cParent (\ s a -> s{_cParent = a})
cXgafv :: Lens' CustomersDevicesList (Maybe Xgafv)
cXgafv = lens _cXgafv (\ s a -> s{_cXgafv = a})
cUploadProtocol :: Lens' CustomersDevicesList (Maybe Text)
cUploadProtocol
= lens _cUploadProtocol
(\ s a -> s{_cUploadProtocol = a})
cAccessToken :: Lens' CustomersDevicesList (Maybe Text)
cAccessToken
= lens _cAccessToken (\ s a -> s{_cAccessToken = a})
cUploadType :: Lens' CustomersDevicesList (Maybe Text)
cUploadType
= lens _cUploadType (\ s a -> s{_cUploadType = a})
cPageToken :: Lens' CustomersDevicesList (Maybe Text)
cPageToken
= lens _cPageToken (\ s a -> s{_cPageToken = a})
cPageSize :: Lens' CustomersDevicesList (Maybe Int64)
cPageSize
= lens _cPageSize (\ s a -> s{_cPageSize = a}) .
mapping _Coerce
cCallback :: Lens' CustomersDevicesList (Maybe Text)
cCallback
= lens _cCallback (\ s a -> s{_cCallback = a})
instance GoogleRequest CustomersDevicesList where
type Rs CustomersDevicesList =
CustomerListDevicesResponse
type Scopes CustomersDevicesList = '[]
requestClient CustomersDevicesList'{..}
= go _cParent _cXgafv _cUploadProtocol _cAccessToken
_cUploadType
_cPageToken
_cPageSize
_cCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersDevicesListResource)
mempty