@classmethod
    def from_api_repr(cls, resource, client):
        topic_name = topic_name_from_path(resource['name'], client.project)
        return cls(topic_name, client=client)
Factory:  construct a topic given its API representation
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/pubsub/topic.py/Topic.from_api_repr