{-# 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.IAP.Projects.IapTunnel.Zones.GetIAMPolicy
(
ProjectsIapTunnelZonesGetIAMPolicyResource
, projectsIapTunnelZonesGetIAMPolicy
, ProjectsIapTunnelZonesGetIAMPolicy
, pitzgipXgafv
, pitzgipUploadProtocol
, pitzgipAccessToken
, pitzgipUploadType
, pitzgipPayload
, pitzgipResource
, pitzgipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelZonesGetIAMPolicyResource =
"v1" :>
CaptureMode "resource" "getIamPolicy" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] GetIAMPolicyRequest :>
Post '[JSON] Policy
data ProjectsIapTunnelZonesGetIAMPolicy = ProjectsIapTunnelZonesGetIAMPolicy'
{ _pitzgipXgafv :: !(Maybe Xgafv)
, _pitzgipUploadProtocol :: !(Maybe Text)
, _pitzgipAccessToken :: !(Maybe Text)
, _pitzgipUploadType :: !(Maybe Text)
, _pitzgipPayload :: !GetIAMPolicyRequest
, _pitzgipResource :: !Text
, _pitzgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelZonesGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsIapTunnelZonesGetIAMPolicy
projectsIapTunnelZonesGetIAMPolicy pPitzgipPayload_ pPitzgipResource_ =
ProjectsIapTunnelZonesGetIAMPolicy'
{ _pitzgipXgafv = Nothing
, _pitzgipUploadProtocol = Nothing
, _pitzgipAccessToken = Nothing
, _pitzgipUploadType = Nothing
, _pitzgipPayload = pPitzgipPayload_
, _pitzgipResource = pPitzgipResource_
, _pitzgipCallback = Nothing
}
pitzgipXgafv :: Lens' ProjectsIapTunnelZonesGetIAMPolicy (Maybe Xgafv)
pitzgipXgafv
= lens _pitzgipXgafv (\ s a -> s{_pitzgipXgafv = a})
pitzgipUploadProtocol :: Lens' ProjectsIapTunnelZonesGetIAMPolicy (Maybe Text)
pitzgipUploadProtocol
= lens _pitzgipUploadProtocol
(\ s a -> s{_pitzgipUploadProtocol = a})
pitzgipAccessToken :: Lens' ProjectsIapTunnelZonesGetIAMPolicy (Maybe Text)
pitzgipAccessToken
= lens _pitzgipAccessToken
(\ s a -> s{_pitzgipAccessToken = a})
pitzgipUploadType :: Lens' ProjectsIapTunnelZonesGetIAMPolicy (Maybe Text)
pitzgipUploadType
= lens _pitzgipUploadType
(\ s a -> s{_pitzgipUploadType = a})
pitzgipPayload :: Lens' ProjectsIapTunnelZonesGetIAMPolicy GetIAMPolicyRequest
pitzgipPayload
= lens _pitzgipPayload
(\ s a -> s{_pitzgipPayload = a})
pitzgipResource :: Lens' ProjectsIapTunnelZonesGetIAMPolicy Text
pitzgipResource
= lens _pitzgipResource
(\ s a -> s{_pitzgipResource = a})
pitzgipCallback :: Lens' ProjectsIapTunnelZonesGetIAMPolicy (Maybe Text)
pitzgipCallback
= lens _pitzgipCallback
(\ s a -> s{_pitzgipCallback = a})
instance GoogleRequest
ProjectsIapTunnelZonesGetIAMPolicy where
type Rs ProjectsIapTunnelZonesGetIAMPolicy = Policy
type Scopes ProjectsIapTunnelZonesGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsIapTunnelZonesGetIAMPolicy'{..}
= go _pitzgipResource _pitzgipXgafv
_pitzgipUploadProtocol
_pitzgipAccessToken
_pitzgipUploadType
_pitzgipCallback
(Just AltJSON)
_pitzgipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy ProjectsIapTunnelZonesGetIAMPolicyResource)
mempty