def update_range(self, share_name, directory_name, file_name, data,<EOL>start_range, end_range, validate_content=False, timeout=None):
_validate_not_none('<STR_LIT>', share_name)<EOL>_validate_not_none('<STR_LIT>', file_name)<EOL>_validate_not_none('<STR_LIT:data>', data)<EOL>request = HTTPRequest()<EOL>request.method = '<STR_LIT>'<EOL>request.host_locations = self._get_host_locations()<EOL>request.path = _get_path(share_name, directory_name, file_name)<EOL>request.query = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': _int_to_str(timeout),<EOL>}<EOL>request.headers = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>}<EOL>_validate_and_format_range_headers(<EOL>request, start_range, end_range)<EOL>request.body = _get_data_bytes_only('<STR_LIT:data>', data)<EOL>if validate_content:<EOL><INDENT>computed_md5 = _get_content_md5(request.body)<EOL>request.headers['<STR_LIT>'] = _to_str(computed_md5)<EOL><DEDENT>self._perform_request(request)<EOL>
Writes the bytes specified by the request body into the specified range.

:param str share_name:
    Name of existing share.
:param str directory_name:
    The path to the directory.
:param str file_name:
    Name of existing file.
:param bytes data:
    Content of the range.
:param int start_range:
    Start of byte range to use for updating a section of the file.
    The range can be up to 4 MB in size.
    The start_range and end_range params are inclusive.
    Ex: start_range=0, end_range=511 will download first 512 bytes of file.
:param int end_range:
    End of byte range to use for updating a section of the file.
    The range can be up to 4 MB in size.
    The start_range and end_range params are inclusive.
    Ex: start_range=0, end_range=511 will download first 512 bytes of file.
:param bool validate_content:
    If true, calculates an MD5 hash of the page content. The storage 
    service checks the hash of the content that has arrived
    with the hash that was sent. This is primarily valuable for detecting 
    bitflips on the wire if using http instead of https as https (the default) 
    will already validate. Note that this MD5 hash is not stored with the 
    file.
:param int timeout:
    The timeout parameter is expressed in seconds.