{-# 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.Topics.Subscriptions.List
(
ProjectsTopicsSubscriptionsListResource
, projectsTopicsSubscriptionsList
, ProjectsTopicsSubscriptionsList
, ptslXgafv
, ptslUploadProtocol
, ptslAccessToken
, ptslUploadType
, ptslTopic
, ptslPageToken
, ptslPageSize
, ptslCallback
) where
import Network.Google.Prelude
import Network.Google.PubSub.Types
type ProjectsTopicsSubscriptionsListResource =
"v1" :>
Capture "topic" 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] ListTopicSubscriptionsResponse
data ProjectsTopicsSubscriptionsList = ProjectsTopicsSubscriptionsList'
{ _ptslXgafv :: !(Maybe Xgafv)
, _ptslUploadProtocol :: !(Maybe Text)
, _ptslAccessToken :: !(Maybe Text)
, _ptslUploadType :: !(Maybe Text)
, _ptslTopic :: !Text
, _ptslPageToken :: !(Maybe Text)
, _ptslPageSize :: !(Maybe (Textual Int32))
, _ptslCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTopicsSubscriptionsList
:: Text
-> ProjectsTopicsSubscriptionsList
projectsTopicsSubscriptionsList pPtslTopic_ =
ProjectsTopicsSubscriptionsList'
{ _ptslXgafv = Nothing
, _ptslUploadProtocol = Nothing
, _ptslAccessToken = Nothing
, _ptslUploadType = Nothing
, _ptslTopic = pPtslTopic_
, _ptslPageToken = Nothing
, _ptslPageSize = Nothing
, _ptslCallback = Nothing
}
ptslXgafv :: Lens' ProjectsTopicsSubscriptionsList (Maybe Xgafv)
ptslXgafv
= lens _ptslXgafv (\ s a -> s{_ptslXgafv = a})
ptslUploadProtocol :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
ptslUploadProtocol
= lens _ptslUploadProtocol
(\ s a -> s{_ptslUploadProtocol = a})
ptslAccessToken :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
ptslAccessToken
= lens _ptslAccessToken
(\ s a -> s{_ptslAccessToken = a})
ptslUploadType :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
ptslUploadType
= lens _ptslUploadType
(\ s a -> s{_ptslUploadType = a})
ptslTopic :: Lens' ProjectsTopicsSubscriptionsList Text
ptslTopic
= lens _ptslTopic (\ s a -> s{_ptslTopic = a})
ptslPageToken :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
ptslPageToken
= lens _ptslPageToken
(\ s a -> s{_ptslPageToken = a})
ptslPageSize :: Lens' ProjectsTopicsSubscriptionsList (Maybe Int32)
ptslPageSize
= lens _ptslPageSize (\ s a -> s{_ptslPageSize = a})
. mapping _Coerce
ptslCallback :: Lens' ProjectsTopicsSubscriptionsList (Maybe Text)
ptslCallback
= lens _ptslCallback (\ s a -> s{_ptslCallback = a})
instance GoogleRequest
ProjectsTopicsSubscriptionsList where
type Rs ProjectsTopicsSubscriptionsList =
ListTopicSubscriptionsResponse
type Scopes ProjectsTopicsSubscriptionsList =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/pubsub"]
requestClient ProjectsTopicsSubscriptionsList'{..}
= go _ptslTopic _ptslXgafv _ptslUploadProtocol
_ptslAccessToken
_ptslUploadType
_ptslPageToken
_ptslPageSize
_ptslCallback
(Just AltJSON)
pubSubService
where go
= buildClient
(Proxy ::
Proxy ProjectsTopicsSubscriptionsListResource)
mempty