forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Segment swagger definition updated to support polymorphism (Azure#6401)
* First Commit with previous version * changes to support Polymorphism * changes to swagger to update version and fix avarcardo error * updating version in examples * refactoring swagger model * correcting statistics swagger value * correcting typo in Statistic Filter * prettier fix * changes as per feedback in review to remove filterName in child model * prettier fix * changes to enable enum check in FilterName
- Loading branch information
Showing
52 changed files
with
3,797 additions
and
1 deletion.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...Microsoft.PlayFab/preview/2022-03-02-preview/examples/Operations_List_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.PlayFab/write", | ||
"isDataAction": true, | ||
"display": { | ||
"provider": "Microsoft PlayFab", | ||
"resource": "Title", | ||
"operation": "Update Title", | ||
"description": "Update Title" | ||
}, | ||
"origin": "user", | ||
"actionType": "Internal" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...Microsoft.PlayFab/preview/2022-03-02-preview/examples/Operations_List_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": {} | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
...preview/2022-03-02-preview/examples/PlayerAccountPools_CreateOrUpdate_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo", | ||
"playerAccountPoolName": "DevAccountPool", | ||
"parameters": { | ||
"properties": { | ||
"provisioningState": "NotSpecified" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "West US2" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "E19877A68438546F", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-01-04T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-01-04T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.playfab/playeraccountpools" | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...preview/2022-03-02-preview/examples/PlayerAccountPools_CreateOrUpdate_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo", | ||
"playerAccountPoolName": "DevAccountPool", | ||
"parameters": { | ||
"properties": { | ||
"provisioningState": "NotSpecified" | ||
}, | ||
"location": "West US2" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "E19877A68438546F", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-01-04T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-01-04T11:05:51.4940669Z" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.playfab/playeraccountpools" | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...PlayFab/preview/2022-03-02-preview/examples/PlayerAccountPools_Delete_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "rgplayfab", | ||
"playerAccountPoolName": "DevAccountPool" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://foo.com/operationstatus" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...PlayFab/preview/2022-03-02-preview/examples/PlayerAccountPools_Delete_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "rgplayfab", | ||
"playerAccountPoolName": "DevAccountPool" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://foo.com/operationstatus" | ||
} | ||
}, | ||
"204": {} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ft.PlayFab/preview/2022-03-02-preview/examples/PlayerAccountPools_Get_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo", | ||
"playerAccountPoolName": "DevAccountPool" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "E19877A68438546F", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-01-04T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-01-04T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.playfab/playeraccountpools" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ft.PlayFab/preview/2022-03-02-preview/examples/PlayerAccountPools_Get_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo", | ||
"playerAccountPoolName": "DevAccountPool" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "E19877A68438546F", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-01-04T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-01-04T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.playfab/playeraccountpools" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ew/2022-03-02-preview/examples/PlayerAccountPools_ListByResourceGroup_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/aagaSept23b", | ||
"name": "aagaSept23b", | ||
"type": "microsoft.playfab/playeraccountpools", | ||
"location": "West US 2", | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2021-09-23T06:32:29.1703036Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-09-23T06:32:29.1703036Z" | ||
}, | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "7CC23E30076C4012", | ||
"provisioningState": "Failed" | ||
} | ||
} | ||
], | ||
"nextLink": "https://localhost:50194/subscriptions/030efb7e-a7b1-41da-99e8-aa25e7d3c800/resourcegroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools?api-version=2022-01-26-preview&$skipToken=342r89" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...ew/2022-03-02-preview/examples/PlayerAccountPools_ListByResourceGroup_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/aagaSept23b", | ||
"name": "aagaSept23b", | ||
"type": "microsoft.playfab/playeraccountpools", | ||
"location": "West US 2", | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2021-09-23T06:32:29.1703036Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-09-23T06:32:29.1703036Z" | ||
}, | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "7CC23E30076C4012", | ||
"provisioningState": "Failed" | ||
} | ||
} | ||
], | ||
"nextLink": "https://localhost:50194/subscriptions/030efb7e-a7b1-41da-99e8-aa25e7d3c800/resourcegroups/testrg/providers/Microsoft.PlayFab/playerAccountPools?api-version=2022-01-26-preview&$skipToken=342r89" | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...iew/2022-03-02-preview/examples/PlayerAccountPools_ListBySubscription_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "8085509B620AFCC5", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2021-12-16T06:19:32.111Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2021-12-16T06:19:32.111Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/rgplayfab/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.PlayFab/playerAccountPools" | ||
} | ||
], | ||
"nextLink": "https://localhost:50194/subscriptions/030efb7e-a7b1-41da-99e8-aa25e7d3c800/resourcegroups/testrg/providers/Microsoft.PlayFab/playerAccountPools?api-version=2022-01-26-preview&$skipToken=342r89" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...iew/2022-03-02-preview/examples/PlayerAccountPools_ListBySubscription_MinimumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": {}, | ||
"location": "West US" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...PlayFab/preview/2022-03-02-preview/examples/PlayerAccountPools_Update_MaximumSet_Gen.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2022-03-02-preview", | ||
"subscriptionId": "3f753bd1-b08e-4473-965c-0397c16d9789", | ||
"resourceGroupName": "aaga-df-demo", | ||
"playerAccountPoolName": "DevAccountPool", | ||
"parameters": { | ||
"tags": { | ||
"company": "Microsoft-HYD" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"playFabPlayerAccountPoolId": "E19877A68438546F", | ||
"provisioningState": "Succeeded" | ||
}, | ||
"systemData": { | ||
"createdBy": "[email protected]", | ||
"createdByType": "User", | ||
"createdAt": "2022-01-04T11:05:51.4940669Z", | ||
"lastModifiedBy": "[email protected]", | ||
"lastModifiedByType": "User", | ||
"lastModifiedAt": "2022-01-04T11:05:51.4940669Z" | ||
}, | ||
"tags": { | ||
"company": "Microsoft-HYD" | ||
}, | ||
"location": "West US", | ||
"id": "/subscriptions/3f753bd1-b08e-4473-965c-0397c16d9789/resourceGroups/aaga-df-demo/providers/Microsoft.PlayFab/playerAccountPools/DevAccountPool", | ||
"name": "DevAccountPool", | ||
"type": "microsoft.playfab/playeraccountpools" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.