{-# 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.Jobs.GetIAMPolicy
(
ProjectsRegionsJobsGetIAMPolicyResource
, projectsRegionsJobsGetIAMPolicy
, ProjectsRegionsJobsGetIAMPolicy
, prjgipXgafv
, prjgipUploadProtocol
, prjgipAccessToken
, prjgipUploadType
, prjgipPayload
, prjgipResource
, prjgipCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsJobsGetIAMPolicyResource =
"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 ProjectsRegionsJobsGetIAMPolicy = ProjectsRegionsJobsGetIAMPolicy'
{ _prjgipXgafv :: !(Maybe Xgafv)
, _prjgipUploadProtocol :: !(Maybe Text)
, _prjgipAccessToken :: !(Maybe Text)
, _prjgipUploadType :: !(Maybe Text)
, _prjgipPayload :: !GetIAMPolicyRequest
, _prjgipResource :: !Text
, _prjgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsJobsGetIAMPolicy
:: GetIAMPolicyRequest
-> Text
-> ProjectsRegionsJobsGetIAMPolicy
projectsRegionsJobsGetIAMPolicy pPrjgipPayload_ pPrjgipResource_ =
ProjectsRegionsJobsGetIAMPolicy'
{ _prjgipXgafv = Nothing
, _prjgipUploadProtocol = Nothing
, _prjgipAccessToken = Nothing
, _prjgipUploadType = Nothing
, _prjgipPayload = pPrjgipPayload_
, _prjgipResource = pPrjgipResource_
, _prjgipCallback = Nothing
}
prjgipXgafv :: Lens' ProjectsRegionsJobsGetIAMPolicy (Maybe Xgafv)
prjgipXgafv
= lens _prjgipXgafv (\ s a -> s{_prjgipXgafv = a})
prjgipUploadProtocol :: Lens' ProjectsRegionsJobsGetIAMPolicy (Maybe Text)
prjgipUploadProtocol
= lens _prjgipUploadProtocol
(\ s a -> s{_prjgipUploadProtocol = a})
prjgipAccessToken :: Lens' ProjectsRegionsJobsGetIAMPolicy (Maybe Text)
prjgipAccessToken
= lens _prjgipAccessToken
(\ s a -> s{_prjgipAccessToken = a})
prjgipUploadType :: Lens' ProjectsRegionsJobsGetIAMPolicy (Maybe Text)
prjgipUploadType
= lens _prjgipUploadType
(\ s a -> s{_prjgipUploadType = a})
prjgipPayload :: Lens' ProjectsRegionsJobsGetIAMPolicy GetIAMPolicyRequest
prjgipPayload
= lens _prjgipPayload
(\ s a -> s{_prjgipPayload = a})
prjgipResource :: Lens' ProjectsRegionsJobsGetIAMPolicy Text
prjgipResource
= lens _prjgipResource
(\ s a -> s{_prjgipResource = a})
prjgipCallback :: Lens' ProjectsRegionsJobsGetIAMPolicy (Maybe Text)
prjgipCallback
= lens _prjgipCallback
(\ s a -> s{_prjgipCallback = a})
instance GoogleRequest
ProjectsRegionsJobsGetIAMPolicy where
type Rs ProjectsRegionsJobsGetIAMPolicy = Policy
type Scopes ProjectsRegionsJobsGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsJobsGetIAMPolicy'{..}
= go _prjgipResource _prjgipXgafv
_prjgipUploadProtocol
_prjgipAccessToken
_prjgipUploadType
_prjgipCallback
(Just AltJSON)
_prjgipPayload
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsJobsGetIAMPolicyResource)
mempty