CertificateBundleWithPrivateKey

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

Bases: oci.certificates.models.certificate_bundle.CertificateBundle

A certificate bundle, including the private key.

Attributes

CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_PUBLIC_ONLY str(object=’’) -> str
CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_WITH_PRIVATE_KEY str(object=’’) -> str
STAGES_CURRENT str(object=’’) -> str
STAGES_DEPRECATED str(object=’’) -> str
STAGES_FAILED str(object=’’) -> str
STAGES_LATEST str(object=’’) -> str
STAGES_PENDING str(object=’’) -> str
STAGES_PREVIOUS str(object=’’) -> str
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.
private_key_pem [Required] Gets the private_key_pem of this CertificateBundleWithPrivateKey.
private_key_pem_passphrase Gets the private_key_pem_passphrase of this CertificateBundleWithPrivateKey.
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 CertificateBundleWithPrivateKey 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'
CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_WITH_PRIVATE_KEY = 'CERTIFICATE_CONTENT_WITH_PRIVATE_KEY'
STAGES_CURRENT = 'CURRENT'
STAGES_DEPRECATED = 'DEPRECATED'
STAGES_FAILED = 'FAILED'
STAGES_LATEST = 'LATEST'
STAGES_PENDING = 'PENDING'
STAGES_PREVIOUS = 'PREVIOUS'
__init__(**kwargs)

Initializes a new CertificateBundleWithPrivateKey object with values from keyword arguments. The default value of the certificate_bundle_type attribute of this class is CERTIFICATE_CONTENT_WITH_PRIVATE_KEY and it should not be changed. 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 CertificateBundleWithPrivateKey. Allowed values for this property are: “CERTIFICATE_CONTENT_PUBLIC_ONLY”, “CERTIFICATE_CONTENT_WITH_PRIVATE_KEY”
  • certificate_id (str) – The value to assign to the certificate_id property of this CertificateBundleWithPrivateKey.
  • certificate_name (str) – The value to assign to the certificate_name property of this CertificateBundleWithPrivateKey.
  • version_number (int) – The value to assign to the version_number property of this CertificateBundleWithPrivateKey.
  • serial_number (str) – The value to assign to the serial_number property of this CertificateBundleWithPrivateKey.
  • certificate_pem (str) – The value to assign to the certificate_pem property of this CertificateBundleWithPrivateKey.
  • cert_chain_pem (str) – The value to assign to the cert_chain_pem property of this CertificateBundleWithPrivateKey.
  • time_created (datetime) – The value to assign to the time_created property of this CertificateBundleWithPrivateKey.
  • validity (oci.certificates.models.Validity) – The value to assign to the validity property of this CertificateBundleWithPrivateKey.
  • version_name (str) – The value to assign to the version_name property of this CertificateBundleWithPrivateKey.
  • stages (list[str]) – The value to assign to the stages property of this CertificateBundleWithPrivateKey. Allowed values for items in this list are: “CURRENT”, “PENDING”, “LATEST”, “PREVIOUS”, “DEPRECATED”, “FAILED”
  • revocation_status (oci.certificates.models.RevocationStatus) – The value to assign to the revocation_status property of this CertificateBundleWithPrivateKey.
  • private_key_pem (str) – The value to assign to the private_key_pem property of this CertificateBundleWithPrivateKey.
  • private_key_pem_passphrase (str) – The value to assign to the private_key_pem_passphrase property of this CertificateBundleWithPrivateKey.
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.

private_key_pem

[Required] Gets the private_key_pem of this CertificateBundleWithPrivateKey. The private key (in PEM format) for the certificate.

Returns:The private_key_pem of this CertificateBundleWithPrivateKey.
Return type:str
private_key_pem_passphrase

Gets the private_key_pem_passphrase of this CertificateBundleWithPrivateKey. An optional passphrase for the private key.

Returns:The private_key_pem_passphrase of this CertificateBundleWithPrivateKey.
Return type:str
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