ruạṛ
a N��f� � @ 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 ZdZdZdZdZdZdd� Ze dd � �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Zej dd� �Zdd� Zdd� Zdd� ZdS )�'UpdateCertificateAuthorityConfigDetailszN The configuration details for updating a certificate authority (CA). �ROOT_CA_GENERATED_INTERNALLY�$SUBORDINATE_CA_ISSUED_BY_INTERNAL_CA�CURRENT�PENDINGc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a Initializes a new UpdateCertificateAuthorityConfigDetails 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_management.models.UpdateSubordinateCaIssuedByInternalCaConfigDetails` * :class:`~oci.certificates_management.models.UpdateRootCaByGeneratingInternallyConfigDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param config_type: The value to assign to the config_type property of this UpdateCertificateAuthorityConfigDetails. Allowed values for this property are: "ROOT_CA_GENERATED_INTERNALLY", "SUBORDINATE_CA_ISSUED_BY_INTERNAL_CA" :type config_type: str :param version_name: The value to assign to the version_name property of this UpdateCertificateAuthorityConfigDetails. :type version_name: str :param stage: The value to assign to the stage property of this UpdateCertificateAuthorityConfigDetails. Allowed values for this property are: "CURRENT", "PENDING" :type stage: str �str)�config_type�version_name�stage� configType�versionNamer N)� swagger_types� attribute_map�_config_type� _version_name�_stage)�self�kwargs� r ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/certificates_management/models/update_certificate_authority_config_details.py�__init__ s ��z0UpdateCertificateAuthorityConfigDetails.__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 �2UpdateSubordinateCaIssuedByInternalCaConfigDetailsr �/UpdateRootCaByGeneratingInternallyConfigDetailsr Nr )�object_dictionary�typer r r �get_subtypeI s z3UpdateCertificateAuthorityConfigDetails.get_subtypec C s | j S )ab **[Required]** Gets the config_type of this UpdateCertificateAuthorityConfigDetails. The origin of the CA. Allowed values for this property are: "ROOT_CA_GENERATED_INTERNALLY", "SUBORDINATE_CA_ISSUED_BY_INTERNAL_CA" :return: The config_type of this UpdateCertificateAuthorityConfigDetails. :rtype: str )r �r r r r r Y s z3UpdateCertificateAuthorityConfigDetails.config_typec C s* ddg}t ||�s td�|���|| _dS )z� Sets the config_type of this UpdateCertificateAuthorityConfigDetails. The origin of the CA. :param config_type: The config_type of this UpdateCertificateAuthorityConfigDetails. :type: str r r z;Invalid value for `config_type`, must be None or one of {0}N)r � ValueError�formatr )r r �allowed_valuesr r r r g s ��c C s | j S )a1 Gets the version_name of this UpdateCertificateAuthorityConfigDetails. The name of the CA version. When the value is not null, a name is unique across versions of a given CA. :return: The version_name of this UpdateCertificateAuthorityConfigDetails. :rtype: str �r r r r r r y s z4UpdateCertificateAuthorityConfigDetails.version_namec C s || _ dS )a< Sets the version_name of this UpdateCertificateAuthorityConfigDetails. The name of the CA version. When the value is not null, a name is unique across versions of a given CA. :param version_name: The version_name of this UpdateCertificateAuthorityConfigDetails. :type: str Nr$ )r r r r r r � s c C s | j S )a� Gets the stage of this UpdateCertificateAuthorityConfigDetails. The rotation state of the CA. The default is `PENDING`, meaning that the CA is staged and available for use. A CA version that you mark as `CURRENT` is currently in use, but you don't yet want to rotate it into current, active use. For example, you might create or update a CA and mark its rotation state as `PENDING` if you haven't yet updated the certificate on the target system. Allowed values for this property are: "CURRENT", "PENDING" :return: The stage of this UpdateCertificateAuthorityConfigDetails. :rtype: str )r r r r r r � s z-UpdateCertificateAuthorityConfigDetails.stagec C s* ddg}t ||�s td�|���|| _dS )aN Sets the stage of this UpdateCertificateAuthorityConfigDetails. The rotation state of the CA. The default is `PENDING`, meaning that the CA is staged and available for use. A CA version that you mark as `CURRENT` is currently in use, but you don't yet want to rotate it into current, active use. For example, you might create or update a CA and mark its rotation state as `PENDING` if you haven't yet updated the certificate on the target system. :param stage: The stage of this UpdateCertificateAuthorityConfigDetails. :type: str r r z5Invalid value for `stage`, must be None or one of {0}N)r r! r"