Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets the configuration of a topic.
See: Cloud Pub/Sub API Reference for pubsub.projects.topics.get
.
Synopsis
- type ProjectsTopicsGetResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Topic)))))))
- projectsTopicsGet :: Text -> ProjectsTopicsGet
- data ProjectsTopicsGet
- ptgXgafv :: Lens' ProjectsTopicsGet (Maybe Xgafv)
- ptgUploadProtocol :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgAccessToken :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgUploadType :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgTopic :: Lens' ProjectsTopicsGet Text
- ptgCallback :: Lens' ProjectsTopicsGet (Maybe Text)
REST Resource
type ProjectsTopicsGetResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Topic))))))) Source #
A resource alias for pubsub.projects.topics.get
method which the
ProjectsTopicsGet
request conforms to.
Creating a Request
Creates a value of ProjectsTopicsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsTopicsGet Source #
Gets the configuration of a topic.
See: projectsTopicsGet
smart constructor.
Instances
Request Lenses
ptgUploadProtocol :: Lens' ProjectsTopicsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ptgAccessToken :: Lens' ProjectsTopicsGet (Maybe Text) Source #
OAuth access token.
ptgUploadType :: Lens' ProjectsTopicsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ptgTopic :: Lens' ProjectsTopicsGet Text Source #
The name of the topic to get. Format is `projects/{project}/topics/{topic}`.
ptgCallback :: Lens' ProjectsTopicsGet (Maybe Text) Source #
JSONP