o
    ɶd0                     @   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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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 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 Z*e*jdQdP Z*edRdS Z+e+jdTdS Z+edUdV Z,e,jdWdV Z,edXdY Z-e-jdZdY Z-ed[d\ Z.e.jd]d\ Z.ed^d_ Z/e/jd`d_ Z/edadb Z0e0jdcdb Z0eddde Z1e1jdfde Z1edgdh Z2e2jdidh Z2edjdk Z3e3jdldk Z3edmdn Z4e4jdodn Z4edpdq Z5e5jdrdq Z5edsdt Z6e6jdudt Z6edvdw Z7e7jdxdw Z7edydz Z8e8jd{dz Z8ed|d} Z9e9jd~d} Z9edd Z:e:jdd Z:edd Z;e;jdd Z;edd Z<e<jdd Z<edd Z=e=jdd Z=edd Z>e>jdd Z>edd Z?e?jdd Z?edd Z@e@jdd Z@edd ZAeAjdd ZAdd ZBdd ZCdd ZDdS )Runz
    A run object.
    SCALAJAVAPYTHONSQLACCEPTEDIN_PROGRESS	CANCELINGCANCELEDFAILED	SUCCEEDEDSTOPPINGSTOPPEDBATCH	STREAMINGSESSIONc                 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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,
| _ i dd-dddd.dd/dd0d	d1d
d
dd2dd3dd4dd5dd6dd7dddd8dd9dd:i dd;dddddd<dd=dd>dd?d d@d!dAd"dBd#dCd$d$d&dDd'dEd(dFd)dGd*dHdIdJdKdLdMdNdOdPdQdRd,
| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _	dS| _
dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _dS| _ dS| _!dS| _"dS| _#dS| _$dS| _%dS| _&dS| _'dS| _(dS| _)dS| _*dS| _+dS| _,dS| _-dSS )Ta=  
        Initializes a new Run object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param archive_uri:
            The value to assign to the archive_uri property of this Run.
        :type archive_uri: str

        :param arguments:
            The value to assign to the arguments property of this Run.
        :type arguments: list[str]

        :param application_id:
            The value to assign to the application_id property of this Run.
        :type application_id: str

        :param application_log_config:
            The value to assign to the application_log_config property of this Run.
        :type application_log_config: oci.data_flow.models.ApplicationLogConfig

        :param class_name:
            The value to assign to the class_name property of this Run.
        :type class_name: str

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

        :param configuration:
            The value to assign to the configuration property of this Run.
        :type configuration: dict(str, str)

        :param data_read_in_bytes:
            The value to assign to the data_read_in_bytes property of this Run.
        :type data_read_in_bytes: int

        :param data_written_in_bytes:
            The value to assign to the data_written_in_bytes property of this Run.
        :type data_written_in_bytes: int

        :param defined_tags:
            The value to assign to the defined_tags property of this Run.
        :type defined_tags: dict(str, dict(str, object))

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

        :param driver_shape:
            The value to assign to the driver_shape property of this Run.
        :type driver_shape: str

        :param driver_shape_config:
            The value to assign to the driver_shape_config property of this Run.
        :type driver_shape_config: oci.data_flow.models.ShapeConfig

        :param execute:
            The value to assign to the execute property of this Run.
        :type execute: str

        :param executor_shape:
            The value to assign to the executor_shape property of this Run.
        :type executor_shape: str

        :param executor_shape_config:
            The value to assign to the executor_shape_config property of this Run.
        :type executor_shape_config: oci.data_flow.models.ShapeConfig

        :param file_uri:
            The value to assign to the file_uri property of this Run.
        :type file_uri: str

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Run.
        :type freeform_tags: dict(str, str)

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

        :param language:
            The value to assign to the language property of this Run.
            Allowed values for this property are: "SCALA", "JAVA", "PYTHON", "SQL", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type language: str

        :param lifecycle_details:
            The value to assign to the lifecycle_details property of this Run.
        :type lifecycle_details: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this Run.
            Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "CANCELING", "CANCELED", "FAILED", "SUCCEEDED", "STOPPING", "STOPPED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type lifecycle_state: str

        :param logs_bucket_uri:
            The value to assign to the logs_bucket_uri property of this Run.
        :type logs_bucket_uri: str

        :param metastore_id:
            The value to assign to the metastore_id property of this Run.
        :type metastore_id: str

        :param num_executors:
            The value to assign to the num_executors property of this Run.
        :type num_executors: int

        :param opc_request_id:
            The value to assign to the opc_request_id property of this Run.
        :type opc_request_id: str

        :param owner_principal_id:
            The value to assign to the owner_principal_id property of this Run.
        :type owner_principal_id: str

        :param owner_user_name:
            The value to assign to the owner_user_name property of this Run.
        :type owner_user_name: str

        :param parameters:
            The value to assign to the parameters property of this Run.
        :type parameters: list[oci.data_flow.models.ApplicationParameter]

        :param pool_id:
            The value to assign to the pool_id property of this Run.
        :type pool_id: str

        :param private_endpoint_dns_zones:
            The value to assign to the private_endpoint_dns_zones property of this Run.
        :type private_endpoint_dns_zones: list[str]

        :param private_endpoint_max_host_count:
            The value to assign to the private_endpoint_max_host_count property of this Run.
        :type private_endpoint_max_host_count: int

        :param private_endpoint_nsg_ids:
            The value to assign to the private_endpoint_nsg_ids property of this Run.
        :type private_endpoint_nsg_ids: list[str]

        :param private_endpoint_id:
            The value to assign to the private_endpoint_id property of this Run.
        :type private_endpoint_id: str

        :param private_endpoint_subnet_id:
            The value to assign to the private_endpoint_subnet_id property of this Run.
        :type private_endpoint_subnet_id: str

        :param run_duration_in_milliseconds:
            The value to assign to the run_duration_in_milliseconds property of this Run.
        :type run_duration_in_milliseconds: int

        :param spark_version:
            The value to assign to the spark_version property of this Run.
        :type spark_version: str

        :param time_created:
            The value to assign to the time_created property of this Run.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this Run.
        :type time_updated: datetime

        :param total_o_cpu:
            The value to assign to the total_o_cpu property of this Run.
        :type total_o_cpu: int

        :param type:
            The value to assign to the type property of this Run.
            Allowed values for this property are: "BATCH", "STREAMING", "SESSION", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type type: str

        :param warehouse_bucket_uri:
            The value to assign to the warehouse_bucket_uri property of this Run.
        :type warehouse_bucket_uri: str

        :param max_duration_in_minutes:
            The value to assign to the max_duration_in_minutes property of this Run.
        :type max_duration_in_minutes: int

        :param idle_timeout_in_minutes:
            The value to assign to the idle_timeout_in_minutes property of this Run.
        :type idle_timeout_in_minutes: int

        archive_uristr	argumentsz	list[str]application_idapplication_log_configZApplicationLogConfig
class_namecompartment_idconfigurationzdict(str, str)data_read_in_bytesintdata_written_in_bytesdefined_tagszdict(str, dict(str, object))display_namedriver_shapedriver_shape_configZShapeConfigexecuteexecutor_shapeexecutor_shape_configfile_urifreeform_tagsidlanguagelifecycle_detailslifecycle_statelogs_bucket_urimetastore_idnum_executorsopc_request_idowner_principal_idowner_user_name
parameterszlist[ApplicationParameter]pool_idprivate_endpoint_dns_zonesprivate_endpoint_max_host_countprivate_endpoint_nsg_idsprivate_endpoint_iddatetime)
private_endpoint_subnet_idrun_duration_in_millisecondsspark_versiontime_createdtime_updatedtotal_o_cputypewarehouse_bucket_urimax_duration_in_minutesidle_timeout_in_minutesZ
archiveUriZapplicationIdZapplicationLogConfigZ	classNameZcompartmentIdZdataReadInBytesZdataWrittenInBytesZdefinedTagsZdisplayNameZdriverShapeZdriverShapeConfigZexecutorShapeZexecutorShapeConfigZfileUriZfreeformTagsZlifecycleDetailsZlifecycleStateZlogsBucketUriZmetastoreIdZnumExecutorsZopcRequestIdZownerPrincipalIdZownerUserNameZpoolIdZprivateEndpointDnsZonesZprivateEndpointMaxHostCountZprivateEndpointNsgIdsZprivateEndpointIdZprivateEndpointSubnetIdZrunDurationInMillisecondsZsparkVersionZtimeCreatedZtimeUpdatedZ	totalOCpurA   ZwarehouseBucketUriZmaxDurationInMinutesZidleTimeoutInMinutesN).Zswagger_typesZattribute_map_archive_uri
_arguments_application_id_application_log_config_class_name_compartment_id_configuration_data_read_in_bytes_data_written_in_bytes_defined_tags_display_name_driver_shape_driver_shape_config_execute_executor_shape_executor_shape_config	_file_uri_freeform_tags_id	_language_lifecycle_details_lifecycle_state_logs_bucket_uri_metastore_id_num_executors_opc_request_id_owner_principal_id_owner_user_name_parameters_pool_id_private_endpoint_dns_zones _private_endpoint_max_host_count_private_endpoint_nsg_ids_private_endpoint_id_private_endpoint_subnet_id_run_duration_in_milliseconds_spark_version_time_created_time_updated_total_o_cpu_type_warehouse_bucket_uri_max_duration_in_minutes_idle_timeout_in_minutes)selfkwargs rs   <usr/lib/python3.10/site-packages/oci/data_flow/models/run.py__init__N   s   =	
 !"#
/	
 !"#
/
zRun.__init__c                 C      | j S )a  
        Gets the archive_uri of this Run.
        A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :return: The archive_uri of this Run.
        :rtype: str
        rE   rq   rs   rs   rt   r        zRun.archive_uric                 C   
   || _ dS )a(  
        Sets the archive_uri of this Run.
        A comma separated list of one or more archive files as Oracle Cloud Infrastructure URIs. For example, ``oci://path/to/a.zip,oci://path/to/b.zip``. An Oracle Cloud Infrastructure URI of an archive.zip file containing custom dependencies that may be used to support the execution of a Python, Java, or Scala application.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :param archive_uri: The archive_uri of this Run.
        :type: str
        Nrw   )rq   r   rs   rs   rt   r        
c                 C   rv   )a$  
        Gets the arguments of this Run.
        The arguments passed to the running application as command line arguments.  An argument is
        either a plain text or a placeholder. Placeholders are replaced using values from the parameters
        map.  Each placeholder specified must be represented in the parameters map else the request
        (POST or PUT) will fail with a HTTP 400 status code.  Placeholders are specified as
        `Service Api Spec`, where `name` is the name of the parameter.
        Example:  `[ "--input", "${input_file}", "--name", "John Doe" ]`
        If "input_file" has a value of "mydata.xml", then the value above will be translated to
        `--input mydata.xml --name "John Doe"`


        :return: The arguments of this Run.
        :rtype: list[str]
        rF   rx   rs   rs   rt   r     s   zRun.argumentsc                 C   rz   )a,  
        Sets the arguments of this Run.
        The arguments passed to the running application as command line arguments.  An argument is
        either a plain text or a placeholder. Placeholders are replaced using values from the parameters
        map.  Each placeholder specified must be represented in the parameters map else the request
        (POST or PUT) will fail with a HTTP 400 status code.  Placeholders are specified as
        `Service Api Spec`, where `name` is the name of the parameter.
        Example:  `[ "--input", "${input_file}", "--name", "John Doe" ]`
        If "input_file" has a value of "mydata.xml", then the value above will be translated to
        `--input mydata.xml --name "John Doe"`


        :param arguments: The arguments of this Run.
        :type: list[str]
        Nr|   )rq   r   rs   rs   rt   r     s   
c                 C   rv   )z
        **[Required]** Gets the application_id of this Run.
        The application ID.


        :return: The application_id of this Run.
        :rtype: str
        rG   rx   rs   rs   rt   r        
zRun.application_idc                 C   rz   )z
        Sets the application_id of this Run.
        The application ID.


        :param application_id: The application_id of this Run.
        :type: str
        Nr}   )rq   r   rs   rs   rt   r        

c                 C   rv   )z
        Gets the application_log_config of this Run.

        :return: The application_log_config of this Run.
        :rtype: oci.data_flow.models.ApplicationLogConfig
        rH   rx   rs   rs   rt   r        zRun.application_log_configc                 C   rz   )z
        Sets the application_log_config of this Run.

        :param application_log_config: The application_log_config of this Run.
        :type: oci.data_flow.models.ApplicationLogConfig
        Nr   )rq   r   rs   rs   rt   r        
c                 C   rv   )z
        Gets the class_name of this Run.
        The class for the application.


        :return: The class_name of this Run.
        :rtype: str
        rI   rx   rs   rs   rt   r     r~   zRun.class_namec                 C   rz   )z
        Sets the class_name of this Run.
        The class for the application.


        :param class_name: The class_name of this Run.
        :type: str
        Nr   )rq   r   rs   rs   rt   r     r   c                 C   rv   )z
        **[Required]** Gets the compartment_id of this Run.
        The OCID of a compartment.


        :return: The compartment_id of this Run.
        :rtype: str
        rJ   rx   rs   rs   rt   r     r~   zRun.compartment_idc                 C   rz   )z
        Sets the compartment_id of this Run.
        The OCID of a compartment.


        :param compartment_id: The compartment_id of this Run.
        :type: str
        Nr   )rq   r   rs   rs   rt   r   %  r   c                 C   rv   )a.  
        Gets the configuration of this Run.
        The Spark configuration passed to the running process.
        See https://spark.apache.org/docs/latest/configuration.html#available-properties.
        Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" }
        Note: Not all Spark properties are permitted to be set.  Attempting to set a property that is
        not allowed to be overwritten will cause a 400 status to be returned.


        :return: The configuration of this Run.
        :rtype: dict(str, str)
        rK   rx   rs   rs   rt   r   1     zRun.configurationc                 C   rz   )a:  
        Sets the configuration of this Run.
        The Spark configuration passed to the running process.
        See https://spark.apache.org/docs/latest/configuration.html#available-properties.
        Example: { "spark.app.name" : "My App Name", "spark.shuffle.io.maxRetries" : "4" }
        Note: Not all Spark properties are permitted to be set.  Attempting to set a property that is
        not allowed to be overwritten will cause a 400 status to be returned.


        :param configuration: The configuration of this Run.
        :type: dict(str, str)
        Nr   )rq   r   rs   rs   rt   r   A     
c                 C   rv   )z
        Gets the data_read_in_bytes of this Run.
        The data read by the run in bytes.


        :return: The data_read_in_bytes of this Run.
        :rtype: int
        rL   rx   rs   rs   rt   r   Q  r~   zRun.data_read_in_bytesc                 C   rz   )z
        Sets the data_read_in_bytes of this Run.
        The data read by the run in bytes.


        :param data_read_in_bytes: The data_read_in_bytes of this Run.
        :type: int
        Nr   )rq   r   rs   rs   rt   r   ]  r   c                 C   rv   )z
        Gets the data_written_in_bytes of this Run.
        The data written by the run in bytes.


        :return: The data_written_in_bytes of this Run.
        :rtype: int
        rM   rx   rs   rs   rt   r    i  r~   zRun.data_written_in_bytesc                 C   rz   )z
        Sets the data_written_in_bytes of this Run.
        The data written by the run in bytes.


        :param data_written_in_bytes: The data_written_in_bytes of this Run.
        :type: int
        Nr   )rq   r    rs   rs   rt   r    u  r   c                 C   rv   )a  
        Gets the defined_tags of this Run.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :return: The defined_tags of this Run.
        :rtype: dict(str, dict(str, object))
        rN   rx   rs   rs   rt   r!        zRun.defined_tagsc                 C   rz   )a  
        Sets the defined_tags of this Run.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.
        Example: `{"Operations": {"CostCenter": "42"}}`

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


        :param defined_tags: The defined_tags of this Run.
        :type: dict(str, dict(str, object))
        Nr   )rq   r!   rs   rs   rt   r!        
c                 C   rv   )z
        Gets the display_name of this Run.
        A user-friendly name. This name is not necessarily unique.


        :return: The display_name of this Run.
        :rtype: str
        rO   rx   rs   rs   rt   r"     r~   zRun.display_namec                 C   rz   )z
        Sets the display_name of this Run.
        A user-friendly name. This name is not necessarily unique.


        :param display_name: The display_name of this Run.
        :type: str
        Nr   )rq   r"   rs   rs   rt   r"     r   c                 C   rv   )z
        **[Required]** Gets the driver_shape of this Run.
        The VM shape for the driver. Sets the driver cores and memory.


        :return: The driver_shape of this Run.
        :rtype: str
        rP   rx   rs   rs   rt   r#     r~   zRun.driver_shapec                 C   rz   )z
        Sets the driver_shape of this Run.
        The VM shape for the driver. Sets the driver cores and memory.


        :param driver_shape: The driver_shape of this Run.
        :type: str
        Nr   )rq   r#   rs   rs   rt   r#     r   c                 C   rv   )z
        Gets the driver_shape_config of this Run.

        :return: The driver_shape_config of this Run.
        :rtype: oci.data_flow.models.ShapeConfig
        rQ   rx   rs   rs   rt   r$     r   zRun.driver_shape_configc                 C   rz   )z
        Sets the driver_shape_config of this Run.

        :param driver_shape_config: The driver_shape_config of this Run.
        :type: oci.data_flow.models.ShapeConfig
        Nr   )rq   r$   rs   rs   rt   r$     r   c                 C   rv   )a  
        Gets the execute of this Run.
        The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit.
        Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments.
        Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10``
        Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit,
        Data Flow service will use derived information from execute input only.


        :return: The execute of this Run.
        :rtype: str
        rR   rx   rs   rs   rt   r%     r   zRun.executec                 C   rz   )a  
        Sets the execute of this Run.
        The input used for spark-submit command. For more details see https://spark.apache.org/docs/latest/submitting-applications.html#launching-applications-with-spark-submit.
        Supported options include ``--class``, ``--file``, ``--jars``, ``--conf``, ``--py-files``, and main application file with arguments.
        Example: ``--jars oci://path/to/a.jar,oci://path/to/b.jar --files oci://path/to/a.json,oci://path/to/b.csv --py-files oci://path/to/a.py,oci://path/to/b.py --conf spark.sql.crossJoin.enabled=true --class org.apache.spark.examples.SparkPi oci://path/to/main.jar 10``
        Note: If execute is specified together with applicationId, className, configuration, fileUri, language, arguments, parameters during application create/update, or run create/submit,
        Data Flow service will use derived information from execute input only.


        :param execute: The execute of this Run.
        :type: str
        Nr   )rq   r%   rs   rs   rt   r%     r   c                 C   rv   )z
        **[Required]** Gets the executor_shape of this Run.
        The VM shape for the executors. Sets the executor cores and memory.


        :return: The executor_shape of this Run.
        :rtype: str
        rS   rx   rs   rs   rt   r&     r~   zRun.executor_shapec                 C   rz   )z
        Sets the executor_shape of this Run.
        The VM shape for the executors. Sets the executor cores and memory.


        :param executor_shape: The executor_shape of this Run.
        :type: str
        Nr   )rq   r&   rs   rs   rt   r&     r   c                 C   rv   )z
        Gets the executor_shape_config of this Run.

        :return: The executor_shape_config of this Run.
        :rtype: oci.data_flow.models.ShapeConfig
        rT   rx   rs   rs   rt   r'     r   zRun.executor_shape_configc                 C   rz   )z
        Sets the executor_shape_config of this Run.

        :param executor_shape_config: The executor_shape_config of this Run.
        :type: oci.data_flow.models.ShapeConfig
        Nr   )rq   r'   rs   rs   rt   r'   %  r   c                 C   rv   )a>  
        **[Required]** Gets the file_uri of this Run.
        An Oracle Cloud Infrastructure URI of the file containing the application to execute.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :return: The file_uri of this Run.
        :rtype: str
        rU   rx   rs   rs   rt   r(   /  ry   zRun.file_uric                 C   rz   )a6  
        Sets the file_uri of this Run.
        An Oracle Cloud Infrastructure URI of the file containing the application to execute.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :param file_uri: The file_uri of this Run.
        :type: str
        Nr   )rq   r(   rs   rs   rt   r(   <  r{   c                 C   rv   )a  
        Gets the freeform_tags of this Run.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :return: The freeform_tags of this Run.
        :rtype: dict(str, str)
        rV   rx   rs   rs   rt   r)   I  r   zRun.freeform_tagsc                 C   rz   )a  
        Sets the freeform_tags of this Run.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.
        Example: `{"Department": "Finance"}`

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


        :param freeform_tags: The freeform_tags of this Run.
        :type: dict(str, str)
        Nr   )rq   r)   rs   rs   rt   r)   Y  r   c                 C   rv   )z
        **[Required]** Gets the id of this Run.
        The ID of a run.


        :return: The id of this Run.
        :rtype: str
        rW   rx   rs   rs   rt   r*   i  r~   zRun.idc                 C   rz   )z
        Sets the id of this Run.
        The ID of a run.


        :param id: The id of this Run.
        :type: str
        Nr   )rq   r*   rs   rs   rt   r*   u  r   c                 C   rv   )aa  
        **[Required]** Gets the language of this Run.
        The Spark language.

        Allowed values for this property are: "SCALA", "JAVA", "PYTHON", "SQL", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The language of this Run.
        :rtype: str
        )rX   rx   rs   rs   rt   r+     r   zRun.languagec                 C       g d}t ||sd}|| _dS )z
        Sets the language of this Run.
        The Spark language.


        :param language: The language of this Run.
        :type: str
        )r   r   r	   r
   UNKNOWN_ENUM_VALUEN)r   rX   )rq   r+   allowed_valuesrs   rs   rt   r+        


c                 C   rv   )z
        Gets the lifecycle_details of this Run.
        The detailed messages about the lifecycle state.


        :return: The lifecycle_details of this Run.
        :rtype: str
        rY   rx   rs   rs   rt   r,     r~   zRun.lifecycle_detailsc                 C   rz   )z
        Sets the lifecycle_details of this Run.
        The detailed messages about the lifecycle state.


        :param lifecycle_details: The lifecycle_details of this Run.
        :type: str
        Nr   )rq   r,   rs   rs   rt   r,     r   c                 C   rv   )a  
        **[Required]** Gets the lifecycle_state of this Run.
        The current state of this run.

        Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "CANCELING", "CANCELED", "FAILED", "SUCCEEDED", "STOPPING", "STOPPED", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The lifecycle_state of this Run.
        :rtype: str
        )rZ   rx   rs   rs   rt   r-     r   zRun.lifecycle_statec                 C   r   )z
        Sets the lifecycle_state of this Run.
        The current state of this run.


        :param lifecycle_state: The lifecycle_state of this Run.
        :type: str
        )r   r   r   r   r   r   r   r   r   N)r   rZ   )rq   r-   r   rs   rs   rt   r-     r   c                 C   rv   )aE  
        Gets the logs_bucket_uri of this Run.
        An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :return: The logs_bucket_uri of this Run.
        :rtype: str
        r[   rx   rs   rs   rt   r.     ry   zRun.logs_bucket_uric                 C   rz   )aS  
        Sets the logs_bucket_uri of this Run.
        An Oracle Cloud Infrastructure URI of the bucket where the Spark job logs are to be uploaded.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :param logs_bucket_uri: The logs_bucket_uri of this Run.
        :type: str
        Nr   )rq   r.   rs   rs   rt   r.     r{   c                 C   rv   )z
        Gets the metastore_id of this Run.
        The OCID of OCI Hive Metastore.


        :return: The metastore_id of this Run.
        :rtype: str
        r\   rx   rs   rs   rt   r/     r~   zRun.metastore_idc                 C   rz   )z
        Sets the metastore_id of this Run.
        The OCID of OCI Hive Metastore.


        :param metastore_id: The metastore_id of this Run.
        :type: str
        Nr   )rq   r/   rs   rs   rt   r/     r   c                 C   rv   )z
        **[Required]** Gets the num_executors of this Run.
        The number of executor VMs requested.


        :return: The num_executors of this Run.
        :rtype: int
        r]   rx   rs   rs   rt   r0     r~   zRun.num_executorsc                 C   rz   )z
        Sets the num_executors of this Run.
        The number of executor VMs requested.


        :param num_executors: The num_executors of this Run.
        :type: int
        Nr   )rq   r0   rs   rs   rt   r0     r   c                 C   rv   )a  
        Gets the opc_request_id of this Run.
        Unique Oracle assigned identifier for the request.
        If you need to contact Oracle about a particular request, please provide the request ID.


        :return: The opc_request_id of this Run.
        :rtype: str
        r^   rx   rs   rs   rt   r1     ry   zRun.opc_request_idc                 C   rz   )a&  
        Sets the opc_request_id of this Run.
        Unique Oracle assigned identifier for the request.
        If you need to contact Oracle about a particular request, please provide the request ID.


        :param opc_request_id: The opc_request_id of this Run.
        :type: str
        Nr   )rq   r1   rs   rs   rt   r1   ,  r{   c                 C   rv   )z
        Gets the owner_principal_id of this Run.
        The OCID of the user who created the resource.


        :return: The owner_principal_id of this Run.
        :rtype: str
        r_   rx   rs   rs   rt   r2   9  r~   zRun.owner_principal_idc                 C   rz   )z
        Sets the owner_principal_id of this Run.
        The OCID of the user who created the resource.


        :param owner_principal_id: The owner_principal_id of this Run.
        :type: str
        Nr   )rq   r2   rs   rs   rt   r2   E  r   c                 C   rv   )aK  
        Gets the owner_user_name of this Run.
        The username of the user who created the resource.  If the username of the owner does not exist,
        `null` will be returned and the caller should refer to the ownerPrincipalId value instead.


        :return: The owner_user_name of this Run.
        :rtype: str
        r`   rx   rs   rs   rt   r3   Q  ry   zRun.owner_user_namec                 C   rz   )aY  
        Sets the owner_user_name of this Run.
        The username of the user who created the resource.  If the username of the owner does not exist,
        `null` will be returned and the caller should refer to the ownerPrincipalId value instead.


        :param owner_user_name: The owner_user_name of this Run.
        :type: str
        Nr   )rq   r3   rs   rs   rt   r3   ^  r{   c                 C   rv   )a<  
        Gets the parameters of this Run.
        An array of name/value pairs used to fill placeholders found in properties like
        `Application.arguments`.  The name must be a string of one or more word characters
        (a-z, A-Z, 0-9, _).  The value can be a string of 0 or more characters of any kind.
        Example:  [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ]


        :return: The parameters of this Run.
        :rtype: list[oci.data_flow.models.ApplicationParameter]
        ra   rx   rs   rs   rt   r4   k  r   zRun.parametersc                 C   rz   )aE  
        Sets the parameters of this Run.
        An array of name/value pairs used to fill placeholders found in properties like
        `Application.arguments`.  The name must be a string of one or more word characters
        (a-z, A-Z, 0-9, _).  The value can be a string of 0 or more characters of any kind.
        Example:  [ { name: "iterations", value: "10"}, { name: "input_file", value: "mydata.xml" }, { name: "variable_x", value: "${x}"} ]


        :param parameters: The parameters of this Run.
        :type: list[oci.data_flow.models.ApplicationParameter]
        Nr   )rq   r4   rs   rs   rt   r4   z  r   c                 C   rv   )z
        Gets the pool_id of this Run.
        The OCID of a pool. Unique Id to indentify a dataflow pool resource.


        :return: The pool_id of this Run.
        :rtype: str
        rb   rx   rs   rs   rt   r5     r~   zRun.pool_idc                 C   rz   )z
        Sets the pool_id of this Run.
        The OCID of a pool. Unique Id to indentify a dataflow pool resource.


        :param pool_id: The pool_id of this Run.
        :type: str
        Nr   )rq   r5   rs   rs   rt   r5     r   c                 C   rv   )a  
        Gets the private_endpoint_dns_zones of this Run.
        An array of DNS zone names.
        Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]`


        :return: The private_endpoint_dns_zones of this Run.
        :rtype: list[str]
        rc   rx   rs   rs   rt   r6     ry   zRun.private_endpoint_dns_zonesc                 C   rz   )a  
        Sets the private_endpoint_dns_zones of this Run.
        An array of DNS zone names.
        Example: `[ "app.examplecorp.com", "app.examplecorp2.com" ]`


        :param private_endpoint_dns_zones: The private_endpoint_dns_zones of this Run.
        :type: list[str]
        Nr   )rq   r6   rs   rs   rt   r6     r{   c                 C   rv   )a  
        Gets the private_endpoint_max_host_count of this Run.
        The maximum number of hosts to be accessed through the private endpoint. This value is used
        to calculate the relevant CIDR block and should be a multiple of 256.  If the value is not a
        multiple of 256, it is rounded up to the next multiple of 256. For example, 300 is rounded up
        to 512.


        :return: The private_endpoint_max_host_count of this Run.
        :rtype: int
        rd   rx   rs   rs   rt   r7     r   z#Run.private_endpoint_max_host_countc                 C   rz   )a  
        Sets the private_endpoint_max_host_count of this Run.
        The maximum number of hosts to be accessed through the private endpoint. This value is used
        to calculate the relevant CIDR block and should be a multiple of 256.  If the value is not a
        multiple of 256, it is rounded up to the next multiple of 256. For example, 300 is rounded up
        to 512.


        :param private_endpoint_max_host_count: The private_endpoint_max_host_count of this Run.
        :type: int
        Nr   )rq   r7   rs   rs   rt   r7     r   c                 C   rv   )z
        Gets the private_endpoint_nsg_ids of this Run.
        An array of network security group OCIDs.


        :return: The private_endpoint_nsg_ids of this Run.
        :rtype: list[str]
        re   rx   rs   rs   rt   r8     r~   zRun.private_endpoint_nsg_idsc                 C   rz   )z
        Sets the private_endpoint_nsg_ids of this Run.
        An array of network security group OCIDs.


        :param private_endpoint_nsg_ids: The private_endpoint_nsg_ids of this Run.
        :type: list[str]
        Nr   )rq   r8   rs   rs   rt   r8     r   c                 C   rv   )z
        Gets the private_endpoint_id of this Run.
        The OCID of a private endpoint.


        :return: The private_endpoint_id of this Run.
        :rtype: str
        rf   rx   rs   rs   rt   r9     r~   zRun.private_endpoint_idc                 C   rz   )z
        Sets the private_endpoint_id of this Run.
        The OCID of a private endpoint.


        :param private_endpoint_id: The private_endpoint_id of this Run.
        :type: str
        Nr   )rq   r9   rs   rs   rt   r9     r   c                 C   rv   )z
        Gets the private_endpoint_subnet_id of this Run.
        The OCID of a subnet.


        :return: The private_endpoint_subnet_id of this Run.
        :rtype: str
        rg   rx   rs   rs   rt   r;   	  r~   zRun.private_endpoint_subnet_idc                 C   rz   )z
        Sets the private_endpoint_subnet_id of this Run.
        The OCID of a subnet.


        :param private_endpoint_subnet_id: The private_endpoint_subnet_id of this Run.
        :type: str
        Nr   )rq   r;   rs   rs   rt   r;     r   c                 C   rv   )z
        Gets the run_duration_in_milliseconds of this Run.
        The duration of the run in milliseconds.


        :return: The run_duration_in_milliseconds of this Run.
        :rtype: int
        rh   rx   rs   rs   rt   r<   !  r~   z Run.run_duration_in_millisecondsc                 C   rz   )z
        Sets the run_duration_in_milliseconds of this Run.
        The duration of the run in milliseconds.


        :param run_duration_in_milliseconds: The run_duration_in_milliseconds of this Run.
        :type: int
        Nr   )rq   r<   rs   rs   rt   r<   -  r   c                 C   rv   )z
        **[Required]** Gets the spark_version of this Run.
        The Spark version utilized to run the application.


        :return: The spark_version of this Run.
        :rtype: str
        ri   rx   rs   rs   rt   r=   9  r~   zRun.spark_versionc                 C   rz   )z
        Sets the spark_version of this Run.
        The Spark version utilized to run the application.


        :param spark_version: The spark_version of this Run.
        :type: str
        Nr   )rq   r=   rs   rs   rt   r=   E  r   c                 C   rv   )aI  
        **[Required]** Gets the time_created of this Run.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_created of this Run.
        :rtype: datetime
        rj   rx   rs   rs   rt   r>   Q  r   zRun.time_createdc                 C   rz   )aE  
        Sets the time_created of this Run.
        The date and time the resource was created, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_created: The time_created of this Run.
        :type: datetime
        Nr   )rq   r>   rs   rs   rt   r>   `  r   c                 C   rv   )aI  
        **[Required]** Gets the time_updated of this Run.
        The date and time the resource was updated, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :return: The time_updated of this Run.
        :rtype: datetime
        rk   rx   rs   rs   rt   r?   o  r   zRun.time_updatedc                 C   rz   )aE  
        Sets the time_updated of this Run.
        The date and time the resource was updated, expressed in `RFC 3339`__ timestamp format.
        Example: `2018-04-03T21:10:29.600Z`

        __ https://tools.ietf.org/html/rfc3339


        :param time_updated: The time_updated of this Run.
        :type: datetime
        Nr   )rq   r?   rs   rs   rt   r?   ~  r   c                 C   rv   )z
        Gets the total_o_cpu of this Run.
        The total number of oCPU requested by the run.


        :return: The total_o_cpu of this Run.
        :rtype: int
        rl   rx   rs   rs   rt   r@     r~   zRun.total_o_cpuc                 C   rz   )z
        Sets the total_o_cpu of this Run.
        The total number of oCPU requested by the run.


        :param total_o_cpu: The total_o_cpu of this Run.
        :type: int
        Nr   )rq   r@   rs   rs   rt   r@     r   c                 C   rv   )a\  
        Gets the type of this Run.
        The Spark application processing type.

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


        :return: The type of this Run.
        :rtype: str
        )rm   rx   rs   rs   rt   rA     r   zRun.typec                 C   r   )z
        Sets the type of this Run.
        The Spark application processing type.


        :param type: The type of this Run.
        :type: str
        )r   r   r   r   N)r   rm   )rq   rA   r   rs   rs   rt   rA     r   c                 C   rv   )ah  
        Gets the warehouse_bucket_uri of this Run.
        An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory
        for BATCH SQL runs.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :return: The warehouse_bucket_uri of this Run.
        :rtype: str
        rn   rx   rs   rs   rt   rB     s   zRun.warehouse_bucket_uric                 C   rz   )a{  
        Sets the warehouse_bucket_uri of this Run.
        An Oracle Cloud Infrastructure URI of the bucket to be used as default warehouse directory
        for BATCH SQL runs.
        See https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/hdfsconnector.htm#uriformat.


        :param warehouse_bucket_uri: The warehouse_bucket_uri of this Run.
        :type: str
        Nr   )rq   rB   rs   rs   rt   rB     s   
c                 C   rv   )aY  
        Gets the max_duration_in_minutes of this Run.
        The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated
        once it reaches this duration from the time it transitions to `IN_PROGRESS` state.


        :return: The max_duration_in_minutes of this Run.
        :rtype: int
        ro   rx   rs   rs   rt   rC     ry   zRun.max_duration_in_minutesc                 C   rz   )ao  
        Sets the max_duration_in_minutes of this Run.
        The maximum duration in minutes for which an Application should run. Data Flow Run would be terminated
        once it reaches this duration from the time it transitions to `IN_PROGRESS` state.


        :param max_duration_in_minutes: The max_duration_in_minutes of this Run.
        :type: int
        Nr   )rq   rC   rs   rs   rt   rC     r{   c                 C   rv   )a  
        Gets the idle_timeout_in_minutes of this Run.
        The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period.
        Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)


        :return: The idle_timeout_in_minutes of this Run.
        :rtype: int
        rp   rx   rs   rs   rt   rD     ry   zRun.idle_timeout_in_minutesc                 C   rz   )a  
        Sets the idle_timeout_in_minutes of this Run.
        The timeout value in minutes used to manage Runs. A Run would be stopped after inactivity for this amount of time period.
        Note: This parameter is currently only applicable for Runs of type `SESSION`. Default value is 2880 minutes (2 days)


        :param idle_timeout_in_minutes: The idle_timeout_in_minutes of this Run.
        :type: int
        Nr   )rq   rD   rs   rs   rt   rD     r{   c                 C   s   t | S N)r   rx   rs   rs   rt   __repr__  s   zRun.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__rq   otherrs   rs   rt   __eq__  s   z
Run.__eq__c                 C   s
   | |k S r   rs   r   rs   rs   rt   __ne__  s   
z
Run.__ne__N)E__name__
__module____qualname____doc__ZLANGUAGE_SCALAZLANGUAGE_JAVAZLANGUAGE_PYTHONZLANGUAGE_SQLZLIFECYCLE_STATE_ACCEPTEDZLIFECYCLE_STATE_IN_PROGRESSZLIFECYCLE_STATE_CANCELINGZLIFECYCLE_STATE_CANCELEDZLIFECYCLE_STATE_FAILEDZLIFECYCLE_STATE_SUCCEEDEDZLIFECYCLE_STATE_STOPPINGZLIFECYCLE_STATE_STOPPEDZ
TYPE_BATCHZTYPE_STREAMINGZTYPE_SESSIONru   propertyr   setterr   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r   r   r   rs   rs   rs   rt   r      s     I






	
	
















	
	




	
	























































r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   rs   rs   rs   rt   <module>   s   