{-# 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.Versions.List
(
AppsServicesVersionsListResource
, appsServicesVersionsList
, AppsServicesVersionsList
, asvlXgafv
, asvlUploadProtocol
, asvlAccessToken
, asvlUploadType
, asvlAppsId
, asvlView
, asvlPageToken
, asvlServicesId
, asvlPageSize
, asvlCallback
) where
import Network.Google.AppEngine.Types
import Network.Google.Prelude
type AppsServicesVersionsListResource =
"v1" :>
"apps" :>
Capture "appsId" Text :>
"services" :>
Capture "servicesId" Text :>
"versions" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListVersionsResponse
data AppsServicesVersionsList = AppsServicesVersionsList'
{ _asvlXgafv :: !(Maybe Xgafv)
, _asvlUploadProtocol :: !(Maybe Text)
, _asvlAccessToken :: !(Maybe Text)
, _asvlUploadType :: !(Maybe Text)
, _asvlAppsId :: !Text
, _asvlView :: !(Maybe Text)
, _asvlPageToken :: !(Maybe Text)
, _asvlServicesId :: !Text
, _asvlPageSize :: !(Maybe (Textual Int32))
, _asvlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
appsServicesVersionsList
:: Text
-> Text
-> AppsServicesVersionsList
appsServicesVersionsList pAsvlAppsId_ pAsvlServicesId_ =
AppsServicesVersionsList'
{ _asvlXgafv = Nothing
, _asvlUploadProtocol = Nothing
, _asvlAccessToken = Nothing
, _asvlUploadType = Nothing
, _asvlAppsId = pAsvlAppsId_
, _asvlView = Nothing
, _asvlPageToken = Nothing
, _asvlServicesId = pAsvlServicesId_
, _asvlPageSize = Nothing
, _asvlCallback = Nothing
}
asvlXgafv :: Lens' AppsServicesVersionsList (Maybe Xgafv)
asvlXgafv
= lens _asvlXgafv (\ s a -> s{_asvlXgafv = a})
asvlUploadProtocol :: Lens' AppsServicesVersionsList (Maybe Text)
asvlUploadProtocol
= lens _asvlUploadProtocol
(\ s a -> s{_asvlUploadProtocol = a})
asvlAccessToken :: Lens' AppsServicesVersionsList (Maybe Text)
asvlAccessToken
= lens _asvlAccessToken
(\ s a -> s{_asvlAccessToken = a})
asvlUploadType :: Lens' AppsServicesVersionsList (Maybe Text)
asvlUploadType
= lens _asvlUploadType
(\ s a -> s{_asvlUploadType = a})
asvlAppsId :: Lens' AppsServicesVersionsList Text
asvlAppsId
= lens _asvlAppsId (\ s a -> s{_asvlAppsId = a})
asvlView :: Lens' AppsServicesVersionsList (Maybe Text)
asvlView = lens _asvlView (\ s a -> s{_asvlView = a})
asvlPageToken :: Lens' AppsServicesVersionsList (Maybe Text)
asvlPageToken
= lens _asvlPageToken
(\ s a -> s{_asvlPageToken = a})
asvlServicesId :: Lens' AppsServicesVersionsList Text
asvlServicesId
= lens _asvlServicesId
(\ s a -> s{_asvlServicesId = a})
asvlPageSize :: Lens' AppsServicesVersionsList (Maybe Int32)
asvlPageSize
= lens _asvlPageSize (\ s a -> s{_asvlPageSize = a})
. mapping _Coerce
asvlCallback :: Lens' AppsServicesVersionsList (Maybe Text)
asvlCallback
= lens _asvlCallback (\ s a -> s{_asvlCallback = a})
instance GoogleRequest AppsServicesVersionsList where
type Rs AppsServicesVersionsList =
ListVersionsResponse
type Scopes AppsServicesVersionsList =
'["https://www.googleapis.com/auth/appengine.admin",
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-platform.read-only"]
requestClient AppsServicesVersionsList'{..}
= go _asvlAppsId _asvlServicesId _asvlXgafv
_asvlUploadProtocol
_asvlAccessToken
_asvlUploadType
_asvlView
_asvlPageToken
_asvlPageSize
_asvlCallback
(Just AltJSON)
appEngineService
where go
= buildClient
(Proxy :: Proxy AppsServicesVersionsListResource)
mempty