ruạṛ
a N��f�B � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d Zd d� Ze dd � �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zd2d3� Zd4d5� Zd6d7� Zd8S )9�CertificateBundlez� The contents of the certificate, properties of the certificate (and certificate version), and user-provided contextual metadata for the certificate. �CERTIFICATE_CONTENT_PUBLIC_ONLY�$CERTIFICATE_CONTENT_WITH_PRIVATE_KEY�CURRENT�PENDING�LATEST�PREVIOUS� DEPRECATED�FAILEDc K s� ddddddddddddd�| _ dd d ddd ddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ dS )a� 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: * :class:`~oci.certificates.models.CertificateBundlePublicOnly` * :class:`~oci.certificates.models.CertificateBundleWithPrivateKey` 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 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'. :type certificate_bundle_type: str :param certificate_id: The value to assign to the certificate_id property of this CertificateBundle. :type certificate_id: str :param certificate_name: The value to assign to the certificate_name property of this CertificateBundle. :type certificate_name: str :param version_number: The value to assign to the version_number property of this CertificateBundle. :type version_number: int :param serial_number: The value to assign to the serial_number property of this CertificateBundle. :type serial_number: str :param certificate_pem: The value to assign to the certificate_pem property of this CertificateBundle. :type certificate_pem: str :param cert_chain_pem: The value to assign to the cert_chain_pem property of this CertificateBundle. :type cert_chain_pem: str :param time_created: The value to assign to the time_created property of this CertificateBundle. :type time_created: datetime :param validity: The value to assign to the validity property of this CertificateBundle. :type validity: oci.certificates.models.Validity :param version_name: The value to assign to the version_name property of this CertificateBundle. :type version_name: str :param stages: 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'. :type stages: list[str] :param revocation_status: The value to assign to the revocation_status property of this CertificateBundle. :type revocation_status: oci.certificates.models.RevocationStatus �str�int�datetime�Validityz list[str]�RevocationStatus)�certificate_bundle_type�certificate_id�certificate_name�version_number� serial_number�certificate_pem�cert_chain_pem�time_created�validity�version_name�stages�revocation_status�certificateBundleType� certificateId�certificateName� versionNumber�serialNumber�certificatePem�certChainPem�timeCreatedr �versionNamer �revocationStatusN)� swagger_types� attribute_map�_certificate_bundle_type�_certificate_id�_certificate_name�_version_number�_serial_number�_certificate_pem�_cert_chain_pem� _time_created� _validity� _version_name�_stages�_revocation_status)�self�kwargs� r: ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/certificates/models/certificate_bundle.py�__init__0 sL @��zCertificateBundle.__init__c C s( | d }|dkrdS |dkr dS dS dS )z� Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. r r �CertificateBundlePublicOnlyr �CertificateBundleWithPrivateKeyr Nr: )�object_dictionary�typer: r: r; �get_subtype� s zCertificateBundle.get_subtypec C s | j S )a **[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'. :return: The certificate_bundle_type of this CertificateBundle. :rtype: str )r, �r8 r: r: r; r � s z)CertificateBundle.certificate_bundle_typec C s ddg}t ||�sd}|| _dS )a& Sets the certificate_bundle_type of this CertificateBundle. The type of certificate bundle, which indicates whether the private key fields are included. :param certificate_bundle_type: The certificate_bundle_type of this CertificateBundle. :type: str r r �UNKNOWN_ENUM_VALUEN)r r, )r8 r �allowed_valuesr: r: r; r � s c C s | j S )z� **[Required]** Gets the certificate_id of this CertificateBundle. The OCID of the certificate. :return: The certificate_id of this CertificateBundle. :rtype: str �r- rB r: r: r; r � s z CertificateBundle.certificate_idc C s || _ dS )z� Sets the certificate_id of this CertificateBundle. The OCID of the certificate. :param certificate_id: The certificate_id of this CertificateBundle. :type: str NrE )r8 r r: r: r; r � s c C s | j S )z� **[Required]** Gets the certificate_name of this CertificateBundle. The name of the certificate. :return: The certificate_name of this CertificateBundle. :rtype: str �r. rB r: r: r; r � s z"CertificateBundle.certificate_namec C s || _ dS )z� Sets the certificate_name of this CertificateBundle. The name of the certificate. :param certificate_name: The certificate_name of this CertificateBundle. :type: str NrF )r8 r r: r: r; r � s c C s | j S )z� **[Required]** Gets the version_number of this CertificateBundle. The version number of the certificate. :return: The version_number of this CertificateBundle. :rtype: int �r/ rB r: r: r; r � s z CertificateBundle.version_numberc C s || _ dS )z� Sets the version_number of this CertificateBundle. The version number of the certificate. :param version_number: The version_number of this CertificateBundle. :type: int NrG )r8 r r: r: r; r s c C s | j S )aO **[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` :return: The serial_number of this CertificateBundle. :rtype: str �r0 rB r: r: r; r s zCertificateBundle.serial_numberc C s || _ dS )aL Sets 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` :param serial_number: The serial_number of this CertificateBundle. :type: str NrH )r8 r r: r: r; r s c C s | j S )z� Gets the certificate_pem of this CertificateBundle. The certificate in PEM format. :return: The certificate_pem of this CertificateBundle. :rtype: str �r1 rB r: r: r; r * s z!CertificateBundle.certificate_pemc C s || _ dS )z� Sets the certificate_pem of this CertificateBundle. The certificate in PEM format. :param certificate_pem: The certificate_pem of this CertificateBundle. :type: str NrI )r8 r r: r: r; r 6 s c C s | j S )z� Gets the cert_chain_pem of this CertificateBundle. The certificate chain (in PEM format) for the certificate bundle. :return: The cert_chain_pem of this CertificateBundle. :rtype: str �r2 rB r: r: r; r B s z CertificateBundle.cert_chain_pemc C s || _ dS )z� Sets the cert_chain_pem of this CertificateBundle. The certificate chain (in PEM format) for the certificate bundle. :param cert_chain_pem: The cert_chain_pem of this CertificateBundle. :type: str NrJ )r8 r r: r: r; r N s c C s | j S )a� **[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` __ https://tools.ietf.org/html/rfc3339 :return: The time_created of this CertificateBundle. :rtype: datetime �r3 rB r: r: r; r Z s zCertificateBundle.time_createdc C s || _ dS )a Sets 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` __ https://tools.ietf.org/html/rfc3339 :param time_created: The time_created of this CertificateBundle. :type: datetime NrK )r8 r r: r: r; r i s c C s | j S )z� **[Required]** Gets the validity of this CertificateBundle. :return: The validity of this CertificateBundle. :rtype: oci.certificates.models.Validity �r4 rB r: r: r; r x s zCertificateBundle.validityc C s || _ dS )z� Sets the validity of this CertificateBundle. :param validity: The validity of this CertificateBundle. :type: oci.certificates.models.Validity NrL )r8 r r: r: r; r � s c C s | j S )z� Gets the version_name of this CertificateBundle. The name of the certificate version. :return: The version_name of this CertificateBundle. :rtype: str �r5 rB r: r: r; r � s zCertificateBundle.version_namec C s || _ dS )z� Sets the version_name of this CertificateBundle. The name of the certificate version. :param version_name: The version_name of this CertificateBundle. :type: str NrM )r8 r r: r: r; r � s c C s | j S )a� **[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'. :return: The stages of this CertificateBundle. :rtype: list[str] �r6 rB r: r: r; r � s zCertificateBundle.stagesc s0 g d�� |r&� fdd�|D �|dd�<