{-# 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.List
(
DebuggerDebuggeesListResource
, debuggerDebuggeesList
, DebuggerDebuggeesList
, ddlXgafv
, ddlIncludeInactive
, ddlUploadProtocol
, ddlProject
, ddlAccessToken
, ddlUploadType
, ddlClientVersion
, ddlCallback
) where
import Network.Google.Debugger.Types
import Network.Google.Prelude
type DebuggerDebuggeesListResource =
"v2" :>
"debugger" :>
"debuggees" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "includeInactive" Bool :>
QueryParam "upload_protocol" Text :>
QueryParam "project" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "clientVersion" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDebuggeesResponse
data DebuggerDebuggeesList = DebuggerDebuggeesList'
{ _ddlXgafv :: !(Maybe Xgafv)
, _ddlIncludeInactive :: !(Maybe Bool)
, _ddlUploadProtocol :: !(Maybe Text)
, _ddlProject :: !(Maybe Text)
, _ddlAccessToken :: !(Maybe Text)
, _ddlUploadType :: !(Maybe Text)
, _ddlClientVersion :: !(Maybe Text)
, _ddlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
debuggerDebuggeesList
:: DebuggerDebuggeesList
debuggerDebuggeesList =
DebuggerDebuggeesList'
{ _ddlXgafv = Nothing
, _ddlIncludeInactive = Nothing
, _ddlUploadProtocol = Nothing
, _ddlProject = Nothing
, _ddlAccessToken = Nothing
, _ddlUploadType = Nothing
, _ddlClientVersion = Nothing
, _ddlCallback = Nothing
}
ddlXgafv :: Lens' DebuggerDebuggeesList (Maybe Xgafv)
ddlXgafv = lens _ddlXgafv (\ s a -> s{_ddlXgafv = a})
ddlIncludeInactive :: Lens' DebuggerDebuggeesList (Maybe Bool)
ddlIncludeInactive
= lens _ddlIncludeInactive
(\ s a -> s{_ddlIncludeInactive = a})
ddlUploadProtocol :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlUploadProtocol
= lens _ddlUploadProtocol
(\ s a -> s{_ddlUploadProtocol = a})
ddlProject :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlProject
= lens _ddlProject (\ s a -> s{_ddlProject = a})
ddlAccessToken :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlAccessToken
= lens _ddlAccessToken
(\ s a -> s{_ddlAccessToken = a})
ddlUploadType :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlUploadType
= lens _ddlUploadType
(\ s a -> s{_ddlUploadType = a})
ddlClientVersion :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlClientVersion
= lens _ddlClientVersion
(\ s a -> s{_ddlClientVersion = a})
ddlCallback :: Lens' DebuggerDebuggeesList (Maybe Text)
ddlCallback
= lens _ddlCallback (\ s a -> s{_ddlCallback = a})
instance GoogleRequest DebuggerDebuggeesList where
type Rs DebuggerDebuggeesList = ListDebuggeesResponse
type Scopes DebuggerDebuggeesList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud_debugger"]
requestClient DebuggerDebuggeesList'{..}
= go _ddlXgafv _ddlIncludeInactive _ddlUploadProtocol
_ddlProject
_ddlAccessToken
_ddlUploadType
_ddlClientVersion
_ddlCallback
(Just AltJSON)
debuggerService
where go
= buildClient
(Proxy :: Proxy DebuggerDebuggeesListResource)
mempty