o
    ɶd                     @   s8   d dl mZmZmZ d dlmZ eG dd deZdS )    )formatted_flat_dictNONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc                   @   s  e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dZ"d d! Z#e$d"d# Z%e%j&d$d# Z%e$d%d& Z'e'j&d'd& Z'e$d(d) Z(e(j&d*d) Z(e$d+d, Z)e)j&d-d, Z)e$d.d/ Z*e*j&d0d/ Z*e$d1d2 Z+e+j&d3d2 Z+e$d4d5 Z,e,j&d6d5 Z,e$d7d8 Z-e-j&d9d8 Z-e$d:d; Z.e.j&d<d; Z.e$d=d> Z/e/j&d?d> Z/e$d@dA Z0e0j&dBdA Z0e$dCdD Z1e1j&dEdD Z1e$dFdG Z2e2j&dHdG Z2e$dIdJ Z3e3j&dKdJ Z3e$dLdM Z4e4j&dNdM Z4e$dOdP Z5e5j&dQdP Z5e$dRdS Z6e6j&dTdS Z6e$dUdV Z7e7j&dWdV Z7e$dXdY Z8e8j&dZdY Z8e$d[d\ Z9e9j&d]d\ Z9e$d^d_ Z:e:j&d`d_ Z:e$dadb Z;e;j&dcdb Z;e$ddde Z<e<j&dfde Z<e$dgdh Z=e=j&didh Z=e$djdk Z>e>j&dldk Z>e$dmdn Z?e?j&dodn Z?e$dpdq Z@e@j&drdq Z@e$dsdt ZAeAj&dudt ZAdvdw ZBdxdy ZCdzd{ ZDd|S )}MaintenanceRunz'
    Details of a maintenance run.
    	SCHEDULEDIN_PROGRESS	SUCCEEDEDSKIPPEDFAILEDUPDATINGDELETINGDELETEDCANCELED!AUTONOMOUS_EXADATA_INFRASTRUCTUREAUTONOMOUS_CONTAINER_DATABASEEXADATA_DB_SYSTEMCLOUD_EXADATA_INFRASTRUCTUREEXACC_INFRASTRUCTUREAUTONOMOUS_VM_CLUSTERAUTONOMOUS_DATABASECLOUD_AUTONOMOUS_VM_CLUSTERPLANNED	UNPLANNED	QUARTERLYHARDWARECRITICALINFRASTRUCTUREDATABASEONEOFFSECURITY_MONTHLYROLLING
NONROLLINGPATCHINGWAITINGc                 K   s  i dddddddddddddd	d
d	dd	ddddddddddddddddddddddd	d	ddd	d| _ i ddddddddddddddd
ddddddd dd!dd"dd#dd$dd%dd&d'd(d)d*d+d,d-d.d/d0d1d| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _	d2| _
d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2| _d2S )3as  
        Initializes a new MaintenanceRun object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this MaintenanceRun.
        :type id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this MaintenanceRun.
        :type compartment_id: str

        :param display_name:
            The value to assign to the display_name property of this MaintenanceRun.
        :type display_name: str

        :param description:
            The value to assign to the description property of this MaintenanceRun.
        :type description: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this MaintenanceRun.
            Allowed values for this property are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", "UPDATING", "DELETING", "DELETED", "CANCELED", '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 MaintenanceRun.
        :type lifecycle_details: str

        :param time_scheduled:
            The value to assign to the time_scheduled property of this MaintenanceRun.
        :type time_scheduled: datetime

        :param time_started:
            The value to assign to the time_started property of this MaintenanceRun.
        :type time_started: datetime

        :param time_ended:
            The value to assign to the time_ended property of this MaintenanceRun.
        :type time_ended: datetime

        :param target_resource_type:
            The value to assign to the target_resource_type property of this MaintenanceRun.
            Allowed values for this property are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE", "AUTONOMOUS_VM_CLUSTER", "AUTONOMOUS_DATABASE", "CLOUD_AUTONOMOUS_VM_CLUSTER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type target_resource_type: str

        :param target_resource_id:
            The value to assign to the target_resource_id property of this MaintenanceRun.
        :type target_resource_id: str

        :param maintenance_type:
            The value to assign to the maintenance_type property of this MaintenanceRun.
            Allowed values for this property are: "PLANNED", "UNPLANNED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type maintenance_type: str

        :param patch_id:
            The value to assign to the patch_id property of this MaintenanceRun.
        :type patch_id: str

        :param maintenance_subtype:
            The value to assign to the maintenance_subtype property of this MaintenanceRun.
            Allowed values for this property are: "QUARTERLY", "HARDWARE", "CRITICAL", "INFRASTRUCTURE", "DATABASE", "ONEOFF", "SECURITY_MONTHLY", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type maintenance_subtype: str

        :param peer_maintenance_run_id:
            The value to assign to the peer_maintenance_run_id property of this MaintenanceRun.
        :type peer_maintenance_run_id: str

        :param patching_mode:
            The value to assign to the patching_mode property of this MaintenanceRun.
            Allowed values for this property are: "ROLLING", "NONROLLING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type patching_mode: str

        :param patch_failure_count:
            The value to assign to the patch_failure_count property of this MaintenanceRun.
        :type patch_failure_count: int

        :param target_db_server_version:
            The value to assign to the target_db_server_version property of this MaintenanceRun.
        :type target_db_server_version: str

        :param target_storage_server_version:
            The value to assign to the target_storage_server_version property of this MaintenanceRun.
        :type target_storage_server_version: str

        :param is_custom_action_timeout_enabled:
            The value to assign to the is_custom_action_timeout_enabled property of this MaintenanceRun.
        :type is_custom_action_timeout_enabled: bool

        :param custom_action_timeout_in_mins:
            The value to assign to the custom_action_timeout_in_mins property of this MaintenanceRun.
        :type custom_action_timeout_in_mins: int

        :param current_custom_action_timeout_in_mins:
            The value to assign to the current_custom_action_timeout_in_mins property of this MaintenanceRun.
        :type current_custom_action_timeout_in_mins: int

        :param patching_status:
            The value to assign to the patching_status property of this MaintenanceRun.
            Allowed values for this property are: "PATCHING", "WAITING", "SCHEDULED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type patching_status: str

        :param patching_start_time:
            The value to assign to the patching_start_time property of this MaintenanceRun.
        :type patching_start_time: datetime

        :param patching_end_time:
            The value to assign to the patching_end_time property of this MaintenanceRun.
        :type patching_end_time: datetime

        :param estimated_patching_time:
            The value to assign to the estimated_patching_time property of this MaintenanceRun.
        :type estimated_patching_time: oci.database.models.EstimatedPatchingTime

        :param current_patching_component:
            The value to assign to the current_patching_component property of this MaintenanceRun.
        :type current_patching_component: str

        :param estimated_component_patching_start_time:
            The value to assign to the estimated_component_patching_start_time property of this MaintenanceRun.
        :type estimated_component_patching_start_time: datetime

        idstrcompartment_iddisplay_namedescriptionlifecycle_statelifecycle_detailstime_scheduleddatetimetime_started
time_endedtarget_resource_typetarget_resource_idmaintenance_typepatch_idmaintenance_subtypepeer_maintenance_run_idpatching_modepatch_failure_countintboolZEstimatedPatchingTime)target_db_server_versiontarget_storage_server_version is_custom_action_timeout_enabledcustom_action_timeout_in_mins%current_custom_action_timeout_in_minspatching_statuspatching_start_timepatching_end_timeestimated_patching_timecurrent_patching_component'estimated_component_patching_start_timeZcompartmentIdZdisplayNameZlifecycleStateZlifecycleDetailsZtimeScheduledZtimeStartedZ	timeEndedZtargetResourceTypeZtargetResourceIdZmaintenanceTypeZpatchIdZmaintenanceSubtypeZpeerMaintenanceRunIdZpatchingModeZpatchFailureCountZtargetDbServerVersionZtargetStorageServerVersionZisCustomActionTimeoutEnabledZcustomActionTimeoutInMinsZ currentCustomActionTimeoutInMinsZpatchingStatusZpatchingStartTimeZpatchingEndTimeZestimatedPatchingTimeZcurrentPatchingComponentZ#estimatedComponentPatchingStartTimeN)Zswagger_typesZattribute_map_id_compartment_id_display_name_description_lifecycle_state_lifecycle_details_time_scheduled_time_started_time_ended_target_resource_type_target_resource_id_maintenance_type	_patch_id_maintenance_subtype_peer_maintenance_run_id_patching_mode_patch_failure_count_target_db_server_version_target_storage_server_version!_is_custom_action_timeout_enabled_custom_action_timeout_in_mins&_current_custom_action_timeout_in_mins_patching_status_patching_start_time_patching_end_time_estimated_patching_time_current_patching_component(_estimated_component_patching_start_time)selfkwargs rc   Gusr/lib/python3.10/site-packages/oci/database/models/maintenance_run.py__init__   s    	

	


zMaintenanceRun.__init__c                 C      | j S )z
        **[Required]** Gets the id of this MaintenanceRun.
        The OCID of the maintenance run.


        :return: The id of this MaintenanceRun.
        :rtype: str
        rE   ra   rc   rc   rd   r%   k     
zMaintenanceRun.idc                 C   
   || _ dS )z
        Sets the id of this MaintenanceRun.
        The OCID of the maintenance run.


        :param id: The id of this MaintenanceRun.
        :type: str
        Nrg   )ra   r%   rc   rc   rd   r%   w     

c                 C   rf   )z
        **[Required]** Gets the compartment_id of this MaintenanceRun.
        The OCID of the compartment.


        :return: The compartment_id of this MaintenanceRun.
        :rtype: str
        rF   rh   rc   rc   rd   r'     ri   zMaintenanceRun.compartment_idc                 C   rj   )z
        Sets the compartment_id of this MaintenanceRun.
        The OCID of the compartment.


        :param compartment_id: The compartment_id of this MaintenanceRun.
        :type: str
        Nrl   )ra   r'   rc   rc   rd   r'     rk   c                 C   rf   )z
        **[Required]** Gets the display_name of this MaintenanceRun.
        The user-friendly name for the maintenance run.


        :return: The display_name of this MaintenanceRun.
        :rtype: str
        rG   rh   rc   rc   rd   r(     ri   zMaintenanceRun.display_namec                 C   rj   )z
        Sets the display_name of this MaintenanceRun.
        The user-friendly name for the maintenance run.


        :param display_name: The display_name of this MaintenanceRun.
        :type: str
        Nrm   )ra   r(   rc   rc   rd   r(     rk   c                 C   rf   )z
        Gets the description of this MaintenanceRun.
        Description of the maintenance run.


        :return: The description of this MaintenanceRun.
        :rtype: str
        rH   rh   rc   rc   rd   r)     ri   zMaintenanceRun.descriptionc                 C   rj   )z
        Sets the description of this MaintenanceRun.
        Description of the maintenance run.


        :param description: The description of this MaintenanceRun.
        :type: str
        Nrn   )ra   r)   rc   rc   rd   r)     rk   c                 C   rf   )aT  
        **[Required]** Gets the lifecycle_state of this MaintenanceRun.
        The current state of the maintenance run. For Autonomous Database on shared Exadata infrastructure, valid states are IN_PROGRESS, SUCCEEDED and FAILED.

        Allowed values for this property are: "SCHEDULED", "IN_PROGRESS", "SUCCEEDED", "SKIPPED", "FAILED", "UPDATING", "DELETING", "DELETED", "CANCELED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this MaintenanceRun.
        :rtype: str
        )rI   rh   rc   rc   rd   r*        zMaintenanceRun.lifecycle_statec                 C       g d}t ||sd}|| _dS )aC  
        Sets the lifecycle_state of this MaintenanceRun.
        The current state of the maintenance run. For Autonomous Database on shared Exadata infrastructure, valid states are IN_PROGRESS, SUCCEEDED and FAILED.


        :param lifecycle_state: The lifecycle_state of this MaintenanceRun.
        :type: str
        )	r   r   r	   r
   r   r   r   r   r   UNKNOWN_ENUM_VALUEN)r   rI   )ra   r*   allowed_valuesrc   rc   rd   r*        


c                 C   rf   )z
        Gets the lifecycle_details of this MaintenanceRun.
        Additional information about the current lifecycle state.


        :return: The lifecycle_details of this MaintenanceRun.
        :rtype: str
        rJ   rh   rc   rc   rd   r+     ri   z MaintenanceRun.lifecycle_detailsc                 C   rj   )z
        Sets the lifecycle_details of this MaintenanceRun.
        Additional information about the current lifecycle state.


        :param lifecycle_details: The lifecycle_details of this MaintenanceRun.
        :type: str
        Nrt   )ra   r+   rc   rc   rd   r+     rk   c                 C   rf   )z
        **[Required]** Gets the time_scheduled of this MaintenanceRun.
        The date and time the maintenance run is scheduled to occur.


        :return: The time_scheduled of this MaintenanceRun.
        :rtype: datetime
        rK   rh   rc   rc   rd   r,     ri   zMaintenanceRun.time_scheduledc                 C   rj   )z
        Sets the time_scheduled of this MaintenanceRun.
        The date and time the maintenance run is scheduled to occur.


        :param time_scheduled: The time_scheduled of this MaintenanceRun.
        :type: datetime
        Nru   )ra   r,   rc   rc   rd   r,     rk   c                 C   rf   )z
        Gets the time_started of this MaintenanceRun.
        The date and time the maintenance run starts.


        :return: The time_started of this MaintenanceRun.
        :rtype: datetime
        rL   rh   rc   rc   rd   r.     ri   zMaintenanceRun.time_startedc                 C   rj   )z
        Sets the time_started of this MaintenanceRun.
        The date and time the maintenance run starts.


        :param time_started: The time_started of this MaintenanceRun.
        :type: datetime
        Nrv   )ra   r.   rc   rc   rd   r.   %  rk   c                 C   rf   )z
        Gets the time_ended of this MaintenanceRun.
        The date and time the maintenance run was completed.


        :return: The time_ended of this MaintenanceRun.
        :rtype: datetime
        rM   rh   rc   rc   rd   r/   1  ri   zMaintenanceRun.time_endedc                 C   rj   )z
        Sets the time_ended of this MaintenanceRun.
        The date and time the maintenance run was completed.


        :param time_ended: The time_ended of this MaintenanceRun.
        :type: datetime
        Nrw   )ra   r/   rc   rc   rd   r/   =  rk   c                 C   rf   )aq  
        Gets the target_resource_type of this MaintenanceRun.
        The type of the target resource on which the maintenance run occurs.

        Allowed values for this property are: "AUTONOMOUS_EXADATA_INFRASTRUCTURE", "AUTONOMOUS_CONTAINER_DATABASE", "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE", "AUTONOMOUS_VM_CLUSTER", "AUTONOMOUS_DATABASE", "CLOUD_AUTONOMOUS_VM_CLUSTER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The target_resource_type of this MaintenanceRun.
        :rtype: str
        )rN   rh   rc   rc   rd   r0   I  ro   z#MaintenanceRun.target_resource_typec                 C   rp   )z
        Sets the target_resource_type of this MaintenanceRun.
        The type of the target resource on which the maintenance run occurs.


        :param target_resource_type: The target_resource_type of this MaintenanceRun.
        :type: str
        )r   r   r   r   r   r   r   r   rq   N)r   rN   )ra   r0   rr   rc   rc   rd   r0   X  rs   c                 C   rf   )z
        Gets the target_resource_id of this MaintenanceRun.
        The ID of the target resource on which the maintenance run occurs.


        :return: The target_resource_id of this MaintenanceRun.
        :rtype: str
        rO   rh   rc   rc   rd   r1   g  ri   z!MaintenanceRun.target_resource_idc                 C   rj   )z
        Sets the target_resource_id of this MaintenanceRun.
        The ID of the target resource on which the maintenance run occurs.


        :param target_resource_id: The target_resource_id of this MaintenanceRun.
        :type: str
        Nrx   )ra   r1   rc   rc   rd   r1   s  rk   c                 C   rf   )al  
        Gets the maintenance_type of this MaintenanceRun.
        Maintenance type.

        Allowed values for this property are: "PLANNED", "UNPLANNED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The maintenance_type of this MaintenanceRun.
        :rtype: str
        )rP   rh   rc   rc   rd   r2     ro   zMaintenanceRun.maintenance_typec                 C       ddg}t ||sd}|| _dS )z
        Sets the maintenance_type of this MaintenanceRun.
        Maintenance type.


        :param maintenance_type: The maintenance_type of this MaintenanceRun.
        :type: str
        r   r   rq   N)r   rP   )ra   r2   rr   rc   rc   rd   r2     rs   c                 C   rf   )a  
        Gets the patch_id of this MaintenanceRun.
        The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier `ru_patch_19.9.0.0_201030` is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.


        :return: The patch_id of this MaintenanceRun.
        :rtype: str
        rQ   rh   rc   rc   rd   r3     ri   zMaintenanceRun.patch_idc                 C   rj   )a  
        Sets the patch_id of this MaintenanceRun.
        The unique identifier of the patch. The identifier string includes the patch type, the Oracle Database version, and the patch creation date (using the format YYMMDD). For example, the identifier `ru_patch_19.9.0.0_201030` is used for an RU patch for Oracle Database 19.9.0.0 that was released October 30, 2020.


        :param patch_id: The patch_id of this MaintenanceRun.
        :type: str
        Nrz   )ra   r3   rc   rc   rd   r3     rk   c                 C   rf   )a  
        Gets the maintenance_subtype of this MaintenanceRun.
        Maintenance sub-type.

        Allowed values for this property are: "QUARTERLY", "HARDWARE", "CRITICAL", "INFRASTRUCTURE", "DATABASE", "ONEOFF", "SECURITY_MONTHLY", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The maintenance_subtype of this MaintenanceRun.
        :rtype: str
        )rR   rh   rc   rc   rd   r4     ro   z"MaintenanceRun.maintenance_subtypec                 C   rp   )z
        Sets the maintenance_subtype of this MaintenanceRun.
        Maintenance sub-type.


        :param maintenance_subtype: The maintenance_subtype of this MaintenanceRun.
        :type: str
        )r   r   r   r   r   r   r    rq   N)r   rR   )ra   r4   rr   rc   rc   rd   r4     rs   c                 C   rf   )ai  
        Gets the peer_maintenance_run_id of this MaintenanceRun.
        The `OCID`__ of the maintenance run for the Autonomous Data Guard association's peer container database.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :return: The peer_maintenance_run_id of this MaintenanceRun.
        :rtype: str
        rS   rh   rc   rc   rd   r5     s   z&MaintenanceRun.peer_maintenance_run_idc                 C   rj   )a  
        Sets the peer_maintenance_run_id of this MaintenanceRun.
        The `OCID`__ of the maintenance run for the Autonomous Data Guard association's peer container database.

        __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm


        :param peer_maintenance_run_id: The peer_maintenance_run_id of this MaintenanceRun.
        :type: str
        Nr{   )ra   r5   rc   rc   rd   r5     s   
c                 C   rf   )a  
        Gets the patching_mode of this MaintenanceRun.
        Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

        *IMPORTANT*: Non-rolling infrastructure patching involves system down time. See `Oracle-Managed Infrastructure Maintenance Updates`__ for more information.

        __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle

        Allowed values for this property are: "ROLLING", "NONROLLING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The patching_mode of this MaintenanceRun.
        :rtype: str
        )rT   rh   rc   rc   rd   r6     s   zMaintenanceRun.patching_modec                 C   ry   )a  
        Sets the patching_mode of this MaintenanceRun.
        Cloud Exadata infrastructure node patching method, either "ROLLING" or "NONROLLING". Default value is ROLLING.

        *IMPORTANT*: Non-rolling infrastructure patching involves system down time. See `Oracle-Managed Infrastructure Maintenance Updates`__ for more information.

        __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/examaintenance.htm#Oracle


        :param patching_mode: The patching_mode of this MaintenanceRun.
        :type: str
        r!   r"   rq   N)r   rT   )ra   r6   rr   rc   rc   rd   r6     s   

c                 C   rf   )z
        Gets the patch_failure_count of this MaintenanceRun.
        Contain the patch failure count.


        :return: The patch_failure_count of this MaintenanceRun.
        :rtype: int
        rU   rh   rc   rc   rd   r7     ri   z"MaintenanceRun.patch_failure_countc                 C   rj   )z
        Sets the patch_failure_count of this MaintenanceRun.
        Contain the patch failure count.


        :param patch_failure_count: The patch_failure_count of this MaintenanceRun.
        :type: int
        Nr|   )ra   r7   rc   rc   rd   r7   !  rk   c                 C   rf   )z
        Gets the target_db_server_version of this MaintenanceRun.
        The target software version for the database server patching operation.


        :return: The target_db_server_version of this MaintenanceRun.
        :rtype: str
        rV   rh   rc   rc   rd   r:   -  ri   z'MaintenanceRun.target_db_server_versionc                 C   rj   )a  
        Sets the target_db_server_version of this MaintenanceRun.
        The target software version for the database server patching operation.


        :param target_db_server_version: The target_db_server_version of this MaintenanceRun.
        :type: str
        Nr}   )ra   r:   rc   rc   rd   r:   9  rk   c                 C   rf   )z
        Gets the target_storage_server_version of this MaintenanceRun.
        The target Cell version that is to be patched to.


        :return: The target_storage_server_version of this MaintenanceRun.
        :rtype: str
        rW   rh   rc   rc   rd   r;   E  ri   z,MaintenanceRun.target_storage_server_versionc                 C   rj   )a  
        Sets the target_storage_server_version of this MaintenanceRun.
        The target Cell version that is to be patched to.


        :param target_storage_server_version: The target_storage_server_version of this MaintenanceRun.
        :type: str
        Nr~   )ra   r;   rc   rc   rd   r;   Q  rk   c                 C   rf   )a=  
        Gets the is_custom_action_timeout_enabled of this MaintenanceRun.
        If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.


        :return: The is_custom_action_timeout_enabled of this MaintenanceRun.
        :rtype: bool
        rX   rh   rc   rc   rd   r<   ]  ri   z/MaintenanceRun.is_custom_action_timeout_enabledc                 C   rj   )a\  
        Sets the is_custom_action_timeout_enabled of this MaintenanceRun.
        If true, enables the configuration of a custom action timeout (waiting period) between database servers patching operations.


        :param is_custom_action_timeout_enabled: The is_custom_action_timeout_enabled of this MaintenanceRun.
        :type: bool
        Nr   )ra   r<   rc   rc   rd   r<   i  rk   c                 C   rf   )a^  
        Gets the custom_action_timeout_in_mins of this MaintenanceRun.
        Determines the amount of time the system will wait before the start of each database server patching operation.
        Specify a number of minutes, from 15 to 120.


        :return: The custom_action_timeout_in_mins of this MaintenanceRun.
        :rtype: int
        rY   rh   rc   rc   rd   r=   u  s   z,MaintenanceRun.custom_action_timeout_in_minsc                 C   rj   )az  
        Sets the custom_action_timeout_in_mins of this MaintenanceRun.
        Determines the amount of time the system will wait before the start of each database server patching operation.
        Specify a number of minutes, from 15 to 120.


        :param custom_action_timeout_in_mins: The custom_action_timeout_in_mins of this MaintenanceRun.
        :type: int
        Nr   )ra   r=   rc   rc   rd   r=     s   
c                 C   rf   )aF  
        Gets the current_custom_action_timeout_in_mins of this MaintenanceRun.
        Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.


        :return: The current_custom_action_timeout_in_mins of this MaintenanceRun.
        :rtype: int
        rZ   rh   rc   rc   rd   r>     ri   z4MaintenanceRun.current_custom_action_timeout_in_minsc                 C   rj   )aj  
        Sets the current_custom_action_timeout_in_mins of this MaintenanceRun.
        Extend current custom action timeout between the current database servers during waiting state, from 0 (zero) to 30 minutes.


        :param current_custom_action_timeout_in_mins: The current_custom_action_timeout_in_mins of this MaintenanceRun.
        :type: int
        Nr   )ra   r>   rc   rc   rd   r>     rk   c                 C   rf   )a  
        Gets the patching_status of this MaintenanceRun.
        The status of the patching operation.

        Allowed values for this property are: "PATCHING", "WAITING", "SCHEDULED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The patching_status of this MaintenanceRun.
        :rtype: str
        )r[   rh   rc   rc   rd   r?     ro   zMaintenanceRun.patching_statusc                 C   rp   )z
        Sets the patching_status of this MaintenanceRun.
        The status of the patching operation.


        :param patching_status: The patching_status of this MaintenanceRun.
        :type: str
        )r#   r$   r   rq   N)r   r[   )ra   r?   rr   rc   rc   rd   r?     rs   c                 C   rf   )z
        Gets the patching_start_time of this MaintenanceRun.
        The time when the patching operation started.


        :return: The patching_start_time of this MaintenanceRun.
        :rtype: datetime
        r\   rh   rc   rc   rd   r@     ri   z"MaintenanceRun.patching_start_timec                 C   rj   )z
        Sets the patching_start_time of this MaintenanceRun.
        The time when the patching operation started.


        :param patching_start_time: The patching_start_time of this MaintenanceRun.
        :type: datetime
        Nr   )ra   r@   rc   rc   rd   r@     rk   c                 C   rf   )z
        Gets the patching_end_time of this MaintenanceRun.
        The time when the patching operation ended.


        :return: The patching_end_time of this MaintenanceRun.
        :rtype: datetime
        r]   rh   rc   rc   rd   rA     ri   z MaintenanceRun.patching_end_timec                 C   rj   )z
        Sets the patching_end_time of this MaintenanceRun.
        The time when the patching operation ended.


        :param patching_end_time: The patching_end_time of this MaintenanceRun.
        :type: datetime
        Nr   )ra   rA   rc   rc   rd   rA     rk   c                 C   rf   )z
        Gets the estimated_patching_time of this MaintenanceRun.

        :return: The estimated_patching_time of this MaintenanceRun.
        :rtype: oci.database.models.EstimatedPatchingTime
        r^   rh   rc   rc   rd   rB     s   z&MaintenanceRun.estimated_patching_timec                 C   rj   )z
        Sets the estimated_patching_time of this MaintenanceRun.

        :param estimated_patching_time: The estimated_patching_time of this MaintenanceRun.
        :type: oci.database.models.EstimatedPatchingTime
        Nr   )ra   rB   rc   rc   rd   rB     s   
c                 C   rf   )z
        Gets the current_patching_component of this MaintenanceRun.
        The name of the current infrastruture component that is getting patched.


        :return: The current_patching_component of this MaintenanceRun.
        :rtype: str
        r_   rh   rc   rc   rd   rC   	  ri   z)MaintenanceRun.current_patching_componentc                 C   rj   )a  
        Sets the current_patching_component of this MaintenanceRun.
        The name of the current infrastruture component that is getting patched.


        :param current_patching_component: The current_patching_component of this MaintenanceRun.
        :type: str
        Nr   )ra   rC   rc   rc   rd   rC     rk   c                 C   rf   )a#  
        Gets the estimated_component_patching_start_time of this MaintenanceRun.
        The estimated start time of the next infrastruture component patching operation.


        :return: The estimated_component_patching_start_time of this MaintenanceRun.
        :rtype: datetime
        r`   rh   rc   rc   rd   rD   !  ri   z6MaintenanceRun.estimated_component_patching_start_timec                 C   rj   )aI  
        Sets the estimated_component_patching_start_time of this MaintenanceRun.
        The estimated start time of the next infrastruture component patching operation.


        :param estimated_component_patching_start_time: The estimated_component_patching_start_time of this MaintenanceRun.
        :type: datetime
        Nr   )ra   rD   rc   rc   rd   rD   -  rk   c                 C   s   t | S N)r   rh   rc   rc   rd   __repr__9  s   zMaintenanceRun.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__ra   otherrc   rc   rd   __eq__<  s   zMaintenanceRun.__eq__c                 C   s
   | |k S r   rc   r   rc   rc   rd   __ne__B  s   
zMaintenanceRun.__ne__N)E__name__
__module____qualname____doc__ZLIFECYCLE_STATE_SCHEDULEDZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_SKIPPEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_UPDATINGZLIFECYCLE_STATE_DELETINGZLIFECYCLE_STATE_DELETEDZLIFECYCLE_STATE_CANCELEDZ6TARGET_RESOURCE_TYPE_AUTONOMOUS_EXADATA_INFRASTRUCTUREZ2TARGET_RESOURCE_TYPE_AUTONOMOUS_CONTAINER_DATABASEZ&TARGET_RESOURCE_TYPE_EXADATA_DB_SYSTEMZ1TARGET_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTUREZ)TARGET_RESOURCE_TYPE_EXACC_INFRASTRUCTUREZ*TARGET_RESOURCE_TYPE_AUTONOMOUS_VM_CLUSTERZ(TARGET_RESOURCE_TYPE_AUTONOMOUS_DATABASEZ0TARGET_RESOURCE_TYPE_CLOUD_AUTONOMOUS_VM_CLUSTERZMAINTENANCE_TYPE_PLANNEDZMAINTENANCE_TYPE_UNPLANNEDZMAINTENANCE_SUBTYPE_QUARTERLYZMAINTENANCE_SUBTYPE_HARDWAREZMAINTENANCE_SUBTYPE_CRITICALZ"MAINTENANCE_SUBTYPE_INFRASTRUCTUREZMAINTENANCE_SUBTYPE_DATABASEZMAINTENANCE_SUBTYPE_ONEOFFZ$MAINTENANCE_SUBTYPE_SECURITY_MONTHLYZPATCHING_MODE_ROLLINGZPATCHING_MODE_NONROLLINGZPATCHING_STATUS_PATCHINGZPATCHING_STATUS_WAITINGZPATCHING_STATUS_SCHEDULEDre   propertyr%   setterr'   r(   r)   r*   r+   r,   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r   r   r   rc   rc   rc   rd   r      s,    ^


















































	
	



r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   rc   rc   rc   rd   <module>   s   