{-# 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.SQL.Tiers.List
(
TiersListResource
, tiersList
, TiersList
, tlProject
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type TiersListResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"tiers" :>
QueryParam "alt" AltJSON :>
Get '[JSON] TiersListResponse
newtype TiersList = TiersList'
{ _tlProject :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
tiersList
:: Text
-> TiersList
tiersList pTlProject_ =
TiersList'
{ _tlProject = pTlProject_
}
tlProject :: Lens' TiersList Text
tlProject
= lens _tlProject (\ s a -> s{_tlProject = a})
instance GoogleRequest TiersList where
type Rs TiersList = TiersListResponse
type Scopes TiersList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient TiersList'{..}
= go _tlProject (Just AltJSON) sQLAdminService
where go
= buildClient (Proxy :: Proxy TiersListResource)
mempty