From 8578f01ae26e8bbac392610cc7b77f651b7a422d Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Mon, 14 Sep 2020 17:33:49 -0700 Subject: [PATCH 1/9] updating compute.json for force delete --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 817f4c62ac26..ae3ce768af2e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2799,6 +2799,13 @@ "type": "string", "description": "The name of the virtual machine." }, + { + "name": "forceDeletion", + "in": "query", + "required": false, + "type": "boolean", + "description": "Optional parameter to force delete a virtual machine." + }, { "$ref": "#/parameters/ApiVersionParameter" }, From 939a104585837edf4e1816041943598139aaa0cf Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Tue, 15 Sep 2020 18:15:41 -0700 Subject: [PATCH 2/9] update description --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index ae3ce768af2e..efc6625701a5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2804,7 +2804,7 @@ "in": "query", "required": false, "type": "boolean", - "description": "Optional parameter to force delete a virtual machine." + "description": "Optional parameter to force delete virtual machines." }, { "$ref": "#/parameters/ApiVersionParameter" From 3d1892fa169512930a23855462232b393559155e Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Wed, 23 Sep 2020 18:53:41 -0700 Subject: [PATCH 3/9] update to string --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index efc6625701a5..acc1538c1618 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2800,11 +2800,11 @@ "description": "The name of the virtual machine." }, { - "name": "forceDeletion", + "name": "forceDeletionResourceTypes", "in": "query", "required": false, - "type": "boolean", - "description": "Optional parameter to force delete virtual machines." + "type": "string", + "description": "Optional parameter to force delete virtual machines, allowed values are 'Microsoft.Compute'" }, { "$ref": "#/parameters/ApiVersionParameter" From 8e06655868d1bca9ae310131c4edcb462afc3900 Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Fri, 20 Nov 2020 00:52:43 -0800 Subject: [PATCH 4/9] updating description --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index acc1538c1618..1fc115f0dd5c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2800,11 +2800,11 @@ "description": "The name of the virtual machine." }, { - "name": "forceDeletionResourceTypes", - "in": "query", + "name": "forceDeletion", + "in": "query", "required": false, - "type": "string", - "description": "Optional parameter to force delete virtual machines, allowed values are 'Microsoft.Compute'" + "type": "boolean", + "description": "Optional parameter to force delete virtual machines which is currently under 'Private-Preview'." }, { "$ref": "#/parameters/ApiVersionParameter" From bb372cb78eadbcdd66de67d65180fe68cab9d1ca Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Fri, 20 Nov 2020 12:42:39 -0800 Subject: [PATCH 5/9] update description --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 77bcda8f1e9d..8fc43132e35e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2804,7 +2804,7 @@ "in": "query", "required": false, "type": "boolean", - "description": "Optional parameter to force delete virtual machines." + "description": "Optional parameter to force delete virtual machines which is currently under 'Private-Preview'." }, { "$ref": "#/parameters/ApiVersionParameter" From 7febc308dd7f46c74449e7f3809e1a37a4efe024 Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Fri, 20 Nov 2020 12:48:10 -0800 Subject: [PATCH 6/9] update comment --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 8fc43132e35e..5086a2f8023a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2804,7 +2804,7 @@ "in": "query", "required": false, "type": "boolean", - "description": "Optional parameter to force delete virtual machines which is currently under 'Private-Preview'." + "description": "Optional parameter to force delete virtual machines.(Feature in Preview)" }, { "$ref": "#/parameters/ApiVersionParameter" From fad2264b2fe334a2405f8941b9d85be9455ec8dd Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Tue, 1 Dec 2020 10:35:06 -0800 Subject: [PATCH 7/9] add example --- .../stable/2020-06-01/compute.json | 7 ++++++- .../2020-06-01/examples/ForceDeleteVirtualMachine | 14 ++++++++++++++ .../examples/ForceDeleteVirtualMachine.json | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 5086a2f8023a..58f0547f3a0e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2824,7 +2824,12 @@ "description": "No Content" } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Force delete a VM": { + "$ref": "./examples/ForceDeleteVirtualMachine.json" + } + } }, "get": { "tags": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine new file mode 100644 index 000000000000..751dd9074a35 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "forceDeletion": "true", + "api-version": "2020-06-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json new file mode 100644 index 000000000000..751dd9074a35 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "vmName": "myVM", + "forceDeletion": "true", + "api-version": "2020-06-01" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file From 71e84f3663d6d75e59f36efc54d056d139ffc52d Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Wed, 2 Dec 2020 19:23:21 -0800 Subject: [PATCH 8/9] added example and updated prettier --- .../2020-06-01/examples/ForceDeleteVirtualMachine | 14 -------------- .../examples/ForceDeleteVirtualMachine.json | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine deleted file mode 100644 index 751dd9074a35..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine +++ /dev/null @@ -1,14 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "vmName": "myVM", - "forceDeletion": "true", - "api-version": "2020-06-01" - }, - "responses": { - "200": {}, - "202": {}, - "204": {} - } -} \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json index 751dd9074a35..fe81bdcf60cf 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/examples/ForceDeleteVirtualMachine.json @@ -11,4 +11,4 @@ "202": {}, "204": {} } -} \ No newline at end of file +} From 2fff96ecc5e638160ffb024f1a4ec9f3d7c5a7df Mon Sep 17 00:00:00 2001 From: Aishwarya-C-S Date: Wed, 2 Dec 2020 19:36:51 -0800 Subject: [PATCH 9/9] updated prettier --- .../Microsoft.Compute/stable/2020-06-01/compute.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json index 60eb3fef6b6d..c81b64798ed6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-06-01/compute.json @@ -2825,7 +2825,7 @@ } }, "x-ms-long-running-operation": true, - "x-ms-examples": { + "x-ms-examples": { "Force delete a VM": { "$ref": "./examples/ForceDeleteVirtualMachine.json" }