{-# 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.Directory.Domains.List
(
DomainsListResource
, domainsList
, DomainsList
, dlCustomer
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type DomainsListResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"domains" :>
QueryParam "alt" AltJSON :> Get '[JSON] Domains2
newtype DomainsList = DomainsList'
{ _dlCustomer :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
domainsList
:: Text
-> DomainsList
domainsList pDlCustomer_ =
DomainsList'
{ _dlCustomer = pDlCustomer_
}
dlCustomer :: Lens' DomainsList Text
dlCustomer
= lens _dlCustomer (\ s a -> s{_dlCustomer = a})
instance GoogleRequest DomainsList where
type Rs DomainsList = Domains2
type Scopes DomainsList =
'["https://www.googleapis.com/auth/admin.directory.domain",
"https://www.googleapis.com/auth/admin.directory.domain.readonly"]
requestClient DomainsList'{..}
= go _dlCustomer (Just AltJSON) directoryService
where go
= buildClient (Proxy :: Proxy DomainsListResource)
mempty