{-# 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.Instances.ListServerCas
(
InstancesListServerCasResource
, instancesListServerCas
, InstancesListServerCas
, ilscProject
, ilscInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type InstancesListServerCasResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
"listServerCas" :>
QueryParam "alt" AltJSON :>
Get '[JSON] InstancesListServerCasResponse
data InstancesListServerCas = InstancesListServerCas'
{ _ilscProject :: !Text
, _ilscInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesListServerCas
:: Text
-> Text
-> InstancesListServerCas
instancesListServerCas pIlscProject_ pIlscInstance_ =
InstancesListServerCas'
{ _ilscProject = pIlscProject_
, _ilscInstance = pIlscInstance_
}
ilscProject :: Lens' InstancesListServerCas Text
ilscProject
= lens _ilscProject (\ s a -> s{_ilscProject = a})
ilscInstance :: Lens' InstancesListServerCas Text
ilscInstance
= lens _ilscInstance (\ s a -> s{_ilscInstance = a})
instance GoogleRequest InstancesListServerCas where
type Rs InstancesListServerCas =
InstancesListServerCasResponse
type Scopes InstancesListServerCas =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient InstancesListServerCas'{..}
= go _ilscProject _ilscInstance (Just AltJSON)
sQLAdminService
where go
= buildClient
(Proxy :: Proxy InstancesListServerCasResource)
mempty