Skip to content

Commit 512f342

Browse files
authored
.NET support in Microsoft.AppPlatform (#8550)
* Update for steeltoe. * add missed runtime version file. * add newlines for each example files. * Fix the OpenAPI Hub validation errors. Fix the sequence change. Fix the example issues. Fix the example issues. Remove readonly parameters in examples. Remove readonly parameters in examples. Remove non-steeltoe changes. * Update the description of list runtime versions. * Remvoe unrelated changes. * add steeltoe changes into 2020-07-01 * fix x-ms-enum issue.
1 parent 07d36f0 commit 512f342

File tree

4 files changed

+238
-2
lines changed

4 files changed

+238
-2
lines changed

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

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2163,6 +2163,39 @@
21632163
}
21642164
}
21652165
},
2166+
"/providers/Microsoft.AppPlatform/runtimeVersions": {
2167+
"get": {
2168+
"tags": [
2169+
"AppPlatform"
2170+
],
2171+
"description": "Lists all of the available runtime versions supported by Microsoft.AppPlatform provider.",
2172+
"operationId": "RuntimeVersions_ListRuntimeVersions",
2173+
"parameters": [
2174+
{
2175+
"$ref": "#/parameters/ApiVersionParameter"
2176+
}
2177+
],
2178+
"responses": {
2179+
"200": {
2180+
"description": "Success. The response describes the details of all supported deployment runtime versions.",
2181+
"schema": {
2182+
"$ref": "#/definitions/AvailableRuntimeVersions"
2183+
}
2184+
},
2185+
"default": {
2186+
"description": "Error response describing why the operation failed.",
2187+
"schema": {
2188+
"$ref": "#/definitions/CloudError"
2189+
}
2190+
}
2191+
},
2192+
"x-ms-examples": {
2193+
"RuntimeVersions_ListRuntimeVersions": {
2194+
"$ref": "./examples/RuntimeVersions_ListRuntimeVersions.json"
2195+
}
2196+
}
2197+
}
2198+
},
21662199
"/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus": {
21672200
"get": {
21682201
"tags": [
@@ -3191,6 +3224,7 @@
31913224
"description": "Type of the source uploaded",
31923225
"enum": [
31933226
"Jar",
3227+
"NetCoreZip",
31943228
"Source"
31953229
],
31963230
"type": "string",
@@ -3233,6 +3267,10 @@
32333267
"description": "JVM parameter",
32343268
"type": "string"
32353269
},
3270+
"netCoreMainEntryPath": {
3271+
"description": "The path to the .NET executable relative to zip root",
3272+
"type": "string"
3273+
},
32363274
"instanceCount": {
32373275
"format": "int32",
32383276
"description": "Instance count, basic tier should be in range (1, 25), standard tier should be in range (1, 500)",
@@ -3250,7 +3288,8 @@
32503288
"description": "Runtime version",
32513289
"enum": [
32523290
"Java_8",
3253-
"Java_11"
3291+
"Java_11",
3292+
"NetCore_31"
32543293
],
32553294
"type": "string",
32563295
"x-ms-enum": {
@@ -3777,6 +3816,57 @@
37773816
}
37783817
},
37793818
"x-ms-external": true
3819+
},
3820+
"AvailableRuntimeVersions": {
3821+
"type": "object",
3822+
"properties": {
3823+
"value": {
3824+
"description": "A list of all supported runtime versions.",
3825+
"uniqueItems": false,
3826+
"type": "array",
3827+
"items": {
3828+
"$ref": "#/definitions/SupportedRuntimeVersion"
3829+
},
3830+
"readOnly": true
3831+
}
3832+
},
3833+
"readOnly": true
3834+
},
3835+
"SupportedRuntimeVersion": {
3836+
"description": "Supported deployment runtime version descriptor.",
3837+
"type": "object",
3838+
"properties": {
3839+
"value": {
3840+
"description": "The raw value which could be passed to deployment CRUD operations.",
3841+
"enum": [
3842+
"Java_8",
3843+
"Java_11",
3844+
"NetCore_31"
3845+
],
3846+
"type": "string",
3847+
"x-ms-enum": {
3848+
"name": "SupportedRuntimeVersion",
3849+
"modelAsString": true
3850+
}
3851+
},
3852+
"platform": {
3853+
"description": "The platform of this runtime version (possible values: \"Java\" or \".NET\").",
3854+
"enum": [
3855+
"Java",
3856+
".NET Core"
3857+
],
3858+
"type": "string",
3859+
"x-ms-enum": {
3860+
"name": "SupportedRuntimePlatform",
3861+
"modelAsString": true
3862+
}
3863+
},
3864+
"version": {
3865+
"description": "The detailed version (major.minor) of the platform.",
3866+
"type": "string"
3867+
}
3868+
},
3869+
"readOnly": true
37803870
}
37813871
},
37823872
"parameters": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2019-05-01-preview"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"value": "Java_8",
11+
"platform": "Java",
12+
"version": "8"
13+
},
14+
{
15+
"value": "Java_11",
16+
"platform": "Java",
17+
"version": "11"
18+
},
19+
{
20+
"value": "NetCore_31",
21+
"platform": ".NET Core",
22+
"version": "3.1"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}

specification/appplatform/resource-manager/Microsoft.AppPlatform/stable/2020-07-01/appplatform.json

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2607,6 +2607,39 @@
26072607
}
26082608
}
26092609
},
2610+
"/providers/Microsoft.AppPlatform/runtimeVersions": {
2611+
"get": {
2612+
"tags": [
2613+
"AppPlatform"
2614+
],
2615+
"description": "Lists all of the available runtime versions supported by Microsoft.AppPlatform provider.",
2616+
"operationId": "RuntimeVersions_ListRuntimeVersions",
2617+
"parameters": [
2618+
{
2619+
"$ref": "#/parameters/ApiVersionParameter"
2620+
}
2621+
],
2622+
"responses": {
2623+
"200": {
2624+
"description": "Success. The response describes the details of all supported deployment runtime versions.",
2625+
"schema": {
2626+
"$ref": "#/definitions/AvailableRuntimeVersions"
2627+
}
2628+
},
2629+
"default": {
2630+
"description": "Error response describing why the operation failed.",
2631+
"schema": {
2632+
"$ref": "#/definitions/CloudError"
2633+
}
2634+
}
2635+
},
2636+
"x-ms-examples": {
2637+
"RuntimeVersions_ListRuntimeVersions": {
2638+
"$ref": "./examples/RuntimeVersions_ListRuntimeVersions.json"
2639+
}
2640+
}
2641+
}
2642+
},
26102643
"/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus": {
26112644
"get": {
26122645
"tags": [
@@ -3667,6 +3700,7 @@
36673700
"description": "Type of the source uploaded",
36683701
"enum": [
36693702
"Jar",
3703+
"NetCoreZip",
36703704
"Source"
36713705
],
36723706
"type": "string",
@@ -3709,6 +3743,10 @@
37093743
"description": "JVM parameter",
37103744
"type": "string"
37113745
},
3746+
"netCoreMainEntryPath": {
3747+
"description": "The path to the .NET executable relative to zip root",
3748+
"type": "string"
3749+
},
37123750
"environmentVariables": {
37133751
"description": "Collection of environment variables",
37143752
"type": "object",
@@ -3720,7 +3758,8 @@
37203758
"description": "Runtime version",
37213759
"enum": [
37223760
"Java_8",
3723-
"Java_11"
3761+
"Java_11",
3762+
"NetCore_31"
37243763
],
37253764
"type": "string",
37263765
"x-ms-enum": {
@@ -4253,6 +4292,57 @@
42534292
}
42544293
},
42554294
"x-ms-external": true
4295+
},
4296+
"AvailableRuntimeVersions": {
4297+
"type": "object",
4298+
"properties": {
4299+
"value": {
4300+
"description": "A list of all supported runtime versions.",
4301+
"uniqueItems": false,
4302+
"type": "array",
4303+
"items": {
4304+
"$ref": "#/definitions/SupportedRuntimeVersion"
4305+
},
4306+
"readOnly": true
4307+
}
4308+
},
4309+
"readOnly": true
4310+
},
4311+
"SupportedRuntimeVersion": {
4312+
"description": "Supported deployment runtime version descriptor.",
4313+
"type": "object",
4314+
"properties": {
4315+
"value": {
4316+
"description": "The raw value which could be passed to deployment CRUD operations.",
4317+
"enum": [
4318+
"Java_8",
4319+
"Java_11",
4320+
"NetCore_31"
4321+
],
4322+
"type": "string",
4323+
"x-ms-enum": {
4324+
"name": "SupportedRuntimeVersion",
4325+
"modelAsString": true
4326+
}
4327+
},
4328+
"platform": {
4329+
"description": "The platform of this runtime version (possible values: \"Java\" or \".NET\").",
4330+
"enum": [
4331+
"Java",
4332+
".NET Core"
4333+
],
4334+
"type": "string",
4335+
"x-ms-enum": {
4336+
"name": "SupportedRuntimePlatform",
4337+
"modelAsString": true
4338+
}
4339+
},
4340+
"version": {
4341+
"description": "The detailed version (major.minor) of the platform.",
4342+
"type": "string"
4343+
}
4344+
},
4345+
"readOnly": true
42564346
}
42574347
},
42584348
"parameters": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2020-07-01"
4+
},
5+
"responses": {
6+
"200": {
7+
"body": {
8+
"value": [
9+
{
10+
"value": "Java_8",
11+
"platform": "Java",
12+
"version": "8"
13+
},
14+
{
15+
"value": "Java_11",
16+
"platform": "Java",
17+
"version": "11"
18+
},
19+
{
20+
"value": "NetCore_31",
21+
"platform": ".NET Core",
22+
"version": "3.1"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)