From d76054946cdb599aabbda242f6cb0e159aa4362c Mon Sep 17 00:00:00 2001 From: "Brent Rusinow (from Dev Box)" Date: Wed, 22 Jan 2025 09:22:30 -0800 Subject: [PATCH] added back missing provisioningState in preview version --- .../chaos/Chaos.Management/capability.models.tsp | 8 ++++++++ .../experimentExecution.models.tsp | 15 +++++++++++++++ .../preview/2024-11-01-preview/openapi.json | 15 +++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/specification/chaos/Chaos.Management/capability.models.tsp b/specification/chaos/Chaos.Management/capability.models.tsp index 84731f273b45..a00659845026 100644 --- a/specification/chaos/Chaos.Management/capability.models.tsp +++ b/specification/chaos/Chaos.Management/capability.models.tsp @@ -9,6 +9,7 @@ using TypeSpec.Http; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; using TypeSpec.OpenAPI; +using TypeSpec.Versioning; namespace Microsoft.Chaos; @@ -64,6 +65,13 @@ model CapabilityProperties { @visibility("read") @maxLength(2048) urn?: string; + + /** + * Resource provisioning state. Not currently in use because resource is created synchronously. + */ + @removed(Microsoft.Chaos.Versions.v2025_01_01) + @visibility("read") + provisioningState?: ProvisioningState; } /** diff --git a/specification/chaos/Chaos.Management/experimentExecution.models.tsp b/specification/chaos/Chaos.Management/experimentExecution.models.tsp index cb8b08569c6f..670403cb5842 100644 --- a/specification/chaos/Chaos.Management/experimentExecution.models.tsp +++ b/specification/chaos/Chaos.Management/experimentExecution.models.tsp @@ -9,6 +9,7 @@ using TypeSpec.Http; using Azure.ResourceManager; using Azure.ResourceManager.Foundations; using TypeSpec.OpenAPI; +using TypeSpec.Versioning; namespace Microsoft.Chaos; @@ -48,6 +49,13 @@ model ExperimentExecutionProperties { */ @visibility("read") stoppedAt?: utcDateTime; + + /** + * Resource provisioning state. Not currently in use because resource is created synchronously. + */ + @removed(Microsoft.Chaos.Versions.v2025_01_01) + @visibility("read") + provisioningState?: ProvisioningState; } /** @@ -102,6 +110,13 @@ model ExperimentExecutionDetailsProperties { @visibility("read") stoppedAt?: utcDateTime; + /** + * Resource provisioning state. Not currently in use because resource is created synchronously. + */ + @removed(Microsoft.Chaos.Versions.v2025_01_01) + @visibility("read") + provisioningState?: ProvisioningState; + /** * The reason why the execution failed. */ diff --git a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-11-01-preview/openapi.json b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-11-01-preview/openapi.json index fce22e0c9df9..0fd417135278 100644 --- a/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-11-01-preview/openapi.json +++ b/specification/chaos/resource-manager/Microsoft.Chaos/preview/2024-11-01-preview/openapi.json @@ -2390,6 +2390,11 @@ "description": "String of the URN for this Capability Type.", "maxLength": 2048, "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Resource provisioning state. Not currently in use because resource is created synchronously.", + "readOnly": true } } }, @@ -2966,6 +2971,11 @@ "description": "String that represents the stop date time.", "readOnly": true }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Resource provisioning state. Not currently in use because resource is created synchronously.", + "readOnly": true + }, "failureReason": { "type": "string", "description": "The reason why the execution failed.", @@ -3042,6 +3052,11 @@ "format": "date-time", "description": "String that represents the stop date time.", "readOnly": true + }, + "provisioningState": { + "$ref": "#/definitions/ProvisioningState", + "description": "Resource provisioning state. Not currently in use because resource is created synchronously.", + "readOnly": true } } },