Server IP : 103.119.228.120 / Your IP : 18.222.98.29 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/data_flow/models/ |
Upload File : |
# coding: utf-8 # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200129 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class Run(object): """ A run object. """ #: A constant which can be used with the language property of a Run. #: This constant has a value of "SCALA" LANGUAGE_SCALA = "SCALA" #: A constant which can be used with the language property of a Run. #: This constant has a value of "JAVA" LANGUAGE_JAVA = "JAVA" #: A constant which can be used with the language property of a Run. #: This constant has a value of "PYTHON" LANGUAGE_PYTHON = "PYTHON" #: A constant which can be used with the language property of a Run. #: This constant has a value of "SQL" LANGUAGE_SQL = "SQL" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "ACCEPTED" LIFECYCLE_STATE_ACCEPTED = "ACCEPTED" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "IN_PROGRESS" LIFECYCLE_STATE_IN_PROGRESS = "IN_PROGRESS" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "CANCELING" LIFECYCLE_STATE_CANCELING = "CANCELING" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "CANCELED" LIFECYCLE_STATE_CANCELED = "CANCELED" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "SUCCEEDED" LIFECYCLE_STATE_SUCCEEDED = "SUCCEEDED" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "STOPPING" LIFECYCLE_STATE_STOPPING = "STOPPING" #: A constant which can be used with the lifecycle_state property of a Run. #: This constant has a value of "STOPPED" LIFECYCLE_STATE_STOPPED = "STOPPED" #: A constant which can be used with the type property of a Run. #: This constant has a value of "BATCH" TYPE_BATCH = "BATCH" #: A constant which can be used with the type property of a Run. #: This constant has a value of "STREAMING" TYPE_STREAMING = "STREAMING" #: A constant which can be used with the type property of a Run. #: This constant has a value of "SESSION" TYPE_SESSION = "SESSION" def __init__(self, **kwargs): """ 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 """ self.swagger_types = { 'archive_uri': 'str', 'arguments': 'list[str]', 'application_id': 'str', 'application_log_config': 'ApplicationLogConfig', 'class_name': 'str', 'compartment_id': 'str', 'configuration': 'dict(str, str)', 'data_read_in_bytes': 'int', 'data_written_in_bytes': 'int', 'defined_tags': 'dict(str, dict(str, object))', 'display_name': 'str', 'driver_shape': 'str', 'driver_shape_config': 'ShapeConfig', 'execute': 'str', 'executor_shape': 'str', 'executor_shape_config': 'ShapeConfig', 'file_uri': 'str', 'freeform_tags': 'dict(str, str)', 'id': 'str', 'language': 'str', 'lifecycle_details': 'str', 'lifecycle_state': 'str', 'logs_bucket_uri': 'str', 'metastore_id': 'str', 'num_executors': 'int', 'opc_request_id': 'str', 'owner_principal_id': 'str', 'owner_user_name': 'str', 'parameters': 'list[ApplicationParameter]', 'pool_id': 'str', 'private_endpoint_dns_zones': 'list[str]', 'private_endpoint_max_host_count': 'int', 'private_endpoint_nsg_ids': 'list[str]', 'private_endpoint_id': 'str', 'private_endpoint_subnet_id': 'str', 'run_duration_in_milliseconds': 'int', 'spark_version': 'str', 'time_created': 'datetime', 'time_updated': 'datetime', 'total_o_cpu': 'int', 'type': 'str', 'warehouse_bucket_uri': 'str', 'max_duration_in_minutes': 'int', 'idle_timeout_in_minutes': 'int' } self.attribute_map = { 'archive_uri': 'archiveUri', 'arguments': 'arguments', 'application_id': 'applicationId', 'application_log_config': 'applicationLogConfig', 'class_name': 'className', 'compartment_id': 'compartmentId', 'configuration': 'configuration', 'data_read_in_bytes': 'dataReadInBytes', 'data_written_in_bytes': 'dataWrittenInBytes', 'defined_tags': 'definedTags', 'display_name': 'displayName', 'driver_shape': 'driverShape', 'driver_shape_config': 'driverShapeConfig', 'execute': 'execute', 'executor_shape': 'executorShape', 'executor_shape_config': 'executorShapeConfig', 'file_uri': 'fileUri', 'freeform_tags': 'freeformTags', 'id': 'id', 'language': 'language', 'lifecycle_details': 'lifecycleDetails', 'lifecycle_state': 'lifecycleState', 'logs_bucket_uri': 'logsBucketUri', 'metastore_id': 'metastoreId', 'num_executors': 'numExecutors', 'opc_request_id': 'opcRequestId', 'owner_principal_id': 'ownerPrincipalId', 'owner_user_name': 'ownerUserName', 'parameters': 'parameters', 'pool_id': 'poolId', 'private_endpoint_dns_zones': 'privateEndpointDnsZones', 'private_endpoint_max_host_count': 'privateEndpointMaxHostCount', 'private_endpoint_nsg_ids': 'privateEndpointNsgIds', 'private_endpoint_id': 'privateEndpointId', 'private_endpoint_subnet_id': 'privateEndpointSubnetId', 'run_duration_in_milliseconds': 'runDurationInMilliseconds', 'spark_version': 'sparkVersion', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'total_o_cpu': 'totalOCpu', 'type': 'type', 'warehouse_bucket_uri': 'warehouseBucketUri', 'max_duration_in_minutes': 'maxDurationInMinutes', 'idle_timeout_in_minutes': 'idleTimeoutInMinutes' } self._archive_uri = None self._arguments = None self._application_id = None self._application_log_config = None self._class_name = None self._compartment_id = None self._configuration = None self._data_read_in_bytes = None self._data_written_in_bytes = None self._defined_tags = None self._display_name = None self._driver_shape = None self._driver_shape_config = None self._execute = None self._executor_shape = None self._executor_shape_config = None self._file_uri = None self._freeform_tags = None self._id = None self._language = None self._lifecycle_details = None self._lifecycle_state = None self._logs_bucket_uri = None self._metastore_id = None self._num_executors = None self._opc_request_id = None self._owner_principal_id = None self._owner_user_name = None self._parameters = None self._pool_id = None self._private_endpoint_dns_zones = None self._private_endpoint_max_host_count = None self._private_endpoint_nsg_ids = None self._private_endpoint_id = None self._private_endpoint_subnet_id = None self._run_duration_in_milliseconds = None self._spark_version = None self._time_created = None self._time_updated = None self._total_o_cpu = None self._type = None self._warehouse_bucket_uri = None self._max_duration_in_minutes = None self._idle_timeout_in_minutes = None @property def archive_uri(self): """ 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 """ return self._archive_uri @archive_uri.setter def archive_uri(self, archive_uri): """ 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 """ self._archive_uri = archive_uri @property def arguments(self): """ 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] """ return self._arguments @arguments.setter def arguments(self, arguments): """ 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] """ self._arguments = arguments @property def application_id(self): """ **[Required]** Gets the application_id of this Run. The application ID. :return: The application_id of this Run. :rtype: str """ return self._application_id @application_id.setter def application_id(self, application_id): """ Sets the application_id of this Run. The application ID. :param application_id: The application_id of this Run. :type: str """ self._application_id = application_id @property def application_log_config(self): """ Gets the application_log_config of this Run. :return: The application_log_config of this Run. :rtype: oci.data_flow.models.ApplicationLogConfig """ return self._application_log_config @application_log_config.setter def application_log_config(self, application_log_config): """ 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 """ self._application_log_config = application_log_config @property def class_name(self): """ Gets the class_name of this Run. The class for the application. :return: The class_name of this Run. :rtype: str """ return self._class_name @class_name.setter def class_name(self, class_name): """ Sets the class_name of this Run. The class for the application. :param class_name: The class_name of this Run. :type: str """ self._class_name = class_name @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this Run. The OCID of a compartment. :return: The compartment_id of this Run. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this Run. The OCID of a compartment. :param compartment_id: The compartment_id of this Run. :type: str """ self._compartment_id = compartment_id @property def configuration(self): """ 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) """ return self._configuration @configuration.setter def configuration(self, configuration): """ 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) """ self._configuration = configuration @property def data_read_in_bytes(self): """ 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 """ return self._data_read_in_bytes @data_read_in_bytes.setter def data_read_in_bytes(self, data_read_in_bytes): """ 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 """ self._data_read_in_bytes = data_read_in_bytes @property def data_written_in_bytes(self): """ 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 """ return self._data_written_in_bytes @data_written_in_bytes.setter def data_written_in_bytes(self, data_written_in_bytes): """ 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 """ self._data_written_in_bytes = data_written_in_bytes @property def defined_tags(self): """ 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)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ 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)) """ self._defined_tags = defined_tags @property def display_name(self): """ 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 """ return self._display_name @display_name.setter def display_name(self, display_name): """ 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 """ self._display_name = display_name @property def driver_shape(self): """ **[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 """ return self._driver_shape @driver_shape.setter def driver_shape(self, driver_shape): """ 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 """ self._driver_shape = driver_shape @property def driver_shape_config(self): """ Gets the driver_shape_config of this Run. :return: The driver_shape_config of this Run. :rtype: oci.data_flow.models.ShapeConfig """ return self._driver_shape_config @driver_shape_config.setter def driver_shape_config(self, driver_shape_config): """ 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 """ self._driver_shape_config = driver_shape_config @property def execute(self): """ 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 """ return self._execute @execute.setter def execute(self, execute): """ 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 """ self._execute = execute @property def executor_shape(self): """ **[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 """ return self._executor_shape @executor_shape.setter def executor_shape(self, executor_shape): """ 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 """ self._executor_shape = executor_shape @property def executor_shape_config(self): """ Gets the executor_shape_config of this Run. :return: The executor_shape_config of this Run. :rtype: oci.data_flow.models.ShapeConfig """ return self._executor_shape_config @executor_shape_config.setter def executor_shape_config(self, executor_shape_config): """ 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 """ self._executor_shape_config = executor_shape_config @property def file_uri(self): """ **[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 """ return self._file_uri @file_uri.setter def file_uri(self, file_uri): """ 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 """ self._file_uri = file_uri @property def freeform_tags(self): """ 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) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ 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) """ self._freeform_tags = freeform_tags @property def id(self): """ **[Required]** Gets the id of this Run. The ID of a run. :return: The id of this Run. :rtype: str """ return self._id @id.setter def id(self, id): """ Sets the id of this Run. The ID of a run. :param id: The id of this Run. :type: str """ self._id = id @property def language(self): """ **[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 """ return self._language @language.setter def language(self, language): """ Sets the language of this Run. The Spark language. :param language: The language of this Run. :type: str """ allowed_values = ["SCALA", "JAVA", "PYTHON", "SQL"] if not value_allowed_none_or_none_sentinel(language, allowed_values): language = 'UNKNOWN_ENUM_VALUE' self._language = language @property def lifecycle_details(self): """ Gets the lifecycle_details of this Run. The detailed messages about the lifecycle state. :return: The lifecycle_details of this Run. :rtype: str """ return self._lifecycle_details @lifecycle_details.setter def lifecycle_details(self, lifecycle_details): """ 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 """ self._lifecycle_details = lifecycle_details @property def lifecycle_state(self): """ **[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 """ return self._lifecycle_state @lifecycle_state.setter def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this Run. The current state of this run. :param lifecycle_state: The lifecycle_state of this Run. :type: str """ allowed_values = ["ACCEPTED", "IN_PROGRESS", "CANCELING", "CANCELED", "FAILED", "SUCCEEDED", "STOPPING", "STOPPED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property def logs_bucket_uri(self): """ 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 """ return self._logs_bucket_uri @logs_bucket_uri.setter def logs_bucket_uri(self, logs_bucket_uri): """ 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 """ self._logs_bucket_uri = logs_bucket_uri @property def metastore_id(self): """ Gets the metastore_id of this Run. The OCID of OCI Hive Metastore. :return: The metastore_id of this Run. :rtype: str """ return self._metastore_id @metastore_id.setter def metastore_id(self, metastore_id): """ Sets the metastore_id of this Run. The OCID of OCI Hive Metastore. :param metastore_id: The metastore_id of this Run. :type: str """ self._metastore_id = metastore_id @property def num_executors(self): """ **[Required]** Gets the num_executors of this Run. The number of executor VMs requested. :return: The num_executors of this Run. :rtype: int """ return self._num_executors @num_executors.setter def num_executors(self, num_executors): """ Sets the num_executors of this Run. The number of executor VMs requested. :param num_executors: The num_executors of this Run. :type: int """ self._num_executors = num_executors @property def opc_request_id(self): """ 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 """ return self._opc_request_id @opc_request_id.setter def opc_request_id(self, opc_request_id): """ 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 """ self._opc_request_id = opc_request_id @property def owner_principal_id(self): """ 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 """ return self._owner_principal_id @owner_principal_id.setter def owner_principal_id(self, owner_principal_id): """ 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 """ self._owner_principal_id = owner_principal_id @property def owner_user_name(self): """ 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 """ return self._owner_user_name @owner_user_name.setter def owner_user_name(self, owner_user_name): """ 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 """ self._owner_user_name = owner_user_name @property def parameters(self): """ 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] """ return self._parameters @parameters.setter def parameters(self, parameters): """ 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] """ self._parameters = parameters @property def pool_id(self): """ 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 """ return self._pool_id @pool_id.setter def pool_id(self, pool_id): """ 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 """ self._pool_id = pool_id @property def private_endpoint_dns_zones(self): """ 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] """ return self._private_endpoint_dns_zones @private_endpoint_dns_zones.setter def private_endpoint_dns_zones(self, private_endpoint_dns_zones): """ 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] """ self._private_endpoint_dns_zones = private_endpoint_dns_zones @property def private_endpoint_max_host_count(self): """ 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 """ return self._private_endpoint_max_host_count @private_endpoint_max_host_count.setter def private_endpoint_max_host_count(self, private_endpoint_max_host_count): """ 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 """ self._private_endpoint_max_host_count = private_endpoint_max_host_count @property def private_endpoint_nsg_ids(self): """ 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] """ return self._private_endpoint_nsg_ids @private_endpoint_nsg_ids.setter def private_endpoint_nsg_ids(self, private_endpoint_nsg_ids): """ 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] """ self._private_endpoint_nsg_ids = private_endpoint_nsg_ids @property def private_endpoint_id(self): """ Gets the private_endpoint_id of this Run. The OCID of a private endpoint. :return: The private_endpoint_id of this Run. :rtype: str """ return self._private_endpoint_id @private_endpoint_id.setter def private_endpoint_id(self, private_endpoint_id): """ 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 """ self._private_endpoint_id = private_endpoint_id @property def private_endpoint_subnet_id(self): """ 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 """ return self._private_endpoint_subnet_id @private_endpoint_subnet_id.setter def private_endpoint_subnet_id(self, private_endpoint_subnet_id): """ 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 """ self._private_endpoint_subnet_id = private_endpoint_subnet_id @property def run_duration_in_milliseconds(self): """ 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 """ return self._run_duration_in_milliseconds @run_duration_in_milliseconds.setter def run_duration_in_milliseconds(self, run_duration_in_milliseconds): """ 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 """ self._run_duration_in_milliseconds = run_duration_in_milliseconds @property def spark_version(self): """ **[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 """ return self._spark_version @spark_version.setter def spark_version(self, spark_version): """ 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 """ self._spark_version = spark_version @property def time_created(self): """ **[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 """ return self._time_created @time_created.setter def time_created(self, time_created): """ 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 """ self._time_created = time_created @property def time_updated(self): """ **[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 """ return self._time_updated @time_updated.setter def time_updated(self, time_updated): """ 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 """ self._time_updated = time_updated @property def total_o_cpu(self): """ 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 """ return self._total_o_cpu @total_o_cpu.setter def total_o_cpu(self, total_o_cpu): """ 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 """ self._total_o_cpu = total_o_cpu @property def type(self): """ 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 """ return self._type @type.setter def type(self, type): """ Sets the type of this Run. The Spark application processing type. :param type: The type of this Run. :type: str """ allowed_values = ["BATCH", "STREAMING", "SESSION"] if not value_allowed_none_or_none_sentinel(type, allowed_values): type = 'UNKNOWN_ENUM_VALUE' self._type = type @property def warehouse_bucket_uri(self): """ 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 """ return self._warehouse_bucket_uri @warehouse_bucket_uri.setter def warehouse_bucket_uri(self, warehouse_bucket_uri): """ 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 """ self._warehouse_bucket_uri = warehouse_bucket_uri @property def max_duration_in_minutes(self): """ 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 """ return self._max_duration_in_minutes @max_duration_in_minutes.setter def max_duration_in_minutes(self, max_duration_in_minutes): """ 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 """ self._max_duration_in_minutes = max_duration_in_minutes @property def idle_timeout_in_minutes(self): """ 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 """ return self._idle_timeout_in_minutes @idle_timeout_in_minutes.setter def idle_timeout_in_minutes(self, idle_timeout_in_minutes): """ 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 """ self._idle_timeout_in_minutes = idle_timeout_in_minutes def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other