parameters: (self)
return_statement: return query_response.tokens[0]
docstring: Retrieve all workflow instance tokens.
  
          Returns:
              List of tokens in the workflow instance.
docstring_summary: Retrieve all workflow instance tokens.
docstring_tokens: Retrieve all workflow instance tokens .
function: def _get_instance_tokens(self):
          """Retrieve all workflow instance tokens.
  
          Returns:
              List of tokens in the workflow instance.
          """
          prefix = Name(workflow=self._workflow, instance=self._instance)
          query = Query(namePrefix=prefix.get_instance_prefix())
          query_request = QueryRequest(queries=[query])
          try:
              query_response = self._client.query(query_request)
          except TokenMasterException:
              LOG.exception('error sending request %s', query_request)
              return None
          if not query_response.tokens:
              return None
          assert len(query_response.tokens) == 1
          return query_response.tokens[0]
function_tokens: def _get_instance_tokens ( self ) : prefix = Name ( workflow = self . _workflow , instance = self . _instance ) query = Query ( namePrefix = prefix . get_instance_prefix ( ) ) query_request = QueryRequest ( queries = [ query ] ) try : query_response = self . _client . query ( query_request ) except TokenMasterException : LOG . exception ( 'error sending request %s' , query_request ) return None if not query_response . tokens : return None assert len ( query_response . tokens ) == 1 return query_response . tokens [ 0 ]