{-# 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.IapWeb.Services.Versions.GetIAMPolicy
(
ProjectsIapWebServicesVersionsGetIAMPolicyResource
, projectsIapWebServicesVersionsGetIAMPolicy
, ProjectsIapWebServicesVersionsGetIAMPolicy
, piwsvgipXgafv
, piwsvgipUploadProtocol
, piwsvgipAccessToken
, piwsvgipUploadType
, piwsvgipPayload
, piwsvgipResource
, piwsvgipCallback
) where
import Network.Google.IAP.Types
import Network.Google.Prelude
type ProjectsIapWebServicesVersionsGetIAMPolicyResource
=
"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 ProjectsIapWebServicesVersionsGetIAMPolicy = ProjectsIapWebServicesVersionsGetIAMPolicy'
{ _piwsvgipXgafv :: !(Maybe Xgafv)
, _piwsvgipUploadProtocol :: !(Maybe Text)
, _piwsvgipAccessToken :: !(Maybe Text)
, _piwsvgipUploadType :: !(Maybe Text)
, _piwsvgipPayload :: !GetIAMPolicyRequest
, _piwsvgipResource :: !Text
, _piwsvgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsIapWebServicesVersionsGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsIapWebServicesVersionsGetIAMPolicy
projectsIapWebServicesVersionsGetIAMPolicy pPiwsvgipPayload_ pPiwsvgipResource_ =
ProjectsIapWebServicesVersionsGetIAMPolicy'
{ _piwsvgipXgafv = Nothing
, _piwsvgipUploadProtocol = Nothing
, _piwsvgipAccessToken = Nothing
, _piwsvgipUploadType = Nothing
, _piwsvgipPayload = pPiwsvgipPayload_
, _piwsvgipResource = pPiwsvgipResource_
, _piwsvgipCallback = Nothing
}
piwsvgipXgafv :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy (Maybe Xgafv)
piwsvgipXgafv
= lens _piwsvgipXgafv
(\ s a -> s{_piwsvgipXgafv = a})
piwsvgipUploadProtocol :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy (Maybe Text)
piwsvgipUploadProtocol
= lens _piwsvgipUploadProtocol
(\ s a -> s{_piwsvgipUploadProtocol = a})
piwsvgipAccessToken :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy (Maybe Text)
piwsvgipAccessToken
= lens _piwsvgipAccessToken
(\ s a -> s{_piwsvgipAccessToken = a})
piwsvgipUploadType :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy (Maybe Text)
piwsvgipUploadType
= lens _piwsvgipUploadType
(\ s a -> s{_piwsvgipUploadType = a})
piwsvgipPayload :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy GetIAMPolicyRequest
piwsvgipPayload
= lens _piwsvgipPayload
(\ s a -> s{_piwsvgipPayload = a})
piwsvgipResource :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy Text
piwsvgipResource
= lens _piwsvgipResource
(\ s a -> s{_piwsvgipResource = a})
piwsvgipCallback :: Lens' ProjectsIapWebServicesVersionsGetIAMPolicy (Maybe Text)
piwsvgipCallback
= lens _piwsvgipCallback
(\ s a -> s{_piwsvgipCallback = a})
instance GoogleRequest
ProjectsIapWebServicesVersionsGetIAMPolicy where
type Rs ProjectsIapWebServicesVersionsGetIAMPolicy =
Policy
type Scopes
ProjectsIapWebServicesVersionsGetIAMPolicy
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsIapWebServicesVersionsGetIAMPolicy'{..}
= go _piwsvgipResource _piwsvgipXgafv
_piwsvgipUploadProtocol
_piwsvgipAccessToken
_piwsvgipUploadType
_piwsvgipCallback
(Just AltJSON)
_piwsvgipPayload
iAPService
where go
= buildClient
(Proxy ::
Proxy
ProjectsIapWebServicesVersionsGetIAMPolicyResource)
mempty