@is_connected
def revoke(self, revocation_reason, uid=None, revocation_message=None, compromise_occurrence_date=None):
    '\n        Revoke a managed object stored by a KMIP appliance.\n\n        Args:\n            revocation_reason (RevocationReasonCode): An enumeration indicating\n                the revocation reason.\n            uid (string): The unique ID of the managed object to revoke.\n                Optional, defaults to None.\n            revocation_message (string): A message regarding the revocation.\n                Optional, defaults to None.\n            compromise_occurrence_date (int): An integer, the number of seconds\n                since the epoch, which will be converted to the Datetime when\n                the managed object was first believed to be compromised.\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 (not isinstance(revocation_reason, enums.RevocationReasonCode)):
        raise TypeError('revocation_reason must be a RevocationReasonCode enumeration')
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    if (revocation_message is not None):
        if (not isinstance(revocation_message, six.string_types)):
            raise TypeError('revocation_message must be a string')
    if (compromise_occurrence_date is not None):
        if (not isinstance(compromise_occurrence_date, six.integer_types)):
            raise TypeError('compromise_occurrence_date must be an integer')
        compromise_occurrence_date = primitives.DateTime(compromise_occurrence_date, enums.Tags.COMPROMISE_OCCURRENCE_DATE)
    result = self.proxy.revoke(revocation_reason, uid, revocation_message, compromise_occurrence_date)
    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)
Revoke a managed object stored by a KMIP appliance.

Args:
    revocation_reason (RevocationReasonCode): An enumeration indicating
        the revocation reason.
    uid (string): The unique ID of the managed object to revoke.
        Optional, defaults to None.
    revocation_message (string): A message regarding the revocation.
        Optional, defaults to None.
    compromise_occurrence_date (int): An integer, the number of seconds
        since the epoch, which will be converted to the Datetime when
        the managed object was first believed to be compromised.
        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 revoke(self, revocation_reason, uid=None, revocation_message=None, compromise_occurrence_date=None):
    '\n        Revoke a managed object stored by a KMIP appliance.\n\n        Args:\n            revocation_reason (RevocationReasonCode): An enumeration indicating\n                the revocation reason.\n            uid (string): The unique ID of the managed object to revoke.\n                Optional, defaults to None.\n            revocation_message (string): A message regarding the revocation.\n                Optional, defaults to None.\n            compromise_occurrence_date (int): An integer, the number of seconds\n                since the epoch, which will be converted to the Datetime when\n                the managed object was first believed to be compromised.\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 (not isinstance(revocation_reason, enums.RevocationReasonCode)):
        raise TypeError('revocation_reason must be a RevocationReasonCode enumeration')
    if (uid is not None):
        if (not isinstance(uid, six.string_types)):
            raise TypeError('uid must be a string')
    if (revocation_message is not None):
        if (not isinstance(revocation_message, six.string_types)):
            raise TypeError('revocation_message must be a string')
    if (compromise_occurrence_date is not None):
        if (not isinstance(compromise_occurrence_date, six.integer_types)):
            raise TypeError('compromise_occurrence_date must be an integer')
        compromise_occurrence_date = primitives.DateTime(compromise_occurrence_date, enums.Tags.COMPROMISE_OCCURRENCE_DATE)
    result = self.proxy.revoke(revocation_reason, uid, revocation_message, compromise_occurrence_date)
    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)