in connectors/sources/confluence.py [0:0]
def get_default_configuration(cls):
"""Get the default configuration for Confluence
Returns:
dictionary: Default configuration.
"""
return {
"data_source": {
"display": "dropdown",
"label": "Confluence data source",
"options": [
{"label": "Confluence Cloud", "value": CONFLUENCE_CLOUD},
{"label": "Confluence Server", "value": CONFLUENCE_SERVER},
{
"label": "Confluence Data Center",
"value": CONFLUENCE_DATA_CENTER,
},
],
"order": 1,
"type": "str",
"value": CONFLUENCE_SERVER,
},
"username": {
"depends_on": [{"field": "data_source", "value": CONFLUENCE_SERVER}],
"label": "Confluence Server username",
"order": 2,
"type": "str",
},
"password": {
"depends_on": [{"field": "data_source", "value": CONFLUENCE_SERVER}],
"label": "Confluence Server password",
"sensitive": True,
"order": 3,
"type": "str",
},
"data_center_username": {
"depends_on": [
{"field": "data_source", "value": CONFLUENCE_DATA_CENTER}
],
"label": "Confluence Data Center username",
"order": 4,
"type": "str",
},
"data_center_password": {
"depends_on": [
{"field": "data_source", "value": CONFLUENCE_DATA_CENTER}
],
"label": "Confluence Data Center password",
"sensitive": True,
"order": 5,
"type": "str",
},
"account_email": {
"depends_on": [{"field": "data_source", "value": CONFLUENCE_CLOUD}],
"label": "Confluence Cloud account email",
"order": 6,
"type": "str",
},
"api_token": {
"depends_on": [{"field": "data_source", "value": CONFLUENCE_CLOUD}],
"label": "Confluence Cloud API token",
"sensitive": True,
"order": 7,
"type": "str",
},
"confluence_url": {
"label": "Confluence URL",
"order": 8,
"type": "str",
},
"spaces": {
"display": "textarea",
"label": "Confluence space keys",
"order": 9,
"tooltip": "This configurable field is ignored when Advanced Sync Rules are used.",
"type": "list",
},
"index_labels": {
"display": "toggle",
"label": "Enable indexing labels",
"order": 10,
"tooltip": "Enabling this will increase the amount of network calls to the source, and may decrease performance",
"type": "bool",
"value": False,
},
"ssl_enabled": {
"display": "toggle",
"label": "Enable SSL",
"order": 11,
"type": "bool",
"value": False,
},
"ssl_ca": {
"depends_on": [{"field": "ssl_enabled", "value": True}],
"label": "SSL certificate",
"order": 12,
"type": "str",
},
"retry_count": {
"default_value": 3,
"display": "numeric",
"label": "Retries per request",
"order": 13,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
},
"concurrent_downloads": {
"default_value": MAX_CONCURRENT_DOWNLOADS,
"display": "numeric",
"label": "Maximum concurrent downloads",
"order": 14,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
"validations": [
{"type": "less_than", "constraint": MAX_CONCURRENT_DOWNLOADS + 1}
],
},
"use_document_level_security": {
"display": "toggle",
"label": "Enable document level security",
"order": 15,
"tooltip": "Document level security ensures identities and permissions set in confluence are maintained in Elasticsearch. This enables you to restrict and personalize read-access users have to documents in this index. Access control syncs ensure this metadata is kept up to date in your Elasticsearch documents.",
"type": "bool",
"value": False,
},
"use_text_extraction_service": {
"display": "toggle",
"label": "Use text extraction service",
"order": 16,
"tooltip": "Requires a separate deployment of the Elastic Text Extraction Service. Requires that pipeline settings disable text extraction.",
"type": "bool",
"ui_restrictions": ["advanced"],
"value": False,
},
}