Skip to content

Commit 3134761

Browse files
authored
Merge pull request #2830 from Azure/autogenerate
Autogenerate
2 parents f0c32b9 + 357e343 commit 3134761

21 files changed

+29038
-173
lines changed

generator/resources.json

Lines changed: 214 additions & 68 deletions
Large diffs are not rendered by default.

schemas/2020-07-01-preview/Microsoft.Elastic.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@
141141
"properties": {
142142
"business": {
143143
"type": "string",
144-
"maxLength": 50,
144+
"maxLength": 64,
145145
"description": "Business of the company"
146146
},
147147
"country": {
148148
"type": "string",
149-
"maxLength": 50,
149+
"maxLength": 64,
150150
"description": "Country of the company location."
151151
},
152152
"domain": {
@@ -161,7 +161,7 @@
161161
},
162162
"state": {
163163
"type": "string",
164-
"maxLength": 50,
164+
"maxLength": 64,
165165
"description": "State of the company location."
166166
}
167167
},
@@ -493,7 +493,7 @@
493493
},
494494
"companyName": {
495495
"type": "string",
496-
"maxLength": 50,
496+
"maxLength": 64,
497497
"description": "Company name of the user"
498498
},
499499
"emailAddress": {

schemas/2020-07-01/Microsoft.Elastic.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@
141141
"properties": {
142142
"business": {
143143
"type": "string",
144-
"maxLength": 50,
144+
"maxLength": 64,
145145
"description": "Business of the company"
146146
},
147147
"country": {
148148
"type": "string",
149-
"maxLength": 50,
149+
"maxLength": 64,
150150
"description": "Country of the company location."
151151
},
152152
"domain": {
@@ -161,7 +161,7 @@
161161
},
162162
"state": {
163163
"type": "string",
164-
"maxLength": 50,
164+
"maxLength": 64,
165165
"description": "State of the company location."
166166
}
167167
},
@@ -493,7 +493,7 @@
493493
},
494494
"companyName": {
495495
"type": "string",
496-
"maxLength": 50,
496+
"maxLength": 64,
497497
"description": "Company name of the user"
498498
},
499499
"emailAddress": {

schemas/2021-09-01-preview/Microsoft.Elastic.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@
141141
"properties": {
142142
"business": {
143143
"type": "string",
144-
"maxLength": 50,
144+
"maxLength": 64,
145145
"description": "Business of the company"
146146
},
147147
"country": {
148148
"type": "string",
149-
"maxLength": 50,
149+
"maxLength": 64,
150150
"description": "Country of the company location."
151151
},
152152
"domain": {
@@ -161,7 +161,7 @@
161161
},
162162
"state": {
163163
"type": "string",
164-
"maxLength": 50,
164+
"maxLength": 64,
165165
"description": "State of the company location."
166166
}
167167
},
@@ -493,7 +493,7 @@
493493
},
494494
"companyName": {
495495
"type": "string",
496-
"maxLength": 50,
496+
"maxLength": 64,
497497
"description": "Company name of the user"
498498
},
499499
"emailAddress": {

schemas/2021-10-01-preview/Microsoft.Elastic.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@
141141
"properties": {
142142
"business": {
143143
"type": "string",
144-
"maxLength": 50,
144+
"maxLength": 64,
145145
"description": "Business of the company"
146146
},
147147
"country": {
148148
"type": "string",
149-
"maxLength": 50,
149+
"maxLength": 64,
150150
"description": "Country of the company location."
151151
},
152152
"domain": {
@@ -161,7 +161,7 @@
161161
},
162162
"state": {
163163
"type": "string",
164-
"maxLength": 50,
164+
"maxLength": 64,
165165
"description": "State of the company location."
166166
}
167167
},
@@ -497,7 +497,7 @@
497497
},
498498
"companyName": {
499499
"type": "string",
500-
"maxLength": 50,
500+
"maxLength": 64,
501501
"description": "Company name of the user"
502502
},
503503
"emailAddress": {
Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
{
2+
"id": "https://schema.management.azure.com/schemas/2022-05-01-preview/Microsoft.DBforPostgreSQL.json#",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"title": "Microsoft.DBforPostgreSQL",
5+
"description": "Microsoft DBforPostgreSQL Resource Types",
6+
"resourceDefinitions": {
7+
"flexibleServers_migrations": {
8+
"type": "object",
9+
"properties": {
10+
"apiVersion": {
11+
"type": "string",
12+
"enum": [
13+
"2022-05-01-preview"
14+
]
15+
},
16+
"location": {
17+
"type": "string",
18+
"description": "The geo-location where the resource lives"
19+
},
20+
"name": {
21+
"oneOf": [
22+
{
23+
"type": "string",
24+
"pattern": "^[a-z][a-z0-9]*$"
25+
},
26+
{
27+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
28+
}
29+
],
30+
"description": "The name of the migration."
31+
},
32+
"properties": {
33+
"oneOf": [
34+
{
35+
"$ref": "#/definitions/MigrationResourceProperties"
36+
},
37+
{
38+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
39+
}
40+
],
41+
"description": "Migration resource properties."
42+
},
43+
"tags": {
44+
"oneOf": [
45+
{
46+
"type": "object",
47+
"additionalProperties": {
48+
"type": "string"
49+
},
50+
"properties": {}
51+
},
52+
{
53+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
54+
}
55+
],
56+
"description": "Resource tags."
57+
},
58+
"type": {
59+
"type": "string",
60+
"enum": [
61+
"Microsoft.DBforPostgreSQL/flexibleServers/migrations"
62+
]
63+
}
64+
},
65+
"required": [
66+
"apiVersion",
67+
"location",
68+
"name",
69+
"properties",
70+
"type"
71+
],
72+
"description": "Microsoft.DBforPostgreSQL/flexibleServers/migrations"
73+
}
74+
},
75+
"definitions": {
76+
"AdminCredentials": {
77+
"type": "object",
78+
"properties": {
79+
"sourceServerPassword": {
80+
"type": "string"
81+
},
82+
"targetServerPassword": {
83+
"type": "string"
84+
}
85+
},
86+
"required": [
87+
"sourceServerPassword",
88+
"targetServerPassword"
89+
],
90+
"description": "Server admin credentials."
91+
},
92+
"MigrationResourceProperties": {
93+
"type": "object",
94+
"properties": {
95+
"cancel": {
96+
"oneOf": [
97+
{
98+
"type": "boolean"
99+
},
100+
{
101+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
102+
}
103+
],
104+
"description": "To trigger cancel for entire migration we need to send this flag as true"
105+
},
106+
"dBsToCancelMigrationOn": {
107+
"oneOf": [
108+
{
109+
"type": "array",
110+
"items": {
111+
"type": "string"
112+
}
113+
},
114+
{
115+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
116+
}
117+
],
118+
"description": "When you want to trigger cancel for specific databases send triggerCutover flag as true and database names in this array"
119+
},
120+
"dBsToMigrate": {
121+
"oneOf": [
122+
{
123+
"type": "array",
124+
"items": {
125+
"type": "string"
126+
}
127+
},
128+
{
129+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
130+
}
131+
]
132+
},
133+
"dBsToTiggerCutoverOn": {
134+
"oneOf": [
135+
{
136+
"type": "array",
137+
"items": {
138+
"type": "string"
139+
}
140+
},
141+
{
142+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
143+
}
144+
],
145+
"description": "When you want to trigger cutover for specific databases send triggerCutover flag as true and database names in this array"
146+
},
147+
"migrationMode": {
148+
"oneOf": [
149+
{
150+
"type": "string",
151+
"enum": [
152+
"Offline",
153+
"Online"
154+
]
155+
},
156+
{
157+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
158+
}
159+
],
160+
"description": "There are two types of migration modes Online and Offline."
161+
},
162+
"migrationWindowStartTimeInUtc": {
163+
"type": "string",
164+
"format": "date-time"
165+
},
166+
"overwriteDBsInTarget": {
167+
"oneOf": [
168+
{
169+
"type": "boolean"
170+
},
171+
{
172+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
173+
}
174+
]
175+
},
176+
"secretParameters": {
177+
"oneOf": [
178+
{
179+
"$ref": "#/definitions/MigrationSecretParameters"
180+
},
181+
{
182+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
183+
}
184+
],
185+
"description": "Migration secret parameters."
186+
},
187+
"setupLogicalReplicationOnSourceDBIfNeeded": {
188+
"oneOf": [
189+
{
190+
"type": "boolean"
191+
},
192+
{
193+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
194+
}
195+
]
196+
},
197+
"sourceDBServerFullyQualifiedDomainName": {
198+
"type": "string"
199+
},
200+
"sourceDBServerResourceId": {
201+
"type": "string"
202+
},
203+
"startDataMigration": {
204+
"oneOf": [
205+
{
206+
"type": "boolean"
207+
},
208+
{
209+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
210+
}
211+
]
212+
},
213+
"targetDBServerFullyQualifiedDomainName": {
214+
"type": "string"
215+
},
216+
"triggerCutover": {
217+
"oneOf": [
218+
{
219+
"type": "boolean"
220+
},
221+
{
222+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
223+
}
224+
],
225+
"description": "To trigger cutover for entire migration we need to send this flag as true"
226+
}
227+
},
228+
"description": "Migration resource properties."
229+
},
230+
"MigrationSecretParameters": {
231+
"type": "object",
232+
"properties": {
233+
"adminCredentials": {
234+
"oneOf": [
235+
{
236+
"$ref": "#/definitions/AdminCredentials"
237+
},
238+
{
239+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
240+
}
241+
],
242+
"description": "Server admin credentials."
243+
}
244+
},
245+
"required": [
246+
"adminCredentials"
247+
],
248+
"description": "Migration secret parameters."
249+
}
250+
}
251+
}

0 commit comments

Comments
 (0)