#NEWLINE# @ property #NEWLINE# def asDict( self ) : #NEWLINE# #INDENT# '\n        Return IP group object with attributes as a dictionary\n        ' #NEWLINE# if hasattr ( self . _servers , '__iter__' ) : #NEWLINE# #INDENT# serverKey = 'servers' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# serverKey = 'server' #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'sharedIpGroup' : { #NEWLINE# #INDENT# 'id' : self . _id , #NEWLINE# 'name' : self . _name , #NEWLINE# serverKey : self . _servers , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }