def _update_entity(entity, if_match):
_validate_not_none('<STR_LIT>', if_match)<EOL>_validate_entity(entity)<EOL>request = HTTPRequest()<EOL>request.method = '<STR_LIT>'<EOL>request.headers = [_DEFAULT_CONTENT_TYPE_HEADER,<EOL>_DEFAULT_ACCEPT_HEADER,<EOL>('<STR_LIT>', _to_str(if_match)),]<EOL>request.body = _get_request_body(_convert_entity_to_json(entity))<EOL>return request<EOL>
Constructs an update entity request.