Skip to content

Commit c9d1fa5

Browse files
authored
Removed locale from request body (Azure#33749)
* Removed locale from request body * Added properties around request body * Fixed Swagger ModelValidation * Updated example file * ModelValidation fix
1 parent b753969 commit c9d1fa5

5 files changed

Lines changed: 22 additions & 81 deletions

File tree

specification/billing/resource-manager/Microsoft.Billing/preview/2024-08-01-preview/examples/CreateOrUpdateMigrationMapping.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33
"billingAccountName": "57151837",
44
"api-version": "2024-08-01-preview",
55
"parameters": {
6-
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
7-
"status": "Draft"
6+
"properties": {
7+
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
8+
"status": "Draft"
9+
}
810
}
911
},
1012
"responses": {
1113
"200": {
1214
"body": {
13-
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
15+
"id": "/providers/Microsoft.Billing/billingAccounts/57151837/migrations/default",
1416
"name": "default",
15-
"type": "Microsoft.Billing/billingAccounts/migrations/default",
17+
"type": "Microsoft.Billing/billingAccounts/migrations",
1618
"properties": {
1719
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
18-
"status": "Draft",
19-
"transferId": null,
20-
"products": []
20+
"status": "NotStarted",
21+
"transferId": null
2122
}
2223
}
2324
}

specification/billing/resource-manager/Microsoft.Billing/preview/2024-08-01-preview/examples/GetMigrationMapping.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
"responses": {
77
"200": {
88
"body": {
9-
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
9+
"id": "/providers/Microsoft.Billing/billingAccounts/57151837/migrations/default",
1010
"name": "default",
11-
"type": "Microsoft.Billing/billingAccounts/migrations/default",
11+
"type": "Microsoft.Billing/billingAccounts/migrations",
1212
"properties": {
1313
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
1414
"status": "Completed",
15-
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d",
16-
"products": []
15+
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d"
1716
}
1817
}
1918
}

specification/billing/resource-manager/Microsoft.Billing/preview/2024-08-01-preview/examples/InitiateMigration.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,22 @@
33
"billingAccountName": "57151837",
44
"api-version": "2024-08-01-preview",
55
"parameters": {
6-
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
7-
"status": "InProgress",
8-
"locale": "en-us"
6+
"properties": {
7+
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
8+
"status": "InProgress"
9+
}
910
}
1011
},
1112
"responses": {
1213
"200": {
1314
"body": {
14-
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/migrations/default",
15+
"id": "/providers/Microsoft.Billing/billingAccounts/57151837/migrations/default",
1516
"name": "default",
16-
"type": "Microsoft.Billing/billingAccounts/migrations/default",
17+
"type": "Microsoft.Billing/billingAccounts/migrations",
1718
"properties": {
1819
"destinationBillingScope": "/providers/Microsoft.Billing/billingAccounts/8a1d33b5-73a1-5e7f-4b29-5afaebaba7e4:03059466-caec-4aa5-b458-2071484f7d32_2019-05-31/billingProfiles/APS5-RFWH-BG7-PGB",
19-
"status": "Completed",
20-
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d",
21-
"products": [
22-
{
23-
"productType": "AzureSubscription",
24-
"productId": "43566850-63bf-40d2-a2cb-763eb62d7f3b",
25-
"name": "OpenAI Staging",
26-
"skuDescription": "MS-AZR-0003P",
27-
"status": "Completed"
28-
}
29-
]
20+
"status": "InProgress",
21+
"transferId": "4a74dc9e-a863-4c88-b11e-e76aa2f4a05d"
3022
}
3123
}
3224
}

specification/billing/resource-manager/Microsoft.Billing/preview/2024-08-01-preview/migration.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"description": "Migration details.",
7878
"required": true,
7979
"schema": {
80-
"$ref": "./types.json#/definitions/Migration"
80+
"$ref": "#/definitions/MigrationDetails"
8181
}
8282
}
8383
],
@@ -119,7 +119,8 @@
119119
"properties": {
120120
"$ref": "./types.json#/definitions/Migration"
121121
}
122-
}
122+
},
123+
"x-ms-azure-resource": true
123124
}
124125
},
125126
"securityDefinitions": {

specification/billing/resource-manager/Microsoft.Billing/preview/2024-08-01-preview/types.json

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -31,48 +31,6 @@
3131
},
3232
"x-ms-azure-resource": true
3333
},
34-
"Products": {
35-
"description": "Product Details.",
36-
"type": "object",
37-
"properties": {
38-
"productType": {
39-
"description": "product type",
40-
"type": "string",
41-
"readOnly": true
42-
},
43-
"productId": {
44-
"description": "product Id",
45-
"type": "string",
46-
"readOnly": true
47-
},
48-
"name": {
49-
"description": "product name",
50-
"type": "string",
51-
"readOnly": true
52-
},
53-
"skuDescription": {
54-
"description": "product sku description",
55-
"type": "string",
56-
"readOnly": true
57-
},
58-
"status": {
59-
"description": "product transfer status",
60-
"enum": [
61-
"NotStarted",
62-
"InProgress",
63-
"Completed",
64-
"Failed"
65-
],
66-
"type": "string",
67-
"readOnly": true,
68-
"x-ms-enum": {
69-
"name": "TransferProductStatus",
70-
"modelAsString": true
71-
}
72-
}
73-
},
74-
"readOnly": true
75-
},
7634
"Migration": {
7735
"description": "Migration Details.",
7836
"type": "object",
@@ -96,20 +54,10 @@
9654
"modelAsString": true
9755
}
9856
},
99-
"locale": {
100-
"description": "Locale for notifications. Optional property, used only for migrate enrollment",
101-
"type": "string"
102-
},
10357
"transferId": {
10458
"description": "Transfer Id",
10559
"type": "string",
10660
"readOnly": true
107-
},
108-
"products": {
109-
"type": "array",
110-
"items": {
111-
"$ref": "#/definitions/Products"
112-
}
11361
}
11462
}
11563
}

0 commit comments

Comments
 (0)