Source code for ucsmsdk.mometa.firmware.FirmwareComponentSpec

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

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


[docs]class FirmwareComponentSpecConsts: EXCLUDE_BY_DEFAULT_FALSE = "false" EXCLUDE_BY_DEFAULT_NO = "no" EXCLUDE_BY_DEFAULT_TRUE = "true" EXCLUDE_BY_DEFAULT_YES = "yes" TYPE_ADAPTOR = "adaptor" TYPE_BLADE_BIOS = "blade-bios" TYPE_BLADE_CONTROLLER = "blade-controller" TYPE_BOARD_CONTROLLER = "board-controller" TYPE_FLEXFLASH_CONTROLLER = "flexflash-controller" TYPE_GRAPHICS_CARD = "graphics-card" TYPE_HOST_HBA = "host-hba" TYPE_HOST_HBA_OPTIONROM = "host-hba-optionrom" TYPE_HOST_NIC = "host-nic" TYPE_HOST_NIC_OPTIONROM = "host-nic-optionrom" TYPE_LOCAL_DISK = "local-disk" TYPE_PSU = "psu" TYPE_SAS_EXP_REG_FW = "sas-exp-reg-fw" TYPE_SAS_EXPANDER = "sas-expander" TYPE_STORAGE_CONTROLLER = "storage-controller" TYPE_STORAGE_CONTROLLER_ONBOARD_DEVICE = "storage-controller-onboard-device" TYPE_STORAGE_CONTROLLER_ONBOARD_DEVICE_CPLD = "storage-controller-onboard-device-cpld" TYPE_STORAGE_DEV_BRIDGE = "storage-dev-bridge" TYPE_UNSPECIFIED = "unspecified"
[docs]class FirmwareComponentSpec(ManagedObject): """This is FirmwareComponentSpec class.""" consts = FirmwareComponentSpecConsts() naming_props = set([u'type']) mo_meta = MoMeta("FirmwareComponentSpec", "firmwareComponentSpec", "component-spec-[type]", VersionMeta.Version227b, "InputOutput", 0x3f, [], [""], [u'firmwareBundleTypeCapProvider'], [], [None]) prop_meta = { "child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version227b, MoPropertyMeta.INTERNAL, 0x2, None, None, r"""((deleteAll|ignore|deleteNonPresent),){0,2}(deleteAll|ignore|deleteNonPresent){0,1}""", [], []), "dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version227b, MoPropertyMeta.READ_ONLY, 0x4, 0, 256, None, [], []), "exclude_by_default": MoPropertyMeta("exclude_by_default", "excludeByDefault", "string", VersionMeta.Version227b, MoPropertyMeta.READ_ONLY, None, None, None, None, ["false", "no", "true", "yes"], []), "rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version227b, MoPropertyMeta.READ_ONLY, 0x8, 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.Version227b, MoPropertyMeta.READ_WRITE, 0x10, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []), "type": MoPropertyMeta("type", "type", "string", VersionMeta.Version227b, MoPropertyMeta.NAMING, 0x20, None, None, None, ["adaptor", "blade-bios", "blade-controller", "board-controller", "flexflash-controller", "graphics-card", "host-hba", "host-hba-optionrom", "host-nic", "host-nic-optionrom", "local-disk", "psu", "sas-exp-reg-fw", "sas-expander", "storage-controller", "storage-controller-onboard-device", "storage-controller-onboard-device-cpld", "storage-dev-bridge", "unspecified"], []), } prop_map = { "childAction": "child_action", "dn": "dn", "excludeByDefault": "exclude_by_default", "rn": "rn", "sacl": "sacl", "status": "status", "type": "type", } def __init__(self, parent_mo_or_dn, type, **kwargs): self._dirty_mask = 0 self.type = type self.child_action = None self.exclude_by_default = None self.sacl = None self.status = None ManagedObject.__init__(self, "FirmwareComponentSpec", parent_mo_or_dn, **kwargs)