a fU@s8ddlmZmZmZddlmZeGdddeZdS))formatted_flat_dict NONE_SENTINEL#value_allowed_none_or_none_sentinel)init_model_state_from_kwargsc@seZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d d ZeddZeddZejddZeddZejddZeddZejddZeddZejddZeddZejddZedd Zejd!d Zed"d#Zejd$d#Zed%d&Zejd'd&Zed(d)Zejd*d)Zed+d,Zejd-d,Zed.d/Zejd0d/Zed1d2Zejd3d2Zed4d5Zejd6d5Zed7d8Z e jd9d8Z ed:d;Z!e!jdZ"e"jd?d>Z"ed@dAZ#e#jdBdAZ#dCdDZ$dEdFZ%dGdHZ&dIS)JJobz! The details of the job. CDBPDBNON_CDBACDADB IMMEDIATELATERSQLACTIVEINACTIVEcKsdddddddddddddddddd|_ddd d d d d ddddddddddd|_d|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dS)a Initializes a new Job 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.database_management.models.SqlJob` 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 Job. :type id: str :param compartment_id: The value to assign to the compartment_id property of this Job. :type compartment_id: str :param name: The value to assign to the name property of this Job. :type name: str :param description: The value to assign to the description property of this Job. :type description: str :param managed_database_group_id: The value to assign to the managed_database_group_id property of this Job. :type managed_database_group_id: str :param managed_database_id: The value to assign to the managed_database_id property of this Job. :type managed_database_id: str :param managed_databases_details: The value to assign to the managed_databases_details property of this Job. :type managed_databases_details: list[oci.database_management.models.JobDatabase] :param database_sub_type: The value to assign to the database_sub_type property of this Job. Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_sub_type: str :param schedule_type: The value to assign to the schedule_type property of this Job. Allowed values for this property are: "IMMEDIATE", "LATER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type schedule_type: str :param job_type: The value to assign to the job_type property of this Job. Allowed values for this property are: "SQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type job_type: str :param lifecycle_state: The value to assign to the lifecycle_state property of this Job. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param timeout: The value to assign to the timeout property of this Job. :type timeout: str :param result_location: The value to assign to the result_location property of this Job. :type result_location: oci.database_management.models.JobExecutionResultLocation :param schedule_details: The value to assign to the schedule_details property of this Job. :type schedule_details: oci.database_management.models.JobScheduleDetails :param submission_error_message: The value to assign to the submission_error_message property of this Job. :type submission_error_message: str :param time_created: The value to assign to the time_created property of this Job. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Job. :type time_updated: datetime strzlist[JobDatabase]ZJobExecutionResultLocationZJobScheduleDetailsZdatetime)idcompartment_idname descriptionmanaged_database_group_idmanaged_database_idmanaged_databases_detailsdatabase_sub_type schedule_typejob_typelifecycle_statetimeoutresult_locationschedule_detailssubmission_error_message time_created time_updatedrZ compartmentIdrrZmanagedDatabaseGroupIdZmanagedDatabaseIdZmanagedDatabasesDetailsZdatabaseSubTypeZ scheduleTypejobTypeZlifecycleStaterZresultLocationZscheduleDetailsZsubmissionErrorMessageZ timeCreatedZ timeUpdatedN)Z swagger_typesZ attribute_map_id_compartment_id_name _description_managed_database_group_id_managed_database_id_managed_databases_details_database_sub_type_schedule_type _job_type_lifecycle_state_timeout_result_location_schedule_details_submission_error_message _time_created _time_updated)selfkwargsr7F/usr/lib/python3.9/site-packages/oci/database_management/models/job.py__init__:sjWz Job.__init__cCs|d}|dkrdSdSdS)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#rZSqlJobrNr7)Zobject_dictionarytyper7r7r8 get_subtypeszJob.get_subtypecCs|jS)z **[Required]** Gets the id of this Job. The `OCID`__ of the job. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The id of this Job. :rtype: str r$r5r7r7r8rs zJob.idcCs ||_dS)z Sets the id of this Job. The `OCID`__ of the job. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param id: The id of this Job. :type: str Nr<)r5rr7r7r8rs cCs|jS)a! **[Required]** Gets the compartment_id of this Job. The `OCID`__ of the compartment in which the job resides. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The compartment_id of this Job. :rtype: str r%r=r7r7r8rs zJob.compartment_idcCs ||_dS)a Sets the compartment_id of this Job. The `OCID`__ of the compartment in which the job resides. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this Job. :type: str Nr>)r5rr7r7r8rs cCs|jS)z **[Required]** Gets the name of this Job. The display name of the job. :return: The name of this Job. :rtype: str r&r=r7r7r8rs zJob.namecCs ||_dS)z Sets the name of this Job. The display name of the job. :param name: The name of this Job. :type: str Nr?)r5rr7r7r8rs cCs|jS)z Gets the description of this Job. The description of the job. :return: The description of this Job. :rtype: str r'r=r7r7r8r's zJob.descriptioncCs ||_dS)z Sets the description of this Job. The description of the job. :param description: The description of this Job. :type: str Nr@)r5rr7r7r8r3s cCs|jS)a; Gets the managed_database_group_id of this Job. The `OCID`__ of the Managed Database Group where the job has to be executed. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The managed_database_group_id of this Job. :rtype: str r(r=r7r7r8r?s zJob.managed_database_group_idcCs ||_dS)aS Sets the managed_database_group_id of this Job. The `OCID`__ of the Managed Database Group where the job has to be executed. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param managed_database_group_id: The managed_database_group_id of this Job. :type: str NrA)r5rr7r7r8rMs cCs|jS)a) Gets the managed_database_id of this Job. The `OCID`__ of the Managed Database where the job has to be executed. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The managed_database_id of this Job. :rtype: str r)r=r7r7r8r[s zJob.managed_database_idcCs ||_dS)a; Sets the managed_database_id of this Job. The `OCID`__ of the Managed Database where the job has to be executed. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param managed_database_id: The managed_database_id of this Job. :type: str NrB)r5rr7r7r8ris cCs|jS)a Gets the managed_databases_details of this Job. The details of the Managed Databases where the job has to be executed. :return: The managed_databases_details of this Job. :rtype: list[oci.database_management.models.JobDatabase] r*r=r7r7r8rws zJob.managed_databases_detailscCs ||_dS)a' Sets the managed_databases_details of this Job. The details of the Managed Databases where the job has to be executed. :param managed_databases_details: The managed_databases_details of this Job. :type: list[oci.database_management.models.JobDatabase] NrC)r5rr7r7r8rs cCs|jS)a Gets the database_sub_type of this Job. The subtype of the Oracle Database where the job has to be executed. Applicable only when managedDatabaseGroupId is provided. Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_sub_type of this Job. :rtype: str )r+r=r7r7r8rs zJob.database_sub_typecCs gd}t||sd}||_dS)a Sets the database_sub_type of this Job. The subtype of the Oracle Database where the job has to be executed. Applicable only when managedDatabaseGroupId is provided. :param database_sub_type: The database_sub_type of this Job. :type: str )rrr r r UNKNOWN_ENUM_VALUEN)rr+)r5rallowed_valuesr7r7r8rs  cCs|jS)ai **[Required]** Gets the schedule_type of this Job. The schedule type of the job. Allowed values for this property are: "IMMEDIATE", "LATER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The schedule_type of this Job. :rtype: str )r,r=r7r7r8rs zJob.schedule_typecCs ddg}t||sd}||_dS)z Sets the schedule_type of this Job. The schedule type of the job. :param schedule_type: The schedule_type of this Job. :type: str r r rDN)rr,)r5rrEr7r7r8rs  cCs|jS)aC **[Required]** Gets the job_type of this Job. The type of job. Allowed values for this property are: "SQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The job_type of this Job. :rtype: str )r-r=r7r7r8rs z Job.job_typecCsdg}t||sd}||_dS)z Sets the job_type of this Job. The type of job. :param job_type: The job_type of this Job. :type: str rrDN)rr-)r5rrEr7r7r8rs  cCs|jS)ao **[Required]** Gets the lifecycle_state of this Job. The lifecycle state of the job. Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Job. :rtype: str )r.r=r7r7r8rs zJob.lifecycle_statecCs ddg}t||sd}||_dS)z Sets the lifecycle_state of this Job. The lifecycle state of the job. :param lifecycle_state: The lifecycle_state of this Job. :type: str rrrDN)rr.)r5rrEr7r7r8rs  cCs|jS)z Gets the timeout of this Job. The job timeout duration, which is expressed like "1h 10m 15s". :return: The timeout of this Job. :rtype: str r/r=r7r7r8rs z Job.timeoutcCs ||_dS)z Sets the timeout of this Job. The job timeout duration, which is expressed like "1h 10m 15s". :param timeout: The timeout of this Job. :type: str NrF)r5rr7r7r8rs cCs|jS)z Gets the result_location of this Job. :return: The result_location of this Job. :rtype: oci.database_management.models.JobExecutionResultLocation r0r=r7r7r8rszJob.result_locationcCs ||_dS)z Sets the result_location of this Job. :param result_location: The result_location of this Job. :type: oci.database_management.models.JobExecutionResultLocation NrG)r5rr7r7r8r)scCs|jS)z Gets the schedule_details of this Job. :return: The schedule_details of this Job. :rtype: oci.database_management.models.JobScheduleDetails r1r=r7r7r8r3szJob.schedule_detailscCs ||_dS)z Sets the schedule_details of this Job. :param schedule_details: The schedule_details of this Job. :type: oci.database_management.models.JobScheduleDetails NrH)r5rr7r7r8r=scCs|jS)a Gets the submission_error_message of this Job. The error message that is returned if the job submission fails. Null is returned in all other scenarios. :return: The submission_error_message of this Job. :rtype: str r2r=r7r7r8r Gs zJob.submission_error_messagecCs ||_dS)a Sets the submission_error_message of this Job. The error message that is returned if the job submission fails. Null is returned in all other scenarios. :param submission_error_message: The submission_error_message of this Job. :type: str NrI)r5r r7r7r8r Ss cCs|jS)z **[Required]** Gets the time_created of this Job. The date and time when the job was created. :return: The time_created of this Job. :rtype: datetime r3r=r7r7r8r!_s zJob.time_createdcCs ||_dS)z Sets the time_created of this Job. The date and time when the job was created. :param time_created: The time_created of this Job. :type: datetime NrJ)r5r!r7r7r8r!ks cCs|jS)z **[Required]** Gets the time_updated of this Job. The date and time when the job was last updated. :return: The time_updated of this Job. :rtype: datetime r4r=r7r7r8r"ws zJob.time_updatedcCs ||_dS)z Sets the time_updated of this Job. The date and time when the job was last updated. :param time_updated: The time_updated of this Job. :type: datetime NrK)r5r"r7r7r8r"s cCst|SN)rr=r7r7r8__repr__sz Job.__repr__cCs|dur dS|j|jkS)NF)__dict__r5otherr7r7r8__eq__sz Job.__eq__cCs ||k SrLr7rOr7r7r8__ne__sz Job.__ne__N)'__name__ __module__ __qualname____doc__ZDATABASE_SUB_TYPE_CDBZDATABASE_SUB_TYPE_PDBZDATABASE_SUB_TYPE_NON_CDBZDATABASE_SUB_TYPE_ACDZDATABASE_SUB_TYPE_ADBZSCHEDULE_TYPE_IMMEDIATEZSCHEDULE_TYPE_LATERZ JOB_TYPE_SQLZLIFECYCLE_STATE_ACTIVEZLIFECYCLE_STATE_INACTIVEr9 staticmethodr;propertyrsetterrrrrrrrrrrrrrr r!r"rMrQrRr7r7r7r8r s                                   rN)Zoci.utilrrrZoci.decoratorsrobjectrr7r7r7r8s