o ckF[Áã@sPdZddlmZddlmZGdd„deƒZGdd„deƒZGdd „d eƒZd S) z Represents a Route Table é)ÚTaggedEC2Object)Ú ResultSetcs:eZdZd ‡fdd„ Zdd„Z‡fdd„Zdd „Z‡ZS) Ú RouteTableNcs,tt|ƒ |¡d|_d|_g|_g|_dS©N)ÚsuperrÚ__init__ÚidÚvpc_idÚroutesÚ associations©ÚselfÚ connection©Ú __class__©ú5/usr/lib/python3/dist-packages/boto/vpc/routetable.pyrs  zRouteTable.__init__cCó d|jS)Nz RouteTable:%s©r©r rrrÚ__repr__&ó zRouteTable.__repr__cs`tt|ƒ |||¡}|dur|S|dkrtdtfgƒ|_|jS|dkr.tdtfgƒ|_|jSdS)NÚrouteSetÚitemÚassociationSet)rrÚ startElementrÚRouter ÚRouteAssociationr )r ÚnameÚattrsrÚresultrrrr)szRouteTable.startElementcCs4|dkr ||_dS|dkr||_dSt|||ƒdS)NÚ routeTableIdÚvpcId)rr Úsetattr©r rÚvaluerrrrÚ endElement9s   zRouteTable.endElementr)Ú__name__Ú __module__Ú __qualname__rrrr&Ú __classcell__rrrrrs  rc@ó.eZdZd dd„Zdd„Zdd„Zdd „ZdS) rNcCs.d|_d|_d|_d|_d|_d|_d|_dSr©Údestination_cidr_blockÚ gateway_idÚ instance_idÚ interface_idÚvpc_peering_connection_idÚstateÚoriginr rrrrBs zRoute.__init__cCr)NzRoute:%s)r-rrrrrKrzRoute.__repr__cCódSrr©r rrrrrrrNózRoute.startElementcCs‚|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dS|dkr?||_dSdS)NÚdestinationCidrBlockÚ gatewayIdÚ instanceIdÚnetworkInterfaceIdÚvpcPeeringConnectionIdr2r3r,r$rrrr&Qs       ÿzRoute.endElementr©r'r(r)rrrr&rrrrrAs    rc@r+) rNcCsd|_d|_d|_d|_dS)NF©rÚroute_table_idÚ subnet_idÚmainr rrrrbs zRouteAssociation.__init__cCr)NzRouteAssociation:%srrrrrrhrzRouteAssociation.__repr__cCr4rrr5rrrrkr6zRouteAssociation.startElementcCsP|dkr ||_dS|dkr||_dS|dkr||_dS|dkr&|dk|_dSdS)NÚrouteTableAssociationIdr!ÚsubnetIdr@Útruer=r$rrrr&ns   ÿzRouteAssociation.endElementrr<rrrrras   rN) Ú__doc__Úboto.ec2.ec2objectrÚboto.resultsetrrÚobjectrrrrrrÚs   $