当前位置: 首页>>代码示例>>Python>>正文


Python TaggedEC2Object.startElement方法代码示例

本文整理汇总了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
开发者ID:0t3dWCE,项目名称:boto,代码行数:9,代码来源:dhcpoptions.py

示例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
开发者ID:2uinc,项目名称:boto,代码行数:28,代码来源:instance.py

示例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
开发者ID:2mind,项目名称:boto,代码行数:10,代码来源:vpngateway.py

示例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
开发者ID:NightBlues,项目名称:boto,代码行数:10,代码来源:subnet.py

示例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
开发者ID:AllenShi,项目名称:h-store,代码行数:11,代码来源:securitygroup.py

示例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
开发者ID:0t3dWCE,项目名称:boto,代码行数:13,代码来源:image.py

示例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
开发者ID:nekolyanich,项目名称:boto,代码行数:14,代码来源:volume.py

示例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
开发者ID:uceo,项目名称:uceo-2015,代码行数:14,代码来源:volume.py

示例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
开发者ID:2uinc,项目名称:boto,代码行数:14,代码来源:spotinstancerequest.py

示例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
开发者ID:2uinc,项目名称:boto,代码行数:14,代码来源:networkinterface.py

示例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
开发者ID:KonishchevDmitry,项目名称:boto,代码行数:17,代码来源:instance.py

示例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
开发者ID:JDrosdeck,项目名称:boto,代码行数:20,代码来源:instance.py


注:本文中的boto.ec2.ec2object.TaggedEC2Object.startElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。