{-# 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.Dataproc.Projects.Regions.Clusters.GetIAMPolicy
(
ProjectsRegionsClustersGetIAMPolicyResource
, projectsRegionsClustersGetIAMPolicy
, ProjectsRegionsClustersGetIAMPolicy
, prcgipXgafv
, prcgipUploadProtocol
, prcgipAccessToken
, prcgipUploadType
, prcgipPayload
, prcgipResource
, prcgipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsClustersGetIAMPolicyResource =
"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 ProjectsRegionsClustersGetIAMPolicy = ProjectsRegionsClustersGetIAMPolicy'
{ _prcgipXgafv :: !(Maybe Xgafv)
, _prcgipUploadProtocol :: !(Maybe Text)
, _prcgipAccessToken :: !(Maybe Text)
, _prcgipUploadType :: !(Maybe Text)
, _prcgipPayload :: !GetIAMPolicyRequest
, _prcgipResource :: !Text
, _prcgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsClustersGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsRegionsClustersGetIAMPolicy
projectsRegionsClustersGetIAMPolicy pPrcgipPayload_ pPrcgipResource_ =
ProjectsRegionsClustersGetIAMPolicy'
{ _prcgipXgafv = Nothing
, _prcgipUploadProtocol = Nothing
, _prcgipAccessToken = Nothing
, _prcgipUploadType = Nothing
, _prcgipPayload = pPrcgipPayload_
, _prcgipResource = pPrcgipResource_
, _prcgipCallback = Nothing
}
prcgipXgafv :: Lens' ProjectsRegionsClustersGetIAMPolicy (Maybe Xgafv)
prcgipXgafv
= lens _prcgipXgafv (\ s a -> s{_prcgipXgafv = a})
prcgipUploadProtocol :: Lens' ProjectsRegionsClustersGetIAMPolicy (Maybe Text)
prcgipUploadProtocol
= lens _prcgipUploadProtocol
(\ s a -> s{_prcgipUploadProtocol = a})
prcgipAccessToken :: Lens' ProjectsRegionsClustersGetIAMPolicy (Maybe Text)
prcgipAccessToken
= lens _prcgipAccessToken
(\ s a -> s{_prcgipAccessToken = a})
prcgipUploadType :: Lens' ProjectsRegionsClustersGetIAMPolicy (Maybe Text)
prcgipUploadType
= lens _prcgipUploadType
(\ s a -> s{_prcgipUploadType = a})
prcgipPayload :: Lens' ProjectsRegionsClustersGetIAMPolicy GetIAMPolicyRequest
prcgipPayload
= lens _prcgipPayload
(\ s a -> s{_prcgipPayload = a})
prcgipResource :: Lens' ProjectsRegionsClustersGetIAMPolicy Text
prcgipResource
= lens _prcgipResource
(\ s a -> s{_prcgipResource = a})
prcgipCallback :: Lens' ProjectsRegionsClustersGetIAMPolicy (Maybe Text)
prcgipCallback
= lens _prcgipCallback
(\ s a -> s{_prcgipCallback = a})
instance GoogleRequest
ProjectsRegionsClustersGetIAMPolicy where
type Rs ProjectsRegionsClustersGetIAMPolicy = Policy
type Scopes ProjectsRegionsClustersGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsClustersGetIAMPolicy'{..}
= go _prcgipResource _prcgipXgafv
_prcgipUploadProtocol
_prcgipAccessToken
_prcgipUploadType
_prcgipCallback
(Just AltJSON)
_prcgipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsClustersGetIAMPolicyResource)
mempty