#NEWLINE# def _get_valid_payload( self , ip_mapping = None ) : #NEWLINE# #INDENT# resource = ( ip_mapping or factories . IpMappingFactory ( ) ) #NEWLINE# return { #NEWLINE# #INDENT# 'public_ip' : resource . public_ip , #NEWLINE# 'private_ip' : resource . private_ip , #NEWLINE# 'project' : structure_factories . ProjectFactory . get_url ( self . project ) , #NEWLINE# #UNINDENT# }