{-# 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.DataTransfer.Applications.List
(
ApplicationsListResource
, applicationsList
, ApplicationsList
, alCustomerId
, alPageToken
, alMaxResults
) where
import Network.Google.DataTransfer.Types
import Network.Google.Prelude
type ApplicationsListResource =
"admin" :>
"datatransfer" :>
"v1" :>
"applications" :>
QueryParam "customerId" Text :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] ApplicationsListResponse
data ApplicationsList = ApplicationsList'
{ _alCustomerId :: !(Maybe Text)
, _alPageToken :: !(Maybe Text)
, _alMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
applicationsList
:: ApplicationsList
applicationsList =
ApplicationsList'
{ _alCustomerId = Nothing
, _alPageToken = Nothing
, _alMaxResults = Nothing
}
alCustomerId :: Lens' ApplicationsList (Maybe Text)
alCustomerId
= lens _alCustomerId (\ s a -> s{_alCustomerId = a})
alPageToken :: Lens' ApplicationsList (Maybe Text)
alPageToken
= lens _alPageToken (\ s a -> s{_alPageToken = a})
alMaxResults :: Lens' ApplicationsList (Maybe Int32)
alMaxResults
= lens _alMaxResults (\ s a -> s{_alMaxResults = a})
. mapping _Coerce
instance GoogleRequest ApplicationsList where
type Rs ApplicationsList = ApplicationsListResponse
type Scopes ApplicationsList =
'["https://www.googleapis.com/auth/admin.datatransfer",
"https://www.googleapis.com/auth/admin.datatransfer.readonly"]
requestClient ApplicationsList'{..}
= go _alCustomerId _alPageToken _alMaxResults
(Just AltJSON)
dataTransferService
where go
= buildClient
(Proxy :: Proxy ApplicationsListResource)
mempty