{-# 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.Flags.List
(
FlagsListResource
, flagsList
, FlagsList
, flDatabaseVersion
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type FlagsListResource =
"sql" :>
"v1beta4" :>
"flags" :>
QueryParam "databaseVersion" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] FlagsListResponse
newtype FlagsList = FlagsList'
{ _flDatabaseVersion :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
flagsList
:: FlagsList
flagsList =
FlagsList'
{ _flDatabaseVersion = Nothing
}
flDatabaseVersion :: Lens' FlagsList (Maybe Text)
flDatabaseVersion
= lens _flDatabaseVersion
(\ s a -> s{_flDatabaseVersion = a})
instance GoogleRequest FlagsList where
type Rs FlagsList = FlagsListResponse
type Scopes FlagsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient FlagsList'{..}
= go _flDatabaseVersion (Just AltJSON)
sQLAdminService
where go
= buildClient (Proxy :: Proxy FlagsListResource)
mempty