{-# 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.Set
(
DebuggerDebuggeesBreakpointsSetResource
, debuggerDebuggeesBreakpointsSet
, DebuggerDebuggeesBreakpointsSet
, ddbsXgafv
, ddbsUploadProtocol
, ddbsAccessToken
, ddbsUploadType
, ddbsPayload
, ddbsDebuggeeId
, ddbsClientVersion
, ddbsCallback
) where
import Network.Google.Debugger.Types
import Network.Google.Prelude
type DebuggerDebuggeesBreakpointsSetResource =
"v2" :>
"debugger" :>
"debuggees" :>
Capture "debuggeeId" Text :>
"breakpoints" :>
"set" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "clientVersion" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Breakpoint :>
Post '[JSON] SetBreakpointResponse
data DebuggerDebuggeesBreakpointsSet = DebuggerDebuggeesBreakpointsSet'
{ _ddbsXgafv :: !(Maybe Xgafv)
, _ddbsUploadProtocol :: !(Maybe Text)
, _ddbsAccessToken :: !(Maybe Text)
, _ddbsUploadType :: !(Maybe Text)
, _ddbsPayload :: !Breakpoint
, _ddbsDebuggeeId :: !Text
, _ddbsClientVersion :: !(Maybe Text)
, _ddbsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
debuggerDebuggeesBreakpointsSet
:: Breakpoint
-> Text
-> DebuggerDebuggeesBreakpointsSet
debuggerDebuggeesBreakpointsSet pDdbsPayload_ pDdbsDebuggeeId_ =
DebuggerDebuggeesBreakpointsSet'
{ _ddbsXgafv = Nothing
, _ddbsUploadProtocol = Nothing
, _ddbsAccessToken = Nothing
, _ddbsUploadType = Nothing
, _ddbsPayload = pDdbsPayload_
, _ddbsDebuggeeId = pDdbsDebuggeeId_
, _ddbsClientVersion = Nothing
, _ddbsCallback = Nothing
}
ddbsXgafv :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Xgafv)
ddbsXgafv
= lens _ddbsXgafv (\ s a -> s{_ddbsXgafv = a})
ddbsUploadProtocol :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Text)
ddbsUploadProtocol
= lens _ddbsUploadProtocol
(\ s a -> s{_ddbsUploadProtocol = a})
ddbsAccessToken :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Text)
ddbsAccessToken
= lens _ddbsAccessToken
(\ s a -> s{_ddbsAccessToken = a})
ddbsUploadType :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Text)
ddbsUploadType
= lens _ddbsUploadType
(\ s a -> s{_ddbsUploadType = a})
ddbsPayload :: Lens' DebuggerDebuggeesBreakpointsSet Breakpoint
ddbsPayload
= lens _ddbsPayload (\ s a -> s{_ddbsPayload = a})
ddbsDebuggeeId :: Lens' DebuggerDebuggeesBreakpointsSet Text
ddbsDebuggeeId
= lens _ddbsDebuggeeId
(\ s a -> s{_ddbsDebuggeeId = a})
ddbsClientVersion :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Text)
ddbsClientVersion
= lens _ddbsClientVersion
(\ s a -> s{_ddbsClientVersion = a})
ddbsCallback :: Lens' DebuggerDebuggeesBreakpointsSet (Maybe Text)
ddbsCallback
= lens _ddbsCallback (\ s a -> s{_ddbsCallback = a})
instance GoogleRequest
DebuggerDebuggeesBreakpointsSet where
type Rs DebuggerDebuggeesBreakpointsSet =
SetBreakpointResponse
type Scopes DebuggerDebuggeesBreakpointsSet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud_debugger"]
requestClient DebuggerDebuggeesBreakpointsSet'{..}
= go _ddbsDebuggeeId _ddbsXgafv _ddbsUploadProtocol
_ddbsAccessToken
_ddbsUploadType
_ddbsClientVersion
_ddbsCallback
(Just AltJSON)
_ddbsPayload
debuggerService
where go
= buildClient
(Proxy ::
Proxy DebuggerDebuggeesBreakpointsSetResource)
mempty