#NEWLINE# def set_proxy_credentials( self , proxy_role , credentials ) : #NEWLINE# #INDENT# '\n        Set credentials to be used for `proxy_role` to `credentials`.\n\n        proxy_role: string\n            Role to assign credentials to.\n\n        credentials: :class:`Credentials`\n            Credentials to be assigned.\n\n        ' #NEWLINE# if isinstance ( self , Credentials ) : #NEWLINE# #INDENT# self . credentials_map [ proxy_role ] = credentials #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( 'credentials is not a Credentials object' )