{-# 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.ListSpans
(
ProjectsTracesListSpansResource
, projectsTracesListSpans
, ProjectsTracesListSpans
, ptlsParent
, ptlsXgafv
, ptlsUploadProtocol
, ptlsPp
, ptlsAccessToken
, ptlsUploadType
, ptlsBearerToken
, ptlsPageToken
, ptlsCallback
) where
import Network.Google.Prelude
import Network.Google.Tracing.Types
type ProjectsTracesListSpansResource =
"v2" :>
CaptureMode "parent" "listSpans" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "pp" Bool :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "bearer_token" Text :>
QueryParam "pageToken" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListSpansResponse
data ProjectsTracesListSpans = ProjectsTracesListSpans'
{ _ptlsParent :: !Text
, _ptlsXgafv :: !(Maybe Xgafv)
, _ptlsUploadProtocol :: !(Maybe Text)
, _ptlsPp :: !Bool
, _ptlsAccessToken :: !(Maybe Text)
, _ptlsUploadType :: !(Maybe Text)
, _ptlsBearerToken :: !(Maybe Text)
, _ptlsPageToken :: !(Maybe Text)
, _ptlsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTracesListSpans
:: Text
-> ProjectsTracesListSpans
projectsTracesListSpans pPtlsParent_ =
ProjectsTracesListSpans'
{ _ptlsParent = pPtlsParent_
, _ptlsXgafv = Nothing
, _ptlsUploadProtocol = Nothing
, _ptlsPp = True
, _ptlsAccessToken = Nothing
, _ptlsUploadType = Nothing
, _ptlsBearerToken = Nothing
, _ptlsPageToken = Nothing
, _ptlsCallback = Nothing
}
ptlsParent :: Lens' ProjectsTracesListSpans Text
ptlsParent
= lens _ptlsParent (\ s a -> s{_ptlsParent = a})
ptlsXgafv :: Lens' ProjectsTracesListSpans (Maybe Xgafv)
ptlsXgafv
= lens _ptlsXgafv (\ s a -> s{_ptlsXgafv = a})
ptlsUploadProtocol :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsUploadProtocol
= lens _ptlsUploadProtocol
(\ s a -> s{_ptlsUploadProtocol = a})
ptlsPp :: Lens' ProjectsTracesListSpans Bool
ptlsPp = lens _ptlsPp (\ s a -> s{_ptlsPp = a})
ptlsAccessToken :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsAccessToken
= lens _ptlsAccessToken
(\ s a -> s{_ptlsAccessToken = a})
ptlsUploadType :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsUploadType
= lens _ptlsUploadType
(\ s a -> s{_ptlsUploadType = a})
ptlsBearerToken :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsBearerToken
= lens _ptlsBearerToken
(\ s a -> s{_ptlsBearerToken = a})
ptlsPageToken :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsPageToken
= lens _ptlsPageToken
(\ s a -> s{_ptlsPageToken = a})
ptlsCallback :: Lens' ProjectsTracesListSpans (Maybe Text)
ptlsCallback
= lens _ptlsCallback (\ s a -> s{_ptlsCallback = a})
instance GoogleRequest ProjectsTracesListSpans where
type Rs ProjectsTracesListSpans = ListSpansResponse
type Scopes ProjectsTracesListSpans =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"]
requestClient ProjectsTracesListSpans'{..}
= go _ptlsParent _ptlsXgafv _ptlsUploadProtocol
(Just _ptlsPp)
_ptlsAccessToken
_ptlsUploadType
_ptlsBearerToken
_ptlsPageToken
_ptlsCallback
(Just AltJSON)
tracingService
where go
= buildClient
(Proxy :: Proxy ProjectsTracesListSpansResource)
mempty