{-# 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.Get
(
OrganizationsRolesGetResource
, organizationsRolesGet
, OrganizationsRolesGet
, orgXgafv
, orgUploadProtocol
, orgAccessToken
, orgUploadType
, orgName
, orgCallback
) where
import Network.Google.IAM.Types
import Network.Google.Prelude
type OrganizationsRolesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Role
data OrganizationsRolesGet = OrganizationsRolesGet'
{ _orgXgafv :: !(Maybe Xgafv)
, _orgUploadProtocol :: !(Maybe Text)
, _orgAccessToken :: !(Maybe Text)
, _orgUploadType :: !(Maybe Text)
, _orgName :: !Text
, _orgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsRolesGet
:: Text
-> OrganizationsRolesGet
organizationsRolesGet pOrgName_ =
OrganizationsRolesGet'
{ _orgXgafv = Nothing
, _orgUploadProtocol = Nothing
, _orgAccessToken = Nothing
, _orgUploadType = Nothing
, _orgName = pOrgName_
, _orgCallback = Nothing
}
orgXgafv :: Lens' OrganizationsRolesGet (Maybe Xgafv)
orgXgafv = lens _orgXgafv (\ s a -> s{_orgXgafv = a})
orgUploadProtocol :: Lens' OrganizationsRolesGet (Maybe Text)
orgUploadProtocol
= lens _orgUploadProtocol
(\ s a -> s{_orgUploadProtocol = a})
orgAccessToken :: Lens' OrganizationsRolesGet (Maybe Text)
orgAccessToken
= lens _orgAccessToken
(\ s a -> s{_orgAccessToken = a})
orgUploadType :: Lens' OrganizationsRolesGet (Maybe Text)
orgUploadType
= lens _orgUploadType
(\ s a -> s{_orgUploadType = a})
orgName :: Lens' OrganizationsRolesGet Text
orgName = lens _orgName (\ s a -> s{_orgName = a})
orgCallback :: Lens' OrganizationsRolesGet (Maybe Text)
orgCallback
= lens _orgCallback (\ s a -> s{_orgCallback = a})
instance GoogleRequest OrganizationsRolesGet where
type Rs OrganizationsRolesGet = Role
type Scopes OrganizationsRolesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsRolesGet'{..}
= go _orgName _orgXgafv _orgUploadProtocol
_orgAccessToken
_orgUploadType
_orgCallback
(Just AltJSON)
iAMService
where go
= buildClient
(Proxy :: Proxy OrganizationsRolesGetResource)
mempty