Skip to content

Commit

Permalink
Generated from 939a104585837edf4e1816041943598139aaa0cf
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Oct 6, 2020
1 parent 9d1855d commit 97a36e3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
20 changes: 20 additions & 0 deletions sdk/compute/arm-compute/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6590,6 +6590,16 @@ export interface VirtualMachineImagesListOptionalParams extends msRest.RequestOp
orderby?: string;
}

/**
* Optional Parameters.
*/
export interface VirtualMachinesDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to force delete virtual machines.
*/
forceDeletion?: boolean;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -6644,6 +6654,16 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams extend
sasUriExpirationTimeInMinutes?: number;
}

/**
* Optional Parameters.
*/
export interface VirtualMachinesBeginDeleteMethodOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to force delete virtual machines.
*/
forceDeletion?: boolean;
}

/**
* Optional Parameters.
*/
Expand Down
12 changes: 12 additions & 0 deletions sdk/compute/arm-compute/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ export const filter: msRest.OperationQueryParameter = {
}
}
};
export const forceDeletion: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"forceDeletion"
],
mapper: {
serializedName: "forceDeletion",
type: {
name: "Boolean"
}
}
};
export const galleryApplicationName: msRest.OperationURLParameter = {
parameterPath: "galleryApplicationName",
mapper: {
Expand Down
5 changes: 3 additions & 2 deletions sdk/compute/arm-compute/src/operations/virtualMachines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class VirtualMachines {
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
deleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
deleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesDeleteMethodOptionalParams): Promise<msRest.RestResponse> {
return this.beginDeleteMethod(resourceGroupName,vmName,options)
.then(lroPoller => lroPoller.pollUntilFinished());
}
Expand Down Expand Up @@ -564,7 +564,7 @@ export class VirtualMachines {
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
*/
beginDeleteMethod(resourceGroupName: string, vmName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
beginDeleteMethod(resourceGroupName: string, vmName: string, options?: Models.VirtualMachinesBeginDeleteMethodOptionalParams): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
resourceGroupName,
Expand Down Expand Up @@ -1199,6 +1199,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
Parameters.subscriptionId
],
queryParameters: [
Parameters.forceDeletion,
Parameters.apiVersion0
],
headerParameters: [
Expand Down

0 comments on commit 97a36e3

Please sign in to comment.