Skip to content

Commit 59baa49

Browse files
yuwzhogiromm2ms
authored andcommitted
Add missing properties in appplatform preview API (Azure#10612)
* add missing properties to 2019-05-01-preview * update examples
1 parent 140191b commit 59baa49

File tree

6 files changed

+99
-2
lines changed

6 files changed

+99
-2
lines changed

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/appplatform.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,6 +1587,12 @@
15871587
"$ref": "#/definitions/DeploymentResource"
15881588
}
15891589
},
1590+
"202": {
1591+
"description": "Accepted. The response describes the create or update Deployment request is accepted.",
1592+
"schema": {
1593+
"$ref": "#/definitions/DeploymentResource"
1594+
}
1595+
},
15901596
"200": {
15911597
"description": "Success. The response describes the updated Deployment.",
15921598
"schema": {
@@ -2740,7 +2746,8 @@
27402746
"Succeeded",
27412747
"Failed",
27422748
"Creating",
2743-
"Updating"
2749+
"Updating",
2750+
"Deleting"
27442751
],
27452752
"type": "string",
27462753
"readOnly": true,
@@ -3156,6 +3163,10 @@
31563163
"$ref": "#/definitions/DeploymentResourceProperties",
31573164
"description": "Properties of the Deployment resource",
31583165
"x-ms-client-flatten": false
3166+
},
3167+
"sku": {
3168+
"$ref": "#/definitions/Sku",
3169+
"description": "Sku of the Deployment resource"
31593170
}
31603171
}
31613172
},
@@ -3182,7 +3193,8 @@
31823193
"Creating",
31833194
"Updating",
31843195
"Succeeded",
3185-
"Failed"
3196+
"Failed",
3197+
"Deleting"
31863198
],
31873199
"type": "string",
31883200
"readOnly": true,
@@ -3579,6 +3591,10 @@
35793591
"displayName": {
35803592
"description": "Localized friendly display name of the dimension",
35813593
"type": "string"
3594+
},
3595+
"toBeExportedForShoebox": {
3596+
"description": "Whether this dimension should be included for the Shoebox export scenario",
3597+
"type": "boolean"
35823598
}
35833599
}
35843600
},

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Deployments_CreateOrUpdate.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"runtimeVersion": "Java_8"
2020
},
2121
"instances": null
22+
},
23+
"sku": {
24+
"name": "S0",
25+
"tier": "Standard",
26+
"capacity": 1
2227
}
2328
},
2429
"api-version": "2019-05-01-preview",
@@ -61,6 +66,52 @@
6166
}
6267
]
6368
},
69+
"sku": {
70+
"name": "S0",
71+
"tier": "Standard",
72+
"capacity": 1
73+
},
74+
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
75+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
76+
"name": "mydeployment"
77+
}
78+
},
79+
"202": {
80+
"body": {
81+
"properties": {
82+
"source": {
83+
"type": "Source",
84+
"relativePath": "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc",
85+
"version": "1.0",
86+
"artifactSelector": "sub-module-1"
87+
},
88+
"appName": "myapp",
89+
"deploymentSettings": {
90+
"cpu": 1,
91+
"memoryInGB": 3,
92+
"jvmOptions": "-Xms1G -Xmx3G",
93+
"instanceCount": 1,
94+
"environmentVariables": {
95+
"env": "test"
96+
},
97+
"runtimeVersion": "Java_8"
98+
},
99+
"provisioningState": "Creating",
100+
"status": "Starting",
101+
"active": false,
102+
"instances": [
103+
{
104+
"name": "instance1",
105+
"status": "Starting",
106+
"discoveryStatus": "pending"
107+
}
108+
]
109+
},
110+
"sku": {
111+
"name": "S0",
112+
"tier": "Standard",
113+
"capacity": 1
114+
},
64115
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
65116
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
66117
"name": "mydeployment"
@@ -98,6 +149,11 @@
98149
}
99150
]
100151
},
152+
"sku": {
153+
"name": "S0",
154+
"tier": "Standard",
155+
"capacity": 1
156+
},
101157
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
102158
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
103159
"name": "mydeployment"

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Deployments_Get.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
}
4141
]
4242
},
43+
"sku": {
44+
"name": "S0",
45+
"tier": "Standard",
46+
"capacity": 1
47+
},
4348
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
4449
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
4550
"name": "mydeployment"

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Deployments_List.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
}
4242
]
4343
},
44+
"sku": {
45+
"name": "S0",
46+
"tier": "Standard",
47+
"capacity": 1
48+
},
4449
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
4550
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
4651
"name": "mydeployment"

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Deployments_ListClusterAllDeployments.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
}
4242
]
4343
},
44+
"sku": {
45+
"name": "S0",
46+
"tier": "Standard",
47+
"capacity": 1
48+
},
4449
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
4550
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
4651
"name": "mydeployment"

specification/appplatform/resource-manager/Microsoft.AppPlatform/preview/2019-05-01-preview/examples/Deployments_Update.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
}
5252
]
5353
},
54+
"sku": {
55+
"name": "S0",
56+
"tier": "Standard",
57+
"capacity": 1
58+
},
5459
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
5560
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
5661
"name": "mydeployment"
@@ -88,6 +93,11 @@
8893
}
8994
]
9095
},
96+
"sku": {
97+
"name": "S0",
98+
"tier": "Standard",
99+
"capacity": 1
100+
},
91101
"type": "Microsoft.AppPlatform/Spring/apps/deployments",
92102
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/deployments/mydeployment",
93103
"name": "mydeployment"

0 commit comments

Comments
 (0)