{-# 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.Projects.Groups.Members.List
(
ProjectsGroupsMembersListResource
, projectsGroupsMembersList
, ProjectsGroupsMembersList
, pgmlIntervalStartTime
, pgmlXgafv
, pgmlUploadProtocol
, pgmlAccessToken
, pgmlUploadType
, pgmlName
, pgmlFilter
, pgmlPageToken
, pgmlIntervalEndTime
, pgmlPageSize
, pgmlCallback
) where
import Network.Google.Monitoring.Types
import Network.Google.Prelude
type ProjectsGroupsMembersListResource =
"v3" :>
Capture "name" Text :>
"members" :>
QueryParam "interval.startTime" DateTime' :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "interval.endTime" DateTime' :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListGroupMembersResponse
data ProjectsGroupsMembersList = ProjectsGroupsMembersList'
{ _pgmlIntervalStartTime :: !(Maybe DateTime')
, _pgmlXgafv :: !(Maybe Xgafv)
, _pgmlUploadProtocol :: !(Maybe Text)
, _pgmlAccessToken :: !(Maybe Text)
, _pgmlUploadType :: !(Maybe Text)
, _pgmlName :: !Text
, _pgmlFilter :: !(Maybe Text)
, _pgmlPageToken :: !(Maybe Text)
, _pgmlIntervalEndTime :: !(Maybe DateTime')
, _pgmlPageSize :: !(Maybe (Textual Int32))
, _pgmlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGroupsMembersList
:: Text
-> ProjectsGroupsMembersList
projectsGroupsMembersList pPgmlName_ =
ProjectsGroupsMembersList'
{ _pgmlIntervalStartTime = Nothing
, _pgmlXgafv = Nothing
, _pgmlUploadProtocol = Nothing
, _pgmlAccessToken = Nothing
, _pgmlUploadType = Nothing
, _pgmlName = pPgmlName_
, _pgmlFilter = Nothing
, _pgmlPageToken = Nothing
, _pgmlIntervalEndTime = Nothing
, _pgmlPageSize = Nothing
, _pgmlCallback = Nothing
}
pgmlIntervalStartTime :: Lens' ProjectsGroupsMembersList (Maybe UTCTime)
pgmlIntervalStartTime
= lens _pgmlIntervalStartTime
(\ s a -> s{_pgmlIntervalStartTime = a})
. mapping _DateTime
pgmlXgafv :: Lens' ProjectsGroupsMembersList (Maybe Xgafv)
pgmlXgafv
= lens _pgmlXgafv (\ s a -> s{_pgmlXgafv = a})
pgmlUploadProtocol :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlUploadProtocol
= lens _pgmlUploadProtocol
(\ s a -> s{_pgmlUploadProtocol = a})
pgmlAccessToken :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlAccessToken
= lens _pgmlAccessToken
(\ s a -> s{_pgmlAccessToken = a})
pgmlUploadType :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlUploadType
= lens _pgmlUploadType
(\ s a -> s{_pgmlUploadType = a})
pgmlName :: Lens' ProjectsGroupsMembersList Text
pgmlName = lens _pgmlName (\ s a -> s{_pgmlName = a})
pgmlFilter :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlFilter
= lens _pgmlFilter (\ s a -> s{_pgmlFilter = a})
pgmlPageToken :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlPageToken
= lens _pgmlPageToken
(\ s a -> s{_pgmlPageToken = a})
pgmlIntervalEndTime :: Lens' ProjectsGroupsMembersList (Maybe UTCTime)
pgmlIntervalEndTime
= lens _pgmlIntervalEndTime
(\ s a -> s{_pgmlIntervalEndTime = a})
. mapping _DateTime
pgmlPageSize :: Lens' ProjectsGroupsMembersList (Maybe Int32)
pgmlPageSize
= lens _pgmlPageSize (\ s a -> s{_pgmlPageSize = a})
. mapping _Coerce
pgmlCallback :: Lens' ProjectsGroupsMembersList (Maybe Text)
pgmlCallback
= lens _pgmlCallback (\ s a -> s{_pgmlCallback = a})
instance GoogleRequest ProjectsGroupsMembersList
where
type Rs ProjectsGroupsMembersList =
ListGroupMembersResponse
type Scopes ProjectsGroupsMembersList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"]
requestClient ProjectsGroupsMembersList'{..}
= go _pgmlName _pgmlIntervalStartTime _pgmlXgafv
_pgmlUploadProtocol
_pgmlAccessToken
_pgmlUploadType
_pgmlFilter
_pgmlPageToken
_pgmlIntervalEndTime
_pgmlPageSize
_pgmlCallback
(Just AltJSON)
monitoringService
where go
= buildClient
(Proxy :: Proxy ProjectsGroupsMembersListResource)
mempty