{-# 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.CloudDebugger.Debugger.Debuggees.Breakpoints.Get
(
DebuggerDebuggeesBreakpointsGetResource
, debuggerDebuggeesBreakpointsGet
, DebuggerDebuggeesBreakpointsGet
, ddbgXgafv
, ddbgUploadProtocol
, ddbgAccessToken
, ddbgUploadType
, ddbgBreakpointId
, ddbgDebuggeeId
, ddbgClientVersion
, ddbgCallback
) where
import Network.Google.Debugger.Types
import Network.Google.Prelude
type DebuggerDebuggeesBreakpointsGetResource =
"v2" :>
"debugger" :>
"debuggees" :>
Capture "debuggeeId" Text :>
"breakpoints" :>
Capture "breakpointId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "clientVersion" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GetBreakpointResponse
data DebuggerDebuggeesBreakpointsGet = DebuggerDebuggeesBreakpointsGet'
{ _ddbgXgafv :: !(Maybe Xgafv)
, _ddbgUploadProtocol :: !(Maybe Text)
, _ddbgAccessToken :: !(Maybe Text)
, _ddbgUploadType :: !(Maybe Text)
, _ddbgBreakpointId :: !Text
, _ddbgDebuggeeId :: !Text
, _ddbgClientVersion :: !(Maybe Text)
, _ddbgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
debuggerDebuggeesBreakpointsGet
:: Text
-> Text
-> DebuggerDebuggeesBreakpointsGet
debuggerDebuggeesBreakpointsGet pDdbgBreakpointId_ pDdbgDebuggeeId_ =
DebuggerDebuggeesBreakpointsGet'
{ _ddbgXgafv = Nothing
, _ddbgUploadProtocol = Nothing
, _ddbgAccessToken = Nothing
, _ddbgUploadType = Nothing
, _ddbgBreakpointId = pDdbgBreakpointId_
, _ddbgDebuggeeId = pDdbgDebuggeeId_
, _ddbgClientVersion = Nothing
, _ddbgCallback = Nothing
}
ddbgXgafv :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Xgafv)
ddbgXgafv
= lens _ddbgXgafv (\ s a -> s{_ddbgXgafv = a})
ddbgUploadProtocol :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Text)
ddbgUploadProtocol
= lens _ddbgUploadProtocol
(\ s a -> s{_ddbgUploadProtocol = a})
ddbgAccessToken :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Text)
ddbgAccessToken
= lens _ddbgAccessToken
(\ s a -> s{_ddbgAccessToken = a})
ddbgUploadType :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Text)
ddbgUploadType
= lens _ddbgUploadType
(\ s a -> s{_ddbgUploadType = a})
ddbgBreakpointId :: Lens' DebuggerDebuggeesBreakpointsGet Text
ddbgBreakpointId
= lens _ddbgBreakpointId
(\ s a -> s{_ddbgBreakpointId = a})
ddbgDebuggeeId :: Lens' DebuggerDebuggeesBreakpointsGet Text
ddbgDebuggeeId
= lens _ddbgDebuggeeId
(\ s a -> s{_ddbgDebuggeeId = a})
ddbgClientVersion :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Text)
ddbgClientVersion
= lens _ddbgClientVersion
(\ s a -> s{_ddbgClientVersion = a})
ddbgCallback :: Lens' DebuggerDebuggeesBreakpointsGet (Maybe Text)
ddbgCallback
= lens _ddbgCallback (\ s a -> s{_ddbgCallback = a})
instance GoogleRequest
DebuggerDebuggeesBreakpointsGet where
type Rs DebuggerDebuggeesBreakpointsGet =
GetBreakpointResponse
type Scopes DebuggerDebuggeesBreakpointsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud_debugger"]
requestClient DebuggerDebuggeesBreakpointsGet'{..}
= go _ddbgDebuggeeId _ddbgBreakpointId _ddbgXgafv
_ddbgUploadProtocol
_ddbgAccessToken
_ddbgUploadType
_ddbgClientVersion
_ddbgCallback
(Just AltJSON)
debuggerService
where go
= buildClient
(Proxy ::
Proxy DebuggerDebuggeesBreakpointsGetResource)
mempty