<s> from . . import NextGenInstanceResource , NextGenListResource <EOL> class OriginationUrl ( NextGenInstanceResource ) : <EOL> """<STR_LIT>""" <EOL> def delete ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . parent . delete_instance ( self . name ) <EOL> def update ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return self . parent . update_instance ( self . name , kwargs ) <EOL> class OriginationUrls ( NextGenListResource ) : <EOL> """<STR_LIT>""" <EOL> name = "<STR_LIT>" <EOL> instance = OriginationUrl <EOL> key = "<STR_LIT>" <EOL> def create ( self , friendly_name , sip_url , priority , weight , enabled ) : <EOL> """<STR_LIT>""" <EOL> data = { <EOL> '<STR_LIT>' : friendly_name , <EOL> '<STR_LIT>' : sip_url , <EOL> '<STR_LIT>' : priority , <EOL> '<STR_LIT>' : weight , <EOL> '<STR_LIT>' : enabled <EOL> } <EOL> return self . create_instance ( data ) <EOL> def list ( self , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return super ( OriginationUrls , self ) . list ( ** kwargs ) <EOL> def update ( self , origination_url_sid , data ) : <EOL> """<STR_LIT>""" <EOL> return self . update_instance ( origination_url_sid , data ) <EOL> def delete ( self , origination_url_sid ) : <EOL> """<STR_LIT>""" <EOL> return self . delete_instance ( origination_url_sid ) </s>
