#NEWLINE# def data_source_create( self , context , values ) : #NEWLINE# #INDENT# 'Create a Data Source from the values dictionary.' #NEWLINE# values = copy . deepcopy ( values ) #NEWLINE# values = _apply_defaults ( values , DATA_SOURCE_DEFAULTS ) #NEWLINE# values [ 'tenant_id' ] = context . tenant_id #NEWLINE# if ( values . get ( 'credentials' ) and values [ 'credentials' ] . get ( 'password' ) ) : #NEWLINE# #INDENT# values [ 'credentials' ] [ 'password' ] = key_manager . store_secret ( values [ 'credentials' ] [ 'password' ] , context ) #NEWLINE# #UNINDENT# return self . db . data_source_create ( context , values )