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

Unified Diff: third_party/gsutil/boto/boto/ec2/spotinstancerequest.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/spotinstancerequest.py
diff --git a/third_party/gsutil/20110627/boto/boto/ec2/spotinstancerequest.py b/third_party/gsutil/boto/boto/ec2/spotinstancerequest.py
similarity index 96%
rename from third_party/gsutil/20110627/boto/boto/ec2/spotinstancerequest.py
rename to third_party/gsutil/boto/boto/ec2/spotinstancerequest.py
index 06acb0f51e5f9fca02374c94ab222a8806387db5..a3562ac3c31dbcd0046d79fdc95bf1cc7921f093 100644
--- a/third_party/gsutil/20110627/boto/boto/ec2/spotinstancerequest.py
+++ b/third_party/gsutil/boto/boto/ec2/spotinstancerequest.py
@@ -15,7 +15,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.
@@ -27,6 +27,7 @@ Represents an EC2 Spot Instance Request
from boto.ec2.ec2object import TaggedEC2Object
from boto.ec2.launchspecification import LaunchSpecification
+
class SpotInstanceStateFault(object):
def __init__(self, code=None, message=None):
@@ -46,8 +47,9 @@ class SpotInstanceStateFault(object):
self.message = value
setattr(self, name, value)
+
class SpotInstanceRequest(TaggedEC2Object):
-
+
def __init__(self, connection=None):
TaggedEC2Object.__init__(self, connection)
self.id = None
@@ -58,6 +60,7 @@ class SpotInstanceRequest(TaggedEC2Object):
self.valid_from = None
self.valid_until = None
self.launch_group = None
+ self.launched_availability_zone = None
self.product_description = None
self.availability_zone_group = None
self.create_time = None
@@ -89,8 +92,6 @@ class SpotInstanceRequest(TaggedEC2Object):
self.type = value
elif name == 'state':
self.state = value
- elif name == 'productDescription':
- self.product_description = value
elif name == 'validFrom':
self.valid_from = value
elif name == 'validUntil':
@@ -99,15 +100,16 @@ class SpotInstanceRequest(TaggedEC2Object):
self.launch_group = value
elif name == 'availabilityZoneGroup':
self.availability_zone_group = value
- elif name == 'createTime':
- self.create_time = value
+ elif name == 'launchedAvailabilityZone':
+ self.launched_availability_zone = value
elif name == 'instanceId':
self.instance_id = value
+ elif name == 'createTime':
+ self.create_time = value
+ elif name == 'productDescription':
+ self.product_description = value
else:
setattr(self, name, value)
def cancel(self):
self.connection.cancel_spot_instance_requests([self.id])
-
-
-
« no previous file with comments | « third_party/gsutil/boto/boto/ec2/spotdatafeedsubscription.py ('k') | third_party/gsutil/boto/boto/ec2/spotpricehistory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698