<s> from solumclient . common import base as solum_base <EOL> from solumclient . common import exc <EOL> from solumclient . openstack . common . apiclient import base as apiclient_base <EOL> from solumclient . openstack . common . apiclient import exceptions <EOL> from solumclient . openstack . common import uuidutils <EOL> class Pipeline ( apiclient_base . Resource ) : <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % self . _info <EOL> class PipelineManager ( solum_base . CrudManager , solum_base . FindMixin ) : <EOL> resource_class = Pipeline <EOL> collection_key = '<STR_LIT>' <EOL> key = '<STR_LIT>' <EOL> def list ( self , ** kwargs ) : <EOL> return super ( PipelineManager , self ) . list ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> def create ( self , ** kwargs ) : <EOL> return super ( PipelineManager , self ) . create ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> def get ( self , ** kwargs ) : <EOL> return super ( PipelineManager , self ) . get ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> def put ( self , ** kwargs ) : <EOL> return super ( PipelineManager , self ) . put ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> def delete ( self , ** kwargs ) : <EOL> return super ( PipelineManager , self ) . delete ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> def find ( self , ** kwargs ) : <EOL> if '<STR_LIT>' in kwargs : <EOL> return super ( PipelineManager , self ) . get ( base_url = "<STR_LIT>" , ** kwargs ) <EOL> elif '<STR_LIT>' in kwargs : <EOL> name_or_uuid = kwargs [ '<STR_LIT>' ] <EOL> try : <EOL> if uuidutils . is_uuid_like ( name_or_uuid ) : <EOL> return super ( PipelineManager , self ) . get ( <EOL> base_url = "<STR_LIT>" , <EOL> pipeline_id = name_or_uuid ) <EOL> else : <EOL> return super ( PipelineManager , self ) . findone ( <EOL> name = name_or_uuid ) <EOL> except exceptions . NoUniqueMatch : <EOL> raise exc . NotUnique ( resource = '<STR_LIT>' ) </s>
