{-# 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.Organizations.Roles.List
(
OrganizationsRolesListResource
, organizationsRolesList
, OrganizationsRolesList
, orlParent
, orlXgafv
, orlUploadProtocol
, orlAccessToken
, orlUploadType
, orlShowDeleted
, orlView
, orlPageToken
, orlPageSize
, orlCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type OrganizationsRolesListResource =
"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 OrganizationsRolesList = OrganizationsRolesList'
{ _orlParent :: !Text
, _orlXgafv :: !(Maybe Xgafv)
, _orlUploadProtocol :: !(Maybe Text)
, _orlAccessToken :: !(Maybe Text)
, _orlUploadType :: !(Maybe Text)
, _orlShowDeleted :: !(Maybe Bool)
, _orlView :: !(Maybe Text)
, _orlPageToken :: !(Maybe Text)
, _orlPageSize :: !(Maybe (Textual Int32))
, _orlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsRolesList
:: Text
-> OrganizationsRolesList
organizationsRolesList pOrlParent_ =
OrganizationsRolesList'
{ _orlParent = pOrlParent_
, _orlXgafv = Nothing
, _orlUploadProtocol = Nothing
, _orlAccessToken = Nothing
, _orlUploadType = Nothing
, _orlShowDeleted = Nothing
, _orlView = Nothing
, _orlPageToken = Nothing
, _orlPageSize = Nothing
, _orlCallback = Nothing
}
orlParent :: Lens' OrganizationsRolesList Text
orlParent
= lens _orlParent (\ s a -> s{_orlParent = a})
orlXgafv :: Lens' OrganizationsRolesList (Maybe Xgafv)
orlXgafv = lens _orlXgafv (\ s a -> s{_orlXgafv = a})
orlUploadProtocol :: Lens' OrganizationsRolesList (Maybe Text)
orlUploadProtocol
= lens _orlUploadProtocol
(\ s a -> s{_orlUploadProtocol = a})
orlAccessToken :: Lens' OrganizationsRolesList (Maybe Text)
orlAccessToken
= lens _orlAccessToken
(\ s a -> s{_orlAccessToken = a})
orlUploadType :: Lens' OrganizationsRolesList (Maybe Text)
orlUploadType
= lens _orlUploadType
(\ s a -> s{_orlUploadType = a})
orlShowDeleted :: Lens' OrganizationsRolesList (Maybe Bool)
orlShowDeleted
= lens _orlShowDeleted
(\ s a -> s{_orlShowDeleted = a})
orlView :: Lens' OrganizationsRolesList (Maybe Text)
orlView = lens _orlView (\ s a -> s{_orlView = a})
orlPageToken :: Lens' OrganizationsRolesList (Maybe Text)
orlPageToken
= lens _orlPageToken (\ s a -> s{_orlPageToken = a})
orlPageSize :: Lens' OrganizationsRolesList (Maybe Int32)
orlPageSize
= lens _orlPageSize (\ s a -> s{_orlPageSize = a}) .
mapping _Coerce
orlCallback :: Lens' OrganizationsRolesList (Maybe Text)
orlCallback
= lens _orlCallback (\ s a -> s{_orlCallback = a})
instance GoogleRequest OrganizationsRolesList where
type Rs OrganizationsRolesList = ListRolesResponse
type Scopes OrganizationsRolesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsRolesList'{..}
= go _orlParent _orlXgafv _orlUploadProtocol
_orlAccessToken
_orlUploadType
_orlShowDeleted
_orlView
_orlPageToken
_orlPageSize
_orlCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy :: Proxy OrganizationsRolesListResource)
mempty