def set_iam_policy(self, policy, client=None):
        client = self._require_client(client)
        api = client.iam_policy_api
        resource = policy.to_api_repr()
        resp = api.set_iam_policy(self.full_name, resource)
        return Policy.from_api_repr(resp)
Update the IAM policy for the topic.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/pubsub/topic.py/Topic.set_iam_policy