body
stringlengths
26
98.2k
body_hash
int64
-9,222,864,604,528,158,000
9,221,803,474B
docstring
stringlengths
1
16.8k
path
stringlengths
5
230
name
stringlengths
1
96
repository_name
stringlengths
7
89
lang
stringclasses
1 value
body_without_docstring
stringlengths
20
98.2k
@moid.setter def moid(self, moid): '\n Sets the moid of this EquipmentChassis.\n A unique identifier of this Managed Object instance. \n\n :param moid: The moid of this EquipmentChassis.\n :type: str\n ' self._moid = moid
-8,433,131,016,588,678,000
Sets the moid of this EquipmentChassis. A unique identifier of this Managed Object instance. :param moid: The moid of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
moid
fdemello/intersight-python
python
@moid.setter def moid(self, moid): '\n Sets the moid of this EquipmentChassis.\n A unique identifier of this Managed Object instance. \n\n :param moid: The moid of this EquipmentChassis.\n :type: str\n ' self._moid = moid
@property def object_type(self): '\n Gets the object_type of this EquipmentChassis.\n The fully-qualified type of this managed object, e.g. the class name. \n\n :return: The object_type of this EquipmentChassis.\n :rtype: str\n ' return self._object_type
9,146,052,699,057,276,000
Gets the object_type of this EquipmentChassis. The fully-qualified type of this managed object, e.g. the class name. :return: The object_type of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
object_type
fdemello/intersight-python
python
@property def object_type(self): '\n Gets the object_type of this EquipmentChassis.\n The fully-qualified type of this managed object, e.g. the class name. \n\n :return: The object_type of this EquipmentChassis.\n :rtype: str\n ' return self._object_type
@object_type.setter def object_type(self, object_type): '\n Sets the object_type of this EquipmentChassis.\n The fully-qualified type of this managed object, e.g. the class name. \n\n :param object_type: The object_type of this EquipmentChassis.\n :type: str\n ' self._object_...
5,967,508,551,853,678,000
Sets the object_type of this EquipmentChassis. The fully-qualified type of this managed object, e.g. the class name. :param object_type: The object_type of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
object_type
fdemello/intersight-python
python
@object_type.setter def object_type(self, object_type): '\n Sets the object_type of this EquipmentChassis.\n The fully-qualified type of this managed object, e.g. the class name. \n\n :param object_type: The object_type of this EquipmentChassis.\n :type: str\n ' self._object_...
@property def owners(self): '\n Gets the owners of this EquipmentChassis.\n An array of owners which represent effective ownership of this object. \n\n :return: The owners of this EquipmentChassis.\n :rtype: list[str]\n ' return self._owners
-5,796,262,495,266,642,000
Gets the owners of this EquipmentChassis. An array of owners which represent effective ownership of this object. :return: The owners of this EquipmentChassis. :rtype: list[str]
intersight/models/equipment_chassis.py
owners
fdemello/intersight-python
python
@property def owners(self): '\n Gets the owners of this EquipmentChassis.\n An array of owners which represent effective ownership of this object. \n\n :return: The owners of this EquipmentChassis.\n :rtype: list[str]\n ' return self._owners
@owners.setter def owners(self, owners): '\n Sets the owners of this EquipmentChassis.\n An array of owners which represent effective ownership of this object. \n\n :param owners: The owners of this EquipmentChassis.\n :type: list[str]\n ' self._owners = owners
-5,756,124,446,422,222,000
Sets the owners of this EquipmentChassis. An array of owners which represent effective ownership of this object. :param owners: The owners of this EquipmentChassis. :type: list[str]
intersight/models/equipment_chassis.py
owners
fdemello/intersight-python
python
@owners.setter def owners(self, owners): '\n Sets the owners of this EquipmentChassis.\n An array of owners which represent effective ownership of this object. \n\n :param owners: The owners of this EquipmentChassis.\n :type: list[str]\n ' self._owners = owners
@property def parent(self): '\n Gets the parent of this EquipmentChassis.\n The direct ancestor of this managed object in the containment hierarchy. \n\n :return: The parent of this EquipmentChassis.\n :rtype: MoBaseMoRef\n ' return self._parent
3,423,610,237,586,827,000
Gets the parent of this EquipmentChassis. The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentChassis. :rtype: MoBaseMoRef
intersight/models/equipment_chassis.py
parent
fdemello/intersight-python
python
@property def parent(self): '\n Gets the parent of this EquipmentChassis.\n The direct ancestor of this managed object in the containment hierarchy. \n\n :return: The parent of this EquipmentChassis.\n :rtype: MoBaseMoRef\n ' return self._parent
@parent.setter def parent(self, parent): '\n Sets the parent of this EquipmentChassis.\n The direct ancestor of this managed object in the containment hierarchy. \n\n :param parent: The parent of this EquipmentChassis.\n :type: MoBaseMoRef\n ' self._parent = parent
510,684,913,294,766,800
Sets the parent of this EquipmentChassis. The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentChassis. :type: MoBaseMoRef
intersight/models/equipment_chassis.py
parent
fdemello/intersight-python
python
@parent.setter def parent(self, parent): '\n Sets the parent of this EquipmentChassis.\n The direct ancestor of this managed object in the containment hierarchy. \n\n :param parent: The parent of this EquipmentChassis.\n :type: MoBaseMoRef\n ' self._parent = parent
@property def tags(self): '\n Gets the tags of this EquipmentChassis.\n An array of tags, which allow to add key, value meta-data to managed objects. \n\n :return: The tags of this EquipmentChassis.\n :rtype: list[MoTag]\n ' return self._tags
5,254,447,752,488,890,000
Gets the tags of this EquipmentChassis. An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentChassis. :rtype: list[MoTag]
intersight/models/equipment_chassis.py
tags
fdemello/intersight-python
python
@property def tags(self): '\n Gets the tags of this EquipmentChassis.\n An array of tags, which allow to add key, value meta-data to managed objects. \n\n :return: The tags of this EquipmentChassis.\n :rtype: list[MoTag]\n ' return self._tags
@tags.setter def tags(self, tags): '\n Sets the tags of this EquipmentChassis.\n An array of tags, which allow to add key, value meta-data to managed objects. \n\n :param tags: The tags of this EquipmentChassis.\n :type: list[MoTag]\n ' self._tags = tags
-2,896,345,568,088,920,000
Sets the tags of this EquipmentChassis. An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentChassis. :type: list[MoTag]
intersight/models/equipment_chassis.py
tags
fdemello/intersight-python
python
@tags.setter def tags(self, tags): '\n Sets the tags of this EquipmentChassis.\n An array of tags, which allow to add key, value meta-data to managed objects. \n\n :param tags: The tags of this EquipmentChassis.\n :type: list[MoTag]\n ' self._tags = tags
@property def version_context(self): '\n Gets the version_context of this EquipmentChassis.\n The versioning info for this managed object \n\n :return: The version_context of this EquipmentChassis.\n :rtype: MoVersionContext\n ' return self._version_context
-2,244,708,150,065,598,200
Gets the version_context of this EquipmentChassis. The versioning info for this managed object :return: The version_context of this EquipmentChassis. :rtype: MoVersionContext
intersight/models/equipment_chassis.py
version_context
fdemello/intersight-python
python
@property def version_context(self): '\n Gets the version_context of this EquipmentChassis.\n The versioning info for this managed object \n\n :return: The version_context of this EquipmentChassis.\n :rtype: MoVersionContext\n ' return self._version_context
@version_context.setter def version_context(self, version_context): '\n Sets the version_context of this EquipmentChassis.\n The versioning info for this managed object \n\n :param version_context: The version_context of this EquipmentChassis.\n :type: MoVersionContext\n ' s...
7,014,728,958,737,755,000
Sets the version_context of this EquipmentChassis. The versioning info for this managed object :param version_context: The version_context of this EquipmentChassis. :type: MoVersionContext
intersight/models/equipment_chassis.py
version_context
fdemello/intersight-python
python
@version_context.setter def version_context(self, version_context): '\n Sets the version_context of this EquipmentChassis.\n The versioning info for this managed object \n\n :param version_context: The version_context of this EquipmentChassis.\n :type: MoVersionContext\n ' s...
@property def device_mo_id(self): '\n Gets the device_mo_id of this EquipmentChassis.\n\n :return: The device_mo_id of this EquipmentChassis.\n :rtype: str\n ' return self._device_mo_id
2,803,210,910,497,360,000
Gets the device_mo_id of this EquipmentChassis. :return: The device_mo_id of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
device_mo_id
fdemello/intersight-python
python
@property def device_mo_id(self): '\n Gets the device_mo_id of this EquipmentChassis.\n\n :return: The device_mo_id of this EquipmentChassis.\n :rtype: str\n ' return self._device_mo_id
@device_mo_id.setter def device_mo_id(self, device_mo_id): '\n Sets the device_mo_id of this EquipmentChassis.\n\n :param device_mo_id: The device_mo_id of this EquipmentChassis.\n :type: str\n ' self._device_mo_id = device_mo_id
7,266,247,615,991,828,000
Sets the device_mo_id of this EquipmentChassis. :param device_mo_id: The device_mo_id of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
device_mo_id
fdemello/intersight-python
python
@device_mo_id.setter def device_mo_id(self, device_mo_id): '\n Sets the device_mo_id of this EquipmentChassis.\n\n :param device_mo_id: The device_mo_id of this EquipmentChassis.\n :type: str\n ' self._device_mo_id = device_mo_id
@property def dn(self): '\n Gets the dn of this EquipmentChassis.\n\n :return: The dn of this EquipmentChassis.\n :rtype: str\n ' return self._dn
-5,242,492,363,572,684,000
Gets the dn of this EquipmentChassis. :return: The dn of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
dn
fdemello/intersight-python
python
@property def dn(self): '\n Gets the dn of this EquipmentChassis.\n\n :return: The dn of this EquipmentChassis.\n :rtype: str\n ' return self._dn
@dn.setter def dn(self, dn): '\n Sets the dn of this EquipmentChassis.\n\n :param dn: The dn of this EquipmentChassis.\n :type: str\n ' self._dn = dn
-3,085,358,775,880,350,700
Sets the dn of this EquipmentChassis. :param dn: The dn of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
dn
fdemello/intersight-python
python
@dn.setter def dn(self, dn): '\n Sets the dn of this EquipmentChassis.\n\n :param dn: The dn of this EquipmentChassis.\n :type: str\n ' self._dn = dn
@property def rn(self): '\n Gets the rn of this EquipmentChassis.\n\n :return: The rn of this EquipmentChassis.\n :rtype: str\n ' return self._rn
4,563,868,324,021,508,000
Gets the rn of this EquipmentChassis. :return: The rn of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
rn
fdemello/intersight-python
python
@property def rn(self): '\n Gets the rn of this EquipmentChassis.\n\n :return: The rn of this EquipmentChassis.\n :rtype: str\n ' return self._rn
@rn.setter def rn(self, rn): '\n Sets the rn of this EquipmentChassis.\n\n :param rn: The rn of this EquipmentChassis.\n :type: str\n ' self._rn = rn
3,427,683,795,829,285,400
Sets the rn of this EquipmentChassis. :param rn: The rn of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
rn
fdemello/intersight-python
python
@rn.setter def rn(self, rn): '\n Sets the rn of this EquipmentChassis.\n\n :param rn: The rn of this EquipmentChassis.\n :type: str\n ' self._rn = rn
@property def model(self): '\n Gets the model of this EquipmentChassis.\n\n :return: The model of this EquipmentChassis.\n :rtype: str\n ' return self._model
-587,197,220,262,295,600
Gets the model of this EquipmentChassis. :return: The model of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
model
fdemello/intersight-python
python
@property def model(self): '\n Gets the model of this EquipmentChassis.\n\n :return: The model of this EquipmentChassis.\n :rtype: str\n ' return self._model
@model.setter def model(self, model): '\n Sets the model of this EquipmentChassis.\n\n :param model: The model of this EquipmentChassis.\n :type: str\n ' self._model = model
-6,572,406,886,304,264,000
Sets the model of this EquipmentChassis. :param model: The model of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
model
fdemello/intersight-python
python
@model.setter def model(self, model): '\n Sets the model of this EquipmentChassis.\n\n :param model: The model of this EquipmentChassis.\n :type: str\n ' self._model = model
@property def revision(self): '\n Gets the revision of this EquipmentChassis.\n\n :return: The revision of this EquipmentChassis.\n :rtype: str\n ' return self._revision
7,361,901,812,003,549,000
Gets the revision of this EquipmentChassis. :return: The revision of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
revision
fdemello/intersight-python
python
@property def revision(self): '\n Gets the revision of this EquipmentChassis.\n\n :return: The revision of this EquipmentChassis.\n :rtype: str\n ' return self._revision
@revision.setter def revision(self, revision): '\n Sets the revision of this EquipmentChassis.\n\n :param revision: The revision of this EquipmentChassis.\n :type: str\n ' self._revision = revision
-2,461,176,041,929,837,600
Sets the revision of this EquipmentChassis. :param revision: The revision of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
revision
fdemello/intersight-python
python
@revision.setter def revision(self, revision): '\n Sets the revision of this EquipmentChassis.\n\n :param revision: The revision of this EquipmentChassis.\n :type: str\n ' self._revision = revision
@property def serial(self): '\n Gets the serial of this EquipmentChassis.\n\n :return: The serial of this EquipmentChassis.\n :rtype: str\n ' return self._serial
6,395,463,785,908,063,000
Gets the serial of this EquipmentChassis. :return: The serial of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
serial
fdemello/intersight-python
python
@property def serial(self): '\n Gets the serial of this EquipmentChassis.\n\n :return: The serial of this EquipmentChassis.\n :rtype: str\n ' return self._serial
@serial.setter def serial(self, serial): '\n Sets the serial of this EquipmentChassis.\n\n :param serial: The serial of this EquipmentChassis.\n :type: str\n ' self._serial = serial
110,131,993,948,440,930
Sets the serial of this EquipmentChassis. :param serial: The serial of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
serial
fdemello/intersight-python
python
@serial.setter def serial(self, serial): '\n Sets the serial of this EquipmentChassis.\n\n :param serial: The serial of this EquipmentChassis.\n :type: str\n ' self._serial = serial
@property def vendor(self): '\n Gets the vendor of this EquipmentChassis.\n\n :return: The vendor of this EquipmentChassis.\n :rtype: str\n ' return self._vendor
-6,223,945,719,104,198,000
Gets the vendor of this EquipmentChassis. :return: The vendor of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
vendor
fdemello/intersight-python
python
@property def vendor(self): '\n Gets the vendor of this EquipmentChassis.\n\n :return: The vendor of this EquipmentChassis.\n :rtype: str\n ' return self._vendor
@vendor.setter def vendor(self, vendor): '\n Sets the vendor of this EquipmentChassis.\n\n :param vendor: The vendor of this EquipmentChassis.\n :type: str\n ' self._vendor = vendor
-4,499,878,453,311,607,000
Sets the vendor of this EquipmentChassis. :param vendor: The vendor of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
vendor
fdemello/intersight-python
python
@vendor.setter def vendor(self, vendor): '\n Sets the vendor of this EquipmentChassis.\n\n :param vendor: The vendor of this EquipmentChassis.\n :type: str\n ' self._vendor = vendor
@property def blades(self): '\n Gets the blades of this EquipmentChassis.\n\n :return: The blades of this EquipmentChassis.\n :rtype: list[ComputeBladeRef]\n ' return self._blades
-2,076,659,690,575,531,500
Gets the blades of this EquipmentChassis. :return: The blades of this EquipmentChassis. :rtype: list[ComputeBladeRef]
intersight/models/equipment_chassis.py
blades
fdemello/intersight-python
python
@property def blades(self): '\n Gets the blades of this EquipmentChassis.\n\n :return: The blades of this EquipmentChassis.\n :rtype: list[ComputeBladeRef]\n ' return self._blades
@blades.setter def blades(self, blades): '\n Sets the blades of this EquipmentChassis.\n\n :param blades: The blades of this EquipmentChassis.\n :type: list[ComputeBladeRef]\n ' self._blades = blades
-7,377,899,236,427,372,000
Sets the blades of this EquipmentChassis. :param blades: The blades of this EquipmentChassis. :type: list[ComputeBladeRef]
intersight/models/equipment_chassis.py
blades
fdemello/intersight-python
python
@blades.setter def blades(self, blades): '\n Sets the blades of this EquipmentChassis.\n\n :param blades: The blades of this EquipmentChassis.\n :type: list[ComputeBladeRef]\n ' self._blades = blades
@property def fanmodules(self): '\n Gets the fanmodules of this EquipmentChassis.\n\n :return: The fanmodules of this EquipmentChassis.\n :rtype: list[EquipmentFanModuleRef]\n ' return self._fanmodules
-2,379,875,100,550,353,400
Gets the fanmodules of this EquipmentChassis. :return: The fanmodules of this EquipmentChassis. :rtype: list[EquipmentFanModuleRef]
intersight/models/equipment_chassis.py
fanmodules
fdemello/intersight-python
python
@property def fanmodules(self): '\n Gets the fanmodules of this EquipmentChassis.\n\n :return: The fanmodules of this EquipmentChassis.\n :rtype: list[EquipmentFanModuleRef]\n ' return self._fanmodules
@fanmodules.setter def fanmodules(self, fanmodules): '\n Sets the fanmodules of this EquipmentChassis.\n\n :param fanmodules: The fanmodules of this EquipmentChassis.\n :type: list[EquipmentFanModuleRef]\n ' self._fanmodules = fanmodules
-996,254,179,541,310,600
Sets the fanmodules of this EquipmentChassis. :param fanmodules: The fanmodules of this EquipmentChassis. :type: list[EquipmentFanModuleRef]
intersight/models/equipment_chassis.py
fanmodules
fdemello/intersight-python
python
@fanmodules.setter def fanmodules(self, fanmodules): '\n Sets the fanmodules of this EquipmentChassis.\n\n :param fanmodules: The fanmodules of this EquipmentChassis.\n :type: list[EquipmentFanModuleRef]\n ' self._fanmodules = fanmodules
@property def ioms(self): '\n Gets the ioms of this EquipmentChassis.\n\n :return: The ioms of this EquipmentChassis.\n :rtype: list[EquipmentIoCardRef]\n ' return self._ioms
-283,981,135,645,268,640
Gets the ioms of this EquipmentChassis. :return: The ioms of this EquipmentChassis. :rtype: list[EquipmentIoCardRef]
intersight/models/equipment_chassis.py
ioms
fdemello/intersight-python
python
@property def ioms(self): '\n Gets the ioms of this EquipmentChassis.\n\n :return: The ioms of this EquipmentChassis.\n :rtype: list[EquipmentIoCardRef]\n ' return self._ioms
@ioms.setter def ioms(self, ioms): '\n Sets the ioms of this EquipmentChassis.\n\n :param ioms: The ioms of this EquipmentChassis.\n :type: list[EquipmentIoCardRef]\n ' self._ioms = ioms
7,464,975,318,010,999,000
Sets the ioms of this EquipmentChassis. :param ioms: The ioms of this EquipmentChassis. :type: list[EquipmentIoCardRef]
intersight/models/equipment_chassis.py
ioms
fdemello/intersight-python
python
@ioms.setter def ioms(self, ioms): '\n Sets the ioms of this EquipmentChassis.\n\n :param ioms: The ioms of this EquipmentChassis.\n :type: list[EquipmentIoCardRef]\n ' self._ioms = ioms
@property def oper_state(self): '\n Gets the oper_state of this EquipmentChassis.\n\n :return: The oper_state of this EquipmentChassis.\n :rtype: str\n ' return self._oper_state
2,989,402,908,181,816,000
Gets the oper_state of this EquipmentChassis. :return: The oper_state of this EquipmentChassis. :rtype: str
intersight/models/equipment_chassis.py
oper_state
fdemello/intersight-python
python
@property def oper_state(self): '\n Gets the oper_state of this EquipmentChassis.\n\n :return: The oper_state of this EquipmentChassis.\n :rtype: str\n ' return self._oper_state
@oper_state.setter def oper_state(self, oper_state): '\n Sets the oper_state of this EquipmentChassis.\n\n :param oper_state: The oper_state of this EquipmentChassis.\n :type: str\n ' self._oper_state = oper_state
2,119,176,885,830,340,000
Sets the oper_state of this EquipmentChassis. :param oper_state: The oper_state of this EquipmentChassis. :type: str
intersight/models/equipment_chassis.py
oper_state
fdemello/intersight-python
python
@oper_state.setter def oper_state(self, oper_state): '\n Sets the oper_state of this EquipmentChassis.\n\n :param oper_state: The oper_state of this EquipmentChassis.\n :type: str\n ' self._oper_state = oper_state
@property def psus(self): '\n Gets the psus of this EquipmentChassis.\n\n :return: The psus of this EquipmentChassis.\n :rtype: list[EquipmentPsuRef]\n ' return self._psus
7,552,621,456,630,749,000
Gets the psus of this EquipmentChassis. :return: The psus of this EquipmentChassis. :rtype: list[EquipmentPsuRef]
intersight/models/equipment_chassis.py
psus
fdemello/intersight-python
python
@property def psus(self): '\n Gets the psus of this EquipmentChassis.\n\n :return: The psus of this EquipmentChassis.\n :rtype: list[EquipmentPsuRef]\n ' return self._psus
@psus.setter def psus(self, psus): '\n Sets the psus of this EquipmentChassis.\n\n :param psus: The psus of this EquipmentChassis.\n :type: list[EquipmentPsuRef]\n ' self._psus = psus
5,481,846,992,534,956,000
Sets the psus of this EquipmentChassis. :param psus: The psus of this EquipmentChassis. :type: list[EquipmentPsuRef]
intersight/models/equipment_chassis.py
psus
fdemello/intersight-python
python
@psus.setter def psus(self, psus): '\n Sets the psus of this EquipmentChassis.\n\n :param psus: The psus of this EquipmentChassis.\n :type: list[EquipmentPsuRef]\n ' self._psus = psus
@property def registered_device(self): '\n Gets the registered_device of this EquipmentChassis.\n\n :return: The registered_device of this EquipmentChassis.\n :rtype: AssetDeviceRegistrationRef\n ' return self._registered_device
-955,344,537,030,405,900
Gets the registered_device of this EquipmentChassis. :return: The registered_device of this EquipmentChassis. :rtype: AssetDeviceRegistrationRef
intersight/models/equipment_chassis.py
registered_device
fdemello/intersight-python
python
@property def registered_device(self): '\n Gets the registered_device of this EquipmentChassis.\n\n :return: The registered_device of this EquipmentChassis.\n :rtype: AssetDeviceRegistrationRef\n ' return self._registered_device
@registered_device.setter def registered_device(self, registered_device): '\n Sets the registered_device of this EquipmentChassis.\n\n :param registered_device: The registered_device of this EquipmentChassis.\n :type: AssetDeviceRegistrationRef\n ' self._registered_device = registere...
-3,199,838,068,360,467,500
Sets the registered_device of this EquipmentChassis. :param registered_device: The registered_device of this EquipmentChassis. :type: AssetDeviceRegistrationRef
intersight/models/equipment_chassis.py
registered_device
fdemello/intersight-python
python
@registered_device.setter def registered_device(self, registered_device): '\n Sets the registered_device of this EquipmentChassis.\n\n :param registered_device: The registered_device of this EquipmentChassis.\n :type: AssetDeviceRegistrationRef\n ' self._registered_device = registere...
@property def sasexpanders(self): '\n Gets the sasexpanders of this EquipmentChassis.\n\n :return: The sasexpanders of this EquipmentChassis.\n :rtype: list[StorageSasExpanderRef]\n ' return self._sasexpanders
4,970,616,966,302,048,000
Gets the sasexpanders of this EquipmentChassis. :return: The sasexpanders of this EquipmentChassis. :rtype: list[StorageSasExpanderRef]
intersight/models/equipment_chassis.py
sasexpanders
fdemello/intersight-python
python
@property def sasexpanders(self): '\n Gets the sasexpanders of this EquipmentChassis.\n\n :return: The sasexpanders of this EquipmentChassis.\n :rtype: list[StorageSasExpanderRef]\n ' return self._sasexpanders
@sasexpanders.setter def sasexpanders(self, sasexpanders): '\n Sets the sasexpanders of this EquipmentChassis.\n\n :param sasexpanders: The sasexpanders of this EquipmentChassis.\n :type: list[StorageSasExpanderRef]\n ' self._sasexpanders = sasexpanders
6,319,972,870,893,646,000
Sets the sasexpanders of this EquipmentChassis. :param sasexpanders: The sasexpanders of this EquipmentChassis. :type: list[StorageSasExpanderRef]
intersight/models/equipment_chassis.py
sasexpanders
fdemello/intersight-python
python
@sasexpanders.setter def sasexpanders(self, sasexpanders): '\n Sets the sasexpanders of this EquipmentChassis.\n\n :param sasexpanders: The sasexpanders of this EquipmentChassis.\n :type: list[StorageSasExpanderRef]\n ' self._sasexpanders = sasexpanders
@property def siocs(self): '\n Gets the siocs of this EquipmentChassis.\n\n :return: The siocs of this EquipmentChassis.\n :rtype: list[EquipmentSystemIoControllerRef]\n ' return self._siocs
-6,272,941,836,516,304,000
Gets the siocs of this EquipmentChassis. :return: The siocs of this EquipmentChassis. :rtype: list[EquipmentSystemIoControllerRef]
intersight/models/equipment_chassis.py
siocs
fdemello/intersight-python
python
@property def siocs(self): '\n Gets the siocs of this EquipmentChassis.\n\n :return: The siocs of this EquipmentChassis.\n :rtype: list[EquipmentSystemIoControllerRef]\n ' return self._siocs
@siocs.setter def siocs(self, siocs): '\n Sets the siocs of this EquipmentChassis.\n\n :param siocs: The siocs of this EquipmentChassis.\n :type: list[EquipmentSystemIoControllerRef]\n ' self._siocs = siocs
7,973,869,749,024,284,000
Sets the siocs of this EquipmentChassis. :param siocs: The siocs of this EquipmentChassis. :type: list[EquipmentSystemIoControllerRef]
intersight/models/equipment_chassis.py
siocs
fdemello/intersight-python
python
@siocs.setter def siocs(self, siocs): '\n Sets the siocs of this EquipmentChassis.\n\n :param siocs: The siocs of this EquipmentChassis.\n :type: list[EquipmentSystemIoControllerRef]\n ' self._siocs = siocs
@property def storage_enclosures(self): '\n Gets the storage_enclosures of this EquipmentChassis.\n\n :return: The storage_enclosures of this EquipmentChassis.\n :rtype: list[StorageEnclosureRef]\n ' return self._storage_enclosures
7,754,907,690,592,987,000
Gets the storage_enclosures of this EquipmentChassis. :return: The storage_enclosures of this EquipmentChassis. :rtype: list[StorageEnclosureRef]
intersight/models/equipment_chassis.py
storage_enclosures
fdemello/intersight-python
python
@property def storage_enclosures(self): '\n Gets the storage_enclosures of this EquipmentChassis.\n\n :return: The storage_enclosures of this EquipmentChassis.\n :rtype: list[StorageEnclosureRef]\n ' return self._storage_enclosures
@storage_enclosures.setter def storage_enclosures(self, storage_enclosures): '\n Sets the storage_enclosures of this EquipmentChassis.\n\n :param storage_enclosures: The storage_enclosures of this EquipmentChassis.\n :type: list[StorageEnclosureRef]\n ' self._storage_enclosures = sto...
2,039,931,402,524,658,400
Sets the storage_enclosures of this EquipmentChassis. :param storage_enclosures: The storage_enclosures of this EquipmentChassis. :type: list[StorageEnclosureRef]
intersight/models/equipment_chassis.py
storage_enclosures
fdemello/intersight-python
python
@storage_enclosures.setter def storage_enclosures(self, storage_enclosures): '\n Sets the storage_enclosures of this EquipmentChassis.\n\n :param storage_enclosures: The storage_enclosures of this EquipmentChassis.\n :type: list[StorageEnclosureRef]\n ' self._storage_enclosures = sto...
def to_dict(self): '\n Returns the model properties as a dict\n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), v...
2,191,974,537,531,847,000
Returns the model properties as a dict
intersight/models/equipment_chassis.py
to_dict
fdemello/intersight-python
python
def to_dict(self): '\n \n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to...
def to_str(self): '\n Returns the string representation of the model\n ' return pformat(self.to_dict())
-3,531,024,894,346,511,000
Returns the string representation of the model
intersight/models/equipment_chassis.py
to_str
fdemello/intersight-python
python
def to_str(self): '\n \n ' return pformat(self.to_dict())
def __repr__(self): '\n For `print` and `pprint`\n ' return self.to_str()
5,853,962,500,611,353,000
For `print` and `pprint`
intersight/models/equipment_chassis.py
__repr__
fdemello/intersight-python
python
def __repr__(self): '\n \n ' return self.to_str()
def __eq__(self, other): '\n Returns true if both objects are equal\n ' if (not isinstance(other, EquipmentChassis)): return False return (self.__dict__ == other.__dict__)
8,349,878,811,762,179,000
Returns true if both objects are equal
intersight/models/equipment_chassis.py
__eq__
fdemello/intersight-python
python
def __eq__(self, other): '\n \n ' if (not isinstance(other, EquipmentChassis)): return False return (self.__dict__ == other.__dict__)
def __ne__(self, other): '\n Returns true if both objects are not equal\n ' return (not (self == other))
3,600,423,175,817,510,400
Returns true if both objects are not equal
intersight/models/equipment_chassis.py
__ne__
fdemello/intersight-python
python
def __ne__(self, other): '\n \n ' return (not (self == other))
def main(): '\n To find the highest and lowest temperature, cold days and the average.\n ' print('stanCode "Weather Master 4.0"!') maximum = (- 100000000) minimum = 100000000 total = 0 count = 0 cold_day = 0 while True: temperature = int(input((('Next Temperature: (or ' + s...
-2,519,882,223,176,822,000
To find the highest and lowest temperature, cold days and the average.
stanCode_Projects/weather_master/weather_master.py
main
clairejrlin/stanCode_projects
python
def main(): '\n \n ' print('stanCode "Weather Master 4.0"!') maximum = (- 100000000) minimum = 100000000 total = 0 count = 0 cold_day = 0 while True: temperature = int(input((('Next Temperature: (or ' + str(EXIT)) + ' to quit)? '))) if ((temperature == EXIT) and (co...
def ee_table_to_legend(in_table, out_file): 'Converts an Earth Engine color table to a dictionary\n \n Args:\n in_table (str): The input file path (*.txt) to the Earth Engine color table.\n out_file (str): The output file path (*.txt) to the legend dictionary. \n ' pkg_dir = os.path.dirna...
-3,205,447,828,213,331,000
Converts an Earth Engine color table to a dictionary Args: in_table (str): The input file path (*.txt) to the Earth Engine color table. out_file (str): The output file path (*.txt) to the legend dictionary.
geemap/legends.py
ee_table_to_legend
GSRS/geemap
python
def ee_table_to_legend(in_table, out_file): 'Converts an Earth Engine color table to a dictionary\n \n Args:\n in_table (str): The input file path (*.txt) to the Earth Engine color table.\n out_file (str): The output file path (*.txt) to the legend dictionary. \n ' pkg_dir = os.path.dirna...
def dummy_trace_orbit_func(loc, times=None): '\n Purely for testing purposes\n\n Dummy trace orbit func to skip irrelevant computation\n A little constraint on age (since otherwise its a free floating\n parameter)\n ' if (times is not None): if np.all((times > 1.0)): return (l...
2,413,577,940,947,131,400
Purely for testing purposes Dummy trace orbit func to skip irrelevant computation A little constraint on age (since otherwise its a free floating parameter)
chronostar/naivefit-bak.py
dummy_trace_orbit_func
mikeireland/chronostar
python
def dummy_trace_orbit_func(loc, times=None): '\n Purely for testing purposes\n\n Dummy trace orbit func to skip irrelevant computation\n A little constraint on age (since otherwise its a free floating\n parameter)\n ' if (times is not None): if np.all((times > 1.0)): return (l...
def log_message(msg, symbol='.', surround=False): 'Little formatting helper' res = '{}{:^40}{}'.format((5 * symbol), msg, (5 * symbol)) if surround: res = '\n{}\n{}\n{}'.format((50 * symbol), res, (50 * symbol)) logging.info(res)
-6,724,881,269,071,199,000
Little formatting helper
chronostar/naivefit-bak.py
log_message
mikeireland/chronostar
python
def log_message(msg, symbol='.', surround=False): res = '{}{:^40}{}'.format((5 * symbol), msg, (5 * symbol)) if surround: res = '\n{}\n{}\n{}'.format((50 * symbol), res, (50 * symbol)) logging.info(res)
def __init__(self, fit_pars): '\n Parameters\n ----------\n fit_pars : str -or- dictionary\n If a string, `fit_pars` should be a path to a parameter file which\n can be parsed by readparam.readParam, to construct a dictionary.\n Alternatively, an actual dictiona...
-1,119,155,281,083,345,400
Parameters ---------- fit_pars : str -or- dictionary If a string, `fit_pars` should be a path to a parameter file which can be parsed by readparam.readParam, to construct a dictionary. Alternatively, an actual dictionary can be passed in. See README.md for a description of parameters.
chronostar/naivefit-bak.py
__init__
mikeireland/chronostar
python
def __init__(self, fit_pars): '\n Parameters\n ----------\n fit_pars : str -or- dictionary\n If a string, `fit_pars` should be a path to a parameter file which\n can be parsed by readparam.readParam, to construct a dictionary.\n Alternatively, an actual dictiona...
def build_comps_from_chains(self, run_dir): "\n Build compoennt objects from stored emcee chains and cooresponding\n lnprobs.\n\n Parameters\n ----------\n run_dir: str\n Directory of an EM fit, which in the context of NaiveFit will be\n e.g. 'myfit/1', or 'm...
1,173,593,740,890,240,500
Build compoennt objects from stored emcee chains and cooresponding lnprobs. Parameters ---------- run_dir: str Directory of an EM fit, which in the context of NaiveFit will be e.g. 'myfit/1', or 'myfit/2/A' Returns ------- comps: [Component] A list of components that correspond to the best fit from the ...
chronostar/naivefit-bak.py
build_comps_from_chains
mikeireland/chronostar
python
def build_comps_from_chains(self, run_dir): "\n Build compoennt objects from stored emcee chains and cooresponding\n lnprobs.\n\n Parameters\n ----------\n run_dir: str\n Directory of an EM fit, which in the context of NaiveFit will be\n e.g. 'myfit/1', or 'm...
def log_score_comparison(self, prev, new): '\n Purely a logging helper function.\n Log BIC comparisons.\n\n Parameters\n ----------\n prev: dict\n A dictinoary of scores from the previous run with the following entries\n - bic: the Bayesian Information Criter...
2,617,305,590,642,477,600
Purely a logging helper function. Log BIC comparisons. Parameters ---------- prev: dict A dictinoary of scores from the previous run with the following entries - bic: the Bayesian Information Criterion - lnlike : the log likelihood - lnpost : the log posterior new: dict A dictinoary of scores from ...
chronostar/naivefit-bak.py
log_score_comparison
mikeireland/chronostar
python
def log_score_comparison(self, prev, new): '\n Purely a logging helper function.\n Log BIC comparisons.\n\n Parameters\n ----------\n prev: dict\n A dictinoary of scores from the previous run with the following entries\n - bic: the Bayesian Information Criter...
def build_init_comps(self, prev_comps, split_comp_ix, prev_med_and_spans, memb_probs): "\n Given a list of converged components from a N component fit, generate\n a list of N+1 components with which to initialise an EM run.\n\n This is done by taking the target component, `prev_comps[comp_ix]`,...
-7,115,485,194,683,713,000
Given a list of converged components from a N component fit, generate a list of N+1 components with which to initialise an EM run. This is done by taking the target component, `prev_comps[comp_ix]`, replacing it in the list of comps, by splitting it into two components with a lower and higher age, Parameters --------...
chronostar/naivefit-bak.py
build_init_comps
mikeireland/chronostar
python
def build_init_comps(self, prev_comps, split_comp_ix, prev_med_and_spans, memb_probs): "\n Given a list of converged components from a N component fit, generate\n a list of N+1 components with which to initialise an EM run.\n\n This is done by taking the target component, `prev_comps[comp_ix]`,...
def run_em_unless_loadable(self, run_dir): '\n Run and EM fit, but only if not loadable from a previous run\n\n ' try: try: med_and_spans = np.load(os.path.join(run_dir, 'final/', self.final_med_and_spans_file)) except ValueError: logging.info('med_and_spans...
-5,796,801,986,742,765,000
Run and EM fit, but only if not loadable from a previous run
chronostar/naivefit-bak.py
run_em_unless_loadable
mikeireland/chronostar
python
def run_em_unless_loadable(self, run_dir): '\n \n\n ' try: try: med_and_spans = np.load(os.path.join(run_dir, 'final/', self.final_med_and_spans_file)) except ValueError: logging.info('med_and_spans not read. Presumably you are using gradient descent optimis...
def calc_score(self, comps, memb_probs): '\n Calculate global score of fit for comparison with future fits with different\n component counts\n\n Parameters\n ----------\n :param comps:\n :param memb_probs:\n :return:\n\n TODO: Establish relevance of bg_ln_ols\...
-5,439,076,067,232,939,000
Calculate global score of fit for comparison with future fits with different component counts Parameters ---------- :param comps: :param memb_probs: :return: TODO: Establish relevance of bg_ln_ols
chronostar/naivefit-bak.py
calc_score
mikeireland/chronostar
python
def calc_score(self, comps, memb_probs): '\n Calculate global score of fit for comparison with future fits with different\n component counts\n\n Parameters\n ----------\n :param comps:\n :param memb_probs:\n :return:\n\n TODO: Establish relevance of bg_ln_ols\...
def run_fit(self): "\n Perform a fit (as described in Paper I) to a set of prepared data.\n\n Results are outputted as two dictionaries\n results = {'comps':best_fit, (list of components)\n 'med_and_spans':median and spans of model parameters,\n 'memb_probs':...
7,838,494,438,511,895,000
Perform a fit (as described in Paper I) to a set of prepared data. Results are outputted as two dictionaries results = {'comps':best_fit, (list of components) 'med_and_spans':median and spans of model parameters, 'memb_probs': membership probability array (the standard one)} scores = {'bic': the...
chronostar/naivefit-bak.py
run_fit
mikeireland/chronostar
python
def run_fit(self): "\n Perform a fit (as described in Paper I) to a set of prepared data.\n\n Results are outputted as two dictionaries\n results = {'comps':best_fit, (list of components)\n 'med_and_spans':median and spans of model parameters,\n 'memb_probs':...
@click.command(name='cache.files', help='List files in state cache diretory') @default_state_options def files(state, datefilter=''): 'List files in state cache diretory\n\n State is required. Optionally provide a date \n filter to limit results.\n\n NOTE: Cache must be populated in order to load data.\n ...
1,475,680,113,284,084,700
List files in state cache diretory State is required. Optionally provide a date filter to limit results. NOTE: Cache must be populated in order to load data.
openelex/tasks/cache.py
files
ColCarroll/openelections-core
python
@click.command(name='cache.files', help='List files in state cache diretory') @default_state_options def files(state, datefilter=): 'List files in state cache diretory\n\n State is required. Optionally provide a date \n filter to limit results.\n\n NOTE: Cache must be populated in order to load data.\n ...
@click.command(name='cache.clear', help='Delete files in state cache diretory') @default_state_options def clear(state, datefilter=''): 'Delete files in state cache diretory\n\n State is required. Optionally provide a date\n filter to limit results.\n ' cache = StateCache(state) cache.clear(datefil...
-8,522,599,112,594,594,000
Delete files in state cache diretory State is required. Optionally provide a date filter to limit results.
openelex/tasks/cache.py
clear
ColCarroll/openelections-core
python
@click.command(name='cache.clear', help='Delete files in state cache diretory') @default_state_options def clear(state, datefilter=): 'Delete files in state cache diretory\n\n State is required. Optionally provide a date\n filter to limit results.\n ' cache = StateCache(state) cache.clear(datefilte...
async def async_setup(hass, yaml_config): 'Activate the emulated_hue component.' config = Config(hass, yaml_config.get(DOMAIN, {})) app = web.Application() app['hass'] = hass real_ip.setup_real_ip(app, False, []) app._on_startup.freeze() (await app.startup()) runner = None site = Non...
2,128,652,928,823,814,100
Activate the emulated_hue component.
homeassistant/components/emulated_hue/__init__.py
async_setup
0x00-0xFF/home-assistant
python
async def async_setup(hass, yaml_config): config = Config(hass, yaml_config.get(DOMAIN, {})) app = web.Application() app['hass'] = hass real_ip.setup_real_ip(app, False, []) app._on_startup.freeze() (await app.startup()) runner = None site = None DescriptionXmlView(config).regis...
def _load_json(filename): 'Wrapper, because we actually want to handle invalid json.' try: return load_json(filename) except HomeAssistantError: pass return {}
-2,627,731,872,973,515,000
Wrapper, because we actually want to handle invalid json.
homeassistant/components/emulated_hue/__init__.py
_load_json
0x00-0xFF/home-assistant
python
def _load_json(filename): try: return load_json(filename) except HomeAssistantError: pass return {}
async def stop_emulated_hue_bridge(event): 'Stop the emulated hue bridge.' upnp_listener.stop() if site: (await site.stop()) if runner: (await runner.cleanup())
-2,079,382,594,621,797,000
Stop the emulated hue bridge.
homeassistant/components/emulated_hue/__init__.py
stop_emulated_hue_bridge
0x00-0xFF/home-assistant
python
async def stop_emulated_hue_bridge(event): upnp_listener.stop() if site: (await site.stop()) if runner: (await runner.cleanup())
async def start_emulated_hue_bridge(event): 'Start the emulated hue bridge.' upnp_listener.start() nonlocal site nonlocal runner runner = web.AppRunner(app) (await runner.setup()) site = web.TCPSite(runner, config.host_ip_addr, config.listen_port) try: (await site.start()) ex...
-1,601,674,871,553,881,000
Start the emulated hue bridge.
homeassistant/components/emulated_hue/__init__.py
start_emulated_hue_bridge
0x00-0xFF/home-assistant
python
async def start_emulated_hue_bridge(event): upnp_listener.start() nonlocal site nonlocal runner runner = web.AppRunner(app) (await runner.setup()) site = web.TCPSite(runner, config.host_ip_addr, config.listen_port) try: (await site.start()) except OSError as error: _...
def __init__(self, hass, conf): 'Initialize the instance.' self.hass = hass self.type = conf.get(CONF_TYPE) self.numbers = None self.cached_states = {} if (self.type == TYPE_ALEXA): _LOGGER.warning('Emulated Hue running in legacy mode because type has been specified. More info at https:/...
-4,658,504,909,304,408,000
Initialize the instance.
homeassistant/components/emulated_hue/__init__.py
__init__
0x00-0xFF/home-assistant
python
def __init__(self, hass, conf): self.hass = hass self.type = conf.get(CONF_TYPE) self.numbers = None self.cached_states = {} if (self.type == TYPE_ALEXA): _LOGGER.warning('Emulated Hue running in legacy mode because type has been specified. More info at https://goo.gl/M6tgz8') self....
def entity_id_to_number(self, entity_id): 'Get a unique number for the entity id.' if (self.type == TYPE_ALEXA): return entity_id if (self.numbers is None): self.numbers = _load_json(self.hass.config.path(NUMBERS_FILE)) for (number, ent_id) in self.numbers.items(): if (entity_id ...
-1,633,032,628,719,011,600
Get a unique number for the entity id.
homeassistant/components/emulated_hue/__init__.py
entity_id_to_number
0x00-0xFF/home-assistant
python
def entity_id_to_number(self, entity_id): if (self.type == TYPE_ALEXA): return entity_id if (self.numbers is None): self.numbers = _load_json(self.hass.config.path(NUMBERS_FILE)) for (number, ent_id) in self.numbers.items(): if (entity_id == ent_id): return number ...
def number_to_entity_id(self, number): 'Convert unique number to entity id.' if (self.type == TYPE_ALEXA): return number if (self.numbers is None): self.numbers = _load_json(self.hass.config.path(NUMBERS_FILE)) assert isinstance(number, str) return self.numbers.get(number)
-6,532,583,345,988,421,000
Convert unique number to entity id.
homeassistant/components/emulated_hue/__init__.py
number_to_entity_id
0x00-0xFF/home-assistant
python
def number_to_entity_id(self, number): if (self.type == TYPE_ALEXA): return number if (self.numbers is None): self.numbers = _load_json(self.hass.config.path(NUMBERS_FILE)) assert isinstance(number, str) return self.numbers.get(number)
def get_entity_name(self, entity): 'Get the name of an entity.' if ((entity.entity_id in self.entities) and (CONF_ENTITY_NAME in self.entities[entity.entity_id])): return self.entities[entity.entity_id][CONF_ENTITY_NAME] return entity.attributes.get(ATTR_EMULATED_HUE_NAME, entity.name)
7,057,863,674,962,129,000
Get the name of an entity.
homeassistant/components/emulated_hue/__init__.py
get_entity_name
0x00-0xFF/home-assistant
python
def get_entity_name(self, entity): if ((entity.entity_id in self.entities) and (CONF_ENTITY_NAME in self.entities[entity.entity_id])): return self.entities[entity.entity_id][CONF_ENTITY_NAME] return entity.attributes.get(ATTR_EMULATED_HUE_NAME, entity.name)
def is_entity_exposed(self, entity): 'Determine if an entity should be exposed on the emulated bridge.\n\n Async friendly.\n ' if (entity.attributes.get('view') is not None): return False domain = entity.domain.lower() explicit_expose = entity.attributes.get(ATTR_EMULATED_HUE, None...
-1,462,506,348,889,897,000
Determine if an entity should be exposed on the emulated bridge. Async friendly.
homeassistant/components/emulated_hue/__init__.py
is_entity_exposed
0x00-0xFF/home-assistant
python
def is_entity_exposed(self, entity): 'Determine if an entity should be exposed on the emulated bridge.\n\n Async friendly.\n ' if (entity.attributes.get('view') is not None): return False domain = entity.domain.lower() explicit_expose = entity.attributes.get(ATTR_EMULATED_HUE, None...
def __init__(self): '\n ESMInterfaceTypeData - a model defined in Swagger\n\n :param dict swaggerTypes: The key is attribute name\n and the value is attribute type.\n :param dict attributeMap: The key is attribute name\n and the ...
2,766,354,809,802,065,000
ESMInterfaceTypeData - a model defined in Swagger :param dict swaggerTypes: The key is attribute name and the value is attribute type. :param dict attributeMap: The key is attribute name and the value is json key in definition.
netapp/santricity/models/symbol/esm_interface_type_data.py
__init__
NetApp/santricity-webapi-pythonsdk
python
def __init__(self): '\n ESMInterfaceTypeData - a model defined in Swagger\n\n :param dict swaggerTypes: The key is attribute name\n and the value is attribute type.\n :param dict attributeMap: The key is attribute name\n and the ...
@property def io_interface_type(self): '\n Gets the io_interface_type of this ESMInterfaceTypeData.\n This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller.\n\n :return: The io_interface_type of this...
-4,076,907,369,107,872,000
Gets the io_interface_type of this ESMInterfaceTypeData. This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller. :return: The io_interface_type of this ESMInterfaceTypeData. :rtype: str :required/optional: required
netapp/santricity/models/symbol/esm_interface_type_data.py
io_interface_type
NetApp/santricity-webapi-pythonsdk
python
@property def io_interface_type(self): '\n Gets the io_interface_type of this ESMInterfaceTypeData.\n This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller.\n\n :return: The io_interface_type of this...
@io_interface_type.setter def io_interface_type(self, io_interface_type): '\n Sets the io_interface_type of this ESMInterfaceTypeData.\n This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller.\n\n :pa...
7,809,298,042,549,681,000
Sets the io_interface_type of this ESMInterfaceTypeData. This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller. :param io_interface_type: The io_interface_type of this ESMInterfaceTypeData. :type: str
netapp/santricity/models/symbol/esm_interface_type_data.py
io_interface_type
NetApp/santricity-webapi-pythonsdk
python
@io_interface_type.setter def io_interface_type(self, io_interface_type): '\n Sets the io_interface_type of this ESMInterfaceTypeData.\n This enumeration defines the different I/O interface types that may be reported as part of the configuration information associated with a controller.\n\n :pa...
@property def port_list(self): '\n Gets the port_list of this ESMInterfaceTypeData.\n A list of detailed information for each port.\n\n :return: The port_list of this ESMInterfaceTypeData.\n :rtype: PortList\n :required/optional: optional\n ' return self._port_list
5,520,007,831,716,388,000
Gets the port_list of this ESMInterfaceTypeData. A list of detailed information for each port. :return: The port_list of this ESMInterfaceTypeData. :rtype: PortList :required/optional: optional
netapp/santricity/models/symbol/esm_interface_type_data.py
port_list
NetApp/santricity-webapi-pythonsdk
python
@property def port_list(self): '\n Gets the port_list of this ESMInterfaceTypeData.\n A list of detailed information for each port.\n\n :return: The port_list of this ESMInterfaceTypeData.\n :rtype: PortList\n :required/optional: optional\n ' return self._port_list
@port_list.setter def port_list(self, port_list): '\n Sets the port_list of this ESMInterfaceTypeData.\n A list of detailed information for each port.\n\n :param port_list: The port_list of this ESMInterfaceTypeData.\n :type: PortList\n ' self._port_list = port_list
5,297,459,435,244,345,000
Sets the port_list of this ESMInterfaceTypeData. A list of detailed information for each port. :param port_list: The port_list of this ESMInterfaceTypeData. :type: PortList
netapp/santricity/models/symbol/esm_interface_type_data.py
port_list
NetApp/santricity-webapi-pythonsdk
python
@port_list.setter def port_list(self, port_list): '\n Sets the port_list of this ESMInterfaceTypeData.\n A list of detailed information for each port.\n\n :param port_list: The port_list of this ESMInterfaceTypeData.\n :type: PortList\n ' self._port_list = port_list
def to_dict(self): '\n Returns the model properties as a dict\n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), v...
2,191,974,537,531,847,000
Returns the model properties as a dict
netapp/santricity/models/symbol/esm_interface_type_data.py
to_dict
NetApp/santricity-webapi-pythonsdk
python
def to_dict(self): '\n \n ' result = {} for (attr, _) in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value)) elif hasattr(value, 'to...
def to_str(self): '\n Returns the string representation of the model\n ' return pformat(self.to_dict())
-3,531,024,894,346,511,000
Returns the string representation of the model
netapp/santricity/models/symbol/esm_interface_type_data.py
to_str
NetApp/santricity-webapi-pythonsdk
python
def to_str(self): '\n \n ' return pformat(self.to_dict())
def __repr__(self): '\n For `print` and `pprint`\n ' if (self is None): return None return self.to_str()
6,088,887,181,750,408,000
For `print` and `pprint`
netapp/santricity/models/symbol/esm_interface_type_data.py
__repr__
NetApp/santricity-webapi-pythonsdk
python
def __repr__(self): '\n \n ' if (self is None): return None return self.to_str()
def __eq__(self, other): '\n Returns true if both objects are equal\n ' if ((self is None) or (other is None)): return None return (self.__dict__ == other.__dict__)
6,708,289,971,086,792,000
Returns true if both objects are equal
netapp/santricity/models/symbol/esm_interface_type_data.py
__eq__
NetApp/santricity-webapi-pythonsdk
python
def __eq__(self, other): '\n \n ' if ((self is None) or (other is None)): return None return (self.__dict__ == other.__dict__)
def __ne__(self, other): '\n Returns true if both objects are not equal\n ' return (not (self == other))
3,600,423,175,817,510,400
Returns true if both objects are not equal
netapp/santricity/models/symbol/esm_interface_type_data.py
__ne__
NetApp/santricity-webapi-pythonsdk
python
def __ne__(self, other): '\n \n ' return (not (self == other))
def ParseOptions(): 'Parses the command line options.\n\n In case of command line errors, it will show the usage and exit the\n program.\n\n @return: the options in a tuple\n\n ' parser = optparse.OptionParser() parser.add_option('-t', dest='thread_count', default=1, type='int', help='Number of threads'...
-5,343,402,722,454,307,000
Parses the command line options. In case of command line errors, it will show the usage and exit the program. @return: the options in a tuple
test/py/lockperf.py
ParseOptions
RegioHelden/ganeti
python
def ParseOptions(): 'Parses the command line options.\n\n In case of command line errors, it will show the usage and exit the\n program.\n\n @return: the options in a tuple\n\n ' parser = optparse.OptionParser() parser.add_option('-t', dest='thread_count', default=1, type='int', help='Number of threads'...
def _Counter(lock, state, me): 'Thread function for acquiring locks.\n\n ' counts = state.counts verify = state.verify while True: lock.acquire() try: verify[me] = 1 counts[me] += 1 state.total_count += 1 if ((state.total_count % 1000) == ...
6,262,570,621,122,128,000
Thread function for acquiring locks.
test/py/lockperf.py
_Counter
RegioHelden/ganeti
python
def _Counter(lock, state, me): '\n\n ' counts = state.counts verify = state.verify while True: lock.acquire() try: verify[me] = 1 counts[me] += 1 state.total_count += 1 if ((state.total_count % 1000) == 0): sys.stdout.write...
def __init__(self, thread_count): 'Initializes this class.\n\n ' self.verify = [0 for _ in range(thread_count)] self.counts = [0 for _ in range(thread_count)] self.total_count = 0
5,832,565,340,899,158,000
Initializes this class.
test/py/lockperf.py
__init__
RegioHelden/ganeti
python
def __init__(self, thread_count): '\n\n ' self.verify = [0 for _ in range(thread_count)] self.counts = [0 for _ in range(thread_count)] self.total_count = 0
def get_network(name, batch_size): 'Get the symbol definition and random weight of a network' input_shape = (batch_size, 3, 224, 224) output_shape = (batch_size, 1000) if ('resnet' in name): n_layer = int(name.split('-')[1]) (mod, params) = relay.testing.resnet.get_workload(num_layers=n_...
-8,848,266,499,118,495,000
Get the symbol definition and random weight of a network
tutorials/autotvm/tune_relay_mobile_gpu.py
get_network
HemiMin/tvm
python
def get_network(name, batch_size): input_shape = (batch_size, 3, 224, 224) output_shape = (batch_size, 1000) if ('resnet' in name): n_layer = int(name.split('-')[1]) (mod, params) = relay.testing.resnet.get_workload(num_layers=n_layer, batch_size=batch_size, dtype=dtype) elif ('vgg'...
def before_fork(self): '\n Called before the database instance is given to the new process\n ' pass
7,063,914,639,212,521,000
Called before the database instance is given to the new process
dejavu/database.py
before_fork
KundanGaira/dejavu
python
def before_fork(self): '\n \n ' pass
def after_fork(self): '\n Called after the database instance has been given to the new process\n\n This will be called in the new process.\n ' pass
1,941,101,492,828,343,000
Called after the database instance has been given to the new process This will be called in the new process.
dejavu/database.py
after_fork
KundanGaira/dejavu
python
def after_fork(self): '\n Called after the database instance has been given to the new process\n\n This will be called in the new process.\n ' pass
def setup(self): '\n Called on creation or shortly afterwards.\n ' pass
5,840,900,101,847,430,000
Called on creation or shortly afterwards.
dejavu/database.py
setup
KundanGaira/dejavu
python
def setup(self): '\n \n ' pass
@abc.abstractmethod def empty(self): '\n Called when the database should be cleared of all data.\n ' pass
-7,798,511,590,989,507,000
Called when the database should be cleared of all data.
dejavu/database.py
empty
KundanGaira/dejavu
python
@abc.abstractmethod def empty(self): '\n \n ' pass
@abc.abstractmethod def delete_unfingerprinted_songs(self): '\n Called to remove any song entries that do not have any fingerprints\n associated with them.\n ' pass
7,479,374,714,272,975,000
Called to remove any song entries that do not have any fingerprints associated with them.
dejavu/database.py
delete_unfingerprinted_songs
KundanGaira/dejavu
python
@abc.abstractmethod def delete_unfingerprinted_songs(self): '\n Called to remove any song entries that do not have any fingerprints\n associated with them.\n ' pass
@abc.abstractmethod def get_num_songs(self): '\n Returns the amount of songs in the database.\n ' pass
2,847,167,348,001,796,000
Returns the amount of songs in the database.
dejavu/database.py
get_num_songs
KundanGaira/dejavu
python
@abc.abstractmethod def get_num_songs(self): '\n \n ' pass
@abc.abstractmethod def get_num_fingerprints(self): '\n Returns the number of fingerprints in the database.\n ' pass
1,746,305,380,041,930,200
Returns the number of fingerprints in the database.
dejavu/database.py
get_num_fingerprints
KundanGaira/dejavu
python
@abc.abstractmethod def get_num_fingerprints(self): '\n \n ' pass
@abc.abstractmethod def set_song_fingerprinted(self, sid): '\n Sets a specific song as having all fingerprints in the database.\n\n sid: Song identifier\n ' pass
-3,826,436,828,348,414,000
Sets a specific song as having all fingerprints in the database. sid: Song identifier
dejavu/database.py
set_song_fingerprinted
KundanGaira/dejavu
python
@abc.abstractmethod def set_song_fingerprinted(self, sid): '\n Sets a specific song as having all fingerprints in the database.\n\n sid: Song identifier\n ' pass
@abc.abstractmethod def get_songs(self): '\n Returns all fully fingerprinted songs in the database.\n ' pass
4,643,965,191,770,006,000
Returns all fully fingerprinted songs in the database.
dejavu/database.py
get_songs
KundanGaira/dejavu
python
@abc.abstractmethod def get_songs(self): '\n \n ' pass
@abc.abstractmethod def get_song_by_id(self, sid): '\n Return a song by its identifier\n\n sid: Song identifier\n ' pass
5,484,600,104,413,045,000
Return a song by its identifier sid: Song identifier
dejavu/database.py
get_song_by_id
KundanGaira/dejavu
python
@abc.abstractmethod def get_song_by_id(self, sid): '\n Return a song by its identifier\n\n sid: Song identifier\n ' pass
@abc.abstractmethod def insert(self, hash, sid, offset): '\n Inserts a single fingerprint into the database.\n\n hash: Part of a sha1 hash, in hexadecimal format\n sid: Song identifier this fingerprint is off\n offset: The offset this hash is from\n ' pass
-3,168,379,884,000,369,700
Inserts a single fingerprint into the database. hash: Part of a sha1 hash, in hexadecimal format sid: Song identifier this fingerprint is off offset: The offset this hash is from
dejavu/database.py
insert
KundanGaira/dejavu
python
@abc.abstractmethod def insert(self, hash, sid, offset): '\n Inserts a single fingerprint into the database.\n\n hash: Part of a sha1 hash, in hexadecimal format\n sid: Song identifier this fingerprint is off\n offset: The offset this hash is from\n ' pass
@abc.abstractmethod def insert_song(self, song_name): '\n Inserts a song name into the database, returns the new\n identifier of the song.\n\n song_name: The name of the song.\n ' pass
7,611,623,995,054,936,000
Inserts a song name into the database, returns the new identifier of the song. song_name: The name of the song.
dejavu/database.py
insert_song
KundanGaira/dejavu
python
@abc.abstractmethod def insert_song(self, song_name): '\n Inserts a song name into the database, returns the new\n identifier of the song.\n\n song_name: The name of the song.\n ' pass
@abc.abstractmethod def query(self, hash): '\n Returns all matching fingerprint entries associated with\n the given hash as parameter.\n\n hash: Part of a sha1 hash, in hexadecimal format\n ' pass
-6,147,768,251,485,444,000
Returns all matching fingerprint entries associated with the given hash as parameter. hash: Part of a sha1 hash, in hexadecimal format
dejavu/database.py
query
KundanGaira/dejavu
python
@abc.abstractmethod def query(self, hash): '\n Returns all matching fingerprint entries associated with\n the given hash as parameter.\n\n hash: Part of a sha1 hash, in hexadecimal format\n ' pass
@abc.abstractmethod def get_iterable_kv_pairs(self): '\n Returns all fingerprints in the database.\n ' pass
-1,993,576,924,303,589,600
Returns all fingerprints in the database.
dejavu/database.py
get_iterable_kv_pairs
KundanGaira/dejavu
python
@abc.abstractmethod def get_iterable_kv_pairs(self): '\n \n ' pass
@abc.abstractmethod def insert_hashes(self, sid, hashes): '\n Insert a multitude of fingerprints.\n\n sid: Song identifier the fingerprints belong to\n hashes: A sequence of tuples in the format (hash, offset)\n - hash: Part of a sha1 hash, in hexadecimal format\n - offset: O...
2,167,338,825,815,032,600
Insert a multitude of fingerprints. sid: Song identifier the fingerprints belong to hashes: A sequence of tuples in the format (hash, offset) - hash: Part of a sha1 hash, in hexadecimal format - offset: Offset this hash was created from/at.
dejavu/database.py
insert_hashes
KundanGaira/dejavu
python
@abc.abstractmethod def insert_hashes(self, sid, hashes): '\n Insert a multitude of fingerprints.\n\n sid: Song identifier the fingerprints belong to\n hashes: A sequence of tuples in the format (hash, offset)\n - hash: Part of a sha1 hash, in hexadecimal format\n - offset: O...
@abc.abstractmethod def return_matches(self, hashes): '\n Searches the database for pairs of (hash, offset) values.\n\n hashes: A sequence of tuples in the format (hash, offset)\n - hash: Part of a sha1 hash, in hexadecimal format\n - offset: Offset this hash was created from/at.\n\n ...
-780,021,137,811,145,500
Searches the database for pairs of (hash, offset) values. hashes: A sequence of tuples in the format (hash, offset) - hash: Part of a sha1 hash, in hexadecimal format - offset: Offset this hash was created from/at. Returns a sequence of (sid, offset_difference) tuples. sid: Song identifier offset_dif...
dejavu/database.py
return_matches
KundanGaira/dejavu
python
@abc.abstractmethod def return_matches(self, hashes): '\n Searches the database for pairs of (hash, offset) values.\n\n hashes: A sequence of tuples in the format (hash, offset)\n - hash: Part of a sha1 hash, in hexadecimal format\n - offset: Offset this hash was created from/at.\n\n ...