本文整理汇总了Python中boto.ec2.ec2object.TaggedEC2Object.startElement方法的典型用法代码示例。如果您正苦于以下问题:Python TaggedEC2Object.startElement方法的具体用法?Python TaggedEC2Object.startElement怎么用?Python TaggedEC2Object.startElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boto.ec2.ec2object.TaggedEC2Object
的用法示例。
在下文中一共展示了TaggedEC2Object.startElement方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例2: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例3: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例4: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例5: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例6: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例7: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例8: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例9: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例10: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例11: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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
示例12: startElement
# 需要导入模块: from boto.ec2.ec2object import TaggedEC2Object [as 别名]
# 或者: from boto.ec2.ec2object.TaggedEC2Object import startElement [as 别名]
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