{-# 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.Controller.Debuggees.Breakpoints.Update
(
ControllerDebuggeesBreakpointsUpdateResource
, controllerDebuggeesBreakpointsUpdate
, ControllerDebuggeesBreakpointsUpdate
, cdbuXgafv
, cdbuUploadProtocol
, cdbuAccessToken
, cdbuUploadType
, cdbuPayload
, cdbuId
, cdbuDebuggeeId
, cdbuCallback
) where
import Network.Google.Debugger.Types
import Network.Google.Prelude
type ControllerDebuggeesBreakpointsUpdateResource =
"v2" :>
"controller" :>
"debuggees" :>
Capture "debuggeeId" Text :>
"breakpoints" :>
Capture "id" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdateActiveBreakpointRequest :>
Put '[JSON] UpdateActiveBreakpointResponse
data ControllerDebuggeesBreakpointsUpdate = ControllerDebuggeesBreakpointsUpdate'
{ _cdbuXgafv :: !(Maybe Xgafv)
, _cdbuUploadProtocol :: !(Maybe Text)
, _cdbuAccessToken :: !(Maybe Text)
, _cdbuUploadType :: !(Maybe Text)
, _cdbuPayload :: !UpdateActiveBreakpointRequest
, _cdbuId :: !Text
, _cdbuDebuggeeId :: !Text
, _cdbuCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
controllerDebuggeesBreakpointsUpdate
:: UpdateActiveBreakpointRequest
-> Text
-> Text
-> ControllerDebuggeesBreakpointsUpdate
controllerDebuggeesBreakpointsUpdate pCdbuPayload_ pCdbuId_ pCdbuDebuggeeId_ =
ControllerDebuggeesBreakpointsUpdate'
{ _cdbuXgafv = Nothing
, _cdbuUploadProtocol = Nothing
, _cdbuAccessToken = Nothing
, _cdbuUploadType = Nothing
, _cdbuPayload = pCdbuPayload_
, _cdbuId = pCdbuId_
, _cdbuDebuggeeId = pCdbuDebuggeeId_
, _cdbuCallback = Nothing
}
cdbuXgafv :: Lens' ControllerDebuggeesBreakpointsUpdate (Maybe Xgafv)
cdbuXgafv
= lens _cdbuXgafv (\ s a -> s{_cdbuXgafv = a})
cdbuUploadProtocol :: Lens' ControllerDebuggeesBreakpointsUpdate (Maybe Text)
cdbuUploadProtocol
= lens _cdbuUploadProtocol
(\ s a -> s{_cdbuUploadProtocol = a})
cdbuAccessToken :: Lens' ControllerDebuggeesBreakpointsUpdate (Maybe Text)
cdbuAccessToken
= lens _cdbuAccessToken
(\ s a -> s{_cdbuAccessToken = a})
cdbuUploadType :: Lens' ControllerDebuggeesBreakpointsUpdate (Maybe Text)
cdbuUploadType
= lens _cdbuUploadType
(\ s a -> s{_cdbuUploadType = a})
cdbuPayload :: Lens' ControllerDebuggeesBreakpointsUpdate UpdateActiveBreakpointRequest
cdbuPayload
= lens _cdbuPayload (\ s a -> s{_cdbuPayload = a})
cdbuId :: Lens' ControllerDebuggeesBreakpointsUpdate Text
cdbuId = lens _cdbuId (\ s a -> s{_cdbuId = a})
cdbuDebuggeeId :: Lens' ControllerDebuggeesBreakpointsUpdate Text
cdbuDebuggeeId
= lens _cdbuDebuggeeId
(\ s a -> s{_cdbuDebuggeeId = a})
cdbuCallback :: Lens' ControllerDebuggeesBreakpointsUpdate (Maybe Text)
cdbuCallback
= lens _cdbuCallback (\ s a -> s{_cdbuCallback = a})
instance GoogleRequest
ControllerDebuggeesBreakpointsUpdate where
type Rs ControllerDebuggeesBreakpointsUpdate =
UpdateActiveBreakpointResponse
type Scopes ControllerDebuggeesBreakpointsUpdate =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud_debugger"]
requestClient
ControllerDebuggeesBreakpointsUpdate'{..}
= go _cdbuDebuggeeId _cdbuId _cdbuXgafv
_cdbuUploadProtocol
_cdbuAccessToken
_cdbuUploadType
_cdbuCallback
(Just AltJSON)
_cdbuPayload
debuggerService
where go
= buildClient
(Proxy ::
Proxy ControllerDebuggeesBreakpointsUpdateResource)
mempty