def _load(cls, resource: Union[Dict, str], cognite_client=None): instance = super(DataSetFilter, cls)._load(resource, cognite_client) if isinstance(resource, Dict): if instance.created_time is not None: instance.created_time = TimestampRange(**instance.created_time) if instance.last_updated_time is not None: instance.last_updated_time = TimestampRange(**instance.last_updated_time) return instance
def _load(cls, resource: Union[Dict, str], cognite_client=None): instance = super(EventFilter, cls)._load(resource, cognite_client) if isinstance(resource, Dict): if instance.start_time is not None: instance.start_time = TimestampRange(**instance.start_time) if instance.end_time is not None: instance.end_time = EndTimeFilter(**instance.end_time) if instance.active_at_time is not None: instance.active_at_time = TimestampRange(**instance.active_at_time) if instance.created_time is not None: instance.created_time = TimestampRange(**instance.created_time) if instance.last_updated_time is not None: instance.last_updated_time = TimestampRange(**instance.last_updated_time) return instance
def _load(cls, resource: Union[Dict, str], cognite_client=None): instance = super(ExtractionPipelineRunFilter, cls)._load(resource, cognite_client) if isinstance(resource, Dict): if instance.created_time is not None: instance.created_time = TimestampRange(**instance.created_time) return instance