{-# 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.Services.List
(
AppsServicesListResource
, appsServicesList
, AppsServicesList
, aslXgafv
, aslUploadProtocol
, aslAccessToken
, aslUploadType
, aslAppsId
, aslPageToken
, aslPageSize
, aslCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsServicesListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"services" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListServicesResponse
data AppsServicesList = AppsServicesList'
{ _aslXgafv :: !(Maybe Xgafv)
, _aslUploadProtocol :: !(Maybe Text)
, _aslAccessToken :: !(Maybe Text)
, _aslUploadType :: !(Maybe Text)
, _aslAppsId :: !Text
, _aslPageToken :: !(Maybe Text)
, _aslPageSize :: !(Maybe (Textual Int32))
, _aslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsServicesList
:: Text
-> AppsServicesList
appsServicesList pAslAppsId_ =
AppsServicesList'
{ _aslXgafv = Nothing
, _aslUploadProtocol = Nothing
, _aslAccessToken = Nothing
, _aslUploadType = Nothing
, _aslAppsId = pAslAppsId_
, _aslPageToken = Nothing
, _aslPageSize = Nothing
, _aslCallback = Nothing
}
aslXgafv :: Lens' AppsServicesList (Maybe Xgafv)
aslXgafv = lens _aslXgafv (\ s a -> s{_aslXgafv = a})
aslUploadProtocol :: Lens' AppsServicesList (Maybe Text)
aslUploadProtocol
= lens _aslUploadProtocol
(\ s a -> s{_aslUploadProtocol = a})
aslAccessToken :: Lens' AppsServicesList (Maybe Text)
aslAccessToken
= lens _aslAccessToken
(\ s a -> s{_aslAccessToken = a})
aslUploadType :: Lens' AppsServicesList (Maybe Text)
aslUploadType
= lens _aslUploadType
(\ s a -> s{_aslUploadType = a})
aslAppsId :: Lens' AppsServicesList Text
aslAppsId
= lens _aslAppsId (\ s a -> s{_aslAppsId = a})
aslPageToken :: Lens' AppsServicesList (Maybe Text)
aslPageToken
= lens _aslPageToken (\ s a -> s{_aslPageToken = a})
aslPageSize :: Lens' AppsServicesList (Maybe Int32)
aslPageSize
= lens _aslPageSize (\ s a -> s{_aslPageSize = a}) .
mapping _Coerce
aslCallback :: Lens' AppsServicesList (Maybe Text)
aslCallback
= lens _aslCallback (\ s a -> s{_aslCallback = a})
instance GoogleRequest AppsServicesList where
type Rs AppsServicesList = ListServicesResponse
type Scopes AppsServicesList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsServicesList'{..}
= go _aslAppsId _aslXgafv _aslUploadProtocol
_aslAccessToken
_aslUploadType
_aslPageToken
_aslPageSize
_aslCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsServicesListResource)
mempty