{-# 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.Ml.Projects.Jobs.GetIAMPolicy
(
ProjectsJobsGetIAMPolicyResource
, projectsJobsGetIAMPolicy
, ProjectsJobsGetIAMPolicy
, pjgipXgafv
, pjgipUploadProtocol
, pjgipAccessToken
, pjgipUploadType
, pjgipResource
, pjgipCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsJobsGetIAMPolicyResource =
"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 :>
Get '[JSON] GoogleIAMV1__Policy
data ProjectsJobsGetIAMPolicy = ProjectsJobsGetIAMPolicy'
{ _pjgipXgafv :: !(Maybe Xgafv)
, _pjgipUploadProtocol :: !(Maybe Text)
, _pjgipAccessToken :: !(Maybe Text)
, _pjgipUploadType :: !(Maybe Text)
, _pjgipResource :: !Text
, _pjgipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsGetIAMPolicy
:: Text
-> ProjectsJobsGetIAMPolicy
projectsJobsGetIAMPolicy pPjgipResource_ =
ProjectsJobsGetIAMPolicy'
{ _pjgipXgafv = Nothing
, _pjgipUploadProtocol = Nothing
, _pjgipAccessToken = Nothing
, _pjgipUploadType = Nothing
, _pjgipResource = pPjgipResource_
, _pjgipCallback = Nothing
}
pjgipXgafv :: Lens' ProjectsJobsGetIAMPolicy (Maybe Xgafv)
pjgipXgafv
= lens _pjgipXgafv (\ s a -> s{_pjgipXgafv = a})
pjgipUploadProtocol :: Lens' ProjectsJobsGetIAMPolicy (Maybe Text)
pjgipUploadProtocol
= lens _pjgipUploadProtocol
(\ s a -> s{_pjgipUploadProtocol = a})
pjgipAccessToken :: Lens' ProjectsJobsGetIAMPolicy (Maybe Text)
pjgipAccessToken
= lens _pjgipAccessToken
(\ s a -> s{_pjgipAccessToken = a})
pjgipUploadType :: Lens' ProjectsJobsGetIAMPolicy (Maybe Text)
pjgipUploadType
= lens _pjgipUploadType
(\ s a -> s{_pjgipUploadType = a})
pjgipResource :: Lens' ProjectsJobsGetIAMPolicy Text
pjgipResource
= lens _pjgipResource
(\ s a -> s{_pjgipResource = a})
pjgipCallback :: Lens' ProjectsJobsGetIAMPolicy (Maybe Text)
pjgipCallback
= lens _pjgipCallback
(\ s a -> s{_pjgipCallback = a})
instance GoogleRequest ProjectsJobsGetIAMPolicy where
type Rs ProjectsJobsGetIAMPolicy =
GoogleIAMV1__Policy
type Scopes ProjectsJobsGetIAMPolicy =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsJobsGetIAMPolicy'{..}
= go _pjgipResource _pjgipXgafv _pjgipUploadProtocol
_pjgipAccessToken
_pjgipUploadType
_pjgipCallback
(Just AltJSON)
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsJobsGetIAMPolicyResource)
mempty