{-# 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.CloudErrorReporting.Projects.Events.List
(
ProjectsEventsListResource
, projectsEventsList
, ProjectsEventsList
, pelXgafv
, pelUploadProtocol
, pelAccessToken
, pelUploadType
, pelProjectName
, pelGroupId
, pelPageToken
, pelPageSize
, pelServiceFilterService
, pelServiceFilterResourceType
, pelCallback
, pelServiceFilterVersion
, pelTimeRangePeriod
) where
import Network.Google.CloudErrorReporting.Types
import Network.Google.Prelude
type ProjectsEventsListResource =
"v1beta1" :>
Capture "projectName" Text :>
"events" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "groupId" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "serviceFilter.service" Text :>
QueryParam "serviceFilter.resourceType" Text :>
QueryParam "callback" Text :>
QueryParam "serviceFilter.version" Text :>
QueryParam "timeRange.period" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListEventsResponse
data ProjectsEventsList = ProjectsEventsList'
{ _pelXgafv :: !(Maybe Xgafv)
, _pelUploadProtocol :: !(Maybe Text)
, _pelAccessToken :: !(Maybe Text)
, _pelUploadType :: !(Maybe Text)
, _pelProjectName :: !Text
, _pelGroupId :: !(Maybe Text)
, _pelPageToken :: !(Maybe Text)
, _pelPageSize :: !(Maybe (Textual Int32))
, _pelServiceFilterService :: !(Maybe Text)
, _pelServiceFilterResourceType :: !(Maybe Text)
, _pelCallback :: !(Maybe Text)
, _pelServiceFilterVersion :: !(Maybe Text)
, _pelTimeRangePeriod :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsEventsList
:: Text
-> ProjectsEventsList
projectsEventsList pPelProjectName_ =
ProjectsEventsList'
{ _pelXgafv = Nothing
, _pelUploadProtocol = Nothing
, _pelAccessToken = Nothing
, _pelUploadType = Nothing
, _pelProjectName = pPelProjectName_
, _pelGroupId = Nothing
, _pelPageToken = Nothing
, _pelPageSize = Nothing
, _pelServiceFilterService = Nothing
, _pelServiceFilterResourceType = Nothing
, _pelCallback = Nothing
, _pelServiceFilterVersion = Nothing
, _pelTimeRangePeriod = Nothing
}
pelXgafv :: Lens' ProjectsEventsList (Maybe Xgafv)
pelXgafv = lens _pelXgafv (\ s a -> s{_pelXgafv = a})
pelUploadProtocol :: Lens' ProjectsEventsList (Maybe Text)
pelUploadProtocol
= lens _pelUploadProtocol
(\ s a -> s{_pelUploadProtocol = a})
pelAccessToken :: Lens' ProjectsEventsList (Maybe Text)
pelAccessToken
= lens _pelAccessToken
(\ s a -> s{_pelAccessToken = a})
pelUploadType :: Lens' ProjectsEventsList (Maybe Text)
pelUploadType
= lens _pelUploadType
(\ s a -> s{_pelUploadType = a})
pelProjectName :: Lens' ProjectsEventsList Text
pelProjectName
= lens _pelProjectName
(\ s a -> s{_pelProjectName = a})
pelGroupId :: Lens' ProjectsEventsList (Maybe Text)
pelGroupId
= lens _pelGroupId (\ s a -> s{_pelGroupId = a})
pelPageToken :: Lens' ProjectsEventsList (Maybe Text)
pelPageToken
= lens _pelPageToken (\ s a -> s{_pelPageToken = a})
pelPageSize :: Lens' ProjectsEventsList (Maybe Int32)
pelPageSize
= lens _pelPageSize (\ s a -> s{_pelPageSize = a}) .
mapping _Coerce
pelServiceFilterService :: Lens' ProjectsEventsList (Maybe Text)
pelServiceFilterService
= lens _pelServiceFilterService
(\ s a -> s{_pelServiceFilterService = a})
pelServiceFilterResourceType :: Lens' ProjectsEventsList (Maybe Text)
pelServiceFilterResourceType
= lens _pelServiceFilterResourceType
(\ s a -> s{_pelServiceFilterResourceType = a})
pelCallback :: Lens' ProjectsEventsList (Maybe Text)
pelCallback
= lens _pelCallback (\ s a -> s{_pelCallback = a})
pelServiceFilterVersion :: Lens' ProjectsEventsList (Maybe Text)
pelServiceFilterVersion
= lens _pelServiceFilterVersion
(\ s a -> s{_pelServiceFilterVersion = a})
pelTimeRangePeriod :: Lens' ProjectsEventsList (Maybe Text)
pelTimeRangePeriod
= lens _pelTimeRangePeriod
(\ s a -> s{_pelTimeRangePeriod = a})
instance GoogleRequest ProjectsEventsList where
type Rs ProjectsEventsList = ListEventsResponse
type Scopes ProjectsEventsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsEventsList'{..}
= go _pelProjectName _pelXgafv _pelUploadProtocol
_pelAccessToken
_pelUploadType
_pelGroupId
_pelPageToken
_pelPageSize
_pelServiceFilterService
_pelServiceFilterResourceType
_pelCallback
_pelServiceFilterVersion
_pelTimeRangePeriod
(Just AltJSON)
cloudErrorReportingService
where go
= buildClient
(Proxy :: Proxy ProjectsEventsListResource)
mempty