ruạṛ
a ���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 edLdM� �Z!e!j dNdM� �Z!dOdP� Z"dQdR� Z#dSdT� Z$dUS )V�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 ddddddddddddddddddddddddd �| _ 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"| _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 pool_id: The value to assign to the pool_id property of this CreateRunDetails. :type pool_id: str :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 ZApplicationLogConfig�strz list[str]zdict(str, str)zdict(str, dict(str, object))ZShapeConfig�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�pool_id� spark_version�type�warehouse_bucket_uri�max_duration_in_minutes�idle_timeout_in_minutesZapplicationLogConfigZ applicationIdZ archiveUrir Z compartmentIdr ZdefinedTagsZdisplayNameZdriverShapeZdriverShapeConfigr Z executorShapeZexecutorShapeConfigZfreeformTagsZ logsBucketUriZmetastoreIdZnumExecutorsr ZpoolIdZsparkVersionr ZwarehouseBucketUriZmaxDurationInMinutesZidleTimeoutInMinutesN)Z swagger_typesZ 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�_pool_id�_spark_version�_type�_warehouse_bucket_uri�_max_duration_in_minutes�_idle_timeout_in_minutes)�self�kwargs� r>