{-# 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.Locations.Get
(
AppsLocationsGetResource
, appsLocationsGet
, AppsLocationsGet
, algXgafv
, algUploadProtocol
, algAccessToken
, algUploadType
, algAppsId
, algLocationsId
, algCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsLocationsGetResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"locations" :>
Capture "locationsId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Location
data AppsLocationsGet = AppsLocationsGet'
{ _algXgafv :: !(Maybe Xgafv)
, _algUploadProtocol :: !(Maybe Text)
, _algAccessToken :: !(Maybe Text)
, _algUploadType :: !(Maybe Text)
, _algAppsId :: !Text
, _algLocationsId :: !Text
, _algCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsLocationsGet
:: Text
-> Text
-> AppsLocationsGet
appsLocationsGet pAlgAppsId_ pAlgLocationsId_ =
AppsLocationsGet'
{ _algXgafv = Nothing
, _algUploadProtocol = Nothing
, _algAccessToken = Nothing
, _algUploadType = Nothing
, _algAppsId = pAlgAppsId_
, _algLocationsId = pAlgLocationsId_
, _algCallback = Nothing
}
algXgafv :: Lens' AppsLocationsGet (Maybe Xgafv)
algXgafv = lens _algXgafv (\ s a -> s{_algXgafv = a})
algUploadProtocol :: Lens' AppsLocationsGet (Maybe Text)
algUploadProtocol
= lens _algUploadProtocol
(\ s a -> s{_algUploadProtocol = a})
algAccessToken :: Lens' AppsLocationsGet (Maybe Text)
algAccessToken
= lens _algAccessToken
(\ s a -> s{_algAccessToken = a})
algUploadType :: Lens' AppsLocationsGet (Maybe Text)
algUploadType
= lens _algUploadType
(\ s a -> s{_algUploadType = a})
algAppsId :: Lens' AppsLocationsGet Text
algAppsId
= lens _algAppsId (\ s a -> s{_algAppsId = a})
algLocationsId :: Lens' AppsLocationsGet Text
algLocationsId
= lens _algLocationsId
(\ s a -> s{_algLocationsId = a})
algCallback :: Lens' AppsLocationsGet (Maybe Text)
algCallback
= lens _algCallback (\ s a -> s{_algCallback = a})
instance GoogleRequest AppsLocationsGet where
type Rs AppsLocationsGet = Location
type Scopes AppsLocationsGet =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsLocationsGet'{..}
= go _algAppsId _algLocationsId _algXgafv
_algUploadProtocol
_algAccessToken
_algUploadType
_algCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsLocationsGetResource)
mempty