def RunSqlExportCommand(args, client):
  """Exports data from a Cloud SQL instance to a MySQL dump file.

  Args:
    args: argparse.Namespace, The arguments that this command was invoked with.
    client: SqlClient instance, with sql_client and sql_messages props, for use
      in generating messages and making API calls.

  Returns:
    A dict object representing the operations resource describing the export
    operation if the export was successful.
  """
  sql_export_context = export_util.SqlExportContext(client.sql_messages,
                                                    args.uri, args.database,
                                                    args.table)
  return RunExportCommand(args, client, sql_export_context)
def RunSqlExportCommand(args, client):
    """Exports data from a Cloud SQL instance to a MySQL dump file.

  Args:
    args: argparse.Namespace, The arguments that this command was invoked with.
    client: SqlClient instance, with sql_client and sql_messages props, for use
      in generating messages and making API calls.

  Returns:
    A dict object representing the operations resource describing the export
    operation if the export was successful.
  """
    sql_export_context = export_util.SqlExportContext(client.sql_messages,
                                                      args.uri,
                                                      args.database,
                                                      args.table,
                                                      offload=args.offload)
    if args.offload:
        log.status.write(
            'Serverless exports cost extra. See the pricing page for more information: https://cloud.google.com/sql/pricing.\n'
        )
    return RunExportCommand(args, client, sql_export_context)