{-# 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.Configurations.List
(
CustomersConfigurationsListResource
, customersConfigurationsList
, CustomersConfigurationsList
, cclParent
, cclXgafv
, cclUploadProtocol
, cclAccessToken
, cclUploadType
, cclCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersConfigurationsListResource =
"v1" :>
Capture "parent" Text :>
"configurations" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] CustomerListConfigurationsResponse
data CustomersConfigurationsList = CustomersConfigurationsList'
{ _cclParent :: !Text
, _cclXgafv :: !(Maybe Xgafv)
, _cclUploadProtocol :: !(Maybe Text)
, _cclAccessToken :: !(Maybe Text)
, _cclUploadType :: !(Maybe Text)
, _cclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersConfigurationsList
:: Text
-> CustomersConfigurationsList
customersConfigurationsList pCclParent_ =
CustomersConfigurationsList'
{ _cclParent = pCclParent_
, _cclXgafv = Nothing
, _cclUploadProtocol = Nothing
, _cclAccessToken = Nothing
, _cclUploadType = Nothing
, _cclCallback = Nothing
}
cclParent :: Lens' CustomersConfigurationsList Text
cclParent
= lens _cclParent (\ s a -> s{_cclParent = a})
cclXgafv :: Lens' CustomersConfigurationsList (Maybe Xgafv)
cclXgafv = lens _cclXgafv (\ s a -> s{_cclXgafv = a})
cclUploadProtocol :: Lens' CustomersConfigurationsList (Maybe Text)
cclUploadProtocol
= lens _cclUploadProtocol
(\ s a -> s{_cclUploadProtocol = a})
cclAccessToken :: Lens' CustomersConfigurationsList (Maybe Text)
cclAccessToken
= lens _cclAccessToken
(\ s a -> s{_cclAccessToken = a})
cclUploadType :: Lens' CustomersConfigurationsList (Maybe Text)
cclUploadType
= lens _cclUploadType
(\ s a -> s{_cclUploadType = a})
cclCallback :: Lens' CustomersConfigurationsList (Maybe Text)
cclCallback
= lens _cclCallback (\ s a -> s{_cclCallback = a})
instance GoogleRequest CustomersConfigurationsList
where
type Rs CustomersConfigurationsList =
CustomerListConfigurationsResponse
type Scopes CustomersConfigurationsList = '[]
requestClient CustomersConfigurationsList'{..}
= go _cclParent _cclXgafv _cclUploadProtocol
_cclAccessToken
_cclUploadType
_cclCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersConfigurationsListResource)
mempty