Skip to content

Commit 97a36e3

Browse files
author
SDK Automation
committed
Generated from 939a104585837edf4e1816041943598139aaa0cf
1 parent 9d1855d commit 97a36e3

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

sdk/compute/arm-compute/src/models/index.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6590,6 +6590,16 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp
65906590
orderby?: string;
65916591
}
65926592

6593+
/**
6594+
* Optional Parameters.
6595+
*/
6596+
export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
6597+
/**
6598+
* Optional parameter to force delete virtual machines.
6599+
*/
6600+
forceDeletion?: boolean;
6601+
}
6602+
65936603
/**
65946604
* Optional Parameters.
65956605
*/
@@ -6644,6 +6654,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend
66446654
sasUriExpirationTimeInMinutes?: number;
66456655
}
66466656

6657+
/**
6658+
* Optional Parameters.
6659+
*/
6660+
export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
6661+
/**
6662+
* Optional parameter to force delete virtual machines.
6663+
*/
6664+
forceDeletion?: boolean;
6665+
}
6666+
66476667
/**
66486668
* Optional Parameters.
66496669
*/

sdk/compute/arm-compute/src/models/parameters.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@ export const filter: msRest.OperationQueryParameter = {
179179
}
180180
}
181181
};
182+
export const forceDeletion: msRest.OperationQueryParameter = {
183+
parameterPath: [
184+
"options",
185+
"forceDeletion"
186+
],
187+
mapper: {
188+
serializedName: "forceDeletion",
189+
type: {
190+
name: "Boolean"
191+
}
192+
}
193+
};
182194
export const galleryApplicationName: msRest.OperationURLParameter = {
183195
parameterPath: "galleryApplicationName",
184196
mapper: {

sdk/compute/arm-compute/src/operations/virtualMachines.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class VirtualMachines {
103103
* @param [options] The optional parameters
104104
* @returns Promise<msRest.RestResponse>
105105
*/
106-
deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
106+
deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise<msRest.RestResponse> {
107107
return this.beginDeleteMethod(resourceGroupName,vmName,options)
108108
.then(lroPoller => lroPoller.pollUntilFinished());
109109
}
@@ -564,7 +564,7 @@ export class VirtualMachines {
564564
* @param [options] The optional parameters
565565
* @returns Promise<msRestAzure.LROPoller>
566566
*/
567-
beginDeleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
567+
beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise<msRestAzure.LROPoller> {
568568
return this.client.sendLRORequest(
569569
{
570570
resourceGroupName,
@@ -1199,6 +1199,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
11991199
Parameters.subscriptionId
12001200
],
12011201
queryParameters: [
1202+
Parameters.forceDeletion,
12021203
Parameters.apiVersion0
12031204
],
12041205
headerParameters: [

0 commit comments

Comments
 (0)