{-# 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.PubSub.Projects.Subscriptions.List
(
ProjectsSubscriptionsListResource
, projectsSubscriptionsList
, ProjectsSubscriptionsList
, pslXgafv
, pslUploadProtocol
, pslProject
, pslAccessToken
, pslUploadType
, pslPageToken
, pslPageSize
, pslCallback
) where
import Network.Google.Prelude
import Network.Google.PubSub.Types
type ProjectsSubscriptionsListResource =
"v1" :>
Capture "project" Text :>
"subscriptions" :>
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] ListSubscriptionsResponse
data ProjectsSubscriptionsList = ProjectsSubscriptionsList'
{ _pslXgafv :: !(Maybe Xgafv)
, _pslUploadProtocol :: !(Maybe Text)
, _pslProject :: !Text
, _pslAccessToken :: !(Maybe Text)
, _pslUploadType :: !(Maybe Text)
, _pslPageToken :: !(Maybe Text)
, _pslPageSize :: !(Maybe (Textual Int32))
, _pslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsSubscriptionsList
:: Text
-> ProjectsSubscriptionsList
projectsSubscriptionsList pPslProject_ =
ProjectsSubscriptionsList'
{ _pslXgafv = Nothing
, _pslUploadProtocol = Nothing
, _pslProject = pPslProject_
, _pslAccessToken = Nothing
, _pslUploadType = Nothing
, _pslPageToken = Nothing
, _pslPageSize = Nothing
, _pslCallback = Nothing
}
pslXgafv :: Lens' ProjectsSubscriptionsList (Maybe Xgafv)
pslXgafv = lens _pslXgafv (\ s a -> s{_pslXgafv = a})
pslUploadProtocol :: Lens' ProjectsSubscriptionsList (Maybe Text)
pslUploadProtocol
= lens _pslUploadProtocol
(\ s a -> s{_pslUploadProtocol = a})
pslProject :: Lens' ProjectsSubscriptionsList Text
pslProject
= lens _pslProject (\ s a -> s{_pslProject = a})
pslAccessToken :: Lens' ProjectsSubscriptionsList (Maybe Text)
pslAccessToken
= lens _pslAccessToken
(\ s a -> s{_pslAccessToken = a})
pslUploadType :: Lens' ProjectsSubscriptionsList (Maybe Text)
pslUploadType
= lens _pslUploadType
(\ s a -> s{_pslUploadType = a})
pslPageToken :: Lens' ProjectsSubscriptionsList (Maybe Text)
pslPageToken
= lens _pslPageToken (\ s a -> s{_pslPageToken = a})
pslPageSize :: Lens' ProjectsSubscriptionsList (Maybe Int32)
pslPageSize
= lens _pslPageSize (\ s a -> s{_pslPageSize = a}) .
mapping _Coerce
pslCallback :: Lens' ProjectsSubscriptionsList (Maybe Text)
pslCallback
= lens _pslCallback (\ s a -> s{_pslCallback = a})
instance GoogleRequest ProjectsSubscriptionsList
where
type Rs ProjectsSubscriptionsList =
ListSubscriptionsResponse
type Scopes ProjectsSubscriptionsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"]
requestClient ProjectsSubscriptionsList'{..}
= go _pslProject _pslXgafv _pslUploadProtocol
_pslAccessToken
_pslUploadType
_pslPageToken
_pslPageSize
_pslCallback
(Just AltJSON)
pubSubService
where go
= buildClient
(Proxy :: Proxy ProjectsSubscriptionsListResource)
mempty