Skip to content

Commit

Permalink
Generated from f1bac23abe1e41c667ceb8dd41de1c01bdb881d8
Browse files Browse the repository at this point in the history
Fixing Camel Case in API name
  • Loading branch information
SDK Automation committed Apr 22, 2020
1 parent f11d661 commit a90d071
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,43 @@ export class VirtualMachineScaleSetVMs {
.then(lroPoller => lroPoller.pollUntilFinished());
}

/**
* The operation to simulate the eviction of spot virtual machine in a VM scale set. The eviction
* will occur within 30 minutes of calling the API
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
* @param callback The callback
*/
simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The name of the VM scale set.
* @param instanceId The instance ID of the virtual machine.
* @param options The optional parameters
* @param callback The callback
*/
simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
simulateEviction(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
return this.client.sendOperationRequest(
{
resourceGroupName,
vmScaleSetName,
instanceId,
options
},
simulateEvictionOperationSpec,
callback);
}

/**
* Run command on a virtual machine in a VM scale set.
* @param resourceGroupName The name of the resource group.
Expand Down Expand Up @@ -626,6 +663,30 @@ const listOperationSpec: msRest.OperationSpec = {
serializer
};

const simulateEvictionOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction",
urlParameters: [
Parameters.resourceGroupName,
Parameters.vmScaleSetName,
Parameters.instanceId,
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion0
],
headerParameters: [
Parameters.acceptLanguage
],
responses: {
204: {},
default: {
bodyMapper: Mappers.CloudError
}
},
serializer
};

const beginReimageOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage",
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 @@ -407,7 +407,8 @@ export class VirtualMachines {
}

/**
* The operation to simulate the eviction of spot virtual machine
* The operation to simulate the eviction of spot virtual machine. The eviction will occur within
* 30 minutes of calling the API
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
* @param [options] The optional parameters
Expand Down Expand Up @@ -978,7 +979,7 @@ const listAvailableSizesOperationSpec: msRest.OperationSpec = {

const simulateEvictionOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/SimulateEviction",
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction",
urlParameters: [
Parameters.resourceGroupName,
Parameters.vmName,
Expand Down

0 comments on commit a90d071

Please sign in to comment.