def _insert_object_resp(bucket=None, name=None, data=None):
 assert (type(data) is bytes)
 hasher = hashlib.md5()
 hasher.update(data)
 md5_hex_hash = hasher.hexdigest()
 return {u'bucket': bucket, u'name': name, u'md5Hash': _hex_to_base64(md5_hex_hash), u'timeCreated': _datetime_to_gcptime(), u'size': str(len(data)), u'_data': data}

def _insert_object_resp ( bucket = None , name = None , data = None ) : assert ( type ( data ) is bytes ) hasher = hashlib . md5 ( ) hasher . update ( data ) md5_hex_hash = hasher . hexdigest ( ) return { u'bucket' : bucket , u'name' : name , u'md5Hash' : _hex_to_base64 ( md5_hex_hash ) , u'timeCreated' : _datetime_to_gcptime ( ) , u'size' : str ( len ( data ) ) , u'_data' : data }
fake gcs object metadata .