google-apis-rs / google-cloud-rs

Asynchronous Rust bindings for Google Cloud Platform APIs.
176 stars 48 forks source link

pubsub: Swap id and name for struct topic and subscription #22

Closed lht closed 4 years ago

lht commented 4 years ago

This patch uses the fully qualified form, such as projects/{project}/topics/{topic}, as the name of topics/subscription. A public method id() is also exposed to get the user friendly unique identifiers.

See also: https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#google.pubsub.v1.Topic