RevocationStatus

class oci.certificates.models.RevocationStatus(**kwargs)

Bases: object

The current revocation status of the certificate or certificate authority (CA).

Attributes

REVOCATION_REASON_AA_COMPROMISE A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_AFFILIATION_CHANGED A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_CA_COMPROMISE A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_CESSATION_OF_OPERATION A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_KEY_COMPROMISE A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_PRIVILEGE_WITHDRAWN A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_SUPERSEDED A constant which can be used with the revocation_reason property of a RevocationStatus.
REVOCATION_REASON_UNSPECIFIED A constant which can be used with the revocation_reason property of a RevocationStatus.
revocation_reason [Required] Gets the revocation_reason of this RevocationStatus.
time_revoked [Required] Gets the time_revoked of this RevocationStatus.

Methods

__init__(**kwargs) Initializes a new RevocationStatus object with values from keyword arguments.
REVOCATION_REASON_AA_COMPROMISE = 'AA_COMPROMISE'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “AA_COMPROMISE”

REVOCATION_REASON_AFFILIATION_CHANGED = 'AFFILIATION_CHANGED'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “AFFILIATION_CHANGED”

REVOCATION_REASON_CA_COMPROMISE = 'CA_COMPROMISE'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “CA_COMPROMISE”

REVOCATION_REASON_CESSATION_OF_OPERATION = 'CESSATION_OF_OPERATION'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “CESSATION_OF_OPERATION”

REVOCATION_REASON_KEY_COMPROMISE = 'KEY_COMPROMISE'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “KEY_COMPROMISE”

REVOCATION_REASON_PRIVILEGE_WITHDRAWN = 'PRIVILEGE_WITHDRAWN'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “PRIVILEGE_WITHDRAWN”

REVOCATION_REASON_SUPERSEDED = 'SUPERSEDED'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “SUPERSEDED”

REVOCATION_REASON_UNSPECIFIED = 'UNSPECIFIED'

A constant which can be used with the revocation_reason property of a RevocationStatus. This constant has a value of “UNSPECIFIED”

__init__(**kwargs)

Initializes a new RevocationStatus object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • time_revoked (datetime) – The value to assign to the time_revoked property of this RevocationStatus.
  • revocation_reason (str) – The value to assign to the revocation_reason property of this RevocationStatus. Allowed values for this property are: “UNSPECIFIED”, “KEY_COMPROMISE”, “CA_COMPROMISE”, “AFFILIATION_CHANGED”, “SUPERSEDED”, “CESSATION_OF_OPERATION”, “PRIVILEGE_WITHDRAWN”, “AA_COMPROMISE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
revocation_reason

[Required] Gets the revocation_reason of this RevocationStatus. The reason that the certificate or CA was revoked.

Allowed values for this property are: “UNSPECIFIED”, “KEY_COMPROMISE”, “CA_COMPROMISE”, “AFFILIATION_CHANGED”, “SUPERSEDED”, “CESSATION_OF_OPERATION”, “PRIVILEGE_WITHDRAWN”, “AA_COMPROMISE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The revocation_reason of this RevocationStatus.
Return type:str
time_revoked

[Required] Gets the time_revoked of this RevocationStatus. The time when the certificate or CA was revoked.

Returns:The time_revoked of this RevocationStatus.
Return type:datetime