Skip to content

Commit

Permalink
Segment swagger definition updated to support polymorphism (Azure#6401)
Browse files Browse the repository at this point in the history
* 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
zainuvk authored Mar 7, 2022
1 parent 1befb4a commit 35af28a
Show file tree
Hide file tree
Showing 52 changed files with 3,797 additions and 1 deletion.
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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2022-03-02-preview"
},
"responses": {
"200": {
"body": {}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
]
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit 35af28a

Please sign in to comment.