class_docstr: Main application settings. The pydantic BaseSettings class makes
  accessible environment variables by setting attributes.
  
  See <https://pydantic-docs.helpmanual.io/usage/settings/>
  
  only_bulk_api: (ONLY_BULK_API env var)
       If True, activate only bulk and search endpoints
  
  elasticseach: (ELASTICSEARCH env var)
      The elasticsearch endpoint for datasets persistence
  
  cors_origins: (CORS_ORIGINS env var)
      List of host patterns for CORS origin access
  
  docs_enabled: True
      If True, enable openapi docs endpoint at /api/docs
  
  es_records_index_shards:
      Configures the number of shards for dataset records index creation. Default=1
  
  es_records_index_replicas:
      Configures the number of shard replicas for dataset records index creation. Default=0
  
  disable_es_index_template_creation: (DISABLE_ES_INDEX_TEMPLATE_CREATION env var)
       Allowing advanced users to create their own es index settings and mappings. Default=False
class_docstr_tok: ["Main","application","settings",".","The","pydantic","BaseSettings","class","makes","accessible","environment","variables","by","setting","attributes",".","See","<","https",":","\/\/pydantic-docs.helpmanual.io\/usage\/settings\/",">","only_bulk_api",":","(","ONLY_BULK_API","env","var",")","If","True",",","activate","only","bulk","and","search","endpoints","elasticseach",":","(","ELASTICSEARCH","env","var",")","The","elasticsearch","endpoint","for","datasets","persistence","cors_origins",":","(","CORS_ORIGINS","env","var",")","List","of","host","patterns","for","CORS","origin","access","docs_enabled",":","True","If","True",",","enable","openapi","docs","endpoint","at","\/api\/docs","es_records_index_shards",":","Configures","the","number","of","shards","for","dataset","records","index","creation",".","Default=1","es_records_index_replicas",":","Configures","the","number","of","shard","replicas","for","dataset","records","index","creation",".","Default=0","disable_es_index_template_creation",":","(","DISABLE_ES_INDEX_TEMPLATE_CREATION","env","var",")","Allowing","advanced","users","to","create","their","own","es","index","settings","and","mappings",".","Default=False"]
docstr: Returns configured elasticsearch url obfuscating the provided password, if any
docstr_tok: ["Returns","configured","elasticsearch","url","obfuscating","the","provided","password",",","if","any"]
code: def obfuscated_elasticsearch(self) -> str:
      """Returns configured elasticsearch url obfuscating the provided password, if any"""
      parsed = urlparse(self.elasticsearch)
      if parsed.password:
          return self.elasticsearch.replace(parsed.password, "XXXX")
      return self.elasticsearch
  
file_path: argilla/src/argilla/server/settings.py
imports: import logging
  import os
  import re
  import warnings
  from pathlib import Path
  from typing import List, Optional
  from urllib.parse import urlparse
  from argilla.server.constants import DEFAULT_MAX_KEYWORD_LENGTH, DEFAULT_TELEMETRY_KEY
  from argilla.server.pydantic_v1 import BaseSettings, Field, root_validator, validator
label_desc: Use image node_id 9 for calling the Settings obj's underlying member method code with example usage: obj.obfuscated_elasticsearch() and returns: self, self