{-# 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.WorkflowTemplates.GetIAMPolicy
(
ProjectsRegionsWorkflowTemplatesGetIAMPolicyResource
, projectsRegionsWorkflowTemplatesGetIAMPolicy
, ProjectsRegionsWorkflowTemplatesGetIAMPolicy
, prwtgipXgafv
, prwtgipUploadProtocol
, prwtgipAccessToken
, prwtgipUploadType
, prwtgipPayload
, prwtgipResource
, prwtgipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesGetIAMPolicyResource
=
"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 ProjectsRegionsWorkflowTemplatesGetIAMPolicy = ProjectsRegionsWorkflowTemplatesGetIAMPolicy'
{ _prwtgipXgafv :: !(Maybe Xgafv)
, _prwtgipUploadProtocol :: !(Maybe Text)
, _prwtgipAccessToken :: !(Maybe Text)
, _prwtgipUploadType :: !(Maybe Text)
, _prwtgipPayload :: !GetIAMPolicyRequest
, _prwtgipResource :: !Text
, _prwtgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsRegionsWorkflowTemplatesGetIAMPolicy
projectsRegionsWorkflowTemplatesGetIAMPolicy pPrwtgipPayload_ pPrwtgipResource_ =
ProjectsRegionsWorkflowTemplatesGetIAMPolicy'
{ _prwtgipXgafv = Nothing
, _prwtgipUploadProtocol = Nothing
, _prwtgipAccessToken = Nothing
, _prwtgipUploadType = Nothing
, _prwtgipPayload = pPrwtgipPayload_
, _prwtgipResource = pPrwtgipResource_
, _prwtgipCallback = Nothing
}
prwtgipXgafv :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy (Maybe Xgafv)
prwtgipXgafv
= lens _prwtgipXgafv (\ s a -> s{_prwtgipXgafv = a})
prwtgipUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy (Maybe Text)
prwtgipUploadProtocol
= lens _prwtgipUploadProtocol
(\ s a -> s{_prwtgipUploadProtocol = a})
prwtgipAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy (Maybe Text)
prwtgipAccessToken
= lens _prwtgipAccessToken
(\ s a -> s{_prwtgipAccessToken = a})
prwtgipUploadType :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy (Maybe Text)
prwtgipUploadType
= lens _prwtgipUploadType
(\ s a -> s{_prwtgipUploadType = a})
prwtgipPayload :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy GetIAMPolicyRequest
prwtgipPayload
= lens _prwtgipPayload
(\ s a -> s{_prwtgipPayload = a})
prwtgipResource :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy Text
prwtgipResource
= lens _prwtgipResource
(\ s a -> s{_prwtgipResource = a})
prwtgipCallback :: Lens' ProjectsRegionsWorkflowTemplatesGetIAMPolicy (Maybe Text)
prwtgipCallback
= lens _prwtgipCallback
(\ s a -> s{_prwtgipCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesGetIAMPolicy where
type Rs ProjectsRegionsWorkflowTemplatesGetIAMPolicy
= Policy
type Scopes
ProjectsRegionsWorkflowTemplatesGetIAMPolicy
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesGetIAMPolicy'{..}
= go _prwtgipResource _prwtgipXgafv
_prwtgipUploadProtocol
_prwtgipAccessToken
_prwtgipUploadType
_prwtgipCallback
(Just AltJSON)
_prwtgipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsRegionsWorkflowTemplatesGetIAMPolicyResource)
mempty