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 ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#dZ$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&d0d1� �Z,e,j(d2d1� �Z,e&d3d4� �Z-e-j(d5d4� �Z-e&d6d7� �Z.e.j(d8d7� �Z.e&d9d:� �Z/e/j(d;d:� �Z/e&d<d=� �Z0e0j(d>d=� �Z0e&d?d@� �Z1e1j(dAd@� �Z1e&dBdC� �Z2e2j(dDdC� �Z2e&dEdF� �Z3e3j(dGdF� �Z3e&dHdI� �Z4e4j(dJdI� �Z4e&dKdL� �Z5e5j(dMdL� �Z5e&dNdO� �Z6e6j(dPdO� �Z6e&dQdR� �Z7e7j(dSdR� �Z7e&dTdU� �Z8e8j(dVdU� �Z8e&dWdX� �Z9e9j(dYdX� �Z9e&dZd[� �Z:e:j(d\d[� �Z:e&d]d^� �Z;e;j(d_d^� �Z;e&d`da� �Z<e<j(dbda� �Z<e&dcdd� �Z=e=j(dedd� �Z=e&dfdg� �Z>e>j(dhdg� �Z>e&didj� �Z?e?j(dkdj� �Z?e&dldm� �Z@e@j(dndm� �Z@e&dodp� �ZAeAj(dqdp� �ZAe&drds� �ZBeBj(dtds� �ZBe&dudv� �ZCeCj(dwdv� �ZCe&dxdy� �ZDeDj(dzdy� �ZDe&d{d|� �ZEeEj(d}d|� �ZEe&d~d� �ZFeFj(d�d� �ZFe&d�d�� �ZGeGj(d�d�� �ZGd�d�� ZHd�d�� ZId�d�� ZJd�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�TIMEZONE�CUSTOM_DATABASE_SOFTWARE_IMAGE�ROLLING� NONROLLING�PATCHING�WAITINGc ! K sT ddddddddddddddddddddddddddddddddd� | _ ddd d ddd ddddddddddddddddddd 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'S )(a� 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", "TIMEZONE", "CUSTOM_DATABASE_SOFTWARE_IMAGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type maintenance_subtype: str :param is_dst_file_update_enabled: The value to assign to the is_dst_file_update_enabled property of this MaintenanceRun. :type is_dst_file_update_enabled: bool :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 :param is_maintenance_run_granular: The value to assign to the is_maintenance_run_granular property of this MaintenanceRun. :type is_maintenance_run_granular: bool :param total_time_taken_in_mins: The value to assign to the total_time_taken_in_mins property of this MaintenanceRun. :type total_time_taken_in_mins: int :param database_software_image_id: The value to assign to the database_software_image_id property of this MaintenanceRun. :type database_software_image_id: str �strZdatetime�bool�intZEstimatedPatchingTime) �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�is_dst_file_update_enabled�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�is_maintenance_run_granular�total_time_taken_in_mins�database_software_image_idr* Z compartmentIdZdisplayNamer- ZlifecycleStateZlifecycleDetailsZ timeScheduledZtimeStartedZ timeEndedZtargetResourceTypeZtargetResourceIdZmaintenanceTypeZpatchIdZmaintenanceSubtypeZisDstFileUpdateEnabledZpeerMaintenanceRunIdZpatchingModeZpatchFailureCountZtargetDbServerVersionZtargetStorageServerVersionZisCustomActionTimeoutEnabledZcustomActionTimeoutInMinsZ currentCustomActionTimeoutInMinsZpatchingStatusZpatchingStartTimeZpatchingEndTimeZestimatedPatchingTimeZcurrentPatchingComponentZ#estimatedComponentPatchingStartTimeZisMaintenanceRunGranularZtotalTimeTakenInMinsZdatabaseSoftwareImageIdN)"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�_is_dst_file_update_enabled�_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�_is_maintenance_run_granular�_total_time_taken_in_mins�_database_software_image_id)�self�kwargs� rl �G/usr/lib/python3.9/site-packages/oci/database/models/maintenance_run.py�__init__� s� �$�#zMaintenanceRun.__init__c C s | j S )z� **[Required]** Gets the id of this MaintenanceRun. The OCID of the maintenance run. :return: The id of this MaintenanceRun. :rtype: str �rJ �rj rl rl rm r* � s zMaintenanceRun.idc C s || _ dS )z� Sets the id of this MaintenanceRun. The OCID of the maintenance run. :param id: The id of this MaintenanceRun. :type: str Nro )rj r* rl rl rm r* � s c C s | j S )z� **[Required]** Gets the compartment_id of this MaintenanceRun. The OCID of the compartment. :return: The compartment_id of this MaintenanceRun. :rtype: str �rK rp rl rl rm r+ � s zMaintenanceRun.compartment_idc C s || _ dS )z� Sets the compartment_id of this MaintenanceRun. The OCID of the compartment. :param compartment_id: The compartment_id of this MaintenanceRun. :type: str Nrq )rj r+ rl rl rm r+ � s c C s | j S )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 �rL rp rl rl rm r, � s zMaintenanceRun.display_namec C s || _ dS )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 Nrr )rj r, rl rl rm r, � s c C s | j S )z� Gets the description of this MaintenanceRun. Description of the maintenance run. :return: The description of this MaintenanceRun. :rtype: str �rM rp rl rl rm r- � s zMaintenanceRun.descriptionc C s || _ dS )z� Sets the description of this MaintenanceRun. Description of the maintenance run. :param description: The description of this MaintenanceRun. :type: str Nrs )rj r- rl rl rm r- � s c C s | j S )aI **[Required]** Gets the lifecycle_state of this MaintenanceRun. The current state of the maintenance run. For Autonomous Database Serverless instances, 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 )rN rp rl rl rm r. � s zMaintenanceRun.lifecycle_statec C s g d�}t ||�sd}|| _dS )a8 Sets the lifecycle_state of this MaintenanceRun. The current state of the maintenance run. For Autonomous Database Serverless instances, 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 rN )rj r. �allowed_valuesrl rl rm r. � s c C s | j S )z� Gets the lifecycle_details of this MaintenanceRun. Additional information about the current lifecycle state. :return: The lifecycle_details of this MaintenanceRun. :rtype: str �rO rp rl rl rm r/ s z MaintenanceRun.lifecycle_detailsc C s || _ dS )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 Nrv )rj r/ rl rl rm r/ s c C s | j S )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 �rP rp rl rl rm r0 % s zMaintenanceRun.time_scheduledc C s || _ dS )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 Nrw )rj r0 rl rl rm r0 1 s c C s | j S )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 �rQ rp rl rl rm r1 = s zMaintenanceRun.time_startedc C s || _ dS )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 Nrx )rj r1 rl rl rm r1 I s c C s | j S )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 �rR rp rl rl rm r2 U s zMaintenanceRun.time_endedc C s || _ dS )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 Nry )rj r2 rl rl rm r2 a s c C s | j S )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 )rS rp rl rl rm r3 m s z#MaintenanceRun.target_resource_typec C s g d�}t ||�sd}|| _dS )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 rt N)r rS )rj r3 ru rl rl rm r3 | s c C s | j S )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 �rT rp rl rl rm r4 � s z!MaintenanceRun.target_resource_idc C s || _ dS )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 Nrz )rj r4 rl rl rm r4 � s c C s | j S )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 )rU rp rl rl rm r5 � s zMaintenanceRun.maintenance_typec C s ddg}t ||�sd}|| _dS )z� Sets the maintenance_type of this MaintenanceRun. Maintenance type. :param maintenance_type: The maintenance_type of this MaintenanceRun. :type: str r r rt N)r rU )rj r5 ru rl rl rm r5 � s c C s | j S )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 �rV rp rl rl rm r6 � s zMaintenanceRun.patch_idc C s || _ dS )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 Nr{ )rj r6 rl rl rm r6 � s c C s | j S )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", "TIMEZONE", "CUSTOM_DATABASE_SOFTWARE_IMAGE", '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 )rW rp rl rl rm r7 � s z"MaintenanceRun.maintenance_subtypec C s g d�}t ||�sd}|| _dS )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 r! r"