def delete(source_: Source): if source_.pipelines: raise Exception( f"Can't delete. Source is used by {', '.join([p.name for p in source_.pipelines])} pipelines" ) Session.delete(source_) Session.commit()
def delete(streamsets: StreamSets): Session.delete(streamsets) Session.commit()
def delete_auth_token(token: AuthenticationToken): Session.delete(token) Session.commit()
def delete(): if not exists(): return Session.delete(get()) Session.commit()
def delete_offset(pipeline_offset: PipelineOffset): Session.delete(pipeline_offset) Session.commit()
def delete(pipeline_: Pipeline): Session.delete(pipeline_) Session.commit()
def delete_pipeline_retries(pipeline_retries: PipelineRetries): Session.delete(pipeline_retries) Session.commit()