本文整理汇总了Python中sclib.sc.scobject.SCObject类的典型用法代码示例。如果您正苦于以下问题:Python SCObject类的具体用法?Python SCObject怎么用?Python SCObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SCObject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, connection, tag="vm"):
SCObject.__init__(self, connection, tag)
# ----------------------------------------------------------------------
# Attributes
# ----------------------------------------------------------------------
self.SecurityGroupGUID = None
self.autoProvision = None
self.detectedKeyCount = None
self.encryptableDeviceCount = None
self.encryptedDeviceCount = None
self.encryptingDeviceCount = None
self.href = None
self.hostname = None
self.imageGUID = None
self.imageID = None
self.imageName = None
self.instanceGUID = None
self.instanceID = None
self.lastModified = None
self.nonEncryptedDeviceCount = None
self.pendingDeviceCount = None
# ----------------------------------------------------------------------
# elements
# ----------------------------------------------------------------------
self.imageDescription = None
# ----------------------------------------------------------------------
# Inner objects
# ----------------------------------------------------------------------
self.provider = None
self.platform = None
self.securecloudAgent = None
# Device list
self.devices = ResultSet([("device", Device)], "devices")
pass
示例2: __init__
def __init__(self, connection, actionName, action=None, autoDelay='-1'):
SCObject.__init__(self, connection)
# member initialization
self.name = actionName
self.action = action
self.autoDelay = autoDelay
示例3: __init__
def __init__(self, connection):
SCObject.__init__(self, connection)
self.id = None
self.token = None
self.expires = None
self.data = None
self.accountId = None
示例4: __init__
def __init__(self, connection):
SCObject.__init__(self, connection)
# attributes
self.baseUtcOffset = None
self.timezonEn = None
self.timezoneId = None
示例5: __init__
def __init__(self, connection, tag='authentication'):
SCObject.__init__(self, connection, tag)
self.id = None
self.token = None
self.expires = None
self.data = None
self.accountId = None
示例6: __init__
def __init__(self, connection):
SCObject.__init__(self, connection)
self.name = None
self.id = None
self.dataFormat = None
self.passphrase = None
self.sessionTimeout = None
self.timezoneID = None
示例7: __init__
def __init__(self, connection, tag='Device'):
SCObject.__init__(self, connection, tag)
#----------------------------------------------------------------------
# Attributes
#----------------------------------------------------------------------
self.id = None
self.msUID = None
self.name = None
self.href = None
self.deviceType = None
self.cspDeviceType = None
self.deviceState = None
self.deviceStatus = None
self.info = None
self.detachable = None
self.lastModified = None
self.writeAccess = None
self.EncryptedName = None
self.preserveData = None
self.partitionType = None
self.provisionProgress = None
self.provisionState = None
self.raidLevel = None
#----------------------------------------------------------------------
# Elements
#----------------------------------------------------------------------
self.description = None
self.fileSystem = None
#----------------------------------------------------------------------
# subDevices List
#----------------------------------------------------------------------
self.__subDevices = ResultSet([('subDevices', Device)], 'subDevices')
#----------------------------------------------------------------------
# volume object
#----------------------------------------------------------------------
self.volume = None
#----------------------------------------------------------------------
# Provider object
#----------------------------------------------------------------------
self.provider = None
#----------------------------------------------------------------------
# partition list
#----------------------------------------------------------------------
self.partitionList = None
示例8: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'device':
for key, value in attrs.items():
setattr(self, key, value)
elif name == 'volume':
self.volume = Volume(connection)
self.volume.startElement(name, attrs, connection)
return self.volume
elif name == 'provider':
self.provider = Provider(connection)
self.provider.startElement(name, attrs, connection)
return self.provider
elif name == 'partitionList':
partitionList = ResultSet([('partition', Partition)], name)
return self.partitionList
elif name == 'subDevices':
self.__subDevices = ResultSet([('subDevices', Device)], name)
return self.subDevices
else:
return None
示例9: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'securityGroup':
for key, value in attrs.items():
if key in self.ValidAttributes:
setattr(self, key, value)
return self
elif name == 'securityRuleList':
if not self.securityRuleList:
self.securityRuleList = ResultSet(
[('securityRule', SecurityRule)], name)
return self.securityRuleList
elif name == 'vmList':
self.__vmList = ResultSet([('vm', VirtualMachine)], name)
return self.vmList
elif name == 'successAction':
self.successAction = SecurityGroupAction(connection, name)
return self.successAction.startElement(name, attrs, connection)
elif name == 'failedAction':
self.failedAction = SecurityGroupAction(connection, name)
return self.failedAction.startElement(name, attrs, connection)
else:
return None
示例10: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'right':
pass
else:
return None
示例11: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'certificate':
self.id = attrs['level']
self.encoding = attrs['encoding']
else:
return None
示例12: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'provider':
for key, value in attrs.items():
setattr(self, key, value)
else:
return None
示例13: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == 'securecloudAgent':
for key, value in attrs.items():
setattr(self, key, value)
return self
else:
return None
示例14: startElement
def startElement(self, name, attrs, connection):
ret = SCObject.startElement(self, name, attrs, connection)
if ret is not None:
return ret
if name == "DSMConnSettings":
for key, value in attrs.items():
if key in self.ValidAttributes:
setattr(self, key, value)
else:
return None
示例15: __init__
def __init__(self, connection):
SCObject.__init__(self, connection)
self.name = None
self.href = None
self.providerLocation = None