ruạṛ
a N��f�6 � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�Job� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s� e Zd ZdZdZdZdZdZdZdZ dZ d d � Zedd� �Z e jd d� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zdd� Zdd� Zdd� Zd S )!�SqlJobz% The details of the SQL job. �QUERY�DML�DDL�PLSQL�EXECUTE_SQL�NORMAL�SYSDBAc K s� ddddddddddddddddddddddd�| _ ddd d ddd dddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )ae Initializes a new SqlJob object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.SqlJob.job_type` attribute of this class is ``SQL`` and it should not be changed. 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 SqlJob. :type id: str :param compartment_id: The value to assign to the compartment_id property of this SqlJob. :type compartment_id: str :param name: The value to assign to the name property of this SqlJob. :type name: str :param description: The value to assign to the description property of this SqlJob. :type description: str :param managed_database_group_id: The value to assign to the managed_database_group_id property of this SqlJob. :type managed_database_group_id: str :param managed_database_id: The value to assign to the managed_database_id property of this SqlJob. :type managed_database_id: str :param managed_databases_details: The value to assign to the managed_databases_details property of this SqlJob. :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 SqlJob. 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 SqlJob. 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 SqlJob. 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 SqlJob. 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 SqlJob. :type timeout: str :param result_location: The value to assign to the result_location property of this SqlJob. :type result_location: oci.database_management.models.JobExecutionResultLocation :param schedule_details: The value to assign to the schedule_details property of this SqlJob. :type schedule_details: oci.database_management.models.JobScheduleDetails :param submission_error_message: The value to assign to the submission_error_message property of this SqlJob. :type submission_error_message: str :param time_created: The value to assign to the time_created property of this SqlJob. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this SqlJob. :type time_updated: datetime :param sql_type: The value to assign to the sql_type property of this SqlJob. Allowed values for this property are: "QUERY", "DML", "DDL", "PLSQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sql_type: str :param sql_text: The value to assign to the sql_text property of this SqlJob. :type sql_text: str :param operation_type: The value to assign to the operation_type property of this SqlJob. Allowed values for this property are: "EXECUTE_SQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str :param user_name: The value to assign to the user_name property of this SqlJob. :type user_name: str :param role: The value to assign to the role property of this SqlJob. Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type role: str �strzlist[JobDatabase]�JobExecutionResultLocation�JobScheduleDetails�datetime)�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�sql_type�sql_text�operation_type� user_name�roler � compartmentIdr r �managedDatabaseGroupId�managedDatabaseId�managedDatabasesDetails�databaseSubType�scheduleType�jobType�lifecycleStater �resultLocation�scheduleDetails�submissionErrorMessage�timeCreated�timeUpdated�sqlType�sqlText� operationType�userNamer) N�SQL)� swagger_types� 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� _sql_type� _sql_text�_operation_type� _user_name�_role)�self�kwargs� rV ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/database_management/models/sql_job.py�__init__, s� n��zSqlJob.__init__c C s | j S )a� Gets the sql_type of this SqlJob. The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType. Allowed values for this property are: "QUERY", "DML", "DDL", "PLSQL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The sql_type of this SqlJob. :rtype: str )rO �rT rV rV rW r% � s zSqlJob.sql_typec C s g d�}t ||�sd}|| _dS )z� Sets the sql_type of this SqlJob. The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType. :param sql_type: The sql_type of this SqlJob. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r rO )rT r% �allowed_valuesrV rV rW r% � s c C s | j S )z� Gets the sql_text of this SqlJob. The SQL text to be executed in the job. This is a mandatory field for the EXECUTE_SQL operationType. :return: The sql_text of this SqlJob. :rtype: str �rP rY rV rV rW r&