File: //lib/mysqlsh/lib/python3.8/site-packages/oci/certificates/models/certificate_bundle_public_only.py
# coding: utf-8
# Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210224
from .certificate_bundle import CertificateBundle
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class CertificateBundlePublicOnly(CertificateBundle):
"""
A certificate bundle, not including the private key.
"""
def __init__(self, **kwargs):
"""
Initializes a new CertificateBundlePublicOnly object with values from keyword arguments. The default value of the :py:attr:`~oci.certificates.models.CertificateBundlePublicOnly.certificate_bundle_type` attribute
of this class is ``CERTIFICATE_CONTENT_PUBLIC_ONLY`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param certificate_bundle_type:
The value to assign to the certificate_bundle_type property of this CertificateBundlePublicOnly.
Allowed values for this property are: "CERTIFICATE_CONTENT_PUBLIC_ONLY", "CERTIFICATE_CONTENT_WITH_PRIVATE_KEY"
:type certificate_bundle_type: str
:param certificate_id:
The value to assign to the certificate_id property of this CertificateBundlePublicOnly.
:type certificate_id: str
:param certificate_name:
The value to assign to the certificate_name property of this CertificateBundlePublicOnly.
:type certificate_name: str
:param version_number:
The value to assign to the version_number property of this CertificateBundlePublicOnly.
:type version_number: int
:param serial_number:
The value to assign to the serial_number property of this CertificateBundlePublicOnly.
:type serial_number: str
:param certificate_pem:
The value to assign to the certificate_pem property of this CertificateBundlePublicOnly.
:type certificate_pem: str
:param cert_chain_pem:
The value to assign to the cert_chain_pem property of this CertificateBundlePublicOnly.
:type cert_chain_pem: str
:param time_created:
The value to assign to the time_created property of this CertificateBundlePublicOnly.
:type time_created: datetime
:param validity:
The value to assign to the validity property of this CertificateBundlePublicOnly.
:type validity: oci.certificates.models.Validity
:param version_name:
The value to assign to the version_name property of this CertificateBundlePublicOnly.
:type version_name: str
:param stages:
The value to assign to the stages property of this CertificateBundlePublicOnly.
Allowed values for items in this list are: "CURRENT", "PENDING", "LATEST", "PREVIOUS", "DEPRECATED", "FAILED"
:type stages: list[str]
:param revocation_status:
The value to assign to the revocation_status property of this CertificateBundlePublicOnly.
:type revocation_status: oci.certificates.models.RevocationStatus
"""
self.swagger_types = {
'certificate_bundle_type': 'str',
'certificate_id': 'str',
'certificate_name': 'str',
'version_number': 'int',
'serial_number': 'str',
'certificate_pem': 'str',
'cert_chain_pem': 'str',
'time_created': 'datetime',
'validity': 'Validity',
'version_name': 'str',
'stages': 'list[str]',
'revocation_status': 'RevocationStatus'
}
self.attribute_map = {
'certificate_bundle_type': 'certificateBundleType',
'certificate_id': 'certificateId',
'certificate_name': 'certificateName',
'version_number': 'versionNumber',
'serial_number': 'serialNumber',
'certificate_pem': 'certificatePem',
'cert_chain_pem': 'certChainPem',
'time_created': 'timeCreated',
'validity': 'validity',
'version_name': 'versionName',
'stages': 'stages',
'revocation_status': 'revocationStatus'
}
self._certificate_bundle_type = None
self._certificate_id = None
self._certificate_name = None
self._version_number = None
self._serial_number = None
self._certificate_pem = None
self._cert_chain_pem = None
self._time_created = None
self._validity = None
self._version_name = None
self._stages = None
self._revocation_status = None
self._certificate_bundle_type = 'CERTIFICATE_CONTENT_PUBLIC_ONLY'
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other