{-# 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.Monitoring.UptimeCheckIPs.List
(
UptimeCheckIPsListResource
, uptimeCheckIPsList
, UptimeCheckIPsList
, ucilXgafv
, ucilUploadProtocol
, ucilAccessToken
, ucilUploadType
, ucilPageToken
, ucilPageSize
, ucilCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type UptimeCheckIPsListResource =
"v3" :>
"uptimeCheckIps" :>
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] ListUptimeCheckIPsResponse
data UptimeCheckIPsList = UptimeCheckIPsList'
{ _ucilXgafv :: !(Maybe Xgafv)
, _ucilUploadProtocol :: !(Maybe Text)
, _ucilAccessToken :: !(Maybe Text)
, _ucilUploadType :: !(Maybe Text)
, _ucilPageToken :: !(Maybe Text)
, _ucilPageSize :: !(Maybe (Textual Int32))
, _ucilCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
uptimeCheckIPsList
:: UptimeCheckIPsList
uptimeCheckIPsList =
UptimeCheckIPsList'
{ _ucilXgafv = Nothing
, _ucilUploadProtocol = Nothing
, _ucilAccessToken = Nothing
, _ucilUploadType = Nothing
, _ucilPageToken = Nothing
, _ucilPageSize = Nothing
, _ucilCallback = Nothing
}
ucilXgafv :: Lens' UptimeCheckIPsList (Maybe Xgafv)
ucilXgafv
= lens _ucilXgafv (\ s a -> s{_ucilXgafv = a})
ucilUploadProtocol :: Lens' UptimeCheckIPsList (Maybe Text)
ucilUploadProtocol
= lens _ucilUploadProtocol
(\ s a -> s{_ucilUploadProtocol = a})
ucilAccessToken :: Lens' UptimeCheckIPsList (Maybe Text)
ucilAccessToken
= lens _ucilAccessToken
(\ s a -> s{_ucilAccessToken = a})
ucilUploadType :: Lens' UptimeCheckIPsList (Maybe Text)
ucilUploadType
= lens _ucilUploadType
(\ s a -> s{_ucilUploadType = a})
ucilPageToken :: Lens' UptimeCheckIPsList (Maybe Text)
ucilPageToken
= lens _ucilPageToken
(\ s a -> s{_ucilPageToken = a})
ucilPageSize :: Lens' UptimeCheckIPsList (Maybe Int32)
ucilPageSize
= lens _ucilPageSize (\ s a -> s{_ucilPageSize = a})
. mapping _Coerce
ucilCallback :: Lens' UptimeCheckIPsList (Maybe Text)
ucilCallback
= lens _ucilCallback (\ s a -> s{_ucilCallback = a})
instance GoogleRequest UptimeCheckIPsList where
type Rs UptimeCheckIPsList =
ListUptimeCheckIPsResponse
type Scopes UptimeCheckIPsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient UptimeCheckIPsList'{..}
= go _ucilXgafv _ucilUploadProtocol _ucilAccessToken
_ucilUploadType
_ucilPageToken
_ucilPageSize
_ucilCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy UptimeCheckIPsListResource)
mempty