def create_mock_resource_resp(dm):
  """Given an instance of Deployment, transforms into resource info as API response."""
  return {
      "name": dm.name,
      "insertTime": dm.insert_time,
      "properties": "zone: " + dm.zone,
  }