-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCloudSQLMySQL-action.json
More file actions
162 lines (162 loc) · 3.77 KB
/
Copy pathCloudSQLMySQL-action.json
File metadata and controls
162 lines (162 loc) · 3.77 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
{
"metadata": {
"spec-version": "1.5"
},
"display-name": "CloudSQL MySQL Execute",
"configuration-groups": [
{
"label": "Basic",
"properties": [
{
"widget-type": "textbox",
"label": "Driver Name",
"name": "jdbcPluginName",
"widget-attributes": {
"default": "cloudsql-mysql"
}
},
{
"widget-type": "textbox",
"label": "Database",
"name": "database"
}
]
},
{
"label": "Credentials",
"properties": [
{
"widget-type": "textbox",
"label": "Username",
"name": "user",
"widget-attributes": {
"placeholder": "The username to use to connect to the CloudSQL database"
}
},
{
"widget-type": "password",
"label": "Password",
"name": "password",
"widget-attributes": {
"placeholder": "The password to use to connect to the CloudSQL database"
}
}
]
},
{
"label": "CloudSQL Properties",
"properties": [
{
"widget-type": "radio-group",
"label": "CloudSQL Instance Type",
"name": "instanceType",
"widget-attributes": {
"layout": "inline",
"default": "public",
"options": [
{
"id": "public",
"label": "Public"
},
{
"id": "private",
"label": "Private"
}
]
}
},
{
"widget-type": "textbox",
"label": "Connection Name",
"name": "connectionName",
"widget-attributes": {
"placeholder": "CloudSQL instance connection name"
}
},
{
"widget-type": "number",
"label": "Port",
"name": "port",
"widget-attributes": {
"default": "3306"
}
},
{
"widget-type": "textarea",
"label": "Database Command",
"name": "query"
}
]
},
{
"label": "Advanced",
"properties":[
{
"widget-type": "number",
"label": "Connection Timeout",
"name":"connectionTimeout",
"widget-attributes": {
"default": "10"
}
},
{
"widget-type": "keyvalue",
"label": "Connection Arguments",
"name": "connectionArguments",
"widget-attributes": {
"showDelimiter": "false",
"key-placeholder": "Key",
"value-placeholder": "Value",
"kv-delimiter": "=",
"delimiter": ";"
}
}
]
},
{
"properties": [
{
"widget-type": "hidden",
"label": "Initial Retry Duration (sec)",
"name": "initialRetryDuration",
"widget-attributes": {
"default": 5,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Duration (sec)",
"name": "maxRetryDuration",
"widget-attributes": {
"default": 80,
"minimum": 0
}
},
{
"widget-type": "hidden",
"label": "Maximum Retry Count",
"name": "maxRetryCount",
"widget-attributes": {
"default": 5,
"minimum": 0
}
}
]
}
],
"filters": [
{
"name": "showPrivateInstanceProperties ",
"condition": {
"expression": "instanceType == 'private'"
},
"show": [
{
"type": "property",
"name": "port"
}
]
}
]
}