title: Python way of polling longrunning operations from operation name in Google Cloud?
body: <p>I'm calling a Google Cloud Function that returns an <code>Operation</code> object implementing the <code>google.longrunning.Operations</code> interface. I want to poll this operation from another Python process that will only receive the operation name (will not have access to the operation object itself). So I need something like:</p>
  
  <pre><code>operation = getOperation(operationName)
  isdone = operation.done()
  </code></pre>
  
  <p>AFAIK, you can't do the first step above. I haven't found it here: <a href="https://google-cloud-python.readthedocs.io/en/stable/core/operation.html" rel="nofollow noreferrer">https://google-cloud-python.readthedocs.io/en/stable/core/operation.html</a></p>
  
  <p>I would like to do what is explained in the docs about the <code>google.longrunning</code> interface (<a href="https://cloud.google.com/speech-to-text/docs/reference/rpc/google.longrunning#google.longrunning.Operations.GetOperation" rel="nofollow noreferrer">https://cloud.google.com/speech-to-text/docs/reference/rpc/google.longrunning#google.longrunning.Operations.GetOperation</a>):</p>
  
  <pre><code>rpc GetOperation(GetOperationRequest) returns (Operation)
  </code></pre>
  
  <p>Where the <code>GetOperationRequest</code> simply requires the operation name. Is there a way to "re-create" an operation using functions from the <code>google-cloud-python</code> library?</p>