def GetAndValidateRowId(row_dict):
    "Returns the integer ID for a new Row.\n\n  This method is also responsible for validating the input fields related\n  to making the new row ID.\n\n  Args:\n    row_dict: A dictionary obtained from the input JSON.\n\n  Returns:\n    An integer row ID.\n\n  Raises:\n    BadRequestError: The input wasn't formatted properly.\n  "
    if ('revision' not in row_dict):
        raise BadRequestError('Required field "revision" missing.')
    try:
        return int(row_dict['revision'])
    except (ValueError, TypeError):
        raise BadRequestError('Bad value for "revision", should be numerical.')
Returns the integer ID for a new Row.

This method is also responsible for validating the input fields related
to making the new row ID.

Args:
  row_dict: A dictionary obtained from the input JSON.

Returns:
  An integer row ID.

Raises:
  BadRequestError: The input wasn't formatted properly.
def GetAndValidateRowId(row_dict):
    "Returns the integer ID for a new Row.\n\n  This method is also responsible for validating the input fields related\n  to making the new row ID.\n\n  Args:\n    row_dict: A dictionary obtained from the input JSON.\n\n  Returns:\n    An integer row ID.\n\n  Raises:\n    BadRequestError: The input wasn't formatted properly.\n  "
    if ('revision' not in row_dict):
        raise BadRequestError('Required field "revision" missing.')
    try:
        return int(row_dict['revision'])
    except (ValueError, TypeError):
        raise BadRequestError('Bad value for "revision", should be numerical.')