ruạṛ
a ���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 ZdZdZdZdZdZdZdZ dZ dd � Zed d� �Z e jdd� �Z ed d� �Zejdd� �Zedd� �Zejdd� �Zdd� Zdd� Zdd� ZdS )�CredentialRotationStatusz> Information regarding cluster's credential rotation. �IN_PROGRESS�WAITING� COMPLETED�ISSUING_NEW_CREDENTIALS�NEW_CREDENTIALS_ISSUED�RETIRING_OLD_CREDENTIALSc K s2 dddd�| _ dddd�| _d| _d| _d| _dS )a� Initializes a new CredentialRotationStatus object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param time_auto_completion_scheduled: The value to assign to the time_auto_completion_scheduled property of this CredentialRotationStatus. :type time_auto_completion_scheduled: datetime :param status: The value to assign to the status property of this CredentialRotationStatus. Allowed values for this property are: "IN_PROGRESS", "WAITING", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param status_details: The value to assign to the status_details property of this CredentialRotationStatus. Allowed values for this property are: "ISSUING_NEW_CREDENTIALS", "NEW_CREDENTIALS_ISSUED", "RETIRING_OLD_CREDENTIALS", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status_details: str Zdatetime�str)�time_auto_completion_scheduled�status�status_detailsZtimeAutoCompletionScheduledr Z statusDetailsN)Z swagger_typesZ attribute_map�_time_auto_completion_scheduled�_status�_status_details)�self�kwargs� r �Z/usr/lib/python3.9/site-packages/oci/container_engine/models/credential_rotation_status.py�__init__. s ��z!CredentialRotationStatus.__init__c C s | j S )a Gets the time_auto_completion_scheduled of this CredentialRotationStatus. The time by which retirement of old credentials should start. :return: The time_auto_completion_scheduled of this CredentialRotationStatus. :rtype: datetime �r �r r r r r T s z7CredentialRotationStatus.time_auto_completion_scheduledc C s || _ dS )a/ Sets the time_auto_completion_scheduled of this CredentialRotationStatus. The time by which retirement of old credentials should start. :param time_auto_completion_scheduled: The time_auto_completion_scheduled of this CredentialRotationStatus. :type: datetime Nr )r r r r r r ` s c C s | j S )a# **[Required]** Gets the status of this CredentialRotationStatus. Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster. Allowed values for this property are: "IN_PROGRESS", "WAITING", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this CredentialRotationStatus. :rtype: str )r r r r r r l s zCredentialRotationStatus.statusc C s g d�}t ||�sd}|| _dS )aO Sets the status of this CredentialRotationStatus. Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster. :param status: The status of this CredentialRotationStatus. :type: str )r r r �UNKNOWN_ENUM_VALUEN)r r )r r �allowed_valuesr r r r ~ s c C s | j S )a3 **[Required]** Gets the status_details of this CredentialRotationStatus. Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired. Allowed values for this property are: "ISSUING_NEW_CREDENTIALS", "NEW_CREDENTIALS_ISSUED", "RETIRING_OLD_CREDENTIALS", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status_details of this CredentialRotationStatus. :rtype: str )r r r r r r � s z'CredentialRotationStatus.status_detailsc C s g d�}t ||�sd}|| _dS )a0 Sets the status_details of this CredentialRotationStatus. Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired. :param status_details: The status_details of this CredentialRotationStatus. :type: str )r r r r r N)r r )r r r r r r r � s c C s t | �S �N)r r r r r �__repr__� s z!CredentialRotationStatus.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zCredentialRotationStatus.__eq__c C s | |k S r r r r r r �__ne__� s zCredentialRotationStatus.__ne__N)�__name__� __module__�__qualname__�__doc__ZSTATUS_IN_PROGRESSZSTATUS_WAITINGZSTATUS_COMPLETEDZ&STATUS_DETAILS_ISSUING_NEW_CREDENTIALSZ%STATUS_DETAILS_NEW_CREDENTIALS_ISSUEDZ'STATUS_DETAILS_RETIRING_OLD_CREDENTIALSZSTATUS_DETAILS_COMPLETEDr �propertyr �setterr r r r"