{-# 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.GetIAMPolicy
(
ProjectsIapTunnelGetIAMPolicyResource
, projectsIapTunnelGetIAMPolicy
, ProjectsIapTunnelGetIAMPolicy
, pitgipXgafv
, pitgipUploadProtocol
, pitgipAccessToken
, pitgipUploadType
, pitgipPayload
, pitgipResource
, pitgipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelGetIAMPolicyResource =
"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 ProjectsIapTunnelGetIAMPolicy = ProjectsIapTunnelGetIAMPolicy'
{ _pitgipXgafv :: !(Maybe Xgafv)
, _pitgipUploadProtocol :: !(Maybe Text)
, _pitgipAccessToken :: !(Maybe Text)
, _pitgipUploadType :: !(Maybe Text)
, _pitgipPayload :: !GetIAMPolicyRequest
, _pitgipResource :: !Text
, _pitgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsIapTunnelGetIAMPolicy
projectsIapTunnelGetIAMPolicy pPitgipPayload_ pPitgipResource_ =
ProjectsIapTunnelGetIAMPolicy'
{ _pitgipXgafv = Nothing
, _pitgipUploadProtocol = Nothing
, _pitgipAccessToken = Nothing
, _pitgipUploadType = Nothing
, _pitgipPayload = pPitgipPayload_
, _pitgipResource = pPitgipResource_
, _pitgipCallback = Nothing
}
pitgipXgafv :: Lens' ProjectsIapTunnelGetIAMPolicy (Maybe Xgafv)
pitgipXgafv
= lens _pitgipXgafv (\ s a -> s{_pitgipXgafv = a})
pitgipUploadProtocol :: Lens' ProjectsIapTunnelGetIAMPolicy (Maybe Text)
pitgipUploadProtocol
= lens _pitgipUploadProtocol
(\ s a -> s{_pitgipUploadProtocol = a})
pitgipAccessToken :: Lens' ProjectsIapTunnelGetIAMPolicy (Maybe Text)
pitgipAccessToken
= lens _pitgipAccessToken
(\ s a -> s{_pitgipAccessToken = a})
pitgipUploadType :: Lens' ProjectsIapTunnelGetIAMPolicy (Maybe Text)
pitgipUploadType
= lens _pitgipUploadType
(\ s a -> s{_pitgipUploadType = a})
pitgipPayload :: Lens' ProjectsIapTunnelGetIAMPolicy GetIAMPolicyRequest
pitgipPayload
= lens _pitgipPayload
(\ s a -> s{_pitgipPayload = a})
pitgipResource :: Lens' ProjectsIapTunnelGetIAMPolicy Text
pitgipResource
= lens _pitgipResource
(\ s a -> s{_pitgipResource = a})
pitgipCallback :: Lens' ProjectsIapTunnelGetIAMPolicy (Maybe Text)
pitgipCallback
= lens _pitgipCallback
(\ s a -> s{_pitgipCallback = a})
instance GoogleRequest ProjectsIapTunnelGetIAMPolicy
where
type Rs ProjectsIapTunnelGetIAMPolicy = Policy
type Scopes ProjectsIapTunnelGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsIapTunnelGetIAMPolicy'{..}
= go _pitgipResource _pitgipXgafv
_pitgipUploadProtocol
_pitgipAccessToken
_pitgipUploadType
_pitgipCallback
(Just AltJSON)
_pitgipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy ProjectsIapTunnelGetIAMPolicyResource)
mempty