Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: third_party/gsutil/boto/boto/ec2/address.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/gsutil/boto/boto/ec2/address.py
diff --git a/third_party/gsutil/20110627/boto/boto/ec2/address.py b/third_party/gsutil/boto/boto/ec2/address.py
similarity index 86%
rename from third_party/gsutil/20110627/boto/boto/ec2/address.py
rename to third_party/gsutil/boto/boto/ec2/address.py
index 60ed40675f11e9b8112fcebc5692241da918996a..770a90429a0e7f86365470cdea67d2e949940796 100644
--- a/third_party/gsutil/20110627/boto/boto/ec2/address.py
+++ b/third_party/gsutil/boto/boto/ec2/address.py
@@ -14,7 +14,7 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
@@ -26,12 +26,15 @@ Represents an EC2 Elastic IP Address
from boto.ec2.ec2object import EC2Object
class Address(EC2Object):
-
+
def __init__(self, connection=None, public_ip=None, instance_id=None):
EC2Object.__init__(self, connection)
self.connection = connection
self.public_ip = public_ip
self.instance_id = instance_id
+ self.domain = None
+ self.allocation_id = None
+ self.association_id = None
def __repr__(self):
return 'Address:%s' % self.public_ip
@@ -41,6 +44,12 @@ class Address(EC2Object):
self.public_ip = value
elif name == 'instanceId':
self.instance_id = value
+ elif name == 'domain':
+ self.domain = value
+ elif name == 'allocationId':
+ self.allocation_id = value
+ elif name == 'associationId':
+ self.association_id = value
else:
setattr(self, name, value)
@@ -55,4 +64,4 @@ class Address(EC2Object):
def disassociate(self):
return self.connection.disassociate_address(self.public_ip)
-
+
« no previous file with comments | « third_party/gsutil/boto/boto/ec2/__init__.py ('k') | third_party/gsutil/boto/boto/ec2/autoscale/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698