Ejemplo n.º 1
0
    def visit_enum(self, typ):
        """
        Visit an Enum value

        :type  typ: :class:`vmware.vapi.bindings.type.EnumType`
        :param typ: Binding type of the value
        """
        enum_string = self._in_value.value
        if typ.binding_class:
            try:
                self._out_value = getattr(typ.binding_class, enum_string)
            except AttributeError:
                self._out_value = typ.binding_class(enum_string)
        else:
            self._out_value = Enum(enum_string)
Ejemplo n.º 2
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`DNSServerMode` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`HashAlgorithm` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 4
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`AutoUpdateNotification` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`RestartPriority` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`ScaleSharesBehavior` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 7
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`MaintenanceModeState` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 8
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`IpAddressOrigin` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 9
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`FirewallRulePolicy` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`HBDatastoreCandidate` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`ObjectCompliance` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`VmReactionOnAPDCleared` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`StorageVmReaction` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`IsolationResponse` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 15
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`BackupRestoreProcessState` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 16
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`ComponentBundleType` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`DpmBehaviorInfo` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 18
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`SNMPv3Notfication` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`RemediationType` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 20
0
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`FormatterType` instance.
     """
     Enum.__init__(string)
 def __init__(self, string):
     """
     :type  string: :class:`str`
     :param string: String value for the :class:`Status` instance.
     """
     Enum.__init__(string)
Ejemplo n.º 22
0
 def __init__(self, s=''):
     Enum.__init__(s)