{-# 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.Roles.List
(
RolesListResource
, rolesList
, RolesList
, rlParent
, rlXgafv
, rlUploadProtocol
, rlAccessToken
, rlUploadType
, rlShowDeleted
, rlView
, rlPageToken
, rlPageSize
, rlCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type RolesListResource =
"v1" :>
"roles" :>
QueryParam "parent" Text :>
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 RolesList = RolesList'
{ _rlParent :: !(Maybe Text)
, _rlXgafv :: !(Maybe Xgafv)
, _rlUploadProtocol :: !(Maybe Text)
, _rlAccessToken :: !(Maybe Text)
, _rlUploadType :: !(Maybe Text)
, _rlShowDeleted :: !(Maybe Bool)
, _rlView :: !(Maybe Text)
, _rlPageToken :: !(Maybe Text)
, _rlPageSize :: !(Maybe (Textual Int32))
, _rlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
rolesList
:: RolesList
rolesList =
RolesList'
{ _rlParent = Nothing
, _rlXgafv = Nothing
, _rlUploadProtocol = Nothing
, _rlAccessToken = Nothing
, _rlUploadType = Nothing
, _rlShowDeleted = Nothing
, _rlView = Nothing
, _rlPageToken = Nothing
, _rlPageSize = Nothing
, _rlCallback = Nothing
}
rlParent :: Lens' RolesList (Maybe Text)
rlParent = lens _rlParent (\ s a -> s{_rlParent = a})
rlXgafv :: Lens' RolesList (Maybe Xgafv)
rlXgafv = lens _rlXgafv (\ s a -> s{_rlXgafv = a})
rlUploadProtocol :: Lens' RolesList (Maybe Text)
rlUploadProtocol
= lens _rlUploadProtocol
(\ s a -> s{_rlUploadProtocol = a})
rlAccessToken :: Lens' RolesList (Maybe Text)
rlAccessToken
= lens _rlAccessToken
(\ s a -> s{_rlAccessToken = a})
rlUploadType :: Lens' RolesList (Maybe Text)
rlUploadType
= lens _rlUploadType (\ s a -> s{_rlUploadType = a})
rlShowDeleted :: Lens' RolesList (Maybe Bool)
rlShowDeleted
= lens _rlShowDeleted
(\ s a -> s{_rlShowDeleted = a})
rlView :: Lens' RolesList (Maybe Text)
rlView = lens _rlView (\ s a -> s{_rlView = a})
rlPageToken :: Lens' RolesList (Maybe Text)
rlPageToken
= lens _rlPageToken (\ s a -> s{_rlPageToken = a})
rlPageSize :: Lens' RolesList (Maybe Int32)
rlPageSize
= lens _rlPageSize (\ s a -> s{_rlPageSize = a}) .
mapping _Coerce
rlCallback :: Lens' RolesList (Maybe Text)
rlCallback
= lens _rlCallback (\ s a -> s{_rlCallback = a})
instance GoogleRequest RolesList where
type Rs RolesList = ListRolesResponse
type Scopes RolesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient RolesList'{..}
= go _rlParent _rlXgafv _rlUploadProtocol
_rlAccessToken
_rlUploadType
_rlShowDeleted
_rlView
_rlPageToken
_rlPageSize
_rlCallback
(Just AltJSON)
iAMService
where go
= buildClient (Proxy :: Proxy RolesListResource)
mempty