{-# 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.Tracing.Projects.Traces.List
(
ProjectsTracesListResource
, projectsTracesList
, ProjectsTracesList
, ptlParent
, ptlXgafv
, ptlUploadProtocol
, ptlOrderBy
, ptlStartTime
, ptlPp
, ptlAccessToken
, ptlUploadType
, ptlBearerToken
, ptlEndTime
, ptlFilter
, ptlPageToken
, ptlPageSize
, ptlCallback
) where
import Network.Google.Prelude
import Network.Google.Tracing.Types
type ProjectsTracesListResource =
"v2" :>
Capture "parent" Text :>
"traces" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "orderBy" Text :>
QueryParam "startTime" DateTime' :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "endTime" DateTime' :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListTracesResponse
data ProjectsTracesList = ProjectsTracesList'
{ _ptlParent :: !Text
, _ptlXgafv :: !(Maybe Xgafv)
, _ptlUploadProtocol :: !(Maybe Text)
, _ptlOrderBy :: !(Maybe Text)
, _ptlStartTime :: !(Maybe DateTime')
, _ptlPp :: !Bool
, _ptlAccessToken :: !(Maybe Text)
, _ptlUploadType :: !(Maybe Text)
, _ptlBearerToken :: !(Maybe Text)
, _ptlEndTime :: !(Maybe DateTime')
, _ptlFilter :: !(Maybe Text)
, _ptlPageToken :: !(Maybe Text)
, _ptlPageSize :: !(Maybe (Textual Int32))
, _ptlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTracesList
:: Text
-> ProjectsTracesList
projectsTracesList pPtlParent_ =
ProjectsTracesList'
{ _ptlParent = pPtlParent_
, _ptlXgafv = Nothing
, _ptlUploadProtocol = Nothing
, _ptlOrderBy = Nothing
, _ptlStartTime = Nothing
, _ptlPp = True
, _ptlAccessToken = Nothing
, _ptlUploadType = Nothing
, _ptlBearerToken = Nothing
, _ptlEndTime = Nothing
, _ptlFilter = Nothing
, _ptlPageToken = Nothing
, _ptlPageSize = Nothing
, _ptlCallback = Nothing
}
ptlParent :: Lens' ProjectsTracesList Text
ptlParent
= lens _ptlParent (\ s a -> s{_ptlParent = a})
ptlXgafv :: Lens' ProjectsTracesList (Maybe Xgafv)
ptlXgafv = lens _ptlXgafv (\ s a -> s{_ptlXgafv = a})
ptlUploadProtocol :: Lens' ProjectsTracesList (Maybe Text)
ptlUploadProtocol
= lens _ptlUploadProtocol
(\ s a -> s{_ptlUploadProtocol = a})
ptlOrderBy :: Lens' ProjectsTracesList (Maybe Text)
ptlOrderBy
= lens _ptlOrderBy (\ s a -> s{_ptlOrderBy = a})
ptlStartTime :: Lens' ProjectsTracesList (Maybe UTCTime)
ptlStartTime
= lens _ptlStartTime (\ s a -> s{_ptlStartTime = a})
. mapping _DateTime
ptlPp :: Lens' ProjectsTracesList Bool
ptlPp = lens _ptlPp (\ s a -> s{_ptlPp = a})
ptlAccessToken :: Lens' ProjectsTracesList (Maybe Text)
ptlAccessToken
= lens _ptlAccessToken
(\ s a -> s{_ptlAccessToken = a})
ptlUploadType :: Lens' ProjectsTracesList (Maybe Text)
ptlUploadType
= lens _ptlUploadType
(\ s a -> s{_ptlUploadType = a})
ptlBearerToken :: Lens' ProjectsTracesList (Maybe Text)
ptlBearerToken
= lens _ptlBearerToken
(\ s a -> s{_ptlBearerToken = a})
ptlEndTime :: Lens' ProjectsTracesList (Maybe UTCTime)
ptlEndTime
= lens _ptlEndTime (\ s a -> s{_ptlEndTime = a}) .
mapping _DateTime
ptlFilter :: Lens' ProjectsTracesList (Maybe Text)
ptlFilter
= lens _ptlFilter (\ s a -> s{_ptlFilter = a})
ptlPageToken :: Lens' ProjectsTracesList (Maybe Text)
ptlPageToken
= lens _ptlPageToken (\ s a -> s{_ptlPageToken = a})
ptlPageSize :: Lens' ProjectsTracesList (Maybe Int32)
ptlPageSize
= lens _ptlPageSize (\ s a -> s{_ptlPageSize = a}) .
mapping _Coerce
ptlCallback :: Lens' ProjectsTracesList (Maybe Text)
ptlCallback
= lens _ptlCallback (\ s a -> s{_ptlCallback = a})
instance GoogleRequest ProjectsTracesList where
type Rs ProjectsTracesList = ListTracesResponse
type Scopes ProjectsTracesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"]
requestClient ProjectsTracesList'{..}
= go _ptlParent _ptlXgafv _ptlUploadProtocol
_ptlOrderBy
_ptlStartTime
(Just _ptlPp)
_ptlAccessToken
_ptlUploadType
_ptlBearerToken
_ptlEndTime
_ptlFilter
_ptlPageToken
_ptlPageSize
_ptlCallback
(Just AltJSON)
tracingService
where go
= buildClient
(Proxy :: Proxy ProjectsTracesListResource)
mempty