CertificateBundle

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

Bases: object

The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate.

Attributes

CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_PUBLIC_ONLY A constant which can be used with the certificate_bundle_type property of a CertificateBundle.
CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_WITH_PRIVATE_KEY A constant which can be used with the certificate_bundle_type property of a CertificateBundle.
STAGES_CURRENT A constant which can be used with the stages property of a CertificateBundle.
STAGES_DEPRECATED A constant which can be used with the stages property of a CertificateBundle.
STAGES_FAILED A constant which can be used with the stages property of a CertificateBundle.
STAGES_LATEST A constant which can be used with the stages property of a CertificateBundle.
STAGES_PENDING A constant which can be used with the stages property of a CertificateBundle.
STAGES_PREVIOUS A constant which can be used with the stages property of a CertificateBundle.
cert_chain_pem Gets the cert_chain_pem of this CertificateBundle.
certificate_bundle_type [Required] Gets the certificate_bundle_type of this CertificateBundle.
certificate_id [Required] Gets the certificate_id of this CertificateBundle.
certificate_name [Required] Gets the certificate_name of this CertificateBundle.
certificate_pem Gets the certificate_pem of this CertificateBundle.
revocation_status Gets the revocation_status of this CertificateBundle.
serial_number [Required] Gets the serial_number of this CertificateBundle.
stages [Required] Gets the stages of this CertificateBundle.
time_created [Required] Gets the time_created of this CertificateBundle.
validity [Required] Gets the validity of this CertificateBundle.
version_name Gets the version_name of this CertificateBundle.
version_number [Required] Gets the version_number of this CertificateBundle.

Methods

__init__(**kwargs) Initializes a new CertificateBundle object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_PUBLIC_ONLY = 'CERTIFICATE_CONTENT_PUBLIC_ONLY'

A constant which can be used with the certificate_bundle_type property of a CertificateBundle. This constant has a value of “CERTIFICATE_CONTENT_PUBLIC_ONLY”

CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_WITH_PRIVATE_KEY = 'CERTIFICATE_CONTENT_WITH_PRIVATE_KEY'

A constant which can be used with the certificate_bundle_type property of a CertificateBundle. This constant has a value of “CERTIFICATE_CONTENT_WITH_PRIVATE_KEY”

STAGES_CURRENT = 'CURRENT'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “CURRENT”

STAGES_DEPRECATED = 'DEPRECATED'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “DEPRECATED”

STAGES_FAILED = 'FAILED'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “FAILED”

STAGES_LATEST = 'LATEST'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “LATEST”

STAGES_PENDING = 'PENDING'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “PENDING”

STAGES_PREVIOUS = 'PREVIOUS'

A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “PREVIOUS”

__init__(**kwargs)

Initializes a new CertificateBundle object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • certificate_bundle_type (str) – The value to assign to the certificate_bundle_type property of this CertificateBundle. Allowed values for this property are: “CERTIFICATE_CONTENT_PUBLIC_ONLY”, “CERTIFICATE_CONTENT_WITH_PRIVATE_KEY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • certificate_id (str) – The value to assign to the certificate_id property of this CertificateBundle.
  • certificate_name (str) – The value to assign to the certificate_name property of this CertificateBundle.
  • version_number (int) – The value to assign to the version_number property of this CertificateBundle.
  • serial_number (str) – The value to assign to the serial_number property of this CertificateBundle.
  • certificate_pem (str) – The value to assign to the certificate_pem property of this CertificateBundle.
  • cert_chain_pem (str) – The value to assign to the cert_chain_pem property of this CertificateBundle.
  • time_created (datetime) – The value to assign to the time_created property of this CertificateBundle.
  • validity (oci.certificates.models.Validity) – The value to assign to the validity property of this CertificateBundle.
  • version_name (str) – The value to assign to the version_name property of this CertificateBundle.
  • stages (list[str]) – The value to assign to the stages property of this CertificateBundle. Allowed values for items in this list are: “CURRENT”, “PENDING”, “LATEST”, “PREVIOUS”, “DEPRECATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • revocation_status (oci.certificates.models.RevocationStatus) – The value to assign to the revocation_status property of this CertificateBundle.
cert_chain_pem

Gets the cert_chain_pem of this CertificateBundle. The certificate chain (in PEM format) for the certificate bundle.

Returns:The cert_chain_pem of this CertificateBundle.
Return type:str
certificate_bundle_type

[Required] Gets the certificate_bundle_type of this CertificateBundle. The type of certificate bundle, which indicates whether the private key fields are included.

Allowed values for this property are: “CERTIFICATE_CONTENT_PUBLIC_ONLY”, “CERTIFICATE_CONTENT_WITH_PRIVATE_KEY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The certificate_bundle_type of this CertificateBundle.
Return type:str
certificate_id

[Required] Gets the certificate_id of this CertificateBundle. The OCID of the certificate.

Returns:The certificate_id of this CertificateBundle.
Return type:str
certificate_name

[Required] Gets the certificate_name of this CertificateBundle. The name of the certificate.

Returns:The certificate_name of this CertificateBundle.
Return type:str
certificate_pem

Gets the certificate_pem of this CertificateBundle. The certificate in PEM format.

Returns:The certificate_pem of this CertificateBundle.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

revocation_status

Gets the revocation_status of this CertificateBundle.

Returns:The revocation_status of this CertificateBundle.
Return type:oci.certificates.models.RevocationStatus
serial_number

[Required] Gets the serial_number of this CertificateBundle. A unique certificate identifier used in certificate revocation tracking, formatted as octets. Example: 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF

Returns:The serial_number of this CertificateBundle.
Return type:str
stages

[Required] Gets the stages of this CertificateBundle. A list of rotation states for the certificate bundle.

Allowed values for items in this list are: “CURRENT”, “PENDING”, “LATEST”, “PREVIOUS”, “DEPRECATED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The stages of this CertificateBundle.
Return type:list[str]
time_created

[Required] Gets the time_created of this CertificateBundle. An optional property indicating when the certificate version was created, expressed in RFC 3339 timestamp format. Example: 2019-04-03T21:10:29.600Z

Returns:The time_created of this CertificateBundle.
Return type:datetime
validity

[Required] Gets the validity of this CertificateBundle.

Returns:The validity of this CertificateBundle.
Return type:oci.certificates.models.Validity
version_name

Gets the version_name of this CertificateBundle. The name of the certificate version.

Returns:The version_name of this CertificateBundle.
Return type:str
version_number

[Required] Gets the version_number of this CertificateBundle. The version number of the certificate.

Returns:The version_number of this CertificateBundle.
Return type:int