{-# 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.Get
(
SSLCertsGetResource
, sslCertsGet
, SSLCertsGet
, scgProject
, scgSha1Fingerprint
, scgInstance
) where
import Network.Google.Prelude
import Network.Google.SQLAdmin.Types
type SSLCertsGetResource =
"sql" :>
"v1beta4" :>
"projects" :>
Capture "project" Text :>
"instances" :>
Capture "instance" Text :>
"sslCerts" :>
Capture "sha1Fingerprint" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] SSLCert
data SSLCertsGet = SSLCertsGet'
{ _scgProject :: !Text
, _scgSha1Fingerprint :: !Text
, _scgInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sslCertsGet
:: Text
-> Text
-> Text
-> SSLCertsGet
sslCertsGet pScgProject_ pScgSha1Fingerprint_ pScgInstance_ =
SSLCertsGet'
{ _scgProject = pScgProject_
, _scgSha1Fingerprint = pScgSha1Fingerprint_
, _scgInstance = pScgInstance_
}
scgProject :: Lens' SSLCertsGet Text
scgProject
= lens _scgProject (\ s a -> s{_scgProject = a})
scgSha1Fingerprint :: Lens' SSLCertsGet Text
scgSha1Fingerprint
= lens _scgSha1Fingerprint
(\ s a -> s{_scgSha1Fingerprint = a})
scgInstance :: Lens' SSLCertsGet Text
scgInstance
= lens _scgInstance (\ s a -> s{_scgInstance = a})
instance GoogleRequest SSLCertsGet where
type Rs SSLCertsGet = SSLCert
type Scopes SSLCertsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sqlservice.admin"]
requestClient SSLCertsGet'{..}
= go _scgProject _scgInstance _scgSha1Fingerprint
(Just AltJSON)
sQLAdminService
where go
= buildClient (Proxy :: Proxy SSLCertsGetResource)
mempty