ruạṛ
a ���fC � @ 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�intZdatetimeZValidityz list[str]ZRevocationStatus)�certificate_bundle_type�certificate_id�certificate_name�version_number� serial_number�certificate_pem�cert_chain_pem�time_created�validity�version_name�stages�revocation_status�certificateBundleTypeZ certificateIdZcertificateNameZ versionNumberZserialNumberZcertificatePemZcertChainPemZtimeCreatedr ZversionNamer ZrevocationStatusN)Z swagger_typesZ 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, �N/usr/lib/python3.9/site-packages/oci/certificates/models/certificate_bundle.py�__init__2 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 ZCertificateBundlePublicOnlyr ZCertificateBundleWithPrivateKeyr Nr, )Zobject_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 �r* 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 )r* 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 r1 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 Nr4 )r* 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 r1 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 Nr5 )r* 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! r1 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 Nr6 )r* 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 �r"