Exemple #1
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'dhcpConfigurationSet':
         self.options = DhcpConfigSet()
         return self.options
Exemple #2
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'monitoring':
         self._in_monitoring_element = True
     elif name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     elif name == 'stateReason':
         self.state_reason = SubParse('stateReason')
         return self.state_reason
     elif name == 'groupSet':
         self.groups = ResultSet([('item', Group)])
         return self.groups
     elif name == "eventsSet":
         self.eventsSet = SubParse('eventsSet')
         return self.eventsSet
     elif name == 'networkInterfaceSet':
         self.interfaces = ResultSet([('item', NetworkInterface)])
     elif name == 'iamInstanceProfile':
         self.instance_profile = SubParse('iamInstanceProfile')
         return self.instance_profile
     return None
Exemple #3
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'dhcpConfigurationSet':
         self.options = DhcpConfigSet()
         return self.options
Exemple #4
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'monitoring':
         self._in_monitoring_element = True
     elif name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     elif name == 'stateReason':
         self.state_reason = SubParse('stateReason')
         return self.state_reason
     elif name == 'groupSet':
         self.groups = ResultSet([('item', Group)])
         return self.groups
     elif name == "eventsSet":
         self.eventsSet = SubParse('eventsSet')
         return self.eventsSet
     elif name == 'networkInterfaceSet':
         self.interfaces = ResultSet([('item', NetworkInterface)])
     elif name == 'iamInstanceProfile':
         self.instance_profile = SubParse('iamInstanceProfile')
         return self.instance_profile
     return None
Exemple #5
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'ipPermissions':
         return self.rules
     else:
         return None
Exemple #6
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'item':
         att = Attachment()
         self.attachments.append(att)
         return att
Exemple #7
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'item':
         att = Attachment()
         self.attachments.append(att)
         return att
Exemple #8
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'ipPermissions':
         return self.rules
     else:
         return None
Exemple #9
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'item':
         self.rules.append(IPPermissions(self))
         return self.rules[-1]
     else:
         return None
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     else:
         return None
Exemple #11
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     else:
         return None
Exemple #12
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'attachmentSet':
         self.attach_data = AttachmentSet()
         return self.attach_data
     elif name == 'tagSet':
         self.tags = boto.resultset.ResultSet([('item', Tag)])
         return self.tags
     else:
         return None
Exemple #13
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'groupSet':
         self.groups = ResultSet([('item', Group)])
         return self.groups
     elif name == 'attachment':
         self.attachment = Attachment()
         return self.attachment
     else:
         return None
Exemple #14
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'attachmentSet':
         self.attach_data = AttachmentSet()
         return self.attach_data
     elif name == 'tagSet':
         self.tags = ResultSet([('item', Tag)])
         return self.tags
     else:
         return None
Exemple #15
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'groupSet':
         self.groups = ResultSet([('item', Group)])
         return self.groups
     elif name == 'attachment':
         self.attachment = Attachment()
         return self.attachment
     else:
         return None
Exemple #16
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == "attachmentSet":
         self.attach_data = AttachmentSet()
         return self.attach_data
     elif name == "tagSet":
         self.tags = ResultSet([("item", Tag)])
         return self.tags
     else:
         return None
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'launchSpecification':
         self.launch_specification = LaunchSpecification(connection)
         return self.launch_specification
     elif name == 'fault':
         self.fault = SpotInstanceStateFault()
         return self.fault
     else:
         return None
Exemple #18
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'monitoring':
         self._in_monitoring_element = True
     elif name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     elif name == 'stateReason':
         self.state_reason = StateReason()
         return self.state_reason
     return None
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == 'monitoring':
         self._in_monitoring_element = True
     elif name == 'blockDeviceMapping':
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == 'productCodes':
         return self.product_codes
     elif name == 'stateReason':
         self.state_reason = StateReason()
         return self.state_reason
     return None
Exemple #20
0
 def startElement(self, name, attrs, connection):
     retval = TaggedEC2Object.startElement(self, name, attrs, connection)
     if retval is not None:
         return retval
     if name == "monitoring":
         self._in_monitoring_element = True
     elif name == "blockDeviceMapping":
         self.block_device_mapping = BlockDeviceMapping()
         return self.block_device_mapping
     elif name == "productCodes":
         return self.product_codes
     elif name == "stateReason":
         self.state_reason = StateReason()
         return self.state_reason
     elif name == "groupSet":
         self.groups = ResultSet([("item", Group)])
         return self.groups
     return None