class_docstr: Defines all parameters that initialize a table environment. Those parameters are used only
  during instantiation of a :class:`~pyflink.table.TableEnvironment` and cannot be changed
  afterwards.
  
  Example:
  ::
  
      >>> EnvironmentSettings.new_instance() \
      ...     .in_streaming_mode() \
      ...     .with_built_in_catalog_name("my_catalog") \
      ...     .with_built_in_database_name("my_database") \
      ...     .build()
  
  :func:`~EnvironmentSettings.in_streaming_mode` or :func:`~EnvironmentSettings.in_batch_mode`
  might be convenient as shortcuts.
docstr: Creates the EnvironmentSetting with specified Configuration.
  
  :return: EnvironmentSettings.
  
  .. note:: Deprecated in 1.15. Please use
          :func:`EnvironmentSettings.Builder.with_configuration` instead.
docstr_tok: ["Creates","the","EnvironmentSetting","with","specified","Configuration",".",":","return",":","EnvironmentSettings",".","..","note",":",":","Deprecated","in","1.15",".","Please","use",":","func",":","`","EnvironmentSettings.Builder.with_configuration","`","instead","."]
code: def from_configuration(
      config: Configuration,
  ) -> "EnvironmentSettings":
      """
      Creates the EnvironmentSetting with specified Configuration.
  
      :return: EnvironmentSettings.
  
      .. note:: Deprecated in 1.15. Please use
              :func:`EnvironmentSettings.Builder.with_configuration` instead.
      """
      warnings.warn("Deprecated in 1.15.", DeprecationWarning)
      gateway = get_gateway()
      context_classloader = (
          gateway.jvm.Thread.currentThread().getContextClassLoader()
      )
      new_classloader = create_url_class_loader([], context_classloader)
      gateway.jvm.Thread.currentThread().setContextClassLoader(
          new_classloader
      )
      return EnvironmentSettings(
          get_gateway().jvm.EnvironmentSettings.fromConfiguration(
              config._j_configuration
          )
      )
  
file_path: flink/flink-python/pyflink/table/environment_settings.py
imports: import warnings
  from pyflink.java_gateway import get_gateway
  from pyflink.util.java_utils import create_url_class_loader
  from pyflink.common import Configuration
label_desc: Use image node_id 8 for calling the EnvironmentSettings obj's underlying member method code with example usage: obj.from_configuration(config) and returns: EnvironmentSettings