Copyright | (c) 2015 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: Google Cloud Pub/Sub API Reference for pubsub.projects.topics.get
.
- type ProjectsTopicsGetResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Topic)))))))))
- projectsTopicsGet :: Text -> ProjectsTopicsGet
- data ProjectsTopicsGet
- ptgXgafv :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgUploadProtocol :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgPp :: Lens' ProjectsTopicsGet Bool
- ptgAccessToken :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgUploadType :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgTopic :: Lens' ProjectsTopicsGet Text
- ptgBearerToken :: Lens' ProjectsTopicsGet (Maybe Text)
- ptgCallback :: Lens' ProjectsTopicsGet (Maybe Text)
REST Resource
type ProjectsTopicsGetResource = "v1" :> (Capture "topic" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
Request Lenses
ptgUploadProtocol :: Lens' ProjectsTopicsGet (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
ptgPp :: Lens' ProjectsTopicsGet Bool Source
Pretty-print response.
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.
ptgBearerToken :: Lens' ProjectsTopicsGet (Maybe Text) Source
OAuth bearer token.
ptgCallback :: Lens' ProjectsTopicsGet (Maybe Text) Source
JSONP