{-# 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.Logging.BillingAccounts.Sinks.List
(
BillingAccountsSinksListResource
, billingAccountsSinksList
, BillingAccountsSinksList
, baslParent
, baslXgafv
, baslUploadProtocol
, baslAccessToken
, baslUploadType
, baslPageToken
, baslPageSize
, baslCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type BillingAccountsSinksListResource =
"v2" :>
Capture "parent" Text :>
"sinks" :>
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] ListSinksResponse
data BillingAccountsSinksList = BillingAccountsSinksList'
{ _baslParent :: !Text
, _baslXgafv :: !(Maybe Xgafv)
, _baslUploadProtocol :: !(Maybe Text)
, _baslAccessToken :: !(Maybe Text)
, _baslUploadType :: !(Maybe Text)
, _baslPageToken :: !(Maybe Text)
, _baslPageSize :: !(Maybe (Textual Int32))
, _baslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
billingAccountsSinksList
:: Text
-> BillingAccountsSinksList
billingAccountsSinksList pBaslParent_ =
BillingAccountsSinksList'
{ _baslParent = pBaslParent_
, _baslXgafv = Nothing
, _baslUploadProtocol = Nothing
, _baslAccessToken = Nothing
, _baslUploadType = Nothing
, _baslPageToken = Nothing
, _baslPageSize = Nothing
, _baslCallback = Nothing
}
baslParent :: Lens' BillingAccountsSinksList Text
baslParent
= lens _baslParent (\ s a -> s{_baslParent = a})
baslXgafv :: Lens' BillingAccountsSinksList (Maybe Xgafv)
baslXgafv
= lens _baslXgafv (\ s a -> s{_baslXgafv = a})
baslUploadProtocol :: Lens' BillingAccountsSinksList (Maybe Text)
baslUploadProtocol
= lens _baslUploadProtocol
(\ s a -> s{_baslUploadProtocol = a})
baslAccessToken :: Lens' BillingAccountsSinksList (Maybe Text)
baslAccessToken
= lens _baslAccessToken
(\ s a -> s{_baslAccessToken = a})
baslUploadType :: Lens' BillingAccountsSinksList (Maybe Text)
baslUploadType
= lens _baslUploadType
(\ s a -> s{_baslUploadType = a})
baslPageToken :: Lens' BillingAccountsSinksList (Maybe Text)
baslPageToken
= lens _baslPageToken
(\ s a -> s{_baslPageToken = a})
baslPageSize :: Lens' BillingAccountsSinksList (Maybe Int32)
baslPageSize
= lens _baslPageSize (\ s a -> s{_baslPageSize = a})
. mapping _Coerce
baslCallback :: Lens' BillingAccountsSinksList (Maybe Text)
baslCallback
= lens _baslCallback (\ s a -> s{_baslCallback = a})
instance GoogleRequest BillingAccountsSinksList where
type Rs BillingAccountsSinksList = ListSinksResponse
type Scopes BillingAccountsSinksList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"]
requestClient BillingAccountsSinksList'{..}
= go _baslParent _baslXgafv _baslUploadProtocol
_baslAccessToken
_baslUploadType
_baslPageToken
_baslPageSize
_baslCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy :: Proxy BillingAccountsSinksListResource)
mempty