"""This module contains the general information for VmComputeEp ManagedObject."""
from ...ucsmo import ManagedObject
from ...ucscoremeta import MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
[docs]class VmComputeEpConsts:
CL_INST_TYPE_COMPUTE_EP = "compute-ep"
CL_INST_TYPE_HV = "hv"
CL_INST_TYPE_VM = "vm"
INT_ID_NONE = "none"
MODEL_LINUX = "Linux"
MODEL_PNU_OS = "PnuOS"
MODEL_SOLARIS = "Solaris"
MODEL_VMWARE_ESX = "VMWareESX"
MODEL_WINDOWS = "Windows"
MODEL_UNSPECIFIED = "unspecified"
POLICY_OWNER_LOCAL = "local"
POLICY_OWNER_PENDING_POLICY = "pending-policy"
POLICY_OWNER_POLICY = "policy"
V_STATUS_OFFLINE = "offline"
V_STATUS_ONLINE = "online"
V_STATUS_UNKNOWN = "unknown"
VENDOR_CITRIX = "citrix"
VENDOR_MICROSOFT = "microsoft"
VENDOR_NOVELL = "novell"
VENDOR_ORACLE = "oracle"
VENDOR_REDHAT = "redhat"
VENDOR_UNSPECIFIED = "unspecified"
VENDOR_VMWARE = "vmware"
[docs]class VmComputeEp(ManagedObject):
"""This is VmComputeEp class."""
consts = VmComputeEpConsts()
naming_props = set([u'uuid'])
mo_meta = MoMeta("VmComputeEp", "vmComputeEp", "computeEp-[uuid]", VersionMeta.Version201m, "InputOutput", 0xff, [], ["admin", "read-only"], [u'vmEp'], [u'vmHba', u'vmNic'], ["Get"])
prop_meta = {
"child_action": MoPropertyMeta("child_action", "childAction", "string", VersionMeta.Version201m, MoPropertyMeta.INTERNAL, 0x2, None, None, r"""((deleteAll|ignore|deleteNonPresent),){0,2}(deleteAll|ignore|deleteNonPresent){0,1}""", [], []),
"cl_inst_type": MoPropertyMeta("cl_inst_type", "clInstType", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, ["compute-ep", "hv", "vm"], []),
"compute_ep_vendor": MoPropertyMeta("compute_ep_vendor", "computeEpVendor", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []),
"descr": MoPropertyMeta("descr", "descr", "string", VersionMeta.Version201m, MoPropertyMeta.READ_WRITE, 0x4, None, None, r"""[ !#$%&\(\)\*\+,\-\./:;\?@\[\]_\{\|\}~a-zA-Z0-9]{0,256}""", [], []),
"dn": MoPropertyMeta("dn", "dn", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, 0x8, 0, 256, None, [], []),
"dvs_dn": MoPropertyMeta("dvs_dn", "dvsDn", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, 0, 256, None, [], []),
"dvs_name": MoPropertyMeta("dvs_name", "dvsName", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []),
"host_name": MoPropertyMeta("host_name", "hostName", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []),
"int_id": MoPropertyMeta("int_id", "intId", "string", VersionMeta.Version201m, MoPropertyMeta.INTERNAL, None, None, None, None, ["none"], ["0-4294967295"]),
"ls_dn": MoPropertyMeta("ls_dn", "lsDn", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, 0, 256, None, [], []),
"model": MoPropertyMeta("model", "model", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, ["Linux", "PnuOS", "Solaris", "VMWareESX", "Windows", "unspecified"], []),
"name": MoPropertyMeta("name", "name", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, r"""[\-\.:_a-zA-Z0-9]{0,16}""", [], []),
"pn_dn": MoPropertyMeta("pn_dn", "pnDn", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, 0, 256, None, [], []),
"policy_level": MoPropertyMeta("policy_level", "policyLevel", "uint", VersionMeta.Version211a, MoPropertyMeta.READ_ONLY, None, None, None, None, [], []),
"policy_owner": MoPropertyMeta("policy_owner", "policyOwner", "string", VersionMeta.Version211a, MoPropertyMeta.READ_WRITE, 0x10, None, None, None, ["local", "pending-policy", "policy"], []),
"rn": MoPropertyMeta("rn", "rn", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, 0x20, 0, 256, None, [], []),
"sacl": MoPropertyMeta("sacl", "sacl", "string", VersionMeta.Version302a, 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.Version201m, MoPropertyMeta.READ_WRITE, 0x40, None, None, r"""((removed|created|modified|deleted),){0,3}(removed|created|modified|deleted){0,1}""", [], []),
"status_change_ts": MoPropertyMeta("status_change_ts", "statusChangeTs", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, r"""([0-9]){4}-([0-9]){2}-([0-9]){2}T([0-9]){2}:([0-9]){2}:([0-9]){2}((\.([0-9]){3})){0,1}""", [], []),
"uuid": MoPropertyMeta("uuid", "uuid", "string", VersionMeta.Version201m, MoPropertyMeta.NAMING, 0x80, None, None, r"""(([0-9a-fA-F]){8}\-([0-9a-fA-F]){4}\-([0-9a-fA-F]){4}\-([0-9a-fA-F]){4}\-([0-9a-fA-F]){12})|0""", [], []),
"v_status": MoPropertyMeta("v_status", "vStatus", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, ["offline", "online", "unknown"], []),
"vendor": MoPropertyMeta("vendor", "vendor", "string", VersionMeta.Version201m, MoPropertyMeta.READ_ONLY, None, None, None, None, ["citrix", "microsoft", "novell", "oracle", "redhat", "unspecified", "vmware"], []),
}
prop_map = {
"childAction": "child_action",
"clInstType": "cl_inst_type",
"computeEpVendor": "compute_ep_vendor",
"descr": "descr",
"dn": "dn",
"dvsDn": "dvs_dn",
"dvsName": "dvs_name",
"hostName": "host_name",
"intId": "int_id",
"lsDn": "ls_dn",
"model": "model",
"name": "name",
"pnDn": "pn_dn",
"policyLevel": "policy_level",
"policyOwner": "policy_owner",
"rn": "rn",
"sacl": "sacl",
"status": "status",
"statusChangeTs": "status_change_ts",
"uuid": "uuid",
"vStatus": "v_status",
"vendor": "vendor",
}
def __init__(self, parent_mo_or_dn, uuid, **kwargs):
self._dirty_mask = 0
self.uuid = uuid
self.child_action = None
self.cl_inst_type = None
self.compute_ep_vendor = None
self.descr = None
self.dvs_dn = None
self.dvs_name = None
self.host_name = None
self.int_id = None
self.ls_dn = None
self.model = None
self.name = None
self.pn_dn = None
self.policy_level = None
self.policy_owner = None
self.sacl = None
self.status = None
self.status_change_ts = None
self.v_status = None
self.vendor = None
ManagedObject.__init__(self, "VmComputeEp", parent_mo_or_dn, **kwargs)