{-# 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.Compute.SSLCertificates.Get
    (
    
      SSLCertificatesGetResource
    
    , sslCertificatesGet
    , SSLCertificatesGet
    
    , scgProject
    , scgSSLCertificate
    ) where
import           Network.Google.Compute.Types
import           Network.Google.Prelude
type SSLCertificatesGetResource =
     "compute" :>
       "v1" :>
         "projects" :>
           Capture "project" Text :>
             "global" :>
               "sslCertificates" :>
                 Capture "sslCertificate" Text :>
                   QueryParam "alt" AltJSON :>
                     Get '[JSON] SSLCertificate
data SSLCertificatesGet = SSLCertificatesGet'
    { _scgProject        :: !Text
    , _scgSSLCertificate :: !Text
    } deriving (Eq,Show,Data,Typeable,Generic)
sslCertificatesGet
    :: Text 
    -> Text 
    -> SSLCertificatesGet
sslCertificatesGet pScgProject_ pScgSSLCertificate_ =
    SSLCertificatesGet'
    { _scgProject = pScgProject_
    , _scgSSLCertificate = pScgSSLCertificate_
    }
scgProject :: Lens' SSLCertificatesGet Text
scgProject
  = lens _scgProject (\ s a -> s{_scgProject = a})
scgSSLCertificate :: Lens' SSLCertificatesGet Text
scgSSLCertificate
  = lens _scgSSLCertificate
      (\ s a -> s{_scgSSLCertificate = a})
instance GoogleRequest SSLCertificatesGet where
        type Rs SSLCertificatesGet = SSLCertificate
        type Scopes SSLCertificatesGet =
             '["https://www.googleapis.com/auth/cloud-platform",
               "https://www.googleapis.com/auth/compute",
               "https://www.googleapis.com/auth/compute.readonly"]
        requestClient SSLCertificatesGet'{..}
          = go _scgProject _scgSSLCertificate (Just AltJSON)
              computeService
          where go
                  = buildClient
                      (Proxy :: Proxy SSLCertificatesGetResource)
                      mempty