CertificateBundleWithPrivateKey¶
- class oci.certificates.models.CertificateBundleWithPrivateKey(**kwargs)¶
Bases:
CertificateBundleA certificate bundle, including the private key.
Attributes:
A constant which can be used with the certificate_bundle_type property of a CertificateBundle.
CERTIFICATE_BUNDLE_TYPE_CERTIFICATE_CONTENT_WITH_PRIVATE_KEYA constant which can be used with the certificate_bundle_type property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
A constant which can be used with the stages property of a CertificateBundle.
Gets the cert_chain_pem of this CertificateBundle.
[Required] Gets the certificate_bundle_type of this CertificateBundle.
[Required] Gets the certificate_id of this CertificateBundle.
[Required] Gets the certificate_name of this CertificateBundle.
Gets the certificate_pem of this CertificateBundle.
[Required] Gets the private_key_pem of this CertificateBundleWithPrivateKey.
Gets the private_key_pem_passphrase of this CertificateBundleWithPrivateKey.
Gets the revocation_status of this CertificateBundle.
[Required] Gets the serial_number of this CertificateBundle.
[Required] Gets the stages of this CertificateBundle.
[Required] Gets the time_created of this CertificateBundle.
[Required] Gets the validity of this CertificateBundle.
Gets the version_name of this CertificateBundle.
[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'¶
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_PENDING_ACTIVATION = 'PENDING_ACTIVATION'¶
A constant which can be used with the stages property of a CertificateBundle. This constant has a value of “PENDING_ACTIVATION”
- 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 CertificateBundleWithPrivateKey object with values from keyword arguments. The default value of the
certificate_bundle_typeattribute of this class isCERTIFICATE_CONTENT_WITH_PRIVATE_KEYand 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”, “PENDING_ACTIVATION”, “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.
- property 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
- property 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
- property 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
- property 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
- property 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.
- property 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
- property 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
- property revocation_status¶
Gets the revocation_status of this CertificateBundle.
- Returns
The revocation_status of this CertificateBundle.
- Return type
- property 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
- property 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”, “PENDING_ACTIVATION”, “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]
- property 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
- property validity¶
[Required] Gets the validity of this CertificateBundle.
- Returns
The validity of this CertificateBundle.
- Return type
- property 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
- property 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