@is_connected
def activate(self, uid=None):
    '\n        Activate a managed object stored by a KMIP appliance.\n\n        Args:\n            uid (string): The unique ID of the managed object to activate.\n                Optional, defaults to None.\n\n        Returns:\n            None\n\n        Raises:\n            ClientConnectionNotOpen: if the client connection is unusable\n            KmipOperationFailure: if the operation result is a failure\n            TypeError: if the input argument is invalid\n        '
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    result = self.proxy.activate(uid)
    status = result.result_status.value
    if (status == enums.ResultStatus.SUCCESS):
        return
    else:
        reason = result.result_reason.value
        message = result.result_message.value
        raise exceptions.KmipOperationFailure(status, reason, message)
Activate a managed object stored by a KMIP appliance.

Args:
    uid (string): The unique ID of the managed object to activate.
        Optional, defaults to None.

Returns:
    None

Raises:
    ClientConnectionNotOpen: if the client connection is unusable
    KmipOperationFailure: if the operation result is a failure
    TypeError: if the input argument is invalid
@is_connected
def activate(self, uid=None):
    '\n        Activate a managed object stored by a KMIP appliance.\n\n        Args:\n            uid (string): The unique ID of the managed object to activate.\n                Optional, defaults to None.\n\n        Returns:\n            None\n\n        Raises:\n            ClientConnectionNotOpen: if the client connection is unusable\n            KmipOperationFailure: if the operation result is a failure\n            TypeError: if the input argument is invalid\n        '
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    result = self.proxy.activate(uid)
    status = result.result_status.value
    if (status == enums.ResultStatus.SUCCESS):
        return
    else:
        reason = result.result_reason.value
        message = result.result_message.value
        raise exceptions.KmipOperationFailure(status, reason, message)