deploy.json 7.78 KB
Newer Older
Akshay Vijapur's avatar
Akshay Vijapur committed
1
2
3
4
5
6
{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "messages": {
        "$i18n": "locales.yml"
    },
    "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
7
        "$ref": "#/messages/deploy.basic.title"
Akshay Vijapur's avatar
Akshay Vijapur committed
8
9
    },
    "description": {
Anamika Agrawal's avatar
Anamika Agrawal committed
10
        "$ref": "#/messages/deploy.basic.longDescription"
Akshay Vijapur's avatar
Akshay Vijapur committed
11
12
    },
    "longDescription": {
Anamika Agrawal's avatar
Anamika Agrawal committed
13
        "$ref": "#/messages/deploy.basic.longDescription"
Akshay Vijapur's avatar
Akshay Vijapur committed
14
15
16
17
18
19
20
21
22
23
24
25
26
    },
    "type": "object",
    "properties": {
        "api-key": {
            "description": {
                "$ref": "#/messages/deploy.apikeyDescription"
            },
            "type": "string",
            "pattern": "\\S",
            "validator": {
                "v-type": "api-key"
            }
        },
Anamika Agrawal's avatar
Anamika Agrawal committed
27
        "vpcRegion": {
Akshay Vijapur's avatar
Akshay Vijapur committed
28
29
30
31
32
            "description": {
                "$ref": "#/messages/deploy.vsiRegionLabel"
            },
            "type": "string",
            "validator": {
Anamika Agrawal's avatar
Anamika Agrawal committed
33
                "v-type": "vpc-region",
Akshay Vijapur's avatar
Akshay Vijapur committed
34
35
36
37
38
                "params": [
                    "api-key"
                ]
            }
        },
Anamika Agrawal's avatar
Anamika Agrawal committed
39

Akshay Vijapur's avatar
Akshay Vijapur committed
40
41
42
43
        "type": {
            "description": {
                "$ref": "#/messages/deploy.vsiAuthType"
            },
huayuenh's avatar
huayuenh committed
44
45
46
            "title": {
                "$ref": "#/messages/deploy.authType"
            },
Akshay Vijapur's avatar
Akshay Vijapur committed
47
48
49
50
51
52
53
54
55
56
57
58
59
            "type": "string",
            "enum": [
                "credentials",
                "ssh_private_key"
            ]
        },
        "app-name": {
            "description": {
                "$ref": "#/messages/deploy.appDescription"
            },
            "type": "string",
            "pattern": "\\S"
        },
Anamika Agrawal's avatar
Anamika Agrawal committed
60
61
62
63
64
65
66
67
        "vpcName": {
            "description": {
               "$ref": "#/messages/deploy.vpcNameLabel"
            },
            "type": "string",
            "validator": {
               "v-type": "vpc-name",
               "params": [
68
                  "vpcRegion"
Anamika Agrawal's avatar
Anamika Agrawal committed
69
70
71
               ]
            }
         },        
Akshay Vijapur's avatar
Akshay Vijapur committed
72
73
74
75
76
        "virtual-server-instance": {
            "description": {
                "$ref": "#/messages/deploy.vsiLabel"
            },
            "validator": {
Akshay Vijapur's avatar
Akshay Vijapur committed
77
                "v-type": "vsi-instance",
Akshay Vijapur's avatar
Akshay Vijapur committed
78
                "params": [
Anamika Agrawal's avatar
Anamika Agrawal committed
79
                    "vpcName"
Akshay Vijapur's avatar
Akshay Vijapur committed
80
81
82
83
84
85
                ]
            },
            "type": "string",
            "pattern": "\\S"
        },
        "host-user-name": {
huayuenh's avatar
huayuenh committed
86
87
88
            "title": {
                "$ref": "#/messages/deploy.usernameVirtualServer"
            },
Akshay Vijapur's avatar
Akshay Vijapur committed
89
90
91
            "type": "string"
        },
        "host-ssh-keys": {
huayuenh's avatar
huayuenh committed
92
            "title": {
Anamika Agrawal's avatar
Anamika Agrawal committed
93
                "$ref": "#/messages/deploy.bastionSshVirtualServer"
huayuenh's avatar
huayuenh committed
94
            },
Akshay Vijapur's avatar
Akshay Vijapur committed
95
96
97
98
99
100
            "type": "password"
        }
    },
    "required": [
        "app-name",
        "api-key",
Anamika Agrawal's avatar
Anamika Agrawal committed
101
        "vpcRegion",
Anamika Agrawal's avatar
Anamika Agrawal committed
102
103
104
105
        "vpcName",
        "virtual-server-instance",
        "host-user-name",
        "host-ssh-keys"
Akshay Vijapur's avatar
Akshay Vijapur committed
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
    ],
    "form": [
        {
            "type": "validator",
            "url": "/devops/validator/validator-v1.html"
        },
        {
            "type": "text",
            "readonly": false,
            "title": {
                "$ref": "#/messages/deploy.appName"
            },
            "key": "app-name"
        },
        {
            "type": "text",
            "readonly": false,
            "title": {
                "$ref": "#/messages/deploy.apikey"
            },
            "key": "api-key"
        },
        {
Anamika Agrawal's avatar
Anamika Agrawal committed
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
            "type": "info",
            "text": {
               "$ref": "#/messages/deploy.vpc"
            }
         },
         {
            "type": "table",
            "columnCount": 3,
            "widths": [
               "37%",
               "3%",
               "60%"
            ],
            "items": [
               {
                  "type": "label",
                  "description": {
                     "$ref": "#/messages/deploy.vsiRegionTitle"
                  },
                  "title": {
                     "$ref": "#/messages/deploy.vsiRegionTitle"
                  }
               },
               {
                  "type": "label",
                  "title": ""
               },
               {
                  "type": "label",
                  "description": {
                     "$ref": "#/messages/deploy.vsiNameTitle"
                  },
                  "title": {
                     "$ref": "#/messages/deploy.vsiNameTitle"
                  }
               },
               {
                  "type": "text",
                  "title": {
                     "$ref": "#/messages/deploy.vsiRegionTitle"
                  },
                  "placeholder": {
                     "$ref": "#/messages/deploy.vsiRegionPlaceHolder"
                  },
                  "key": "vpcRegion"
               },
               {
                  "type": "label",
                  "title": ""
               },
               {
                  "type": "text",
                  "title": {
                     "$ref": "#/messages/deploy.deploy.vsiNameTitle"
                  },
                  "placeholder": {
                     "$ref": "#/messages/deploy.vsiNamePlaceHolder"
                  },
                  "key": "vpcName"
               }
            ]
         },         
         {
            "type": "table",
            "columnCount": 3,
            "widths": [
               "37%",
               "3%",
               "60%"
            ],
            "items": [
               {
                  "type": "label",
                  "description": {
                     "$ref": "#/messages/deploy.usernameVirtualServer"
                  },
                  "title": {
                     "$ref": "#/messages/deploy.usernameVirtualServer"
                  }
               },
               {
                  "type": "label",
                  "title": ""
               },
               {
                  "type": "label",
                  "description": {
                     "$ref": "#/messages/deploy.bastionSshVirtualServer"
                  },
                  "title": {
                     "$ref": "#/messages/deploy.bastionSshVirtualServer"
                  }
               },
               {
                  "type": "text",
                  "title": {
                     "$ref": "#/messages/deploy.usernameVirtualServer"
                  },
                  "placeholder": {
                     "$ref": "#/messages/deploy.bastionUsernamePlaceHolder"
                  },
                  "key": "host-user-name"
               },
               {
                  "type": "label",
                  "title": ""
               },
               {
                  "type": "password",
                  "description": {
                     "$ref": "#/messages/deploy.bastionSshVirtualServer"
                  },
                  "title": {
                     "$ref": "#/messages/deploy.bastionSshVirtualServer"
                  },
                  "placeholder": {
                     "$ref": "#/messages/deploy.sshVirtualServerPlaceHolder"
                  },
                  "key": "host-ssh-keys"
               }
            ]
         },
         {
            "type": "info",
            "text": {
               "$ref": "#/messages/deploy.vsiText"
            }
         },                  
Akshay Vijapur's avatar
Akshay Vijapur committed
257
258
259
260
261
        {
            "type": "select",
            "title": {
                "$ref": "#/messages/deploy.vsi"
            },
262
263
264
            "placeholder": {
                "$ref": "#/messages/deploy.vsiPlaceHolder"
            },
Akshay Vijapur's avatar
Akshay Vijapur committed
265
266
267
            "key": "virtual-server-instance"
        },
        {
Anamika Agrawal's avatar
Anamika Agrawal committed
268
269
270
271
272
273
274
275
276
277
278
279
280
281
         "type": "notification",
         "display": {
           "style": "warning",
           "title": {
             "$ref": "#/messages/wizard.fetcher.warning.title"
           },
           "subtitle": {
             "$ref": "#/messages/wizard.fetcher.warning.subtitle"
           },
           "showInAdvancedMode": true,
           "advancedModePosition": "bottom"
         },
         "visible": true
       }        
Akshay Vijapur's avatar
Akshay Vijapur committed
282
283
    ]
}