| OLD | NEW |
| 1 # Copyright (c) 2009-2010 Mitch Garnaat http://garnaat.org/ | 1 # Copyright (c) 2009-2010 Mitch Garnaat http://garnaat.org/ |
| 2 # | 2 # |
| 3 # Permission is hereby granted, free of charge, to any person obtaining a | 3 # Permission is hereby granted, free of charge, to any person obtaining a |
| 4 # copy of this software and associated documentation files (the | 4 # copy of this software and associated documentation files (the |
| 5 # "Software"), to deal in the Software without restriction, including | 5 # "Software"), to deal in the Software without restriction, including |
| 6 # without limitation the rights to use, copy, modify, merge, publish, dis- | 6 # without limitation the rights to use, copy, modify, merge, publish, dis- |
| 7 # tribute, sublicense, and/or sell copies of the Software, and to permit | 7 # tribute, sublicense, and/or sell copies of the Software, and to permit |
| 8 # persons to whom the Software is furnished to do so, subject to the fol- | 8 # persons to whom the Software is furnished to do so, subject to the fol- |
| 9 # lowing conditions: | 9 # lowing conditions: |
| 10 # | 10 # |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 elif name == 'customerGatewayId': | 51 elif name == 'customerGatewayId': |
| 52 self.customer_gateway_id = value | 52 self.customer_gateway_id = value |
| 53 elif name == 'vpnGatewayId': | 53 elif name == 'vpnGatewayId': |
| 54 self.vpn_gateway_id = value | 54 self.vpn_gateway_id = value |
| 55 else: | 55 else: |
| 56 setattr(self, name, value) | 56 setattr(self, name, value) |
| 57 | 57 |
| 58 def delete(self): | 58 def delete(self): |
| 59 return self.connection.delete_vpn_connection(self.id) | 59 return self.connection.delete_vpn_connection(self.id) |
| 60 | 60 |
| OLD | NEW |