{-# 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.IAM.Projects.Roles.List
(
ProjectsRolesListResource
, projectsRolesList
, ProjectsRolesList
, prlParent
, prlXgafv
, prlUploadProtocol
, prlAccessToken
, prlUploadType
, prlShowDeleted
, prlView
, prlPageToken
, prlPageSize
, prlCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type ProjectsRolesListResource =
"v1" :>
Capture "parent" Text :>
"roles" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "showDeleted" Bool :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListRolesResponse
data ProjectsRolesList = ProjectsRolesList'
{ _prlParent :: !Text
, _prlXgafv :: !(Maybe Xgafv)
, _prlUploadProtocol :: !(Maybe Text)
, _prlAccessToken :: !(Maybe Text)
, _prlUploadType :: !(Maybe Text)
, _prlShowDeleted :: !(Maybe Bool)
, _prlView :: !(Maybe Text)
, _prlPageToken :: !(Maybe Text)
, _prlPageSize :: !(Maybe (Textual Int32))
, _prlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRolesList
:: Text
-> ProjectsRolesList
projectsRolesList pPrlParent_ =
ProjectsRolesList'
{ _prlParent = pPrlParent_
, _prlXgafv = Nothing
, _prlUploadProtocol = Nothing
, _prlAccessToken = Nothing
, _prlUploadType = Nothing
, _prlShowDeleted = Nothing
, _prlView = Nothing
, _prlPageToken = Nothing
, _prlPageSize = Nothing
, _prlCallback = Nothing
}
prlParent :: Lens' ProjectsRolesList Text
prlParent
= lens _prlParent (\ s a -> s{_prlParent = a})
prlXgafv :: Lens' ProjectsRolesList (Maybe Xgafv)
prlXgafv = lens _prlXgafv (\ s a -> s{_prlXgafv = a})
prlUploadProtocol :: Lens' ProjectsRolesList (Maybe Text)
prlUploadProtocol
= lens _prlUploadProtocol
(\ s a -> s{_prlUploadProtocol = a})
prlAccessToken :: Lens' ProjectsRolesList (Maybe Text)
prlAccessToken
= lens _prlAccessToken
(\ s a -> s{_prlAccessToken = a})
prlUploadType :: Lens' ProjectsRolesList (Maybe Text)
prlUploadType
= lens _prlUploadType
(\ s a -> s{_prlUploadType = a})
prlShowDeleted :: Lens' ProjectsRolesList (Maybe Bool)
prlShowDeleted
= lens _prlShowDeleted
(\ s a -> s{_prlShowDeleted = a})
prlView :: Lens' ProjectsRolesList (Maybe Text)
prlView = lens _prlView (\ s a -> s{_prlView = a})
prlPageToken :: Lens' ProjectsRolesList (Maybe Text)
prlPageToken
= lens _prlPageToken (\ s a -> s{_prlPageToken = a})
prlPageSize :: Lens' ProjectsRolesList (Maybe Int32)
prlPageSize
= lens _prlPageSize (\ s a -> s{_prlPageSize = a}) .
mapping _Coerce
prlCallback :: Lens' ProjectsRolesList (Maybe Text)
prlCallback
= lens _prlCallback (\ s a -> s{_prlCallback = a})
instance GoogleRequest ProjectsRolesList where
type Rs ProjectsRolesList = ListRolesResponse
type Scopes ProjectsRolesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRolesList'{..}
= go _prlParent _prlXgafv _prlUploadProtocol
_prlAccessToken
_prlUploadType
_prlShowDeleted
_prlView
_prlPageToken
_prlPageSize
_prlCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy :: Proxy ProjectsRolesListResource)
mempty