{-# 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.Script.Processes.ListScriptProcesses
(
ProcessesListScriptProcessesResource
, processesListScriptProcesses
, ProcessesListScriptProcesses
, plspXgafv
, plspScriptProcessFilterFunctionName
, plspUploadProtocol
, plspScriptProcessFilterUserAccessLevels
, plspScriptProcessFilterStatuses
, plspScriptProcessFilterEndTime
, plspAccessToken
, plspUploadType
, plspScriptProcessFilterDeploymentId
, plspScriptProcessFilterStartTime
, plspScriptId
, plspPageToken
, plspPageSize
, plspScriptProcessFilterTypes
, plspCallback
) where
import Network.Google.Prelude
import Network.Google.Script.Types
type ProcessesListScriptProcessesResource =
"v1" :>
"processes:listScriptProcesses" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "scriptProcessFilter.functionName" Text :>
QueryParam "upload_protocol" Text :>
QueryParams "scriptProcessFilter.userAccessLevels"
Text
:>
QueryParams "scriptProcessFilter.statuses" Text :>
QueryParam "scriptProcessFilter.endTime" DateTime' :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "scriptProcessFilter.deploymentId" Text :>
QueryParam "scriptProcessFilter.startTime" DateTime'
:>
QueryParam "scriptId" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParams "scriptProcessFilter.types" Text
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListScriptProcessesResponse
data ProcessesListScriptProcesses = ProcessesListScriptProcesses'
{ _plspXgafv :: !(Maybe Xgafv)
, _plspScriptProcessFilterFunctionName :: !(Maybe Text)
, _plspUploadProtocol :: !(Maybe Text)
, _plspScriptProcessFilterUserAccessLevels :: !(Maybe [Text])
, _plspScriptProcessFilterStatuses :: !(Maybe [Text])
, _plspScriptProcessFilterEndTime :: !(Maybe DateTime')
, _plspAccessToken :: !(Maybe Text)
, _plspUploadType :: !(Maybe Text)
, _plspScriptProcessFilterDeploymentId :: !(Maybe Text)
, _plspScriptProcessFilterStartTime :: !(Maybe DateTime')
, _plspScriptId :: !(Maybe Text)
, _plspPageToken :: !(Maybe Text)
, _plspPageSize :: !(Maybe (Textual Int32))
, _plspScriptProcessFilterTypes :: !(Maybe [Text])
, _plspCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
processesListScriptProcesses
:: ProcessesListScriptProcesses
processesListScriptProcesses =
ProcessesListScriptProcesses'
{ _plspXgafv = Nothing
, _plspScriptProcessFilterFunctionName = Nothing
, _plspUploadProtocol = Nothing
, _plspScriptProcessFilterUserAccessLevels = Nothing
, _plspScriptProcessFilterStatuses = Nothing
, _plspScriptProcessFilterEndTime = Nothing
, _plspAccessToken = Nothing
, _plspUploadType = Nothing
, _plspScriptProcessFilterDeploymentId = Nothing
, _plspScriptProcessFilterStartTime = Nothing
, _plspScriptId = Nothing
, _plspPageToken = Nothing
, _plspPageSize = Nothing
, _plspScriptProcessFilterTypes = Nothing
, _plspCallback = Nothing
}
plspXgafv :: Lens' ProcessesListScriptProcesses (Maybe Xgafv)
plspXgafv
= lens _plspXgafv (\ s a -> s{_plspXgafv = a})
plspScriptProcessFilterFunctionName :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspScriptProcessFilterFunctionName
= lens _plspScriptProcessFilterFunctionName
(\ s a ->
s{_plspScriptProcessFilterFunctionName = a})
plspUploadProtocol :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspUploadProtocol
= lens _plspUploadProtocol
(\ s a -> s{_plspUploadProtocol = a})
plspScriptProcessFilterUserAccessLevels :: Lens' ProcessesListScriptProcesses [Text]
plspScriptProcessFilterUserAccessLevels
= lens _plspScriptProcessFilterUserAccessLevels
(\ s a ->
s{_plspScriptProcessFilterUserAccessLevels = a})
. _Default
. _Coerce
plspScriptProcessFilterStatuses :: Lens' ProcessesListScriptProcesses [Text]
plspScriptProcessFilterStatuses
= lens _plspScriptProcessFilterStatuses
(\ s a -> s{_plspScriptProcessFilterStatuses = a})
. _Default
. _Coerce
plspScriptProcessFilterEndTime :: Lens' ProcessesListScriptProcesses (Maybe UTCTime)
plspScriptProcessFilterEndTime
= lens _plspScriptProcessFilterEndTime
(\ s a -> s{_plspScriptProcessFilterEndTime = a})
. mapping _DateTime
plspAccessToken :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspAccessToken
= lens _plspAccessToken
(\ s a -> s{_plspAccessToken = a})
plspUploadType :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspUploadType
= lens _plspUploadType
(\ s a -> s{_plspUploadType = a})
plspScriptProcessFilterDeploymentId :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspScriptProcessFilterDeploymentId
= lens _plspScriptProcessFilterDeploymentId
(\ s a ->
s{_plspScriptProcessFilterDeploymentId = a})
plspScriptProcessFilterStartTime :: Lens' ProcessesListScriptProcesses (Maybe UTCTime)
plspScriptProcessFilterStartTime
= lens _plspScriptProcessFilterStartTime
(\ s a -> s{_plspScriptProcessFilterStartTime = a})
. mapping _DateTime
plspScriptId :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspScriptId
= lens _plspScriptId (\ s a -> s{_plspScriptId = a})
plspPageToken :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspPageToken
= lens _plspPageToken
(\ s a -> s{_plspPageToken = a})
plspPageSize :: Lens' ProcessesListScriptProcesses (Maybe Int32)
plspPageSize
= lens _plspPageSize (\ s a -> s{_plspPageSize = a})
. mapping _Coerce
plspScriptProcessFilterTypes :: Lens' ProcessesListScriptProcesses [Text]
plspScriptProcessFilterTypes
= lens _plspScriptProcessFilterTypes
(\ s a -> s{_plspScriptProcessFilterTypes = a})
. _Default
. _Coerce
plspCallback :: Lens' ProcessesListScriptProcesses (Maybe Text)
plspCallback
= lens _plspCallback (\ s a -> s{_plspCallback = a})
instance GoogleRequest ProcessesListScriptProcesses
where
type Rs ProcessesListScriptProcesses =
ListScriptProcessesResponse
type Scopes ProcessesListScriptProcesses =
'["https://www.googleapis.com/auth/script.processes"]
requestClient ProcessesListScriptProcesses'{..}
= go _plspXgafv _plspScriptProcessFilterFunctionName
_plspUploadProtocol
(_plspScriptProcessFilterUserAccessLevels ^.
_Default)
(_plspScriptProcessFilterStatuses ^. _Default)
_plspScriptProcessFilterEndTime
_plspAccessToken
_plspUploadType
_plspScriptProcessFilterDeploymentId
_plspScriptProcessFilterStartTime
_plspScriptId
_plspPageToken
_plspPageSize
(_plspScriptProcessFilterTypes ^. _Default)
_plspCallback
(Just AltJSON)
scriptService
where go
= buildClient
(Proxy :: Proxy ProcessesListScriptProcessesResource)
mempty