def CreateNotFoundExceptionForObjectWrite(
    dst_provider, dst_bucket_name, src_provider=None,
    src_bucket_name=None, src_object_name=None, src_generation=None):
  dst_url_string = '%s://%s' % (dst_provider, dst_bucket_name)
  if src_bucket_name and src_object_name:
    src_url_string = '%s://%s/%s' % (src_provider, src_bucket_name,
                                     src_object_name)
    if src_generation:
      src_url_string += '#%s' % str(src_generation)
    return NotFoundException(
        'The source object %s or the destination bucket %s does not exist.' %
        (src_url_string, dst_url_string))

  return NotFoundException(
      'The destination bucket %s does not exist or the write to the '
      'destination must be restarted' % dst_url_string)
Expand a shortened IPv6 address.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/translation_helper.py/CreateNotFoundExceptionForObjectWrite--crossover with--dataset/ETHPy150Open anzev/hedwig/build/pip/pip/_vendor/ipaddress.py/_BaseV6._explode_shorthand_ip_string