#NEWLINE# def refresh( self , data = None ) : #NEWLINE# #INDENT# '\n        Refresh the local state of the object.  You can either pass\n        new state data in as the parameter ``data`` or, if that parameter\n        is omitted, the state data will be retrieved from CloudSearch.\n        ' #NEWLINE# if ( not data ) : #NEWLINE# #INDENT# if self . refresh_fn : #NEWLINE# #INDENT# data = self . refresh_fn ( self . domain . name ) #NEWLINE# #UNINDENT# #UNINDENT# if data : #NEWLINE# #INDENT# self . _update_status ( data [ 'status' ] ) #NEWLINE# self . _update_options ( data [ 'options' ] )