{-# 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.Models.TestIAMPermissions
(
ProjectsModelsTestIAMPermissionsResource
, projectsModelsTestIAMPermissions
, ProjectsModelsTestIAMPermissions
, pmtipXgafv
, pmtipUploadProtocol
, pmtipAccessToken
, pmtipUploadType
, pmtipPayload
, pmtipResource
, pmtipCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsTestIAMPermissionsResource =
"v1" :>
CaptureMode "resource" "testIamPermissions" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
GoogleIAMV1__TestIAMPermissionsRequest
:>
Post '[JSON] GoogleIAMV1__TestIAMPermissionsResponse
data ProjectsModelsTestIAMPermissions = ProjectsModelsTestIAMPermissions'
{ _pmtipXgafv :: !(Maybe Xgafv)
, _pmtipUploadProtocol :: !(Maybe Text)
, _pmtipAccessToken :: !(Maybe Text)
, _pmtipUploadType :: !(Maybe Text)
, _pmtipPayload :: !GoogleIAMV1__TestIAMPermissionsRequest
, _pmtipResource :: !Text
, _pmtipCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsModelsTestIAMPermissions
:: GoogleIAMV1__TestIAMPermissionsRequest
-> Text
-> ProjectsModelsTestIAMPermissions
projectsModelsTestIAMPermissions pPmtipPayload_ pPmtipResource_ =
ProjectsModelsTestIAMPermissions'
{ _pmtipXgafv = Nothing
, _pmtipUploadProtocol = Nothing
, _pmtipAccessToken = Nothing
, _pmtipUploadType = Nothing
, _pmtipPayload = pPmtipPayload_
, _pmtipResource = pPmtipResource_
, _pmtipCallback = Nothing
}
pmtipXgafv :: Lens' ProjectsModelsTestIAMPermissions (Maybe Xgafv)
pmtipXgafv
= lens _pmtipXgafv (\ s a -> s{_pmtipXgafv = a})
pmtipUploadProtocol :: Lens' ProjectsModelsTestIAMPermissions (Maybe Text)
pmtipUploadProtocol
= lens _pmtipUploadProtocol
(\ s a -> s{_pmtipUploadProtocol = a})
pmtipAccessToken :: Lens' ProjectsModelsTestIAMPermissions (Maybe Text)
pmtipAccessToken
= lens _pmtipAccessToken
(\ s a -> s{_pmtipAccessToken = a})
pmtipUploadType :: Lens' ProjectsModelsTestIAMPermissions (Maybe Text)
pmtipUploadType
= lens _pmtipUploadType
(\ s a -> s{_pmtipUploadType = a})
pmtipPayload :: Lens' ProjectsModelsTestIAMPermissions GoogleIAMV1__TestIAMPermissionsRequest
pmtipPayload
= lens _pmtipPayload (\ s a -> s{_pmtipPayload = a})
pmtipResource :: Lens' ProjectsModelsTestIAMPermissions Text
pmtipResource
= lens _pmtipResource
(\ s a -> s{_pmtipResource = a})
pmtipCallback :: Lens' ProjectsModelsTestIAMPermissions (Maybe Text)
pmtipCallback
= lens _pmtipCallback
(\ s a -> s{_pmtipCallback = a})
instance GoogleRequest
ProjectsModelsTestIAMPermissions where
type Rs ProjectsModelsTestIAMPermissions =
GoogleIAMV1__TestIAMPermissionsResponse
type Scopes ProjectsModelsTestIAMPermissions =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsTestIAMPermissions'{..}
= go _pmtipResource _pmtipXgafv _pmtipUploadProtocol
_pmtipAccessToken
_pmtipUploadType
_pmtipCallback
(Just AltJSON)
_pmtipPayload
machineLearningService
where go
= buildClient
(Proxy ::
Proxy ProjectsModelsTestIAMPermissionsResource)
mempty