{-# 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.AppEngine.Apps.Operations.List
(
AppsOperationsListResource
, appsOperationsList
, AppsOperationsList
, aolXgafv
, aolUploadProtocol
, aolAccessToken
, aolUploadType
, aolAppsId
, aolFilter
, aolPageToken
, aolPageSize
, aolCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsOperationsListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"operations" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOperationsResponse
data AppsOperationsList = AppsOperationsList'
{ _aolXgafv :: !(Maybe Xgafv)
, _aolUploadProtocol :: !(Maybe Text)
, _aolAccessToken :: !(Maybe Text)
, _aolUploadType :: !(Maybe Text)
, _aolAppsId :: !Text
, _aolFilter :: !(Maybe Text)
, _aolPageToken :: !(Maybe Text)
, _aolPageSize :: !(Maybe (Textual Int32))
, _aolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsOperationsList
:: Text
-> AppsOperationsList
appsOperationsList pAolAppsId_ =
AppsOperationsList'
{ _aolXgafv = Nothing
, _aolUploadProtocol = Nothing
, _aolAccessToken = Nothing
, _aolUploadType = Nothing
, _aolAppsId = pAolAppsId_
, _aolFilter = Nothing
, _aolPageToken = Nothing
, _aolPageSize = Nothing
, _aolCallback = Nothing
}
aolXgafv :: Lens' AppsOperationsList (Maybe Xgafv)
aolXgafv = lens _aolXgafv (\ s a -> s{_aolXgafv = a})
aolUploadProtocol :: Lens' AppsOperationsList (Maybe Text)
aolUploadProtocol
= lens _aolUploadProtocol
(\ s a -> s{_aolUploadProtocol = a})
aolAccessToken :: Lens' AppsOperationsList (Maybe Text)
aolAccessToken
= lens _aolAccessToken
(\ s a -> s{_aolAccessToken = a})
aolUploadType :: Lens' AppsOperationsList (Maybe Text)
aolUploadType
= lens _aolUploadType
(\ s a -> s{_aolUploadType = a})
aolAppsId :: Lens' AppsOperationsList Text
aolAppsId
= lens _aolAppsId (\ s a -> s{_aolAppsId = a})
aolFilter :: Lens' AppsOperationsList (Maybe Text)
aolFilter
= lens _aolFilter (\ s a -> s{_aolFilter = a})
aolPageToken :: Lens' AppsOperationsList (Maybe Text)
aolPageToken
= lens _aolPageToken (\ s a -> s{_aolPageToken = a})
aolPageSize :: Lens' AppsOperationsList (Maybe Int32)
aolPageSize
= lens _aolPageSize (\ s a -> s{_aolPageSize = a}) .
mapping _Coerce
aolCallback :: Lens' AppsOperationsList (Maybe Text)
aolCallback
= lens _aolCallback (\ s a -> s{_aolCallback = a})
instance GoogleRequest AppsOperationsList where
type Rs AppsOperationsList = ListOperationsResponse
type Scopes AppsOperationsList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsOperationsList'{..}
= go _aolAppsId _aolXgafv _aolUploadProtocol
_aolAccessToken
_aolUploadType
_aolFilter
_aolPageToken
_aolPageSize
_aolCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsOperationsListResource)
mempty