Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions lib/services/computeManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5343,12 +5343,10 @@ export interface RunCommandDocument extends RunCommandDocumentBase {
* @class
* Initializes a new instance of the RunCommandResult class.
* @constructor
* Run command operation response.
*
* @member {object} [output] Operation output data (raw JSON)
* @member {array} [value] Run command operation response.
*/
export interface RunCommandResult {
output?: any;
value?: InstanceViewStatus[];
}

/**
Expand Down
21 changes: 15 additions & 6 deletions lib/services/computeManagement2/lib/models/runCommandResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@

'use strict';

const models = require('./index');

/**
* Run command operation response.
*
* Class representing a RunCommandResult.
*/
class RunCommandResult {
/**
* Create a RunCommandResult.
* @member {object} [output] Operation output data (raw JSON)
* @member {array} [value] Run command operation response.
*/
constructor() {
}
Expand All @@ -36,11 +37,19 @@ class RunCommandResult {
name: 'Composite',
className: 'RunCommandResult',
modelProperties: {
output: {
value: {
required: false,
serializedName: 'properties.output',
serializedName: 'value',
type: {
name: 'Object'
name: 'Sequence',
element: {
required: false,
serializedName: 'InstanceViewStatusElementType',
type: {
name: 'Composite',
className: 'InstanceViewStatus'
}
}
}
}
}
Expand Down
196 changes: 182 additions & 14 deletions lib/services/computeManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6031,11 +6031,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<Array>} - The deserialized result object.
* @resolve {HttpOperationResponse<RunCommandResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
runCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.InstanceViewStatus[]>>;
runCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.RunCommandResult>>;

/**
* Run command on the VM.
Expand Down Expand Up @@ -6066,23 +6066,24 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
* @resolve {Array} - The deserialized result object.
* @resolve {RunCommandResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {Array} [result] - The deserialized result object if an error did not occur.
* {RunCommandResult} [result] - The deserialized result object if an error did not occur.
* See {@link RunCommandResult} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.InstanceViewStatus[]>;
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.InstanceViewStatus[]>): void;
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.InstanceViewStatus[]>): void;
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.RunCommandResult>;
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.RunCommandResult>): void;
runCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.RunCommandResult>): void;


/**
Expand Down Expand Up @@ -8293,11 +8294,11 @@ export interface VirtualMachines {
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<Array>} - The deserialized result object.
* @resolve {HttpOperationResponse<RunCommandResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
beginRunCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.InstanceViewStatus[]>>;
beginRunCommandWithHttpOperationResponse(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.RunCommandResult>>;

/**
* Run command on the VM.
Expand Down Expand Up @@ -8328,23 +8329,24 @@ export interface VirtualMachines {
*
* {Promise} A promise is returned.
*
* @resolve {Array} - The deserialized result object.
* @resolve {RunCommandResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {Array} [result] - The deserialized result object if an error did not occur.
* {RunCommandResult} [result] - The deserialized result object if an error did not occur.
* See {@link RunCommandResult} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.InstanceViewStatus[]>;
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.InstanceViewStatus[]>): void;
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.InstanceViewStatus[]>): void;
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.RunCommandResult>;
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.RunCommandResult>): void;
beginRunCommand(resourceGroupName: string, vmName: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.RunCommandResult>): void;


/**
Expand Down Expand Up @@ -16016,6 +16018,89 @@ export interface VirtualMachineScaleSetVMs {
performMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* Run command on a virtual machine in a VM scale set.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} vmScaleSetName The name of the VM scale set.
*
* @param {string} instanceId The instance ID of the virtual machine.
*
* @param {object} parameters Parameters supplied to the Run command operation.
*
* @param {string} parameters.commandId The run command id.
*
* @param {array} [parameters.script] Optional. The script to be executed.
* When this value is given, the given script will override the default script
* of the command.
*
* @param {array} [parameters.parameters] The run command parameters.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<RunCommandResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
runCommandWithHttpOperationResponse(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.RunCommandResult>>;

/**
* Run command on a virtual machine in a VM scale set.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} vmScaleSetName The name of the VM scale set.
*
* @param {string} instanceId The instance ID of the virtual machine.
*
* @param {object} parameters Parameters supplied to the Run command operation.
*
* @param {string} parameters.commandId The run command id.
*
* @param {array} [parameters.script] Optional. The script to be executed.
* When this value is given, the given script will override the default script
* of the command.
*
* @param {array} [parameters.parameters] The run command parameters.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {RunCommandResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {RunCommandResult} [result] - The deserialized result object if an error did not occur.
* See {@link RunCommandResult} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
runCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.RunCommandResult>;
runCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.RunCommandResult>): void;
runCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.RunCommandResult>): void;


/**
* Reimages (upgrade the operating system) a specific virtual machine in a VM
* scale set.
Expand Down Expand Up @@ -17376,6 +17461,89 @@ export interface VirtualMachineScaleSetVMs {
beginPerformMaintenance(resourceGroupName: string, vmScaleSetName: string, instanceId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
* Run command on a virtual machine in a VM scale set.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} vmScaleSetName The name of the VM scale set.
*
* @param {string} instanceId The instance ID of the virtual machine.
*
* @param {object} parameters Parameters supplied to the Run command operation.
*
* @param {string} parameters.commandId The run command id.
*
* @param {array} [parameters.script] Optional. The script to be executed.
* When this value is given, the given script will override the default script
* of the command.
*
* @param {array} [parameters.parameters] The run command parameters.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<RunCommandResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
beginRunCommandWithHttpOperationResponse(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.RunCommandResult>>;

/**
* Run command on a virtual machine in a VM scale set.
*
* @param {string} resourceGroupName The name of the resource group.
*
* @param {string} vmScaleSetName The name of the VM scale set.
*
* @param {string} instanceId The instance ID of the virtual machine.
*
* @param {object} parameters Parameters supplied to the Run command operation.
*
* @param {string} parameters.commandId The run command id.
*
* @param {array} [parameters.script] Optional. The script to be executed.
* When this value is given, the given script will override the default script
* of the command.
*
* @param {array} [parameters.parameters] The run command parameters.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {RunCommandResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {RunCommandResult} [result] - The deserialized result object if an error did not occur.
* See {@link RunCommandResult} for more information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.RunCommandResult>;
beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, callback: ServiceCallback<models.RunCommandResult>): void;
beginRunCommand(resourceGroupName: string, vmScaleSetName: string, instanceId: string, parameters: models.RunCommandInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.RunCommandResult>): void;


/**
* Gets a list of all virtual machines in a VM scale sets.
*
Expand Down
Loading