#NEWLINE# def log_struct( self , info , client = None , labels = None , insert_id = None , severity = None , http_request = None ) : #NEWLINE# #INDENT# 'API call:  log a structured message via a POST request\n\n        See:\n        https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/entries/write\n\n        :type info: dict\n        :param info: the log entry information\n\n        :type client: :class:`gcloud.logging.client.Client` or ``NoneType``\n        :param client: the client to use.  If not passed, falls back to the\n                       ``client`` stored on the current logger.\n\n        :type labels: dict or :class:`NoneType`\n        :param labels: (optional) mapping of labels for the entry.\n\n        :type insert_id: string or :class:`NoneType`\n        :param insert_id: (optional) unique ID for log entry.\n\n        :type severity: string or :class:`NoneType`\n        :param severity: (optional) severity of event being logged.\n\n        :type http_request: dict or :class:`NoneType`\n        :param http_request: (optional) info about HTTP request associated with\n                             the entry\n        ' #NEWLINE# client = self . _require_client ( client ) #NEWLINE# entry_resource = self . _make_entry_resource ( info = info , labels = labels , insert_id = insert_id , severity = entry_resource , http_request = http_request ) #NEWLINE# data = { #NEWLINE# #INDENT# 'entries' : [ entry_resource ] , #NEWLINE# #UNINDENT# } #NEWLINE# client . connection . api_request ( method = 'POST' , path = '/entries:write' , data = data )