diff --git a/Commands/change-safety/change-state/_create.md b/Commands/change-safety/change-state/_create.md new file mode 100644 index 000000000..2827b5534 --- /dev/null +++ b/Commands/change-safety/change-state/_create.md @@ -0,0 +1,9 @@ +# [Command] _change-safety change-state create_ + +Create a ChangeState + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml) **Stable** + + diff --git a/Commands/change-safety/change-state/_delete.md b/Commands/change-safety/change-state/_delete.md new file mode 100644 index 000000000..b2091ae64 --- /dev/null +++ b/Commands/change-safety/change-state/_delete.md @@ -0,0 +1,9 @@ +# [Command] _change-safety change-state delete_ + +Delete a ChangeState + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml) **Stable** + + diff --git a/Commands/change-safety/change-state/_list.md b/Commands/change-safety/change-state/_list.md new file mode 100644 index 000000000..d45ae8cdc --- /dev/null +++ b/Commands/change-safety/change-state/_list.md @@ -0,0 +1,9 @@ +# [Command] _change-safety change-state list_ + +List ChangeState resources by resource group + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.xml) **Stable** + + diff --git a/Commands/change-safety/change-state/_show.md b/Commands/change-safety/change-state/_show.md new file mode 100644 index 000000000..1444a9057 --- /dev/null +++ b/Commands/change-safety/change-state/_show.md @@ -0,0 +1,9 @@ +# [Command] _change-safety change-state show_ + +Get a ChangeState + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml) **Stable** + + diff --git a/Commands/change-safety/change-state/_update.md b/Commands/change-safety/change-state/_update.md new file mode 100644 index 000000000..1aa5adceb --- /dev/null +++ b/Commands/change-safety/change-state/_update.md @@ -0,0 +1,9 @@ +# [Command] _change-safety change-state update_ + +Update a ChangeState + +## Versions + +### [2025-03-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml) **Stable** + + diff --git a/Commands/change-safety/change-state/readme.md b/Commands/change-safety/change-state/readme.md new file mode 100644 index 000000000..38a0b73c8 --- /dev/null +++ b/Commands/change-safety/change-state/readme.md @@ -0,0 +1,20 @@ +# [Group] _change-safety change-state_ + +Manage Change State + +## Commands + +- [create](/Commands/change-safety/change-state/_create.md) +: Create a ChangeState + +- [delete](/Commands/change-safety/change-state/_delete.md) +: Delete a ChangeState + +- [list](/Commands/change-safety/change-state/_list.md) +: List ChangeState resources by resource group + +- [show](/Commands/change-safety/change-state/_show.md) +: Get a ChangeState + +- [update](/Commands/change-safety/change-state/_update.md) +: Update a ChangeState diff --git a/Commands/change-safety/readme.md b/Commands/change-safety/readme.md new file mode 100644 index 000000000..f02e56f7e --- /dev/null +++ b/Commands/change-safety/readme.md @@ -0,0 +1,8 @@ +# [Group] _change-safety_ + +Manage Change Safety + +## Subgroups + +- [change-state](/Commands/change-safety/change-state/readme.md) +: Manage Change State diff --git a/Commands/readme.md b/Commands/readme.md index ff5ce2fa1..23b89df36 100644 --- a/Commands/readme.md +++ b/Commands/readme.md @@ -74,6 +74,9 @@ - [change-analysis](/Commands/change-analysis/readme.md) : List changes for resources +- [change-safety](/Commands/change-safety/readme.md) +: Manage Change Safety + - [cloud-service](/Commands/cloud-service/readme.md) : Manage cloud service diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.json new file mode 100644 index 000000000..9834967b8 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcw==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "change-safety change-state", "commands": [{"name": "list", "version": "2025-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcw==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ChangeStates_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "changeArtifact", "required": true, "props": [{"type": "string", "name": "artifactType", "required": true, "enum": {"items": [{"value": "ArmOperation"}, {"value": "ExternalArmTemplate"}, {"value": "ExternalBicep"}, {"value": "InlineArmTemplate"}, {"value": "InlineBicep"}, {"value": "TemplateSpec"}]}}, {"type": "string", "name": "name", "required": true}], "discriminators": [{"property": "artifactType", "value": "ArmOperation", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "array", "name": "operations", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "content", "props": [{"type": "string", "name": "location"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true}]}, {"type": "string", "name": "httpMethod", "required": true, "enum": {"items": [{"value": "DELETE"}, {"value": "PATCH"}, {"value": "PUT"}]}}, {"type": "string", "name": "uri", "required": true}]}, "identifiers": ["uri"]}]}]}, {"property": "artifactType", "value": "ExternalArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "ExternalBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "InlineArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "InlineBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "TemplateSpec", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "ResourceId", "name": "artifactResourceId", "required": true}]}]}]}, {"type": "string", "name": "changeType", "required": true, "enum": {"items": [{"value": "Breakglass"}, {"value": "Emergency"}, {"value": "Normal"}]}}, {"type": "string", "name": "comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "format": {"maxLength": 2000}}, {"type": "dateTime", "name": "expirationDate", "required": true}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "serviceCatalogReference"}, {"type": "ResourceId", "name": "stageMapResourceId", "required": true}, {"readOnly": true, "type": "array", "name": "stageMapSnapshot", "item": {"type": "any"}}, {"type": "object", "name": "stageParameters", "required": true, "additionalProps": {"item": {"type": "object", "props": [{"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "number"}, {"value": "string"}]}}], "discriminators": [{"property": "type", "value": "number", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "integer32"}}, {"type": "integer32", "name": "defaultValue"}]}, {"property": "type", "value": "string", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "defaultValue"}]}]}}}, {"type": "string", "name": "state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.xml new file mode 100644 index 000000000..2f057d814 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVz/2025-03-01-preview.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.json new file mode 100644 index 000000000..e43e8a8c8 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcy97Y2hhbmdlU3RhdGVOYW1lfQ==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "commandGroups": [{"name": "change-safety change-state", "commands": [{"name": "show", "version": "2025-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcy97Y2hhbmdlU3RhdGVOYW1lfQ==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.changeStateName", "options": ["n", "name", "change-state-name"], "required": true, "idPart": "name", "help": {"short": "The name of the ChangeState resource."}, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "ChangeStates_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates/{changeStateName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "changeStateName", "arg": "$Path.changeStateName", "required": true, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "changeArtifact", "required": true, "props": [{"type": "string", "name": "artifactType", "required": true, "enum": {"items": [{"value": "ArmOperation"}, {"value": "ExternalArmTemplate"}, {"value": "ExternalBicep"}, {"value": "InlineArmTemplate"}, {"value": "InlineBicep"}, {"value": "TemplateSpec"}]}}, {"type": "string", "name": "name", "required": true}], "discriminators": [{"property": "artifactType", "value": "ArmOperation", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "array", "name": "operations", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "content", "props": [{"type": "string", "name": "location"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true}]}, {"type": "string", "name": "httpMethod", "required": true, "enum": {"items": [{"value": "DELETE"}, {"value": "PATCH"}, {"value": "PUT"}]}}, {"type": "string", "name": "uri", "required": true}]}, "identifiers": ["uri"]}]}]}, {"property": "artifactType", "value": "ExternalArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "ExternalBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "InlineArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "InlineBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "TemplateSpec", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "ResourceId", "name": "artifactResourceId", "required": true}]}]}]}, {"type": "string", "name": "changeType", "required": true, "enum": {"items": [{"value": "Breakglass"}, {"value": "Emergency"}, {"value": "Normal"}]}}, {"type": "string", "name": "comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "format": {"maxLength": 2000}}, {"type": "dateTime", "name": "expirationDate", "required": true}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "serviceCatalogReference"}, {"type": "ResourceId", "name": "stageMapResourceId", "required": true}, {"readOnly": true, "type": "array", "name": "stageMapSnapshot", "item": {"type": "any"}}, {"type": "object", "name": "stageParameters", "required": true, "additionalProps": {"item": {"type": "object", "props": [{"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "number"}, {"value": "string"}]}}], "discriminators": [{"property": "type", "value": "number", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "integer32"}}, {"type": "integer32", "name": "defaultValue"}]}, {"property": "type", "value": "string", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "defaultValue"}]}]}}}, {"type": "string", "name": "state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2025-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcy97Y2hhbmdlU3RhdGVOYW1lfQ==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.changeStateName", "options": ["n", "name", "change-state-name"], "required": true, "idPart": "name", "help": {"short": "The name of the ChangeState resource."}, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"longRunning": {"finalStateVia": "location"}, "operationId": "ChangeStates_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates/{changeStateName}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "changeStateName", "arg": "$Path.changeStateName", "required": true, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [202], "header": {"items": [{"name": "Location"}, {"name": "Retry-After"}]}}, {"statusCode": [204]}, {"statusCode": [200, 201]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2025-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcy97Y2hhbmdlU3RhdGVOYW1lfQ==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.changeStateName", "options": ["n", "name", "change-state-name"], "required": true, "idPart": "name", "help": {"short": "The name of the ChangeState resource."}, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.ArmOperation", "options": ["c-arm-operation"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "array", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations", "options": ["operations"], "required": true, "help": {"short": "Arm Operation Array."}, "item": {"type": "object", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content", "options": ["content"], "help": {"short": "The resource operation content."}, "args": [{"type": "string", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.location", "options": ["location"], "help": {"short": "The location of the resource."}}, {"type": "string", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.name", "options": ["name"], "help": {"short": "The name of the resource."}}, {"blank": {"value": {}}, "type": "object", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.properties", "options": ["properties"], "required": true, "help": {"short": "The properties of the resource."}}]}, {"type": "string", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].httpMethod", "options": ["http-method"], "required": true, "help": {"short": "The http method of the operation."}, "enum": {"items": [{"name": "DELETE", "value": "DELETE"}, {"name": "PATCH", "value": "PATCH"}, {"name": "PUT", "value": "PUT"}]}}, {"type": "string", "var": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].uri", "options": ["uri"], "required": true, "help": {"short": "The uri of the operation."}}]}}]}]}, {"type": "object", "var": "$resource.properties.changeArtifact.ExternalArmTemplate", "options": ["c-external-arm-template"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.ExternalArmTemplate.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "string", "var": "$resource.properties.changeArtifact.ExternalArmTemplate.artifactPayload.externalArtifactUri", "options": ["external-artifact-uri"], "required": true, "help": {"short": "URI for the external ARM template or Bicep file."}}]}]}, {"type": "object", "var": "$resource.properties.changeArtifact.ExternalBicep", "options": ["c-external-bicep"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.ExternalBicep.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "string", "var": "$resource.properties.changeArtifact.ExternalBicep.artifactPayload.externalArtifactUri", "options": ["external-artifact-uri"], "required": true, "help": {"short": "URI for the external ARM template or Bicep file."}}]}]}, {"type": "object", "var": "$resource.properties.changeArtifact.InlineArmTemplate", "options": ["c-inline-arm-template"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.InlineArmTemplate.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "string", "var": "$resource.properties.changeArtifact.InlineArmTemplate.artifactPayload.inlineScript", "options": ["inline-script"], "required": true, "help": {"short": "Inline ArmTemplate string or Bicep content."}}]}]}, {"type": "object", "var": "$resource.properties.changeArtifact.InlineBicep", "options": ["c-inline-bicep"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.InlineBicep.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "string", "var": "$resource.properties.changeArtifact.InlineBicep.artifactPayload.inlineScript", "options": ["inline-script"], "required": true, "help": {"short": "Inline ArmTemplate string or Bicep content."}}]}]}, {"type": "object", "var": "$resource.properties.changeArtifact.TemplateSpec", "options": ["c-template-spec"], "group": "ChangeArtifact", "args": [{"type": "object", "var": "$resource.properties.changeArtifact.TemplateSpec.artifactPayload", "options": ["artifact-payload"], "required": true, "help": {"short": "The actual payload content."}, "args": [{"type": "ResourceId", "var": "$resource.properties.changeArtifact.TemplateSpec.artifactPayload.artifactResourceId", "options": ["artifact-resource-id"], "required": true, "help": {"short": "TemplateSpec artifact resource Id in ARM."}}]}]}, {"type": "string", "var": "$resource.properties.changeArtifact.name", "options": ["c-name"], "group": "ChangeArtifact", "help": {"short": "Artifact label."}}]}, {"name": "Properties", "args": [{"type": "string", "var": "$resource.properties.changeType", "options": ["change-type"], "group": "Properties", "help": {"short": "Describes the type of the change."}, "enum": {"items": [{"name": "Breakglass", "value": "Breakglass"}, {"name": "Emergency", "value": "Emergency"}, {"name": "Normal", "value": "Normal"}]}}, {"type": "string", "var": "$resource.properties.comments", "options": ["comments"], "group": "Properties", "help": {"short": "Comments about the last update to the changeState resource."}, "format": {"maxLength": 2000}}, {"type": "string", "var": "$resource.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Brief description about the change."}, "format": {"maxLength": 2000}}, {"type": "dateTime", "var": "$resource.properties.expirationDate", "options": ["expiration-date"], "group": "Properties", "help": {"short": "Change is expected to be expired by date, in ISO 8601 format."}}, {"type": "string", "var": "$resource.properties.serviceCatalogReference", "options": ["service-catalog-reference"], "group": "Properties", "help": {"short": "URI to the external service catalog reference."}}, {"type": "ResourceId", "var": "$resource.properties.stageMapResourceId", "options": ["stage-map-resource-id"], "group": "Properties", "help": {"short": "Azure resource Id of the referenced StageMap."}}, {"type": "object", "var": "$resource.properties.stageParameters", "options": ["stage-parameters"], "group": "Properties", "help": {"short": "Schema of parameters that will be provided for each stageProgression."}, "additionalProps": {"item": {"type": "object", "args": [{"type": "object", "var": "$resource.properties.stageParameters{}.metadata", "options": ["metadata"], "help": {"short": "user-specified parameter metadata"}, "additionalProps": {"item": {"type": "string"}}}, {"type": "object", "var": "$resource.properties.stageParameters{}.number", "options": ["number"], "args": [{"type": "array", "var": "$resource.properties.stageParameters{}.number.allowedValues", "options": ["allowed-values"], "required": true, "help": {"short": "Allowed list of the values for the parameter."}, "item": {"type": "integer32"}}, {"type": "integer32", "var": "$resource.properties.stageParameters{}.number.defaultValue", "options": ["default-value"], "help": {"short": "Default value for the parameter."}}]}, {"type": "object", "var": "$resource.properties.stageParameters{}.string", "options": ["string"], "args": [{"type": "array", "var": "$resource.properties.stageParameters{}.string.allowedValues", "options": ["allowed-values"], "required": true, "help": {"short": "Allowed list of the values for the parameter."}, "item": {"type": "string"}}, {"type": "string", "var": "$resource.properties.stageParameters{}.string.defaultValue", "options": ["default-value"], "help": {"short": "Default value for the parameter."}}]}]}}}, {"type": "string", "var": "$resource.properties.state", "options": ["state"], "group": "Properties", "help": {"short": "Internal status of the changestate resource."}, "enum": {"items": [{"name": "Abandoned", "value": "Abandoned"}, {"name": "Completed", "value": "Completed"}, {"name": "Failed", "value": "Failed"}, {"name": "InProgress", "value": "InProgress"}, {"name": "Initialized", "value": "Initialized"}, {"name": "Paused", "value": "Paused"}]}}, {"type": "string", "var": "$resource.properties.workItemReference", "options": ["work-item-reference"], "group": "Properties", "help": {"short": "URI to the work item related to this change."}}]}], "operations": [{"operationId": "ChangeStates_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates/{changeStateName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "changeStateName", "arg": "$Path.changeStateName", "required": true, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "object", "name": "changeArtifact", "required": true, "props": [{"type": "string", "name": "artifactType", "required": true, "enum": {"items": [{"arg": "$resource.properties.changeArtifact.ArmOperation", "value": "ArmOperation"}, {"arg": "$resource.properties.changeArtifact.ExternalArmTemplate", "value": "ExternalArmTemplate"}, {"arg": "$resource.properties.changeArtifact.ExternalBicep", "value": "ExternalBicep"}, {"arg": "$resource.properties.changeArtifact.InlineArmTemplate", "value": "InlineArmTemplate"}, {"arg": "$resource.properties.changeArtifact.InlineBicep", "value": "InlineBicep"}, {"arg": "$resource.properties.changeArtifact.TemplateSpec", "value": "TemplateSpec"}]}}, {"type": "string", "name": "name", "arg": "$resource.properties.changeArtifact.name", "required": true}], "discriminators": [{"property": "artifactType", "value": "ArmOperation", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload", "required": true, "props": [{"type": "array", "name": "operations", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "content", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content", "props": [{"type": "string", "name": "location", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.location"}, {"type": "string", "name": "name", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.name"}, {"type": "object", "name": "properties", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].content.properties", "required": true}]}, {"type": "string", "name": "httpMethod", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].httpMethod", "required": true, "enum": {"items": [{"value": "DELETE"}, {"value": "PATCH"}, {"value": "PUT"}]}}, {"type": "string", "name": "uri", "arg": "$resource.properties.changeArtifact.ArmOperation.artifactPayload.operations[].uri", "required": true}]}, "identifiers": ["uri"]}]}]}, {"property": "artifactType", "value": "ExternalArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.ExternalArmTemplate.artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "arg": "$resource.properties.changeArtifact.ExternalArmTemplate.artifactPayload.externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "ExternalBicep", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.ExternalBicep.artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "arg": "$resource.properties.changeArtifact.ExternalBicep.artifactPayload.externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "InlineArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.InlineArmTemplate.artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "arg": "$resource.properties.changeArtifact.InlineArmTemplate.artifactPayload.inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "InlineBicep", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.InlineBicep.artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "arg": "$resource.properties.changeArtifact.InlineBicep.artifactPayload.inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "TemplateSpec", "props": [{"type": "object", "name": "artifactPayload", "arg": "$resource.properties.changeArtifact.TemplateSpec.artifactPayload", "required": true, "props": [{"type": "ResourceId", "name": "artifactResourceId", "arg": "$resource.properties.changeArtifact.TemplateSpec.artifactPayload.artifactResourceId", "required": true}]}]}]}, {"type": "string", "name": "changeType", "arg": "$resource.properties.changeType", "required": true, "enum": {"items": [{"value": "Breakglass"}, {"value": "Emergency"}, {"value": "Normal"}]}}, {"type": "string", "name": "comments", "arg": "$resource.properties.comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "arg": "$resource.properties.description", "format": {"maxLength": 2000}}, {"type": "dateTime", "name": "expirationDate", "arg": "$resource.properties.expirationDate", "required": true}, {"type": "string", "name": "serviceCatalogReference", "arg": "$resource.properties.serviceCatalogReference"}, {"type": "ResourceId", "name": "stageMapResourceId", "arg": "$resource.properties.stageMapResourceId", "required": true}, {"type": "object", "name": "stageParameters", "arg": "$resource.properties.stageParameters", "required": true, "additionalProps": {"item": {"type": "object", "props": [{"type": "object", "name": "metadata", "arg": "$resource.properties.stageParameters{}.metadata", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"arg": "$resource.properties.stageParameters{}.number", "value": "number"}, {"arg": "$resource.properties.stageParameters{}.string", "value": "string"}]}}], "discriminators": [{"property": "type", "value": "number", "props": [{"type": "array", "name": "allowedValues", "arg": "$resource.properties.stageParameters{}.number.allowedValues", "required": true, "item": {"type": "integer32"}}, {"type": "integer32", "name": "defaultValue", "arg": "$resource.properties.stageParameters{}.number.defaultValue"}]}, {"property": "type", "value": "string", "props": [{"type": "array", "name": "allowedValues", "arg": "$resource.properties.stageParameters{}.string.allowedValues", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "defaultValue", "arg": "$resource.properties.stageParameters{}.string.defaultValue"}]}]}}}, {"type": "string", "name": "state", "arg": "$resource.properties.state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference", "arg": "$resource.properties.workItemReference"}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "changeArtifact", "required": true, "props": [{"type": "string", "name": "artifactType", "required": true, "enum": {"items": [{"value": "ArmOperation"}, {"value": "ExternalArmTemplate"}, {"value": "ExternalBicep"}, {"value": "InlineArmTemplate"}, {"value": "InlineBicep"}, {"value": "TemplateSpec"}]}}, {"type": "string", "name": "name", "required": true}], "discriminators": [{"property": "artifactType", "value": "ArmOperation", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "array", "name": "operations", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "content", "props": [{"type": "string", "name": "location"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true}]}, {"type": "string", "name": "httpMethod", "required": true, "enum": {"items": [{"value": "DELETE"}, {"value": "PATCH"}, {"value": "PUT"}]}}, {"type": "string", "name": "uri", "required": true}]}, "identifiers": ["uri"]}]}]}, {"property": "artifactType", "value": "ExternalArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "ExternalBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "InlineArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "InlineBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "TemplateSpec", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "ResourceId", "name": "artifactResourceId", "required": true}]}]}]}, {"type": "string", "name": "changeType", "required": true, "enum": {"items": [{"value": "Breakglass"}, {"value": "Emergency"}, {"value": "Normal"}]}}, {"type": "string", "name": "comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "format": {"maxLength": 2000}}, {"type": "dateTime", "name": "expirationDate", "required": true}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "serviceCatalogReference"}, {"type": "ResourceId", "name": "stageMapResourceId", "required": true}, {"readOnly": true, "type": "array", "name": "stageMapSnapshot", "item": {"type": "any"}}, {"type": "object", "name": "stageParameters", "required": true, "additionalProps": {"item": {"type": "object", "props": [{"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "number"}, {"value": "string"}]}}], "discriminators": [{"property": "type", "value": "number", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "integer32"}}, {"type": "integer32", "name": "defaultValue"}]}, {"property": "type", "value": "string", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "defaultValue"}]}]}}}, {"type": "string", "name": "state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2025-03-01-preview", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.changesafety/changestates/{}", "version": "2025-03-01-preview", "swagger": "mgmt-plane/changesafety/ResourceProviders/Microsoft.ChangeSafety/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2hhbmdlU2FmZXR5L2NoYW5nZVN0YXRlcy97Y2hhbmdlU3RhdGVOYW1lfQ==/V/MjAyNS0wMy0wMS1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.changeStateName", "options": ["n", "name", "change-state-name"], "required": true, "idPart": "name", "help": {"short": "The name of the ChangeState resource."}, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.comments", "options": ["comments"], "group": "Properties", "help": {"short": "Comments about the last update to the changeState resource."}, "format": {"maxLength": 2000}}, {"nullable": true, "type": "string", "var": "$resource.properties.description", "options": ["description"], "group": "Properties", "help": {"short": "Brief description about the change."}, "format": {"maxLength": 2000}}, {"nullable": true, "type": "string", "var": "$resource.properties.serviceCatalogReference", "options": ["service-catalog-reference"], "group": "Properties", "help": {"short": "URI to the external service catalog reference."}}, {"type": "string", "var": "$resource.properties.state", "options": ["state"], "group": "Properties", "help": {"short": "Internal status of the changestate resource."}, "enum": {"items": [{"name": "Abandoned", "value": "Abandoned"}, {"name": "Completed", "value": "Completed"}, {"name": "Failed", "value": "Failed"}, {"name": "InProgress", "value": "InProgress"}, {"name": "Initialized", "value": "Initialized"}, {"name": "Paused", "value": "Paused"}]}}, {"nullable": true, "type": "string", "var": "$resource.properties.workItemReference", "options": ["work-item-reference"], "group": "Properties", "help": {"short": "URI to the work item related to this change."}}]}], "operations": [{"operationId": "ChangeStates_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates/{changeStateName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "changeStateName", "arg": "$Path.changeStateName", "required": true, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "changeArtifact", "required": true, "props": [{"type": "string", "name": "artifactType", "required": true, "enum": {"items": [{"value": "ArmOperation"}, {"value": "ExternalArmTemplate"}, {"value": "ExternalBicep"}, {"value": "InlineArmTemplate"}, {"value": "InlineBicep"}, {"value": "TemplateSpec"}]}}, {"type": "string", "name": "name", "required": true}], "discriminators": [{"property": "artifactType", "value": "ArmOperation", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "array", "name": "operations", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "content", "props": [{"type": "string", "name": "location"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "required": true}]}, {"type": "string", "name": "httpMethod", "required": true, "enum": {"items": [{"value": "DELETE"}, {"value": "PATCH"}, {"value": "PUT"}]}}, {"type": "string", "name": "uri", "required": true}]}, "identifiers": ["uri"]}]}]}, {"property": "artifactType", "value": "ExternalArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "ExternalBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "externalArtifactUri", "required": true}]}]}, {"property": "artifactType", "value": "InlineArmTemplate", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "InlineBicep", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "string", "name": "inlineScript", "required": true}]}]}, {"property": "artifactType", "value": "TemplateSpec", "props": [{"type": "object", "name": "artifactPayload", "required": true, "props": [{"type": "ResourceId", "name": "artifactResourceId", "required": true}]}]}]}, {"type": "string", "name": "changeType", "required": true, "enum": {"items": [{"value": "Breakglass"}, {"value": "Emergency"}, {"value": "Normal"}]}}, {"type": "string", "name": "comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "format": {"maxLength": 2000}}, {"type": "dateTime", "name": "expirationDate", "required": true}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Accepted"}, {"value": "Canceled"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Provisioning"}, {"value": "Succeeded"}, {"value": "Updating"}]}}, {"type": "string", "name": "serviceCatalogReference"}, {"type": "ResourceId", "name": "stageMapResourceId", "required": true}, {"readOnly": true, "type": "array", "name": "stageMapSnapshot", "item": {"type": "any"}}, {"type": "object", "name": "stageParameters", "required": true, "additionalProps": {"item": {"type": "object", "props": [{"type": "object", "name": "metadata", "additionalProps": {"item": {"type": "string"}}}, {"type": "string", "name": "type", "required": true, "enum": {"items": [{"value": "number"}, {"value": "string"}]}}], "discriminators": [{"property": "type", "value": "number", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "integer32"}}, {"type": "integer32", "name": "defaultValue"}]}, {"property": "type", "value": "string", "props": [{"type": "array", "name": "allowedValues", "required": true, "item": {"type": "string"}}, {"type": "string", "name": "defaultValue"}]}]}}}, {"type": "string", "name": "state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference"}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "ChangeState_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "string", "name": "comments", "arg": "$resource.properties.comments", "format": {"maxLength": 2000}}, {"type": "string", "name": "description", "arg": "$resource.properties.description", "format": {"maxLength": 2000}}, {"type": "string", "name": "serviceCatalogReference", "arg": "$resource.properties.serviceCatalogReference"}, {"type": "string", "name": "state", "arg": "$resource.properties.state", "required": true, "enum": {"items": [{"value": "Abandoned"}, {"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "Initialized"}, {"value": "Paused"}]}}, {"type": "string", "name": "workItemReference", "arg": "$resource.properties.workItemReference"}]}], "clientFlatten": true}}}}, {"operationId": "ChangeStates_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ChangeSafety/changeStates/{changeStateName}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "changeStateName", "arg": "$Path.changeStateName", "required": true, "format": {"pattern": "^[a-zA-Z0-9-]{3,100}$", "maxLength": 100, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-03-01-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@ChangeState_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml new file mode 100644 index 000000000..110b06929 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jaGFuZ2VzYWZldHkvY2hhbmdlc3RhdGVzL3t9/2025-03-01-preview.xml @@ -0,0 +1,1033 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+