{-# 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.Locations.WorkflowTemplates.GetIAMPolicy
(
ProjectsLocationsWorkflowTemplatesGetIAMPolicyResource
, projectsLocationsWorkflowTemplatesGetIAMPolicy
, ProjectsLocationsWorkflowTemplatesGetIAMPolicy
, plwtgipXgafv
, plwtgipUploadProtocol
, plwtgipAccessToken
, plwtgipUploadType
, plwtgipPayload
, plwtgipResource
, plwtgipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesGetIAMPolicyResource
=
"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 ProjectsLocationsWorkflowTemplatesGetIAMPolicy = ProjectsLocationsWorkflowTemplatesGetIAMPolicy'
{ _plwtgipXgafv :: !(Maybe Xgafv)
, _plwtgipUploadProtocol :: !(Maybe Text)
, _plwtgipAccessToken :: !(Maybe Text)
, _plwtgipUploadType :: !(Maybe Text)
, _plwtgipPayload :: !GetIAMPolicyRequest
, _plwtgipResource :: !Text
, _plwtgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsLocationsWorkflowTemplatesGetIAMPolicy
projectsLocationsWorkflowTemplatesGetIAMPolicy pPlwtgipPayload_ pPlwtgipResource_ =
ProjectsLocationsWorkflowTemplatesGetIAMPolicy'
{ _plwtgipXgafv = Nothing
, _plwtgipUploadProtocol = Nothing
, _plwtgipAccessToken = Nothing
, _plwtgipUploadType = Nothing
, _plwtgipPayload = pPlwtgipPayload_
, _plwtgipResource = pPlwtgipResource_
, _plwtgipCallback = Nothing
}
plwtgipXgafv :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy (Maybe Xgafv)
plwtgipXgafv
= lens _plwtgipXgafv (\ s a -> s{_plwtgipXgafv = a})
plwtgipUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy (Maybe Text)
plwtgipUploadProtocol
= lens _plwtgipUploadProtocol
(\ s a -> s{_plwtgipUploadProtocol = a})
plwtgipAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy (Maybe Text)
plwtgipAccessToken
= lens _plwtgipAccessToken
(\ s a -> s{_plwtgipAccessToken = a})
plwtgipUploadType :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy (Maybe Text)
plwtgipUploadType
= lens _plwtgipUploadType
(\ s a -> s{_plwtgipUploadType = a})
plwtgipPayload :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy GetIAMPolicyRequest
plwtgipPayload
= lens _plwtgipPayload
(\ s a -> s{_plwtgipPayload = a})
plwtgipResource :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy Text
plwtgipResource
= lens _plwtgipResource
(\ s a -> s{_plwtgipResource = a})
plwtgipCallback :: Lens' ProjectsLocationsWorkflowTemplatesGetIAMPolicy (Maybe Text)
plwtgipCallback
= lens _plwtgipCallback
(\ s a -> s{_plwtgipCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesGetIAMPolicy where
type Rs
ProjectsLocationsWorkflowTemplatesGetIAMPolicy
= Policy
type Scopes
ProjectsLocationsWorkflowTemplatesGetIAMPolicy
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesGetIAMPolicy'{..}
= go _plwtgipResource _plwtgipXgafv
_plwtgipUploadProtocol
_plwtgipAccessToken
_plwtgipUploadType
_plwtgipCallback
(Just AltJSON)
_plwtgipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesGetIAMPolicyResource)
mempty