gooddata_sdk.utils.id_obj_to_key

gooddata_sdk.utils.id_obj_to_key(id_obj: Union[str, gooddata_sdk.compute_model.ObjId, Dict[str, Dict[str, str]], Dict[str, str]]) str

Given an object containing an id+type pair, this function will return a string key.

For convenience, this also recognizes the ref format used by GoodData.UI SDK. In that format, the id+type are wrapped in ‘identifier’.

Parameters

id_obj – id object

Returns

string that can be used as key