From 0b16a9936f753247338782e3d07846b533106e52 Mon Sep 17 00:00:00 2001 From: vikramadityab72 Date: Mon, 14 Nov 2022 14:33:44 -0800 Subject: [PATCH] Adding new API version 2022-11-01-preview (#21508) --- .../examples/IotHub_ManualFailover.json | 7 ++++++- .../examples/iothub_createOrUpdate.json | 9 ++++++--- .../2022-11-01-preview/examples/iothub_delete.json | 6 ++++-- .../2022-11-01-preview/examples/iothub_get.json | 3 ++- .../examples/iothub_listbyrg.json | 3 ++- .../examples/iothub_listbysubscription.json | 3 ++- .../2022-11-01-preview/examples/iothub_stats.json | 2 +- .../preview/2022-11-01-preview/iothub.json | 14 ++++++++++++++ 8 files changed, 37 insertions(+), 10 deletions(-) diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/IotHub_ManualFailover.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/IotHub_ManualFailover.json index b9715c58eb30..a4f32aa20eaa 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/IotHub_ManualFailover.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/IotHub_ManualFailover.json @@ -10,6 +10,11 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih&asyncinfo", + "Location": "https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/providers/Microsoft.Devices/operationResults/b3NfaWhfYmJhZmM4OWItNzQ3My00OWExLTg0NWUtNzQ3NWU2ODBkNDA3?api-version=2022-11-01-preview&operationSource=os_ih" + } + } } } diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_createOrUpdate.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_createOrUpdate.json index fe3727a5197a..ea5a5b48fafb 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_createOrUpdate.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_createOrUpdate.json @@ -79,7 +79,8 @@ "enableDataResidency": true, "rootCertificate": { "enableRootCertificateV2": true - } + }, + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", @@ -188,7 +189,8 @@ "rootCertificate": { "enableRootCertificateV2": true, "lastUpdatedTimeUtc": "2022-04-08T11:16:49.0748958-07:00" - } + }, + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", @@ -300,7 +302,8 @@ "rootCertificate": { "enableRootCertificateV2": true, "lastUpdatedTimeUtc": "2022-04-08T11:16:49.0748958-07:00" - } + }, + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_delete.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_delete.json index ab78657360b0..b3f323f5e582 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_delete.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_delete.json @@ -102,7 +102,8 @@ "maxDeliveryCount": 10 } }, - "features": "None" + "features": "None", + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", @@ -211,7 +212,8 @@ "maxDeliveryCount": 10 } }, - "features": "None" + "features": "None", + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_get.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_get.json index 893a6ec8a42a..63cb21c5cec4 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_get.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_get.json @@ -115,7 +115,8 @@ "role": "secondary" } ], - "minTlsVersion": "1.2" + "minTlsVersion": "1.2", + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbyrg.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbyrg.json index 7b60b8896e6d..5810833db4ee 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbyrg.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbyrg.json @@ -102,7 +102,8 @@ "maxDeliveryCount": 10 } }, - "features": "None" + "features": "None", + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbysubscription.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbysubscription.json index 762ca870b022..b4aaa49c0588 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbysubscription.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_listbysubscription.json @@ -101,7 +101,8 @@ "maxDeliveryCount": 10 } }, - "features": "None" + "features": "None", + "allowDataPlanePreviewFeatures": true }, "sku": { "name": "S1", diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_stats.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_stats.json index 1a7bcb918e7e..637e15e8690c 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_stats.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/examples/iothub_stats.json @@ -2,7 +2,7 @@ "parameters": { "resourceName": "testHub", "resourceGroupName": "myResourceGroup", - "api-version": "2018-04-01", + "api-version": "2022-11-01-preview", "subscriptionId": "91d12660-3dec-467a-be2a-213b5544ddc0" }, "responses": { diff --git a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/iothub.json b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/iothub.json index d848a20a6826..cc6c1c85c5ac 100644 --- a/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/iothub.json +++ b/specification/iothub/resource-manager/Microsoft.Devices/preview/2022-11-01-preview/iothub.json @@ -1735,6 +1735,16 @@ "description": "Long running manual failover operation for the IoT hub completed" }, "202": { + "headers": { + "location": { + "description": "URL to query for status of the operation.", + "type": "string" + }, + "Azure-AsyncOperation": { + "description": "URL to query for status of the operation.", + "type": "string" + } + }, "description": "Manual failover initiated" }, "default": { @@ -2454,6 +2464,10 @@ }, "rootCertificate": { "$ref": "#/definitions/RootCertificateProperties" + }, + "allowDataPlanePreviewFeatures": { + "description": "When this property is set to true, the hub receives all data plane preview features at all times.", + "type": "boolean" } } },