From 95965e5da2f034386c097aae8d1ad6dfc3163a64 Mon Sep 17 00:00:00 2001 From: michimune Date: Tue, 31 Oct 2023 15:07:39 -0700 Subject: [PATCH] Fix SDK build error for Microsoft.App (#26416) * Fix SDK build error for Microsoft.App * Update * update * update * update --------- Co-authored-by: Michimune Kohno --- .../2023-08-01-preview/Diagnostics.json | 46 ++++++++++++++- .../examples/Job_ProxyList.json | 59 +++++++++++++++++++ 2 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Job_ProxyList.json diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Diagnostics.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Diagnostics.json index 636065640104..a86753410804 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Diagnostics.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/Diagnostics.json @@ -529,13 +529,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/": { + "get": { + "tags": [ + "Jobs", + "Diagnostics" + ], + "summary": "Get the list of proxy properties for a given Container App Job.", + "description": "Get the proxy properties of a Container App Job.", + "operationId": "Jobs_ProxyList", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./Jobs.json#/parameters/JobNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "./Jobs.json#/definitions/JobsCollection" + } + }, + "default": { + "description": "Common error response.", + "schema": { + "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Container App Job by name": { + "$ref": "./examples/Job_ProxyList.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}/detectorProperties/{apiName}": { "get": { "tags": [ "Jobs", "Diagnostics" ], - "summary": "Get the properties of a Container App Job.", + "summary": "Get the properties for a given Container App Job.", "description": "Get the properties of a Container App Job.", "operationId": "Jobs_ProxyGet", "parameters": [ diff --git a/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Job_ProxyList.json b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Job_ProxyList.json new file mode 100644 index 000000000000..7ae9b2ea9313 --- /dev/null +++ b/specification/app/resource-manager/Microsoft.App/preview/2023-08-01-preview/examples/Job_ProxyList.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", + "resourceGroupName": "rg", + "jobName": "testcontainerAppsJob0", + "api-version": "2023-08-01-preview" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/jobs/testcontainerAppsJob0/detectorproperties/rootApi", + "name": "testcontainerAppsJob0", + "type": "Microsoft.App/jobs", + "location": "East US", + "properties": { + "provisioningState": "Succeeded", + "environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube", + "configuration": { + "replicaTimeout": 10, + "replicaRetryLimit": 10, + "manualTriggerConfig": { + "replicaCompletionCount": 1, + "parallelism": 4 + }, + "triggerType": "Manual" + }, + "template": { + "containers": [ + { + "image": "repo/testcontainerAppsJob0:v4", + "name": "testcontainerAppsJob0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ], + "initContainers": [ + { + "image": "repo/testcontainerAppsJob0:v4", + "name": "testinitcontainerAppsJob0", + "resources": { + "cpu": 0.2, + "memory": "100Mi" + } + } + ] + } + } + } + ], + "nextLink": null + } + } + } +}