def update_range(self, share_name, directory_name, file_name, data, <EOL>start_range, end_range, content_md5=None, 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 = self._get_host()<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>', _to_str(content_md5)),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>]<EOL>_validate_and_format_range_headers(<EOL>request, start_range, end_range)<EOL>request.body = _get_request_body_bytes_only('<STR_LIT:data>', data)<EOL>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 str content_md5:
    An MD5 hash of the range content. This hash is used to
    verify the integrity of the range during transport. When this header
    is specified, the storage service compares the hash of the content
    that has arrived with the header value that was sent. If the two
    hashes do not match, the operation will fail with error code 400
    (Bad Request).
:param int timeout:
    The timeout parameter is expressed in seconds.