{-# 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.List
(
ProcessesListResource
, processesList
, ProcessesList
, plUserProcessFilterUserAccessLevels
, plXgafv
, plUploadProtocol
, plAccessToken
, plUploadType
, plUserProcessFilterFunctionName
, plUserProcessFilterTypes
, plUserProcessFilterDeploymentId
, plPageToken
, plPageSize
, plUserProcessFilterProjectName
, plUserProcessFilterStatuses
, plUserProcessFilterScriptId
, plUserProcessFilterEndTime
, plUserProcessFilterStartTime
, plCallback
) where
import Network.Google.Prelude
import Network.Google.Script.Types
type ProcessesListResource =
"v1" :>
"processes" :>
QueryParams "userProcessFilter.userAccessLevels" Text
:>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "userProcessFilter.functionName" Text :>
QueryParams "userProcessFilter.types" Text :>
QueryParam "userProcessFilter.deploymentId" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "userProcessFilter.projectName" Text :>
QueryParams "userProcessFilter.statuses" Text :>
QueryParam "userProcessFilter.scriptId" Text :>
QueryParam "userProcessFilter.endTime"
DateTime'
:>
QueryParam "userProcessFilter.startTime"
DateTime'
:>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListUserProcessesResponse
data ProcessesList = ProcessesList'
{ _plUserProcessFilterUserAccessLevels :: !(Maybe [Text])
, _plXgafv :: !(Maybe Xgafv)
, _plUploadProtocol :: !(Maybe Text)
, _plAccessToken :: !(Maybe Text)
, _plUploadType :: !(Maybe Text)
, _plUserProcessFilterFunctionName :: !(Maybe Text)
, _plUserProcessFilterTypes :: !(Maybe [Text])
, _plUserProcessFilterDeploymentId :: !(Maybe Text)
, _plPageToken :: !(Maybe Text)
, _plPageSize :: !(Maybe (Textual Int32))
, _plUserProcessFilterProjectName :: !(Maybe Text)
, _plUserProcessFilterStatuses :: !(Maybe [Text])
, _plUserProcessFilterScriptId :: !(Maybe Text)
, _plUserProcessFilterEndTime :: !(Maybe DateTime')
, _plUserProcessFilterStartTime :: !(Maybe DateTime')
, _plCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
processesList
:: ProcessesList
processesList =
ProcessesList'
{ _plUserProcessFilterUserAccessLevels = Nothing
, _plXgafv = Nothing
, _plUploadProtocol = Nothing
, _plAccessToken = Nothing
, _plUploadType = Nothing
, _plUserProcessFilterFunctionName = Nothing
, _plUserProcessFilterTypes = Nothing
, _plUserProcessFilterDeploymentId = Nothing
, _plPageToken = Nothing
, _plPageSize = Nothing
, _plUserProcessFilterProjectName = Nothing
, _plUserProcessFilterStatuses = Nothing
, _plUserProcessFilterScriptId = Nothing
, _plUserProcessFilterEndTime = Nothing
, _plUserProcessFilterStartTime = Nothing
, _plCallback = Nothing
}
plUserProcessFilterUserAccessLevels :: Lens' ProcessesList [Text]
plUserProcessFilterUserAccessLevels
= lens _plUserProcessFilterUserAccessLevels
(\ s a ->
s{_plUserProcessFilterUserAccessLevels = a})
. _Default
. _Coerce
plXgafv :: Lens' ProcessesList (Maybe Xgafv)
plXgafv = lens _plXgafv (\ s a -> s{_plXgafv = a})
plUploadProtocol :: Lens' ProcessesList (Maybe Text)
plUploadProtocol
= lens _plUploadProtocol
(\ s a -> s{_plUploadProtocol = a})
plAccessToken :: Lens' ProcessesList (Maybe Text)
plAccessToken
= lens _plAccessToken
(\ s a -> s{_plAccessToken = a})
plUploadType :: Lens' ProcessesList (Maybe Text)
plUploadType
= lens _plUploadType (\ s a -> s{_plUploadType = a})
plUserProcessFilterFunctionName :: Lens' ProcessesList (Maybe Text)
plUserProcessFilterFunctionName
= lens _plUserProcessFilterFunctionName
(\ s a -> s{_plUserProcessFilterFunctionName = a})
plUserProcessFilterTypes :: Lens' ProcessesList [Text]
plUserProcessFilterTypes
= lens _plUserProcessFilterTypes
(\ s a -> s{_plUserProcessFilterTypes = a})
. _Default
. _Coerce
plUserProcessFilterDeploymentId :: Lens' ProcessesList (Maybe Text)
plUserProcessFilterDeploymentId
= lens _plUserProcessFilterDeploymentId
(\ s a -> s{_plUserProcessFilterDeploymentId = a})
plPageToken :: Lens' ProcessesList (Maybe Text)
plPageToken
= lens _plPageToken (\ s a -> s{_plPageToken = a})
plPageSize :: Lens' ProcessesList (Maybe Int32)
plPageSize
= lens _plPageSize (\ s a -> s{_plPageSize = a}) .
mapping _Coerce
plUserProcessFilterProjectName :: Lens' ProcessesList (Maybe Text)
plUserProcessFilterProjectName
= lens _plUserProcessFilterProjectName
(\ s a -> s{_plUserProcessFilterProjectName = a})
plUserProcessFilterStatuses :: Lens' ProcessesList [Text]
plUserProcessFilterStatuses
= lens _plUserProcessFilterStatuses
(\ s a -> s{_plUserProcessFilterStatuses = a})
. _Default
. _Coerce
plUserProcessFilterScriptId :: Lens' ProcessesList (Maybe Text)
plUserProcessFilterScriptId
= lens _plUserProcessFilterScriptId
(\ s a -> s{_plUserProcessFilterScriptId = a})
plUserProcessFilterEndTime :: Lens' ProcessesList (Maybe UTCTime)
plUserProcessFilterEndTime
= lens _plUserProcessFilterEndTime
(\ s a -> s{_plUserProcessFilterEndTime = a})
. mapping _DateTime
plUserProcessFilterStartTime :: Lens' ProcessesList (Maybe UTCTime)
plUserProcessFilterStartTime
= lens _plUserProcessFilterStartTime
(\ s a -> s{_plUserProcessFilterStartTime = a})
. mapping _DateTime
plCallback :: Lens' ProcessesList (Maybe Text)
plCallback
= lens _plCallback (\ s a -> s{_plCallback = a})
instance GoogleRequest ProcessesList where
type Rs ProcessesList = ListUserProcessesResponse
type Scopes ProcessesList =
'["https://www.googleapis.com/auth/script.processes"]
requestClient ProcessesList'{..}
= go
(_plUserProcessFilterUserAccessLevels ^. _Default)
_plXgafv
_plUploadProtocol
_plAccessToken
_plUploadType
_plUserProcessFilterFunctionName
(_plUserProcessFilterTypes ^. _Default)
_plUserProcessFilterDeploymentId
_plPageToken
_plPageSize
_plUserProcessFilterProjectName
(_plUserProcessFilterStatuses ^. _Default)
_plUserProcessFilterScriptId
_plUserProcessFilterEndTime
_plUserProcessFilterStartTime
_plCallback
(Just AltJSON)
scriptService
where go
= buildClient (Proxy :: Proxy ProcessesListResource)
mempty