{-# 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.Instances.GetIAMPolicy
(
ProjectsIapTunnelZonesInstancesGetIAMPolicyResource
, projectsIapTunnelZonesInstancesGetIAMPolicy
, ProjectsIapTunnelZonesInstancesGetIAMPolicy
, pitzigipXgafv
, pitzigipUploadProtocol
, pitzigipAccessToken
, pitzigipUploadType
, pitzigipPayload
, pitzigipResource
, pitzigipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapTunnelZonesInstancesGetIAMPolicyResource
=
"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 ProjectsIapTunnelZonesInstancesGetIAMPolicy = ProjectsIapTunnelZonesInstancesGetIAMPolicy'
{ _pitzigipXgafv :: !(Maybe Xgafv)
, _pitzigipUploadProtocol :: !(Maybe Text)
, _pitzigipAccessToken :: !(Maybe Text)
, _pitzigipUploadType :: !(Maybe Text)
, _pitzigipPayload :: !GetIAMPolicyRequest
, _pitzigipResource :: !Text
, _pitzigipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapTunnelZonesInstancesGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsIapTunnelZonesInstancesGetIAMPolicy
projectsIapTunnelZonesInstancesGetIAMPolicy pPitzigipPayload_ pPitzigipResource_ =
ProjectsIapTunnelZonesInstancesGetIAMPolicy'
{ _pitzigipXgafv = Nothing
, _pitzigipUploadProtocol = Nothing
, _pitzigipAccessToken = Nothing
, _pitzigipUploadType = Nothing
, _pitzigipPayload = pPitzigipPayload_
, _pitzigipResource = pPitzigipResource_
, _pitzigipCallback = Nothing
}
pitzigipXgafv :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy (Maybe Xgafv)
pitzigipXgafv
= lens _pitzigipXgafv
(\ s a -> s{_pitzigipXgafv = a})
pitzigipUploadProtocol :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy (Maybe Text)
pitzigipUploadProtocol
= lens _pitzigipUploadProtocol
(\ s a -> s{_pitzigipUploadProtocol = a})
pitzigipAccessToken :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy (Maybe Text)
pitzigipAccessToken
= lens _pitzigipAccessToken
(\ s a -> s{_pitzigipAccessToken = a})
pitzigipUploadType :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy (Maybe Text)
pitzigipUploadType
= lens _pitzigipUploadType
(\ s a -> s{_pitzigipUploadType = a})
pitzigipPayload :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy GetIAMPolicyRequest
pitzigipPayload
= lens _pitzigipPayload
(\ s a -> s{_pitzigipPayload = a})
pitzigipResource :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy Text
pitzigipResource
= lens _pitzigipResource
(\ s a -> s{_pitzigipResource = a})
pitzigipCallback :: Lens' ProjectsIapTunnelZonesInstancesGetIAMPolicy (Maybe Text)
pitzigipCallback
= lens _pitzigipCallback
(\ s a -> s{_pitzigipCallback = a})
instance GoogleRequest
ProjectsIapTunnelZonesInstancesGetIAMPolicy where
type Rs ProjectsIapTunnelZonesInstancesGetIAMPolicy =
Policy
type Scopes
ProjectsIapTunnelZonesInstancesGetIAMPolicy
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapTunnelZonesInstancesGetIAMPolicy'{..}
= go _pitzigipResource _pitzigipXgafv
_pitzigipUploadProtocol
_pitzigipAccessToken
_pitzigipUploadType
_pitzigipCallback
(Just AltJSON)
_pitzigipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapTunnelZonesInstancesGetIAMPolicyResource)
mempty