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 ZdZdZdZdZdZdZdZ dZ d d � Zedd� �Z e jd d� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Zejd=d<� �Zed>d?� �Zejd@d?� �ZedAdB� �Z e jdCdB� �Z edDdE� �Z!e!jdFdE� �Z!edGdH� �Z"e"jdIdH� �Z"edJdK� �Z#e#jdLdK� �Z#edMdN� �Z$e$jdOdN� �Z$edPdQ� �Z%e%jdRdQ� �Z%edSdT� �Z&e&jdUdT� �Z&edVdW� �Z'e'jdXdW� �Z'edYdZ� �Z(e(jd[dZ� �Z(ed\d]� �Z)e)jd^d]� �Z)d_d`� Z*dadb� Z+dcdd� Z,deS )f�CreateApplicationDetailsz) The create application details. �SCALA�JAVA�PYTHON�SQL�BATCH� STREAMING�SESSIONc K s, ddddddddddddddddddddddddddddd �| _ 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&| _d&| _d&| _d&| _d&| _d&| _d&| _d&| _d&S )'a� Initializes a new CreateApplicationDetails 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 CreateApplicationDetails. :type archive_uri: str :param arguments: The value to assign to the arguments property of this CreateApplicationDetails. :type arguments: list[str] :param application_log_config: The value to assign to the application_log_config property of this CreateApplicationDetails. :type application_log_config: oci.data_flow.models.ApplicationLogConfig :param class_name: The value to assign to the class_name property of this CreateApplicationDetails. :type class_name: str :param compartment_id: The value to assign to the compartment_id property of this CreateApplicationDetails. :type compartment_id: str :param configuration: The value to assign to the configuration property of this CreateApplicationDetails. :type configuration: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateApplicationDetails. :type defined_tags: dict(str, dict(str, object)) :param description: The value to assign to the description property of this CreateApplicationDetails. :type description: str :param display_name: The value to assign to the display_name property of this CreateApplicationDetails. :type display_name: str :param driver_shape: The value to assign to the driver_shape property of this CreateApplicationDetails. :type driver_shape: str :param driver_shape_config: The value to assign to the driver_shape_config property of this CreateApplicationDetails. :type driver_shape_config: oci.data_flow.models.ShapeConfig :param execute: The value to assign to the execute property of this CreateApplicationDetails. :type execute: str :param executor_shape: The value to assign to the executor_shape property of this CreateApplicationDetails. :type executor_shape: str :param executor_shape_config: The value to assign to the executor_shape_config property of this CreateApplicationDetails. :type executor_shape_config: oci.data_flow.models.ShapeConfig :param file_uri: The value to assign to the file_uri property of this CreateApplicationDetails. :type file_uri: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateApplicationDetails. :type freeform_tags: dict(str, str) :param language: The value to assign to the language property of this CreateApplicationDetails. Allowed values for this property are: "SCALA", "JAVA", "PYTHON", "SQL" :type language: str :param logs_bucket_uri: The value to assign to the logs_bucket_uri property of this CreateApplicationDetails. :type logs_bucket_uri: str :param metastore_id: The value to assign to the metastore_id property of this CreateApplicationDetails. :type metastore_id: str :param num_executors: The value to assign to the num_executors property of this CreateApplicationDetails. :type num_executors: int :param parameters: The value to assign to the parameters property of this CreateApplicationDetails. :type parameters: list[oci.data_flow.models.ApplicationParameter] :param pool_id: The value to assign to the pool_id property of this CreateApplicationDetails. :type pool_id: str :param private_endpoint_id: The value to assign to the private_endpoint_id property of this CreateApplicationDetails. :type private_endpoint_id: str :param spark_version: The value to assign to the spark_version property of this CreateApplicationDetails. :type spark_version: str :param type: The value to assign to the type property of this CreateApplicationDetails. 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 CreateApplicationDetails. :type warehouse_bucket_uri: str :param max_duration_in_minutes: The value to assign to the max_duration_in_minutes property of this CreateApplicationDetails. :type max_duration_in_minutes: int :param idle_timeout_in_minutes: The value to assign to the idle_timeout_in_minutes property of this CreateApplicationDetails. :type idle_timeout_in_minutes: int �strz list[str]ZApplicationLogConfigzdict(str, str)zdict(str, dict(str, object))ZShapeConfig�intzlist[ApplicationParameter])�archive_uri� arguments�application_log_config� class_name�compartment_id� configuration�defined_tags�description�display_name�driver_shape�driver_shape_config�execute�executor_shape�executor_shape_config�file_uri� freeform_tags�language�logs_bucket_uri�metastore_id� num_executors� parameters�pool_id�private_endpoint_id� spark_version�type�warehouse_bucket_uri�max_duration_in_minutes�idle_timeout_in_minutesZ archiveUrir ZapplicationLogConfigZ classNameZ compartmentIdr ZdefinedTagsr ZdisplayNameZdriverShapeZdriverShapeConfigr Z executorShapeZexecutorShapeConfigZfileUriZfreeformTagsr Z logsBucketUriZmetastoreIdZnumExecutorsr$ ZpoolIdZprivateEndpointIdZsparkVersionr( ZwarehouseBucketUriZmaxDurationInMinutesZidleTimeoutInMinutesN)Z swagger_typesZ attribute_map�_archive_uri� _arguments�_application_log_config�_class_name�_compartment_id�_configuration� _defined_tags�_description� _display_name� _driver_shape�_driver_shape_config�_execute�_executor_shape�_executor_shape_config� _file_uri�_freeform_tags� _language�_logs_bucket_uri� _metastore_id�_num_executors�_parameters�_pool_id�_private_endpoint_id�_spark_version�_type�_warehouse_bucket_uri�_max_duration_in_minutes�_idle_timeout_in_minutes)�self�kwargs� rJ �S/usr/lib/python3.9/site-packages/oci/data_flow/models/create_application_details.py�__init__. s� y� �z!CreateApplicationDetails.__init__c C s | j S )aH Gets the archive_uri of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: str �r, �rH rJ rJ rK r s z$CreateApplicationDetails.archive_uric C s || _ dS )aR Sets the archive_uri of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: str NrM )rH r rJ rJ rK r s c C s | j S )aN Gets the arguments of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: list[str] �r- rN rJ rJ rK r s z"CreateApplicationDetails.argumentsc C s || _ dS )aV Sets the arguments of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: list[str] NrO )rH r rJ rJ rK r . s c C s | j S )z� Gets the application_log_config of this CreateApplicationDetails. :return: The application_log_config of this CreateApplicationDetails. :rtype: oci.data_flow.models.ApplicationLogConfig �r. rN rJ rJ rK r A s z/CreateApplicationDetails.application_log_configc C s || _ dS )z� Sets the application_log_config of this CreateApplicationDetails. :param application_log_config: The application_log_config of this CreateApplicationDetails. :type: oci.data_flow.models.ApplicationLogConfig NrP )rH r rJ rJ rK r K s c C s | j S )z� Gets the class_name of this CreateApplicationDetails. The class for the application. :return: The class_name of this CreateApplicationDetails. :rtype: str �r/ rN rJ rJ rK r U s z#CreateApplicationDetails.class_namec C s || _ dS )z� Sets the class_name of this CreateApplicationDetails. The class for the application. :param class_name: The class_name of this CreateApplicationDetails. :type: str NrQ )rH r rJ rJ rK r a s c C s | j S )z� **[Required]** Gets the compartment_id of this CreateApplicationDetails. The OCID of a compartment. :return: The compartment_id of this CreateApplicationDetails. :rtype: str �r0 rN rJ rJ rK r m s z'CreateApplicationDetails.compartment_idc C s || _ dS )z� Sets the compartment_id of this CreateApplicationDetails. The OCID of a compartment. :param compartment_id: The compartment_id of this CreateApplicationDetails. :type: str NrR )rH r rJ rJ rK r y s c C s | j S )aX Gets the configuration of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: dict(str, str) �r1 rN rJ rJ rK r � s z&CreateApplicationDetails.configurationc C s || _ dS )ad Sets the configuration of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: dict(str, str) NrS )rH r rJ rJ rK r � s c C s | j S )a� Gets the defined_tags of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: dict(str, dict(str, object)) �r2 rN rJ rJ rK r � s z%CreateApplicationDetails.defined_tagsc C s || _ dS )a� Sets the defined_tags of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: dict(str, dict(str, object)) NrT )rH r rJ rJ rK r � s c C s | j S )z� Gets the description of this CreateApplicationDetails. A user-friendly description. Avoid entering confidential information. :return: The description of this CreateApplicationDetails. :rtype: str �r3 rN rJ rJ rK r � s z$CreateApplicationDetails.descriptionc C s || _ dS )z� Sets the description of this CreateApplicationDetails. A user-friendly description. Avoid entering confidential information. :param description: The description of this CreateApplicationDetails. :type: str NrU )rH r rJ rJ rK r � s c C s | j S )a **[Required]** Gets the display_name of this CreateApplicationDetails. A user-friendly name. It does not have to be unique. Avoid entering confidential information. :return: The display_name of this CreateApplicationDetails. :rtype: str �r4 rN rJ rJ rK r � s z%CreateApplicationDetails.display_namec C s || _ dS )a Sets the display_name of this CreateApplicationDetails. A user-friendly name. It does not have to be unique. Avoid entering confidential information. :param display_name: The display_name of this CreateApplicationDetails. :type: str NrV )rH r rJ rJ rK r � s c C s | j S )z� **[Required]** Gets the driver_shape of this CreateApplicationDetails. The VM shape for the driver. Sets the driver cores and memory. :return: The driver_shape of this CreateApplicationDetails. :rtype: str �r5 rN rJ rJ rK r � s z%CreateApplicationDetails.driver_shapec C s || _ dS )z� Sets the driver_shape of this CreateApplicationDetails. The VM shape for the driver. Sets the driver cores and memory. :param driver_shape: The driver_shape of this CreateApplicationDetails. :type: str NrW )rH r rJ rJ rK r � s c C s | j S )z� Gets the driver_shape_config of this CreateApplicationDetails. :return: The driver_shape_config of this CreateApplicationDetails. :rtype: oci.data_flow.models.ShapeConfig �r6 rN rJ rJ rK r s z,CreateApplicationDetails.driver_shape_configc C s || _ dS )z� Sets the driver_shape_config of this CreateApplicationDetails. :param driver_shape_config: The driver_shape_config of this CreateApplicationDetails. :type: oci.data_flow.models.ShapeConfig NrX )rH r rJ rJ rK r s c C s | j S )a� Gets the execute of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: str �r7 rN rJ rJ rK r s z CreateApplicationDetails.executec C s || _ dS )a� Sets the execute of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: str NrY )rH r rJ rJ rK r / s c C s | j S )a **[Required]** Gets the executor_shape of this CreateApplicationDetails. The VM shape for the executors. Sets the executor cores and memory. :return: The executor_shape of this CreateApplicationDetails. :rtype: str �r8 rN rJ rJ rK r ? s z'CreateApplicationDetails.executor_shapec C s || _ dS )a Sets the executor_shape of this CreateApplicationDetails. The VM shape for the executors. Sets the executor cores and memory. :param executor_shape: The executor_shape of this CreateApplicationDetails. :type: str NrZ )rH r rJ rJ rK r K s c C s | j S )z� Gets the executor_shape_config of this CreateApplicationDetails. :return: The executor_shape_config of this CreateApplicationDetails. :rtype: oci.data_flow.models.ShapeConfig �r9 rN rJ rJ rK r W s z.CreateApplicationDetails.executor_shape_configc C s || _ dS )z� Sets the executor_shape_config of this CreateApplicationDetails. :param executor_shape_config: The executor_shape_config of this CreateApplicationDetails. :type: oci.data_flow.models.ShapeConfig Nr[ )rH r rJ rJ rK r a s c C s | j S )aY Gets the file_uri of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: str �r: rN rJ rJ rK r k s z!CreateApplicationDetails.file_uric C s || _ dS )a` Sets the file_uri of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: str Nr\ )rH r rJ rJ rK r x s c C s | j S )a� Gets the freeform_tags of this CreateApplicationDetails. 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 CreateApplicationDetails. :rtype: dict(str, str) �r; rN rJ rJ rK r � s z&CreateApplicationDetails.freeform_tagsc C s || _ dS )a� Sets the freeform_tags of this CreateApplicationDetails. 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 CreateApplicationDetails. :type: dict(str, str) Nr] )rH r rJ rJ rK r � s c C s | j S )a **[Required]** Gets the language of this CreateApplicationDetails. The Spark language. Allowed values for this property are: "SCALA", "JAVA", "PYTHON", "SQL" :return: The language of this CreateApplicationDetails. :rtype: str )r<