#NEWLINE# def ex_create_balancer_access_rule( self , balancer , rule ) : #NEWLINE# #INDENT# "\n        Adds an access rule to a Balancer's access list.  This method blocks\n        until the update request has been processed and the balancer is in a\n        RUNNING state again.\n\n        :param balancer: Balancer to create the access rule for.\n        :type balancer: :class:`LoadBalancer`\n\n        :param rule: Access Rule to add to the balancer.\n        :type rule: :class:`RackspaceAccessRule`\n\n        :return: The created access rule.\n        :rtype: :class:`RackspaceAccessRule`\n        " #NEWLINE# accepted = self . ex_create_balancer_access_rule_no_poll ( balancer , rule ) #NEWLINE# if ( not accepted ) : #NEWLINE# #INDENT# msg = 'Create access rule not accepted' #NEWLINE# raise LibcloudError ( msg , driver = self ) #NEWLINE# #UNINDENT# balancer = self . _get_updated_balancer ( balancer ) #NEWLINE# access_list = balancer . extra [ 'accessList' ] #NEWLINE# created_rule = self . _find_matching_rule ( rule , access_list ) #NEWLINE# if ( not created_rule ) : #NEWLINE# #INDENT# raise LibcloudError ( 'Could not find created rule' ) #NEWLINE# #UNINDENT# return accepted