#NEWLINE# def get_iam_policy( self , client = None ) : #NEWLINE# #INDENT# 'Fetch the IAM policy for the topic.\n\n        See:\n        https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/getIamPolicy\n\n        Example:\n\n        .. literalinclude:: pubsub_snippets.py\n           :start-after: [START topic_get_iam_policy]\n           :end-before: [END topic_get_iam_policy]\n\n        :type client: :class:`gcloud.pubsub.client.Client` or ``NoneType``\n        :param client: the client to use.  If not passed, falls back to the\n                       ``client`` stored on the current batch.\n\n        :rtype: :class:`gcloud.pubsub.iam.Policy`\n        :returns: policy created from the resource returned by the\n                  ``getIamPolicy`` API request.\n        ' #NEWLINE# client = self . _require_client ( client ) #NEWLINE# api = client . iam_policy_api #NEWLINE# resp = api . get_iam_policy ( self . full_name ) #NEWLINE# return Policy . from_api_repr ( resp )