ruạṛ
a N��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 ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zed4d5� �Zej d6d5� �Zed7d8� �Zej d9d8� �Zed:d;� �Zej d<d;� �Zed=d>� �Zej d?d>� �Zed@dA� �Zej dBdA� �ZedCdD� �Zej dEdD� �ZedFdG� �Zej dHdG� �ZedIdJ� �Z e j dKdJ� �Z dLdM� Z!dNdO� Z"dPdQ� Z#dRS )S�CreateRunDetailsa� The create run details. The following properties are optional and override the default values set in the associated application: - applicationId - archiveUri - applicationLogConfig - arguments - configuration - definedTags - displayName - driverShape - execute - executorShape - freeformTags - logsBucketUri - metastoreId - numExecutors - parameters - sparkVersion - warehouseBucketUri It is expected that either the applicationId or the execute parameter is specified; but not both. If both or none are set, a Bad Request (HTTP 400) status will be sent as the response. If an appicationId is not specified, then a value for the execute parameter is expected. Using data parsed from the value, a new application will be created and assicated with the new run. See information on the execute parameter for details on the format of this parameter. The optional parameter spark version can only be specified when using the execute parameter. If it is not specified when using the execute parameter, the latest version will be used as default. If the execute parameter is not used, the spark version will be taken from the associated application. If displayName is not specified, it will be derived from the displayName of associated application or set by API using fileUri's application file name. Once a run is created, its properties (except for definedTags and freeformTags) cannot be changed. If the parent application's properties (including definedTags and freeformTags) are updated, the corresponding properties of the run will not update. �BATCH� STREAMING�SESSIONc K s� dddddddddddddddddddddddd �| _ 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!S )"a� Initializes a new CreateRunDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param application_log_config: The value to assign to the application_log_config property of this CreateRunDetails. :type application_log_config: oci.data_flow.models.ApplicationLogConfig :param application_id: The value to assign to the application_id property of this CreateRunDetails. :type application_id: str :param archive_uri: The value to assign to the archive_uri property of this CreateRunDetails. :type archive_uri: str :param arguments: The value to assign to the arguments property of this CreateRunDetails. :type arguments: list[str] :param compartment_id: The value to assign to the compartment_id property of this CreateRunDetails. :type compartment_id: str :param configuration: The value to assign to the configuration property of this CreateRunDetails. :type configuration: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateRunDetails. :type defined_tags: dict(str, dict(str, object)) :param display_name: The value to assign to the display_name property of this CreateRunDetails. :type display_name: str :param driver_shape: The value to assign to the driver_shape property of this CreateRunDetails. :type driver_shape: str :param driver_shape_config: The value to assign to the driver_shape_config property of this CreateRunDetails. :type driver_shape_config: oci.data_flow.models.ShapeConfig :param execute: The value to assign to the execute property of this CreateRunDetails. :type execute: str :param executor_shape: The value to assign to the executor_shape property of this CreateRunDetails. :type executor_shape: str :param executor_shape_config: The value to assign to the executor_shape_config property of this CreateRunDetails. :type executor_shape_config: oci.data_flow.models.ShapeConfig :param freeform_tags: The value to assign to the freeform_tags property of this CreateRunDetails. :type freeform_tags: dict(str, str) :param logs_bucket_uri: The value to assign to the logs_bucket_uri property of this CreateRunDetails. :type logs_bucket_uri: str :param metastore_id: The value to assign to the metastore_id property of this CreateRunDetails. :type metastore_id: str :param num_executors: The value to assign to the num_executors property of this CreateRunDetails. :type num_executors: int :param parameters: The value to assign to the parameters property of this CreateRunDetails. :type parameters: list[oci.data_flow.models.ApplicationParameter] :param spark_version: The value to assign to the spark_version property of this CreateRunDetails. :type spark_version: str :param type: The value to assign to the type property of this CreateRunDetails. Allowed values for this property are: "BATCH", "STREAMING", "SESSION" :type type: str :param warehouse_bucket_uri: The value to assign to the warehouse_bucket_uri property of this CreateRunDetails. :type warehouse_bucket_uri: str :param max_duration_in_minutes: The value to assign to the max_duration_in_minutes property of this CreateRunDetails. :type max_duration_in_minutes: int :param idle_timeout_in_minutes: The value to assign to the idle_timeout_in_minutes property of this CreateRunDetails. :type idle_timeout_in_minutes: int �ApplicationLogConfig�strz list[str]zdict(str, str)zdict(str, dict(str, object))�ShapeConfig�intzlist[ApplicationParameter])�application_log_config�application_id�archive_uri� arguments�compartment_id� configuration�defined_tags�display_name�driver_shape�driver_shape_config�execute�executor_shape�executor_shape_config� freeform_tags�logs_bucket_uri�metastore_id� num_executors� parameters� spark_version�type�warehouse_bucket_uri�max_duration_in_minutes�idle_timeout_in_minutes�applicationLogConfig� applicationId� archiveUrir � compartmentIdr �definedTags�displayName�driverShape�driverShapeConfigr � executorShape�executorShapeConfig�freeformTags� logsBucketUri�metastoreId�numExecutorsr �sparkVersionr! �warehouseBucketUri�maxDurationInMinutes�idleTimeoutInMinutesN)� swagger_types� attribute_map�_application_log_config�_application_id�_archive_uri� _arguments�_compartment_id�_configuration� _defined_tags� _display_name� _driver_shape�_driver_shape_config�_execute�_executor_shape�_executor_shape_config�_freeform_tags�_logs_bucket_uri� _metastore_id�_num_executors�_parameters�_spark_version�_type�_warehouse_bucket_uri�_max_duration_in_minutes�_idle_timeout_in_minutes)�self�kwargs� rR ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/data_flow/models/create_run_details.py�__init__= s� d��zCreateRunDetails.__init__c C s | j S )z� Gets the application_log_config of this CreateRunDetails. :return: The application_log_config of this CreateRunDetails. :rtype: oci.data_flow.models.ApplicationLogConfig �r9 �rP rR rR rS r � s z'CreateRunDetails.application_log_configc C s || _ dS )z� Sets the application_log_config of this CreateRunDetails. :param application_log_config: The application_log_config of this CreateRunDetails. :type: oci.data_flow.models.ApplicationLogConfig NrU )rP r rR rR rS r � s c C s | j S )a� Gets the application_id of this CreateRunDetails. The OCID of the associated application. If this value is set, then no value for the execute parameter is required. If this value is not set, then a value for the execute parameter is required, and a new application is created and associated with the new run. :return: The application_id of this CreateRunDetails. :rtype: str �r: rV rR rR rS r s zCreateRunDetails.application_idc C s || _ dS )a� Sets the application_id of this CreateRunDetails. The OCID of the associated application. If this value is set, then no value for the execute parameter is required. If this value is not set, then a value for the execute parameter is required, and a new application is created and associated with the new run. :param application_id: The application_id of this CreateRunDetails. :type: str NrW )rP r rR rR rS r s c C s | j S )a8 Gets the archive_uri of this CreateRunDetails. 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 CreateRunDetails. :rtype: str �r; rV rR rR rS r s zCreateRunDetails.archive_uric C s || _ dS )aB Sets the archive_uri of this CreateRunDetails. 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 CreateRunDetails. :type: str NrX )rP r rR rR rS r % s c C s | j S )a> Gets the arguments of this CreateRunDetails. 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 CreateRunDetails. :rtype: list[str] �r<