File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/data_flow/models/update_sql_endpoint_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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 UpdateSqlEndpointDetails(object): """ The information about all updatable parameters of a SQL Endpoint. """ #: A constant which can be used with the log_operation property of a UpdateSqlEndpointDetails. #: This constant has a value of "ENABLE" LOG_OPERATION_ENABLE = "ENABLE" #: A constant which can be used with the log_operation property of a UpdateSqlEndpointDetails. #: This constant has a value of "DISABLE" LOG_OPERATION_DISABLE = "DISABLE" #: A constant which can be used with the log_operation property of a UpdateSqlEndpointDetails. #: This constant has a value of "DELETE" LOG_OPERATION_DELETE = "DELETE" def __init__(self, **kwargs): """ Initializes a new UpdateSqlEndpointDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param defined_tags: The value to assign to the defined_tags property of this UpdateSqlEndpointDetails. :type defined_tags: dict(str, dict(str, object)) :param freeform_tags: The value to assign to the freeform_tags property of this UpdateSqlEndpointDetails. :type freeform_tags: dict(str, str) :param display_name: The value to assign to the display_name property of this UpdateSqlEndpointDetails. :type display_name: str :param description: The value to assign to the description property of this UpdateSqlEndpointDetails. :type description: str :param driver_shape: The value to assign to the driver_shape property of this UpdateSqlEndpointDetails. :type driver_shape: str :param driver_shape_config: The value to assign to the driver_shape_config property of this UpdateSqlEndpointDetails. :type driver_shape_config: oci.data_flow.models.ShapeConfig :param executor_shape: The value to assign to the executor_shape property of this UpdateSqlEndpointDetails. :type executor_shape: str :param executor_shape_config: The value to assign to the executor_shape_config property of this UpdateSqlEndpointDetails. :type executor_shape_config: oci.data_flow.models.ShapeConfig :param min_executor_count: The value to assign to the min_executor_count property of this UpdateSqlEndpointDetails. :type min_executor_count: int :param max_executor_count: The value to assign to the max_executor_count property of this UpdateSqlEndpointDetails. :type max_executor_count: int :param metastore_id: The value to assign to the metastore_id property of this UpdateSqlEndpointDetails. :type metastore_id: str :param lake_id: The value to assign to the lake_id property of this UpdateSqlEndpointDetails. :type lake_id: str :param log_group_id: The value to assign to the log_group_id property of this UpdateSqlEndpointDetails. :type log_group_id: str :param log_compartment_id: The value to assign to the log_compartment_id property of this UpdateSqlEndpointDetails. :type log_compartment_id: str :param log_display_name: The value to assign to the log_display_name property of this UpdateSqlEndpointDetails. :type log_display_name: str :param log_retention_duration: The value to assign to the log_retention_duration property of this UpdateSqlEndpointDetails. :type log_retention_duration: int :param log_operation: The value to assign to the log_operation property of this UpdateSqlEndpointDetails. Allowed values for this property are: "ENABLE", "DISABLE", "DELETE" :type log_operation: str :param spark_advanced_configurations: The value to assign to the spark_advanced_configurations property of this UpdateSqlEndpointDetails. :type spark_advanced_configurations: dict(str, str) """ self.swagger_types = { 'defined_tags': 'dict(str, dict(str, object))', 'freeform_tags': 'dict(str, str)', 'display_name': 'str', 'description': 'str', 'driver_shape': 'str', 'driver_shape_config': 'ShapeConfig', 'executor_shape': 'str', 'executor_shape_config': 'ShapeConfig', 'min_executor_count': 'int', 'max_executor_count': 'int', 'metastore_id': 'str', 'lake_id': 'str', 'log_group_id': 'str', 'log_compartment_id': 'str', 'log_display_name': 'str', 'log_retention_duration': 'int', 'log_operation': 'str', 'spark_advanced_configurations': 'dict(str, str)' } self.attribute_map = { 'defined_tags': 'definedTags', 'freeform_tags': 'freeformTags', 'display_name': 'displayName', 'description': 'description', 'driver_shape': 'driverShape', 'driver_shape_config': 'driverShapeConfig', 'executor_shape': 'executorShape', 'executor_shape_config': 'executorShapeConfig', 'min_executor_count': 'minExecutorCount', 'max_executor_count': 'maxExecutorCount', 'metastore_id': 'metastoreId', 'lake_id': 'lakeId', 'log_group_id': 'logGroupId', 'log_compartment_id': 'logCompartmentId', 'log_display_name': 'logDisplayName', 'log_retention_duration': 'logRetentionDuration', 'log_operation': 'logOperation', 'spark_advanced_configurations': 'sparkAdvancedConfigurations' } self._defined_tags = None self._freeform_tags = None self._display_name = None self._description = None self._driver_shape = None self._driver_shape_config = None self._executor_shape = None self._executor_shape_config = None self._min_executor_count = None self._max_executor_count = None self._metastore_id = None self._lake_id = None self._log_group_id = None self._log_compartment_id = None self._log_display_name = None self._log_retention_duration = None self._log_operation = None self._spark_advanced_configurations = None @property def defined_tags(self): """ Gets the defined_tags of this UpdateSqlEndpointDetails. 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :return: The defined_tags of this UpdateSqlEndpointDetails. :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 UpdateSqlEndpointDetails. 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :param defined_tags: The defined_tags of this UpdateSqlEndpointDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags @property def freeform_tags(self): """ Gets the freeform_tags of this UpdateSqlEndpointDetails. 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :return: The freeform_tags of this UpdateSqlEndpointDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this UpdateSqlEndpointDetails. 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.oracle.com/iaas/Content/General/Concepts/resourcetags.htm :param freeform_tags: The freeform_tags of this UpdateSqlEndpointDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def display_name(self): """ Gets the display_name of this UpdateSqlEndpointDetails. The SQL Endpoint name, which can be changed. :return: The display_name of this UpdateSqlEndpointDetails. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this UpdateSqlEndpointDetails. The SQL Endpoint name, which can be changed. :param display_name: The display_name of this UpdateSqlEndpointDetails. :type: str """ self._display_name = display_name @property def description(self): """ Gets the description of this UpdateSqlEndpointDetails. The description of CreateSQLEndpointDetails. :return: The description of this UpdateSqlEndpointDetails. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this UpdateSqlEndpointDetails. The description of CreateSQLEndpointDetails. :param description: The description of this UpdateSqlEndpointDetails. :type: str """ self._description = description @property def driver_shape(self): """ Gets the driver_shape of this UpdateSqlEndpointDetails. The shape of the SQL Endpoint driver instance. :return: The driver_shape of this UpdateSqlEndpointDetails. :rtype: str """ return self._driver_shape @driver_shape.setter def driver_shape(self, driver_shape): """ Sets the driver_shape of this UpdateSqlEndpointDetails. The shape of the SQL Endpoint driver instance. :param driver_shape: The driver_shape of this UpdateSqlEndpointDetails. :type: str """ self._driver_shape = driver_shape @property def driver_shape_config(self): """ Gets the driver_shape_config of this UpdateSqlEndpointDetails. :return: The driver_shape_config of this UpdateSqlEndpointDetails. :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 UpdateSqlEndpointDetails. :param driver_shape_config: The driver_shape_config of this UpdateSqlEndpointDetails. :type: oci.data_flow.models.ShapeConfig """ self._driver_shape_config = driver_shape_config @property def executor_shape(self): """ Gets the executor_shape of this UpdateSqlEndpointDetails. The shape of the SQL Endpoint worker instance. :return: The executor_shape of this UpdateSqlEndpointDetails. :rtype: str """ return self._executor_shape @executor_shape.setter def executor_shape(self, executor_shape): """ Sets the executor_shape of this UpdateSqlEndpointDetails. The shape of the SQL Endpoint worker instance. :param executor_shape: The executor_shape of this UpdateSqlEndpointDetails. :type: str """ self._executor_shape = executor_shape @property def executor_shape_config(self): """ Gets the executor_shape_config of this UpdateSqlEndpointDetails. :return: The executor_shape_config of this UpdateSqlEndpointDetails. :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 UpdateSqlEndpointDetails. :param executor_shape_config: The executor_shape_config of this UpdateSqlEndpointDetails. :type: oci.data_flow.models.ShapeConfig """ self._executor_shape_config = executor_shape_config @property def min_executor_count(self): """ Gets the min_executor_count of this UpdateSqlEndpointDetails. The minimum number of executors. :return: The min_executor_count of this UpdateSqlEndpointDetails. :rtype: int """ return self._min_executor_count @min_executor_count.setter def min_executor_count(self, min_executor_count): """ Sets the min_executor_count of this UpdateSqlEndpointDetails. The minimum number of executors. :param min_executor_count: The min_executor_count of this UpdateSqlEndpointDetails. :type: int """ self._min_executor_count = min_executor_count @property def max_executor_count(self): """ Gets the max_executor_count of this UpdateSqlEndpointDetails. The maximum number of executors. :return: The max_executor_count of this UpdateSqlEndpointDetails. :rtype: int """ return self._max_executor_count @max_executor_count.setter def max_executor_count(self, max_executor_count): """ Sets the max_executor_count of this UpdateSqlEndpointDetails. The maximum number of executors. :param max_executor_count: The max_executor_count of this UpdateSqlEndpointDetails. :type: int """ self._max_executor_count = max_executor_count @property def metastore_id(self): """ Gets the metastore_id of this UpdateSqlEndpointDetails. Metastore OCID :return: The metastore_id of this UpdateSqlEndpointDetails. :rtype: str """ return self._metastore_id @metastore_id.setter def metastore_id(self, metastore_id): """ Sets the metastore_id of this UpdateSqlEndpointDetails. Metastore OCID :param metastore_id: The metastore_id of this UpdateSqlEndpointDetails. :type: str """ self._metastore_id = metastore_id @property def lake_id(self): """ Gets the lake_id of this UpdateSqlEndpointDetails. OCI lake OCID :return: The lake_id of this UpdateSqlEndpointDetails. :rtype: str """ return self._lake_id @lake_id.setter def lake_id(self, lake_id): """ Sets the lake_id of this UpdateSqlEndpointDetails. OCI lake OCID :param lake_id: The lake_id of this UpdateSqlEndpointDetails. :type: str """ self._lake_id = lake_id @property def log_group_id(self): """ Gets the log_group_id of this UpdateSqlEndpointDetails. The identifier of the log group used with the SQL Endpoint. :return: The log_group_id of this UpdateSqlEndpointDetails. :rtype: str """ return self._log_group_id @log_group_id.setter def log_group_id(self, log_group_id): """ Sets the log_group_id of this UpdateSqlEndpointDetails. The identifier of the log group used with the SQL Endpoint. :param log_group_id: The log_group_id of this UpdateSqlEndpointDetails. :type: str """ self._log_group_id = log_group_id @property def log_compartment_id(self): """ Gets the log_compartment_id of this UpdateSqlEndpointDetails. The identifier of the log group compartment used with the SQL Endpoint. :return: The log_compartment_id of this UpdateSqlEndpointDetails. :rtype: str """ return self._log_compartment_id @log_compartment_id.setter def log_compartment_id(self, log_compartment_id): """ Sets the log_compartment_id of this UpdateSqlEndpointDetails. The identifier of the log group compartment used with the SQL Endpoint. :param log_compartment_id: The log_compartment_id of this UpdateSqlEndpointDetails. :type: str """ self._log_compartment_id = log_compartment_id @property def log_display_name(self): """ Gets the log_display_name of this UpdateSqlEndpointDetails. The friendly name of the log object used with the SQL Endpoint. :return: The log_display_name of this UpdateSqlEndpointDetails. :rtype: str """ return self._log_display_name @log_display_name.setter def log_display_name(self, log_display_name): """ Sets the log_display_name of this UpdateSqlEndpointDetails. The friendly name of the log object used with the SQL Endpoint. :param log_display_name: The log_display_name of this UpdateSqlEndpointDetails. :type: str """ self._log_display_name = log_display_name @property def log_retention_duration(self): """ Gets the log_retention_duration of this UpdateSqlEndpointDetails. Log retention duration in days :return: The log_retention_duration of this UpdateSqlEndpointDetails. :rtype: int """ return self._log_retention_duration @log_retention_duration.setter def log_retention_duration(self, log_retention_duration): """ Sets the log_retention_duration of this UpdateSqlEndpointDetails. Log retention duration in days :param log_retention_duration: The log_retention_duration of this UpdateSqlEndpointDetails. :type: int """ self._log_retention_duration = log_retention_duration @property def log_operation(self): """ Gets the log_operation of this UpdateSqlEndpointDetails. The log operation will be performed for the Sql Endpoint. Allowed values for this property are: "ENABLE", "DISABLE", "DELETE" :return: The log_operation of this UpdateSqlEndpointDetails. :rtype: str """ return self._log_operation @log_operation.setter def log_operation(self, log_operation): """ Sets the log_operation of this UpdateSqlEndpointDetails. The log operation will be performed for the Sql Endpoint. :param log_operation: The log_operation of this UpdateSqlEndpointDetails. :type: str """ allowed_values = ["ENABLE", "DISABLE", "DELETE"] if not value_allowed_none_or_none_sentinel(log_operation, allowed_values): raise ValueError( f"Invalid value for `log_operation`, must be None or one of {allowed_values}" ) self._log_operation = log_operation @property def spark_advanced_configurations(self): """ Gets the spark_advanced_configurations of this UpdateSqlEndpointDetails. 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 spark_advanced_configurations of this UpdateSqlEndpointDetails. :rtype: dict(str, str) """ return self._spark_advanced_configurations @spark_advanced_configurations.setter def spark_advanced_configurations(self, spark_advanced_configurations): """ Sets the spark_advanced_configurations of this UpdateSqlEndpointDetails. 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 spark_advanced_configurations: The spark_advanced_configurations of this UpdateSqlEndpointDetails. :type: dict(str, str) """ self._spark_advanced_configurations = spark_advanced_configurations 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings