{-# 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.Logging.MonitoredResourceDescriptors.List
(
MonitoredResourceDescriptorsListResource
, monitoredResourceDescriptorsList
, MonitoredResourceDescriptorsList
, mrdlXgafv
, mrdlUploadProtocol
, mrdlAccessToken
, mrdlUploadType
, mrdlPageToken
, mrdlPageSize
, mrdlCallback
) where
import Network.Google.Logging.Types
import Network.Google.Prelude
type MonitoredResourceDescriptorsListResource =
"v2" :>
"monitoredResourceDescriptors" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListMonitoredResourceDescriptorsResponse
data MonitoredResourceDescriptorsList = MonitoredResourceDescriptorsList'
{ _mrdlXgafv :: !(Maybe Xgafv)
, _mrdlUploadProtocol :: !(Maybe Text)
, _mrdlAccessToken :: !(Maybe Text)
, _mrdlUploadType :: !(Maybe Text)
, _mrdlPageToken :: !(Maybe Text)
, _mrdlPageSize :: !(Maybe (Textual Int32))
, _mrdlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
monitoredResourceDescriptorsList
:: MonitoredResourceDescriptorsList
monitoredResourceDescriptorsList =
MonitoredResourceDescriptorsList'
{ _mrdlXgafv = Nothing
, _mrdlUploadProtocol = Nothing
, _mrdlAccessToken = Nothing
, _mrdlUploadType = Nothing
, _mrdlPageToken = Nothing
, _mrdlPageSize = Nothing
, _mrdlCallback = Nothing
}
mrdlXgafv :: Lens' MonitoredResourceDescriptorsList (Maybe Xgafv)
mrdlXgafv
= lens _mrdlXgafv (\ s a -> s{_mrdlXgafv = a})
mrdlUploadProtocol :: Lens' MonitoredResourceDescriptorsList (Maybe Text)
mrdlUploadProtocol
= lens _mrdlUploadProtocol
(\ s a -> s{_mrdlUploadProtocol = a})
mrdlAccessToken :: Lens' MonitoredResourceDescriptorsList (Maybe Text)
mrdlAccessToken
= lens _mrdlAccessToken
(\ s a -> s{_mrdlAccessToken = a})
mrdlUploadType :: Lens' MonitoredResourceDescriptorsList (Maybe Text)
mrdlUploadType
= lens _mrdlUploadType
(\ s a -> s{_mrdlUploadType = a})
mrdlPageToken :: Lens' MonitoredResourceDescriptorsList (Maybe Text)
mrdlPageToken
= lens _mrdlPageToken
(\ s a -> s{_mrdlPageToken = a})
mrdlPageSize :: Lens' MonitoredResourceDescriptorsList (Maybe Int32)
mrdlPageSize
= lens _mrdlPageSize (\ s a -> s{_mrdlPageSize = a})
. mapping _Coerce
mrdlCallback :: Lens' MonitoredResourceDescriptorsList (Maybe Text)
mrdlCallback
= lens _mrdlCallback (\ s a -> s{_mrdlCallback = a})
instance GoogleRequest
MonitoredResourceDescriptorsList where
type Rs MonitoredResourceDescriptorsList =
ListMonitoredResourceDescriptorsResponse
type Scopes MonitoredResourceDescriptorsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only",
"https://www.googleapis.com/auth/logging.admin",
"https://www.googleapis.com/auth/logging.read"]
requestClient MonitoredResourceDescriptorsList'{..}
= go _mrdlXgafv _mrdlUploadProtocol _mrdlAccessToken
_mrdlUploadType
_mrdlPageToken
_mrdlPageSize
_mrdlCallback
(Just AltJSON)
loggingService
where go
= buildClient
(Proxy ::
Proxy MonitoredResourceDescriptorsListResource)
mempty