class_docstr: Engine for Google spreadsheets
class_docstr_tok: ["Engine","for","Google","spreadsheets"]
docstr: Return configuration parameters as OpenAPI.
docstr_tok: ["Return","configuration","parameters","as","OpenAPI","."]
code: def parameters_json_schema(cls) -> Any:
      """
      Return configuration parameters as OpenAPI.
      """
      if not cls.parameters_schema:
          return None
  
      spec = APISpec(
          title="Database Parameters",
          version="1.0.0",
          openapi_version="3.0.0",
          plugins=[ma_plugin],
      )
  
      ma_plugin.init_spec(spec)
      ma_plugin.converter.add_attribute_function(
          encrypted_field_properties
      )
      spec.components.schema(cls.__name__, schema=cls.parameters_schema)
      return spec.to_dict()["components"]["schemas"][cls.__name__]
  
imports: from __future__ import annotations
  import contextlib
  import json
  import logging
  import re
  from re import Pattern
  from typing import Any, TYPE_CHECKING, TypedDict
  import pandas
  from apispec import APISpec
  from apispec.ext.marshmallow import MarshmallowPlugin
  from flask import g
  from flask_babel import gettext
  from marshmallow import fields, Schema
  from marshmallow.exceptions import ValidationError
  from requests import Session
  from sqlalchemy.engine import create_engine
  from sqlalchemy.engine.url import URL
  from superset import db, security_manager
  from superset.constants import PASSWORD_MASK
  from superset.databases.schemas import encrypted_field_properties, EncryptedString
  from superset.db_engine_specs.shillelagh import ShillelaghEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.exceptions import SupersetException
label_desc: Use image node_id 7 for calling the GSheetsEngineSpec obj's underlying member method code with example usage: obj.parameters_json_schema(cls) and returns: spec, None