def _TransformOperationName(resource):
  """Get operation name without project prefix."""
  # operation name is in the format of:
  # operations/projects/{}/instances/{}/.../locations/{}/operations/{}
  operation_name = resource.get('name')
  results = operation_name.split('/')
  short_name = '/'.join(results[3:])
  return short_name