in connectors/sources/box.py [0:0]
def get_default_configuration(cls):
"""Get the default configuration for Box.
Returns:
dict: Default configuration.
"""
return {
"is_enterprise": {
"display": "dropdown",
"label": "Box Account",
"options": [
{"label": "Box Free Account", "value": BOX_FREE},
{"label": "Box Enterprise Account", "value": BOX_ENTERPRISE},
],
"order": 1,
"type": "str",
"value": BOX_FREE,
},
"client_id": {
"label": "Client ID",
"order": 2,
"type": "str",
},
"client_secret": {
"label": "Client Secret",
"order": 3,
"sensitive": True,
"type": "str",
},
"refresh_token": {
"depends_on": [{"field": "is_enterprise", "value": BOX_FREE}],
"label": "Refresh Token",
"order": 4,
"sensitive": True,
"type": "str",
},
"enterprise_id": {
"depends_on": [{"field": "is_enterprise", "value": BOX_ENTERPRISE}],
"label": "Enterprise ID",
"order": 5,
"type": "int",
},
"concurrent_downloads": {
"default_value": MAX_CONCURRENT_DOWNLOADS,
"display": "numeric",
"label": "Maximum concurrent downloads",
"order": 6,
"required": False,
"type": "int",
"ui_restrictions": ["advanced"],
"validations": [
{"type": "less_than", "constraint": MAX_CONCURRENT_DOWNLOADS + 1}
],
},
}