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 d Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdd� Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Z e jd'd&� �Z ed(d)� �Z!e!jd*d)� �Z!d+d,� Z"d-d.� Z#d/d0� Z$d1S )2� AutonomousDatabaseStandbySummaryz9 Autonomous Data Guard standby database details. �PROVISIONING� AVAILABLE�STOPPING�STOPPED�STARTING�TERMINATING� TERMINATED�UNAVAILABLE�RESTORE_IN_PROGRESS�RESTORE_FAILED�BACKUP_IN_PROGRESS�SCALE_IN_PROGRESS�AVAILABLE_NEEDS_ATTENTION�UPDATING�MAINTENANCE_IN_PROGRESS� RESTARTING� RECREATING�ROLE_CHANGE_IN_PROGRESS� UPGRADING�INACCESSIBLE�STANDBYc K sP ddddddd�| _ ddddd d d�| _d| _d| _d| _d| _d| _d| _dS )a� Initializes a new AutonomousDatabaseStandbySummary object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param lag_time_in_seconds: The value to assign to the lag_time_in_seconds property of this AutonomousDatabaseStandbySummary. :type lag_time_in_seconds: int :param lifecycle_state: The value to assign to the lifecycle_state property of this AutonomousDatabaseStandbySummary. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this AutonomousDatabaseStandbySummary. :type lifecycle_details: str :param time_data_guard_role_changed: The value to assign to the time_data_guard_role_changed property of this AutonomousDatabaseStandbySummary. :type time_data_guard_role_changed: datetime :param time_disaster_recovery_role_changed: The value to assign to the time_disaster_recovery_role_changed property of this AutonomousDatabaseStandbySummary. :type time_disaster_recovery_role_changed: datetime :param availability_domain: The value to assign to the availability_domain property of this AutonomousDatabaseStandbySummary. :type availability_domain: str �int�strZdatetime)�lag_time_in_seconds�lifecycle_state�lifecycle_details�time_data_guard_role_changed�#time_disaster_recovery_role_changed�availability_domainZlagTimeInSecondsZlifecycleStateZlifecycleDetailsZtimeDataGuardRoleChangedZtimeDisasterRecoveryRoleChangedZavailabilityDomainN)Z swagger_typesZ attribute_map�_lag_time_in_seconds�_lifecycle_state�_lifecycle_details�_time_data_guard_role_changed�$_time_disaster_recovery_role_changed�_availability_domain)�self�kwargs� r, �[/usr/lib/python3.9/site-packages/oci/database/models/autonomous_database_standby_summary.py�__init__f s( !� � z)AutonomousDatabaseStandbySummary.__init__c C s | j S )a� Gets the lag_time_in_seconds of this AutonomousDatabaseStandbySummary. The amount of time, in seconds, that the data of the standby database lags the data of the primary database. Can be used to determine the potential data loss in the event of a failover. :return: The lag_time_in_seconds of this AutonomousDatabaseStandbySummary. :rtype: int �r$ �r* r, r, r- r � s z4AutonomousDatabaseStandbySummary.lag_time_in_secondsc C s || _ dS )a� Sets the lag_time_in_seconds of this AutonomousDatabaseStandbySummary. The amount of time, in seconds, that the data of the standby database lags the data of the primary database. Can be used to determine the potential data loss in the event of a failover. :param lag_time_in_seconds: The lag_time_in_seconds of this AutonomousDatabaseStandbySummary. :type: int Nr/ )r* r r, r, r- r � s c C s | j S )a� Gets the lifecycle_state of this AutonomousDatabaseStandbySummary. The current state of the Autonomous Database. Allowed values for this property are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this AutonomousDatabaseStandbySummary. :rtype: str )r% r0 r, r, r- r � s z0AutonomousDatabaseStandbySummary.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this AutonomousDatabaseStandbySummary. The current state of the Autonomous Database. :param lifecycle_state: The lifecycle_state of this AutonomousDatabaseStandbySummary. :type: str )r r r r r r r r r r r r r r r r r r r r r ZUNKNOWN_ENUM_VALUEN)r r% )r* r Zallowed_valuesr, r, r- r � s c C s | j S )z� Gets the lifecycle_details of this AutonomousDatabaseStandbySummary. Additional information about the current lifecycle state. :return: The lifecycle_details of this AutonomousDatabaseStandbySummary. :rtype: str �r&