kmip/core/messages/payloads/revoke.py
def validate(self):
        """
        Error check the attributes of the ActivateRequestPayload object.
        """
        if self.unique_identifier is not None:
            if not isinstance(self.unique_identifier,
                              attributes.UniqueIdentifier):
                msg = "invalid unique identifier"
                raise TypeError(msg)
        if self.compromise_occurrence_date is not None:
            if not isinstance(self.compromise_occurrence_date,
                              primitives.DateTime):
                msg = "invalid compromise time"
                raise TypeError(msg)
        if not isinstance(self.revocation_reason, objects.RevocationReason):
            msg = "invalid revocation reason"
            raise TypeError(msg)
def validate(self):
        """
        Error check the attributes of the ActivateRequestPayload object.
        """
        if self.unique_identifier is not None:
            if not isinstance(self.unique_identifier,
                              attributes.UniqueIdentifier):
                msg = "invalid unique identifier"
                raise TypeError(msg)
        if self.compromise_occurrence_date is not None:
            if not isinstance(self.compromise_occurrence_date,
                              primitives.DateTime):
                msg = "invalid compromise time"
                raise TypeError(msg)
        if not isinstance(self.revocation_reason, objects.RevocationReason):
            msg = "invalid revocation reason"
            raise TypeError(msg)
def validate ( self ) : if self . unique_identifier is not None : if not isinstance ( self . unique_identifier , attributes . UniqueIdentifier ) : msg = "invalid unique identifier" raise TypeError ( msg ) if self . compromise_occurrence_date is not None : if not isinstance ( self . compromise_occurrence_date , primitives . DateTime ) : msg = "invalid compromise time" raise TypeError ( msg ) if not isinstance ( self . revocation_reason , objects . RevocationReason ) : msg = "invalid revocation reason" raise TypeError ( msg )
Error check the attributes of the ActivateRequestPayload object.
Error check the attributes of the ActivateRequestPayload object .