Source code for imcsdk.mometa.lsboot.LsbootVMedia
"""This module contains the general information for LsbootVMedia ManagedObject."""
from ...imcmo import ManagedObject
from ...imccoremeta import MoPropertyMeta, MoMeta
from ...imcmeta import VersionMeta
[docs]class LsbootVMediaConsts:
ACCESS_ = ""
ACCESS_READ_ONLY_LOCAL = "read-only-local"
ACCESS_READ_ONLY_REMOTE = "read-only-remote"
ACCESS_READ_WRITE_DRIVE = "read-write-drive"
ACCESS_READ_WRITE_LOCAL = "read-write-local"
ACCESS_READ_WRITE_REMOTE = "read-write-remote"
STATE_DISABLED = "Disabled"
STATE_ENABLED = "Enabled"
SUBTYPE_ = ""
SUBTYPE_CIMC_MAPPED_DVD = "cimc-mapped-dvd"
SUBTYPE_CIMC_MAPPED_HDD = "cimc-mapped-hdd"
SUBTYPE_KVM_MAPPED_DVD = "kvm-mapped-dvd"
SUBTYPE_KVM_MAPPED_FDD = "kvm-mapped-fdd"
SUBTYPE_KVM_MAPPED_HDD = "kvm-mapped-hdd"
TYPE_VMEDIA = "VMEDIA"
[docs]class LsbootVMedia(ManagedObject):
"""This is LsbootVMedia class."""
consts = LsbootVMediaConsts()
naming_props = set([u'name'])
mo_meta = MoMeta("LsbootVMedia", "lsbootVMedia", "vm-[name]", VersionMeta.Version201a, "InputOutput", 0x3ff, [], ["admin", "read-only", "user"], [u'lsbootDevPrecision'], [], ["Add", "Get", "Remove", "Set"])
prop_meta = {
"access": MoPropertyMeta("access", "access", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x2, None, None, None, ["", "read-only-local", "read-only-remote", "read-write-drive", "read-write-local", "read-write-remote"], []),
"child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version201a, MoPropertyMeta.INTERNAL, None, None, None, None, [], []),
"dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x4, 0, 255, None, [], []),
"name": MoPropertyMeta("name", "name", "string", VersionMeta.Version201a, MoPropertyMeta.NAMING, 0x8, None, None, r"""(([a-zA-Z0-9]{1})|([a-zA-Z0-9]{1}[a-zA-Z0-9_\-]{0,28}[a-zA-Z0-9]{1})|([a-zA-Z0-9]{2}))""", [], []),
"order": MoPropertyMeta("order", "order", "uint", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x10, None, None, None, [], ["1-255"]),
"rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x20, 0, 255, None, [], []),
"state": MoPropertyMeta("state", "state", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x40, None, None, None, ["Disabled", "Enabled", "disabled", "enabled"], []),
"status": MoPropertyMeta("status", "status", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x80, None, None, None, ["", "created", "deleted", "modified", "removed"], []),
"subtype": MoPropertyMeta("subtype", "subtype", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x100, None, None, None, ["", "cimc-mapped-dvd", "cimc-mapped-hdd", "kvm-mapped-dvd", "kvm-mapped-fdd", "kvm-mapped-hdd"], []),
"type": MoPropertyMeta("type", "type", "string", VersionMeta.Version201a, MoPropertyMeta.READ_WRITE, 0x200, None, None, None, ["VMEDIA"], []),
}
prop_map = {
"access": "access",
"childAction": "child_action",
"dn": "dn",
"name": "name",
"order": "order",
"rn": "rn",
"state": "state",
"status": "status",
"subtype": "subtype",
"type": "type",
}
def __init__(self, parent_mo_or_dn, name, **kwargs):
self._dirty_mask = 0
self.name = name
self.access = None
self.child_action = None
self.order = None
self.state = None
self.status = None
self.subtype = None
self.type = None
ManagedObject.__init__(self, "LsbootVMedia", parent_mo_or_dn, **kwargs)