Source code for ucsmsdk.mometa.equipment.EquipmentBinding

"""This module contains the general information for EquipmentBinding ManagedObject."""

from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta


[docs]class EquipmentBindingConsts: OPER_STATE_FAILED_TO_APPLY = "failed-to-apply" OPER_STATE_UNUSED = "unused" OPER_STATE_USED = "used" RESTRICT_MIGRATION_FALSE = "false" RESTRICT_MIGRATION_NO = "no" RESTRICT_MIGRATION_TRUE = "true" RESTRICT_MIGRATION_YES = "yes"
[docs]class EquipmentBinding(ManagedObject): """This is EquipmentBinding class.""" consts = EquipmentBindingConsts() naming_props = set([]) mo_meta = MoMeta("EquipmentBinding", "equipmentBinding", "chassis", VersionMeta.Version911z, "InputOutput", 0x7f, [], ["admin", "pn-equipment", "pn-maintenance", "pn-policy", "read-only"], [u'equipmentChassisProfile'], [], [None]) prop_meta = { "assigned_to_dn": MoPropertyMeta("assigned_to_dn", "assignedToDn", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, 0, 256, None, [], []), "chassis_dn": MoPropertyMeta("chassis_dn", "chassisDn", "string", VersionMeta.Version911z, MoPropertyMeta.READ_WRITE, 0x2, 0, 256, None, [], []), "child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version911z, MoPropertyMeta.INTERNAL, 0x4, None, None, r"""((deleteAll|ignore|deleteNonPresent),){0,2}(deleteAll|ignore|deleteNonPresent){0,1}""", [], []), "dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, 0x8, 0, 256, None, [], []), "issues": MoPropertyMeta("issues", "issues", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, None, None, r"""((defaultValue|not-applicable|chassis-profile-not-supported|migration|non-interrupt-fsm-running|insufficient-resources|physical-requirement|chassis-undiscovered|resource-ownership-conflict|chassis-unavailable|invalid-chassis-pack|missing-firmware-image|insufficient-power-budget),){0,12}(defaultValue|not-applicable|chassis-profile-not-supported|migration|non-interrupt-fsm-running|insufficient-resources|physical-requirement|chassis-undiscovered|resource-ownership-conflict|chassis-unavailable|invalid-chassis-pack|missing-firmware-image|insufficient-power-budget){0,1}""", [], []), "name": MoPropertyMeta("name", "name", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []), "oper_state": MoPropertyMeta("oper_state", "operState", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, None, None, None, ["failed-to-apply", "unused", "used"], []), "prop_acl": MoPropertyMeta("prop_acl", "propAcl", "ulong", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []), "restrict_migration": MoPropertyMeta("restrict_migration", "restrictMigration", "string", VersionMeta.Version911z, MoPropertyMeta.READ_WRITE, 0x10, None, None, None, ["false", "no", "true", "yes"], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, 0x20, 0, 256, None, [], []), "sacl": MoPropertyMeta("sacl", "sacl", "string", VersionMeta.Version911z, MoPropertyMeta.READ_ONLY, None, None, None, r"""((none|del|mod|addchild|cascade),){0,4}(none|del|mod|addchild|cascade){0,1}""", [], []), "status": MoPropertyMeta("status", "status", "string", VersionMeta.Version911z, MoPropertyMeta.READ_WRITE, 0x40, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), } prop_map = { "assignedToDn": "assigned_to_dn", "chassisDn": "chassis_dn", "childAction": "child_action", "dn": "dn", "issues": "issues", "name": "name", "operState": "oper_state", "propAcl": "prop_acl", "restrictMigration": "restrict_migration", "rn": "rn", "sacl": "sacl", "status": "status", } def __init__(self, parent_mo_or_dn, **kwargs): self._dirty_mask = 0 self.assigned_to_dn = None self.chassis_dn = None self.child_action = None self.issues = None self.name = None self.oper_state = None self.prop_acl = None self.restrict_migration = None self.sacl = None self.status = None ManagedObject.__init__(self, "EquipmentBinding", parent_mo_or_dn, **kwargs)