def ListCloudSqlInstances(args: 'argparse.Namespace') -> None:
  """List the CloudSQL instances of a Project.

  Args:
    args (argsparse.Namespace): Arguments from ArgumentParser.

  Raises:
    AttributeError: If no project_id was provided and none was inferred
        from the gcloud environment.
  """

  AssignProjectID(args)

  gcsql = gcp_cloudsql.GoogleCloudSQL(args.project)
  results = gcsql.ListCloudSQLInstances()
  for obj in results:
    logger.info('{0:s} {1:s} [{2:s}]'.format(
        obj.get('instanceType', 'type not found'),
        obj.get('name', 'name not known'),
        obj.get('state', 'state not known')))
List the CloudSQL instances of a Project.

Args:
args (argsparse.Namespace): Arguments from ArgumentParser.

Raises:
AttributeError: If no project_id was provided and none was inferred
from the gcloud environment.
tools/gcp_cli.py