o ckF[ ã@s@dZddlmZddlmZGdd„deƒZGdd„deƒZdS) z Represents an Internet Gateway é)ÚTaggedEC2Object)Ú ResultSetcs:eZdZd ‡fdd„ Zdd„Z‡fdd„Zdd „Z‡ZS) ÚInternetGatewayNcs tt|ƒ |¡d|_g|_dS©N)ÚsuperrÚ__init__ÚidÚ attachments©ÚselfÚ connection©Ú __class__©ú:/usr/lib/python3/dist-packages/boto/vpc/internetgateway.pyrs zInternetGateway.__init__cCó d|jS)NzInternetGateway:%s)r©r rrrÚ__repr__#ó zInternetGateway.__repr__csBtt|ƒ |||¡}|dur|S|dkrtdtfgƒ|_|jSdS)NÚ attachmentSetÚitem)rrÚ startElementrÚInternetGatewayAttachmentr )r ÚnameÚattrsr Úresultr rrr&szInternetGateway.startElementcCs"|dkr ||_dSt|||ƒdS)NÚinternetGatewayId)rÚsetattr©r rÚvaluer rrrÚ endElement3s zInternetGateway.endElementr)Ú__name__Ú __module__Ú __qualname__rrrr Ú __classcell__rrr rrs   rc@s.eZdZd dd„Zdd„Zdd„Zdd „ZdS) rNcCsd|_d|_dSr©Úvpc_idÚstater rrrr:s z"InternetGatewayAttachment.__init__cCr)NzInternetGatewayAttachment:%s)r&rrrrr>rz"InternetGatewayAttachment.__repr__cCsdSrr)r rrr rrrrAsz&InternetGatewayAttachment.startElementcCs(|dkr ||_dS|dkr||_dSdS)NÚvpcIdr'r%rrrrr Ds   ÿz$InternetGatewayAttachment.endElementr)r!r"r#rrrr rrrrr9s   rN)Ú__doc__Úboto.ec2.ec2objectrÚboto.resultsetrrÚobjectrrrrrÚs