ruạṛ
a ���fU � @ 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 dd � Zedd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Z e jd9d8� �Z ed:d;� �Z!e!jd<d;� �Z!ed=d>� �Z"e"jd?d>� �Z"ed@dA� �Z#e#jdBdA� �Z#dCdD� Z$dEdF� Z%dGdH� Z&dIS )J�Jobz! The details of the job. �CDB�PDB�NON_CDB�ACD�ADB� IMMEDIATE�LATER�SQL�ACTIVE�INACTIVEc K s� dddddddddddddddddd�| _ ddd d ddd 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)�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_updatedr Z compartmentIdr r ZmanagedDatabaseGroupIdZmanagedDatabaseIdZmanagedDatabasesDetailsZdatabaseSubTypeZscheduleType�jobTypeZlifecycleStater ZresultLocationZscheduleDetailsZsubmissionErrorMessageZtimeCreatedZtimeUpdatedN)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)�self�kwargs� r7 �F/usr/lib/python3.9/site-packages/oci/database_management/models/job.py�__init__: sj W��zJob.__init__c C s | d }|dkrdS dS dS )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# r ZSqlJobr Nr7 )Zobject_dictionary�typer7 r7 r8 �get_subtype� s zJob.get_subtypec C s | j S )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$ �r5 r7 r7 r8 r � s zJob.idc C s || _ 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<