-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcontainerLevelConfig.json
More file actions
376 lines (371 loc) · 11.2 KB
/
containerLevelConfig.json
File metadata and controls
376 lines (371 loc) · 11.2 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/*
* Copyright © 2016-2019 by IntegrIT S.A. dba Hackolade. All rights reserved.
*
* The copyright to the computer software herein is the property of IntegrIT S.A.
* The software may be used and/or copied only with the written permission of
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
* the agreement/contract under which the software has been supplied.
In order to define custom properties for any object's properties pane, you may copy/paste from the following,
making sure that you maintain a proper JSON format.
{
"propertyName": "Simple text",
"propertyKeyword": "simpletextProp",
"propertyType": "text",
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Text area",
"propertyKeyword": "textareaProp",
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Dropdown selection",
"propertyKeyword": "dropdownProp",
"propertyTooltip": "Select from list of options",
"propertyType": "select",
"options": [
"Option 1",
"Option 2",
"Option 3",
"Option 4"
]
},
{
"propertyName": "Numeric",
"propertyKeyword": "numericProp",
"propertyValidate": true,
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false,
"sampleGen": "&containerName|&entityName|&random|<value>"
},
{
"propertyName": "Checkbox",
"propertyKeyword": "checkboxProp",
"propertyType": "checkbox"
},
{
"propertyName": "Group",
"propertyType": "group",
"propertyKeyword": "grpProp",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
// “groupInput” can have the following states - 0 items, 1 item, and many items.
// “blockInput” has only 2 states - 0 items or 1 item.
// This gives us an easy way to represent it as an object and not as an array internally which is beneficial for processing
// and forward-engineering in particular.
{
"propertyName": "Block",
"propertyType": "block",
"propertyKeyword": "grpProp",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Simple Grp Text",
"propertyKeyword": "simpleGrpText",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Group Number",
"propertyKeyword": "grpNumber",
"propertyType": "numeric",
"valueType": "number",
"allowNegative": false
}
]
},
{
"propertyName": "Field List",
"propertyKeyword": "keyList",
"propertyType": "fieldList",
"template": "orderedList"
},
{
"propertyName": "List with attribute",
"propertyKeyword": "keyListOrder",
"propertyType": "fieldList",
"template": "orderedList",
"attributeList": [
"ascending",
"descending"
]
}
*/
[
{
"lowerTab": "Details",
"structure": [
{
"propertyName": "Dataset name",
"propertyKeyword": "name"
},
{
"propertyName": "Technical name",
"propertyKeyword": "code",
"validation": {
"regex": "^[A-Za-z0-9_]{1,1024}$"
}
},
{
"propertyName": "Description",
"propertyKeyword": "description",
"propertyTooltip": "description",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Dataset ID",
"propertyKeyword": "datasetID",
"propertyTooltip": "Letters, numbers, and underscores allowed",
"propertyType": "text"
},
{
"propertyName": "If not exist",
"propertyKeyword": "ifNotExist",
"propertyType": "checkbox"
},
{
"propertyName": "Data location",
"propertyKeyword": "dataLocation",
"propertyTooltip": "Determines location where your data is stored. The current default location is the US multi-region. All tables within this dataset will share this location. This cannot be changed later.",
"defaultValue": "default",
"propertyType": "select",
"options": [
{ "name": "Default", "value": "default" },
{ "name": "United States (us)", "value": "us" },
{ "name": "European Union (eu)", "value": "eu" },
{ "name": "South Carolina (us-east1)", "value": "us-east1" },
{ "name": "Northern Virginia (us-east4)", "value": "us-east4" },
{ "name": "Iowa (us-central1)", "value": "us-central1" },
{ "name": "Oregon (us-west1)", "value": "us-west1" },
{ "name": "Los Angeles (us-west2)", "value": "us-west2" },
{ "name": "Salt Lake City (us-west3)", "value": "us-west3" },
{ "name": "Las Vegas (us-west4)", "value": "us-west4" },
{ "name": "Taiwan (asia-east1)", "value": "asia-east1" },
{ "name": "Tokyo (asia-northeast1)", "value": "asia-northeast1" },
{ "name": "Singapore (asia-southeast1)", "value": "asia-southeast1" },
{ "name": "Mumbai (asia-south1)", "value": "asia-south1" },
{ "name": "Hong Kong (asia-east2)", "value": "asia-east2" },
{ "name": "Osaka (asia-northeast2)", "value": "asia-northeast2" },
{ "name": "Seoul (asia-northeast3)", "value": "asia-northeast3" },
{ "name": "Jakarta (asia-southeast2)", "value": "asia-southeast2" },
{ "name": "Delhi (asia-south2)", "value": "asia-south2" },
{ "name": "Finland (europe-north1)", "value": "europe-north1" },
{ "name": "Belgium (europe-west1)", "value": "europe-west1" },
{ "name": "London (europe-west2)", "value": "europe-west2" },
{ "name": "Frankfurt (europe-west3)", "value": "europe-west3" },
{ "name": "Netherlands (europe-west4)", "value": "europe-west4" },
{ "name": "Zurich (europe-west6)", "value": "europe-west6" },
{ "name": "Warsaw (europe-central2)", "value": "europe-central2" },
{ "name": "Montréal (northamerica-northeast1)", "value": "northamerica-northeast1" },
{ "name": "São Paulo (southamerica-east1)", "value": "southamerica-east1" },
{ "name": "Sydney (australia-southeast1)", "value": "australia-southeast1" },
{ "name": "Melbourne (australia-southeast2)", "value": "australia-southeast2" }
]
},
{
"propertyName": "Enable table expiration",
"propertyKeyword": "enableTableExpiration",
"propertyTooltip": "Any new table created in this dataset will be automatically deleted the specified number of days after creation. This is useful for temporary data which does not need to be preserved",
"propertyType": "checkbox"
},
{
"propertyName": "Default maximum table age",
"propertyKeyword": "defaultExpiration",
"propertyTooltip": "Specified number of days after creation date",
"propertyType": "numeric",
"valueType": "number",
"step": 1,
"allowNegative": false,
"dependency": {
"key": "enableTableExpiration",
"value": true
}
},
{
"propertyName": "Encryption",
"propertyKeyword": "encryption",
"propertyTooltip": "Data is encrypted automatically. Select an encryption key management solution.",
"defaultValue": "Google-managed",
"propertyType": "select",
"options": ["Google-managed", "Customer-managed"]
},
{
"propertyName": "Encryption key",
"propertyKeyword": "customerEncryptionKey",
"propertyTooltip": "Keys can be configured in your Cloud KMS settings",
"propertyType": "text",
"dependency": {
"key": "encryption",
"value": "Customer-managed"
}
},
{
"propertyName": "Labels",
"propertyType": "group",
"propertyKeyword": "labels",
"structure": [
{
"propertyName": "Key",
"propertyKeyword": "labelKey",
"propertyType": "text"
},
{
"propertyName": "Value",
"propertyKeyword": "labelValue",
"propertyType": "text"
}
]
},
{
"propertyName": "Custom scripts",
"propertyType": "block",
"propertyKeyword": "customScripts",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Before CREATE SCHEMA",
"propertyKeyword": "beforeCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After CREATE SCHEMA",
"propertyKeyword": "afterCreateContainer",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE TABLE",
"propertyKeyword": "beforeCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE TABLE",
"propertyKeyword": "afterCreateEntity",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "Before each CREATE VIEW",
"propertyKeyword": "beforeCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
},
{
"propertyName": "After each CREATE VIEW",
"propertyKeyword": "afterCreateView",
"propertyType": "block",
"propertyTooltip": "",
"structure": [
{
"propertyName": "Script",
"propertyKeyword": "script",
"propertyType": "details",
"markdown": false,
"template": "codeEditor",
"templateOptions": {
"editorDialect": "sql",
"customScriptVariables": true
}
}
]
}
]
},
{
"propertyName": "Comments",
"propertyKeyword": "comments",
"propertyTooltip": "comments",
"addTimestampButton": true,
"propertyType": "details",
"template": "textarea"
}
],
"containerLevelKeys": []
}
]