{-# 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.SSLPolicies.Get
(
SSLPoliciesGetResource
, sslPoliciesGet
, SSLPoliciesGet
, spgSSLPolicy
, spgProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SSLPoliciesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"sslPolicies" :>
Capture "sslPolicy" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] SSLPolicy
data SSLPoliciesGet = SSLPoliciesGet'
{ _spgSSLPolicy :: !Text
, _spgProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
sslPoliciesGet
:: Text
-> Text
-> SSLPoliciesGet
sslPoliciesGet pSpgSSLPolicy_ pSpgProject_ =
SSLPoliciesGet'
{ _spgSSLPolicy = pSpgSSLPolicy_
, _spgProject = pSpgProject_
}
spgSSLPolicy :: Lens' SSLPoliciesGet Text
spgSSLPolicy
= lens _spgSSLPolicy (\ s a -> s{_spgSSLPolicy = a})
spgProject :: Lens' SSLPoliciesGet Text
spgProject
= lens _spgProject (\ s a -> s{_spgProject = a})
instance GoogleRequest SSLPoliciesGet where
type Rs SSLPoliciesGet = SSLPolicy
type Scopes SSLPoliciesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient SSLPoliciesGet'{..}
= go _spgProject _spgSSLPolicy (Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy SSLPoliciesGetResource)
mempty