X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fdomain%2Fstx_object.py;h=773bd3a8b29bcd1d8f0c81aced0392717914a796;hb=62f8863960ebd439c714b0ceed204731d9b31266;hp=e6487554db0d569edb55bba7799aaa9ca74cb703;hpb=d4513e022d7d75d9967072cec1e0d7db34571120;p=pti%2Fo2.git diff --git a/o2ims/domain/stx_object.py b/o2ims/domain/stx_object.py index e648755..773bd3a 100644 --- a/o2ims/domain/stx_object.py +++ b/o2ims/domain/stx_object.py @@ -15,17 +15,14 @@ # from dataclasses import dataclass import datetime import json +from o2ims.domain.base import AgRoot -from o2ims.domain.resource_type import ResourceTypeEnum +from o2ims.domain.resource_type import ResourceTypeEnum, MismatchedModel from o2common.helper import o2logging logger = o2logging.get_logger(__name__) -class MismatchedModel(Exception): - pass - - -class StxGenericModel: +class StxGenericModel(AgRoot): def __init__(self, type: ResourceTypeEnum, api_response: dict = None, content_hash=None) -> None: if api_response: