-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathconnection.v1.0.json
More file actions
155 lines (155 loc) · 3.66 KB
/
connection.v1.0.json
File metadata and controls
155 lines (155 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://neo4j.com/docs/common-content-dataflow/_attachments/schemas/connection.v1.0.json",
"title": "Google Cloud to Neo4j - Neo4j Connection Settings",
"description": "Neo4j Connection Settings",
"type": "object",
"properties": {
"server_url": {
"description": "URL of the Neo4j server",
"type": "string",
"format": "uri",
"pattern": "^(neo4j|bolt)(\\+s(sc)?)?://"
},
"database": {
"description": "Name of the database",
"type": "string",
"default": "neo4j",
"minLength": 1
},
"auth_type": {
"description": "Authentication type",
"type": "string",
"enum": [
"basic", "none", "kerberos", "bearer", "custom"
],
"default": "basic"
},
"max_connection_lifetime_millis": {
"description": "Max connection lifetime in milliseconds",
"type": "integer"
},
"connection_liveness_check_timeout_millis": {
"description": "Max idle time for pool connections without liveness check upon acquisition",
"type": "integer"
}
},
"required": [
"server_url"
],
"allOf": [
{
"if": {
"properties": {
"auth_type": {
"const": "basic"
}
}
},
"then": {
"properties": {
"username": {
"description": "Basic authentication username",
"type": "string",
"minLength": 1
},
"pwd": {
"description": "Basic authentication password",
"type": "string",
"minLength": 1
}
},
"required": [
"username",
"pwd"
]
}
},
{
"if": {
"properties": {
"auth_type": {
"const": "kerberos"
}
},
"required": ["auth_type"]
},
"then": {
"properties": {
"ticket": {
"description": "Kerberos authentication base64-encoded ticket",
"type": "string",
"contentEncoding": "base64",
"minLength": 1
}
},
"required": [
"ticket"
]
}
},
{
"if": {
"properties": {
"auth_type": {
"const": "bearer"
}
},
"required": ["auth_type"]
},
"then": {
"properties": {
"token": {
"description": "Bearer authentication token",
"type": "string",
"minLength": 1
}
},
"required": [
"token"
]
}
},
{
"if": {
"properties": {
"auth_type": {
"const": "custom"
}
},
"required": ["auth_type"]
},
"then": {
"properties": {
"principal": {
"description": "Custom authentication principal",
"type": "string",
"minLength": 1
},
"credentials": {
"description": "Custom authentication credentials",
"type": "string",
"minLength": 1
},
"realm": {
"description": "Custom authentication realm",
"type": "string",
"minLength": 1
},
"scheme": {
"description": "Custom authentication scheme",
"type": "string",
"minLength": 1
},
"parameters": {
"description": "Custom authentication parameters",
"type": "object"
}
},
"required": [
"principal", "credentials", "scheme"
]
}
}
]
}