def ConstructAssetId(id_prefix, device_id, uniquifier):
 assert IdPrefix.IsValid(id_prefix), id_prefix
 byte_str = util.EncodeVarLengthNumber(device_id)
 byte_str += _EncodeUniquifier(uniquifier)
 return (id_prefix + base64hex.B64HexEncode(byte_str, padding=False))

def ConstructAssetId ( id_prefix , device_id , uniquifier ) : assert IdPrefix . IsValid ( id_prefix ) , id_prefix byte_str = util . EncodeVarLengthNumber ( device_id ) byte_str += _EncodeUniquifier ( uniquifier ) return ( id_prefix + base64hex . B64HexEncode ( byte_str , padding = False ) )
constructs an asset id that does not have a timestamp part .