{-# 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.CloudBilling.BillingAccounts.List
(
BillingAccountsListResource
, billingAccountsList
, BillingAccountsList
, balXgafv
, balUploadProtocol
, balAccessToken
, balUploadType
, balFilter
, balPageToken
, balPageSize
, balCallback
) where
import Network.Google.Billing.Types
import Network.Google.Prelude
type BillingAccountsListResource =
"v1" :>
"billingAccounts" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListBillingAccountsResponse
data BillingAccountsList = BillingAccountsList'
{ _balXgafv :: !(Maybe Xgafv)
, _balUploadProtocol :: !(Maybe Text)
, _balAccessToken :: !(Maybe Text)
, _balUploadType :: !(Maybe Text)
, _balFilter :: !(Maybe Text)
, _balPageToken :: !(Maybe Text)
, _balPageSize :: !(Maybe (Textual Int32))
, _balCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsList
:: BillingAccountsList
billingAccountsList =
BillingAccountsList'
{ _balXgafv = Nothing
, _balUploadProtocol = Nothing
, _balAccessToken = Nothing
, _balUploadType = Nothing
, _balFilter = Nothing
, _balPageToken = Nothing
, _balPageSize = Nothing
, _balCallback = Nothing
}
balXgafv :: Lens' BillingAccountsList (Maybe Xgafv)
balXgafv = lens _balXgafv (\ s a -> s{_balXgafv = a})
balUploadProtocol :: Lens' BillingAccountsList (Maybe Text)
balUploadProtocol
= lens _balUploadProtocol
(\ s a -> s{_balUploadProtocol = a})
balAccessToken :: Lens' BillingAccountsList (Maybe Text)
balAccessToken
= lens _balAccessToken
(\ s a -> s{_balAccessToken = a})
balUploadType :: Lens' BillingAccountsList (Maybe Text)
balUploadType
= lens _balUploadType
(\ s a -> s{_balUploadType = a})
balFilter :: Lens' BillingAccountsList (Maybe Text)
balFilter
= lens _balFilter (\ s a -> s{_balFilter = a})
balPageToken :: Lens' BillingAccountsList (Maybe Text)
balPageToken
= lens _balPageToken (\ s a -> s{_balPageToken = a})
balPageSize :: Lens' BillingAccountsList (Maybe Int32)
balPageSize
= lens _balPageSize (\ s a -> s{_balPageSize = a}) .
mapping _Coerce
balCallback :: Lens' BillingAccountsList (Maybe Text)
balCallback
= lens _balCallback (\ s a -> s{_balCallback = a})
instance GoogleRequest BillingAccountsList where
type Rs BillingAccountsList =
ListBillingAccountsResponse
type Scopes BillingAccountsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient BillingAccountsList'{..}
= go _balXgafv _balUploadProtocol _balAccessToken
_balUploadType
_balFilter
_balPageToken
_balPageSize
_balCallback
(Just AltJSON)
billingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsListResource)
mempty