{-# 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.AccessContextManager.AccessPolicies.ServicePerimeters.Get
(
AccessPoliciesServicePerimetersGetResource
, accessPoliciesServicePerimetersGet
, AccessPoliciesServicePerimetersGet
, apspgXgafv
, apspgUploadProtocol
, apspgAccessToken
, apspgUploadType
, apspgName
, apspgCallback
) where
import Network.Google.AccessContextManager.Types
import Network.Google.Prelude
type AccessPoliciesServicePerimetersGetResource =
"v1beta" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ServicePerimeter
data AccessPoliciesServicePerimetersGet = AccessPoliciesServicePerimetersGet'
{ _apspgXgafv :: !(Maybe Xgafv)
, _apspgUploadProtocol :: !(Maybe Text)
, _apspgAccessToken :: !(Maybe Text)
, _apspgUploadType :: !(Maybe Text)
, _apspgName :: !Text
, _apspgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accessPoliciesServicePerimetersGet
:: Text
-> AccessPoliciesServicePerimetersGet
accessPoliciesServicePerimetersGet pApspgName_ =
AccessPoliciesServicePerimetersGet'
{ _apspgXgafv = Nothing
, _apspgUploadProtocol = Nothing
, _apspgAccessToken = Nothing
, _apspgUploadType = Nothing
, _apspgName = pApspgName_
, _apspgCallback = Nothing
}
apspgXgafv :: Lens' AccessPoliciesServicePerimetersGet (Maybe Xgafv)
apspgXgafv
= lens _apspgXgafv (\ s a -> s{_apspgXgafv = a})
apspgUploadProtocol :: Lens' AccessPoliciesServicePerimetersGet (Maybe Text)
apspgUploadProtocol
= lens _apspgUploadProtocol
(\ s a -> s{_apspgUploadProtocol = a})
apspgAccessToken :: Lens' AccessPoliciesServicePerimetersGet (Maybe Text)
apspgAccessToken
= lens _apspgAccessToken
(\ s a -> s{_apspgAccessToken = a})
apspgUploadType :: Lens' AccessPoliciesServicePerimetersGet (Maybe Text)
apspgUploadType
= lens _apspgUploadType
(\ s a -> s{_apspgUploadType = a})
apspgName :: Lens' AccessPoliciesServicePerimetersGet Text
apspgName
= lens _apspgName (\ s a -> s{_apspgName = a})
apspgCallback :: Lens' AccessPoliciesServicePerimetersGet (Maybe Text)
apspgCallback
= lens _apspgCallback
(\ s a -> s{_apspgCallback = a})
instance GoogleRequest
AccessPoliciesServicePerimetersGet where
type Rs AccessPoliciesServicePerimetersGet =
ServicePerimeter
type Scopes AccessPoliciesServicePerimetersGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient AccessPoliciesServicePerimetersGet'{..}
= go _apspgName _apspgXgafv _apspgUploadProtocol
_apspgAccessToken
_apspgUploadType
_apspgCallback
(Just AltJSON)
accessContextManagerService
where go
= buildClient
(Proxy ::
Proxy AccessPoliciesServicePerimetersGetResource)
mempty