Skip to content

Commit 066eb8c

Browse files
authored
updated path from V2 to V1 (#20476)
* updated path from V2 to V1 * Updated Model validation error of 202 status missing * Fix model validation error XmsEnumValidation, MissingXmsErrorResponse * Fixed lint error * Fix Model validation error * Fix lint error * Fix model validation error * Revert "Fix model validation error" This reverts commit f5087d0. * Fix Semantic validation * Fix semantic validation error
1 parent 650a2be commit 066eb8c

File tree

5 files changed

+84
-8
lines changed

5 files changed

+84
-8
lines changed

specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetLocationHeaderResultWithSqlPool.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@
2828
"name": "SampleSQLPool",
2929
"type": "Microsoft.Synapse/workspaces/sqlPools"
3030
}
31+
},
32+
"202": {
33+
"body": {
34+
"sku": {},
35+
"kind": "v12.0,user,datawarehouse,gen2",
36+
"properties": {
37+
"collation": "SQL_Latin1_General_CP1_CI_AS",
38+
"maxSizeBytes": 263882790666240,
39+
"status": "Paused",
40+
"databaseId": "00000000-1111-2222-3333-444444444444",
41+
"creationDate": "2022-08-25T09:22:46.68Z",
42+
"currentServiceObjectiveName": "DW100c",
43+
"defaultSecondaryLocation": "westus",
44+
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS"
45+
},
46+
"location": "eastus",
47+
"tags": {},
48+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg_ursa/providers/Microsoft.Synapse/workspaces/ursascaneastus/sqlPools/SampleSQLPool",
49+
"name": "SampleSQLPool",
50+
"type": "Microsoft.Synapse/workspaces/sqlPools"
51+
}
3152
}
3253
}
3354
}

specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/sqlPool.json

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@
189189
"description": "Accepted"
190190
},
191191
"404": {
192-
"description": ""
192+
"description": "",
193+
"x-ms-error-response": true
193194
},
194195
"default": {
195196
"schema": {
@@ -548,7 +549,8 @@
548549
],
549550
"responses": {
550551
"404": {
551-
"description": ""
552+
"description": "",
553+
"x-ms-error-response": true
552554
},
553555
"200": {
554556
"schema": {
@@ -613,7 +615,8 @@
613615
],
614616
"responses": {
615617
"404": {
616-
"description": ""
618+
"description": "",
619+
"x-ms-error-response": true
617620
},
618621
"200": {
619622
"schema": {
@@ -1545,7 +1548,7 @@
15451548
},
15461549
"default": {
15471550
"schema": {
1548-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
1551+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
15491552
},
15501553
"description": ""
15511554
}
@@ -1652,6 +1655,10 @@
16521655
"enum": [
16531656
"default"
16541657
],
1658+
"x-ms-enum": {
1659+
"modelAsString": true,
1660+
"name": "BlobAuditingPolicyName"
1661+
},
16551662
"x-ms-parameter-location": "method"
16561663
}
16571664
],
@@ -1712,6 +1719,10 @@
17121719
"enum": [
17131720
"default"
17141721
],
1722+
"x-ms-enum": {
1723+
"modelAsString": true,
1724+
"name": "BlobAuditingPolicyName"
1725+
},
17151726
"x-ms-parameter-location": "method"
17161727
},
17171728
{
@@ -3779,6 +3790,10 @@
37793790
"enum": [
37803791
"default"
37813792
],
3793+
"x-ms-enum": {
3794+
"modelAsString": true,
3795+
"name": "BlobAuditingPolicyName"
3796+
},
37823797
"x-ms-parameter-location": "method"
37833798
}
37843799
],
@@ -3838,6 +3853,10 @@
38383853
"enum": [
38393854
"default"
38403855
],
3856+
"x-ms-enum": {
3857+
"modelAsString": true,
3858+
"name": "BlobAuditingPolicyName"
3859+
},
38413860
"x-ms-parameter-location": "method"
38423861
},
38433862
{
@@ -5550,6 +5569,7 @@
55505569
}
55515570
},
55525571
"GeoBackupPolicyProperties": {
5572+
"type": "object",
55535573
"properties": {
55545574
"state": {
55555575
"type": "string",
@@ -5575,6 +5595,7 @@
55755595
"description": "The properties of the geo backup policy."
55765596
},
55775597
"GeoBackupPolicy": {
5598+
"type": "object",
55785599
"properties": {
55795600
"properties": {
55805601
"$ref": "#/definitions/GeoBackupPolicyProperties",
@@ -5603,6 +5624,7 @@
56035624
"description": "A database geo backup policy."
56045625
},
56055626
"GeoBackupPolicyListResult": {
5627+
"type": "object",
56065628
"properties": {
56075629
"value": {
56085630
"type": "array",
@@ -5615,6 +5637,7 @@
56155637
"description": "The response to a list geo backup policies request."
56165638
},
56175639
"TopQueries": {
5640+
"type": "object",
56185641
"properties": {
56195642
"aggregationFunction": {
56205643
"description": "The function that is used to aggregate each query's metrics.",
@@ -5698,6 +5721,7 @@
56985721
"description": "A database query."
56995722
},
57005723
"QueryStatistic": {
5724+
"type": "object",
57015725
"properties": {
57025726
"queryId": {
57035727
"description": "The id of the query",
@@ -5716,6 +5740,7 @@
57165740
"description": "A database query."
57175741
},
57185742
"QueryInterval": {
5743+
"type": "object",
57195744
"properties": {
57205745
"intervalStartTime": {
57215746
"description": "The start time of the measurement interval (ISO8601 format).",
@@ -5741,6 +5766,7 @@
57415766
"description": "A database query."
57425767
},
57435768
"QueryMetric": {
5769+
"type": "object",
57445770
"properties": {
57455771
"name": {
57465772
"description": "The name of the metric",
@@ -5776,6 +5802,7 @@
57765802
"description": "A database query."
57775803
},
57785804
"TopQueriesListResult": {
5805+
"type": "object",
57795806
"properties": {
57805807
"value": {
57815808
"type": "array",
@@ -5895,6 +5922,7 @@
58955922
}
58965923
},
58975924
"ReplicationLinkProperties": {
5925+
"type": "object",
58985926
"properties": {
58995927
"isTerminationAllowed": {
59005928
"readOnly": true,
@@ -5982,6 +6010,7 @@
59826010
"description": "Represents the properties of a Sql pool replication link."
59836011
},
59846012
"ReplicationLink": {
6013+
"type": "object",
59856014
"properties": {
59866015
"location": {
59876016
"type": "string",
@@ -6007,6 +6036,7 @@
60076036
"description": "Represents a Sql pool replication link."
60086037
},
60096038
"ReplicationLinkListResult": {
6039+
"type": "object",
60106040
"properties": {
60116041
"value": {
60126042
"type": "array",

specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/workspace.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@
13361336
}
13371337
},
13381338
"CspWorkspaceAdminProperties": {
1339+
"type": "object",
13391340
"description": "Initial workspace AAD admin properties for a CSP subscription",
13401341
"properties": {
13411342
"initialWorkspaceAdminObjectId": {

specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeaderResultWithSqlPool.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@
2828
"name": "SampleSQLPool",
2929
"type": "Microsoft.Synapse/workspaces/sqlPools"
3030
}
31+
},
32+
"202": {
33+
"body": {
34+
"sku": {},
35+
"kind": "v12.0,user,datawarehouse,gen2",
36+
"properties": {
37+
"collation": "SQL_Latin1_General_CP1_CI_AS",
38+
"maxSizeBytes": 263882790666240,
39+
"status": "Paused",
40+
"databaseId": "00000000-1111-2222-3333-444444444444",
41+
"creationDate": "2022-08-25T09:22:46.68Z",
42+
"currentServiceObjectiveName": "DW100c",
43+
"defaultSecondaryLocation": "westus",
44+
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS"
45+
},
46+
"location": "eastus",
47+
"tags": {},
48+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg_ursa/providers/Microsoft.Synapse/workspaces/ursascaneastus/sqlPools/SampleSQLPool",
49+
"name": "SampleSQLPool",
50+
"type": "Microsoft.Synapse/workspaces/sqlPools"
51+
}
3152
}
3253
}
3354
}

specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/sqlPool.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@
189189
"description": "Accepted"
190190
},
191191
"404": {
192-
"description": ""
192+
"description": "",
193+
"x-ms-error-response": true
193194
},
194195
"default": {
195196
"schema": {
@@ -548,7 +549,8 @@
548549
],
549550
"responses": {
550551
"404": {
551-
"description": ""
552+
"description": "",
553+
"x-ms-error-response": true
552554
},
553555
"200": {
554556
"schema": {
@@ -613,7 +615,8 @@
613615
],
614616
"responses": {
615617
"404": {
616-
"description": ""
618+
"description": "",
619+
"x-ms-error-response": true
617620
},
618621
"200": {
619622
"schema": {
@@ -1545,7 +1548,7 @@
15451548
},
15461549
"default": {
15471550
"schema": {
1548-
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
1551+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
15491552
},
15501553
"description": ""
15511554
}

0 commit comments

Comments
 (0)