{-# 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.SSLCerts.List
(
SSLCertsListResource
, sslCertsList
, SSLCertsList
, sclProject
, sclInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type SSLCertsListResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
"sslCerts" :>
QueryParam "alt" AltJSON :>
Get '[JSON] SSLCertsListResponse
data SSLCertsList = SSLCertsList'
{ _sclProject :: !Text
, _sclInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sslCertsList
:: Text
-> Text
-> SSLCertsList
sslCertsList pSclProject_ pSclInstance_ =
SSLCertsList'
{ _sclProject = pSclProject_
, _sclInstance = pSclInstance_
}
sclProject :: Lens' SSLCertsList Text
sclProject
= lens _sclProject (\ s a -> s{_sclProject = a})
sclInstance :: Lens' SSLCertsList Text
sclInstance
= lens _sclInstance (\ s a -> s{_sclInstance = a})
instance GoogleRequest SSLCertsList where
type Rs SSLCertsList = SSLCertsListResponse
type Scopes SSLCertsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient SSLCertsList'{..}
= go _sclProject _sclInstance (Just AltJSON)
sQLAdminService
where go
= buildClient (Proxy :: Proxy SSLCertsListResource)
mempty