UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

1,079 lines (1,036 loc) 815 kB
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationResponse } from 'ms-rest'; import * as models from '../models'; /** * @class * AvailabilitySets * __NOTE__: An instance of this class is automatically created for an * instance of the ComputeManagementClient. */ export interface AvailabilitySets { /** * Create or update an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @param {object} parameters Parameters supplied to the Create Availability * Set operation. * * @param {number} [parameters.platformUpdateDomainCount] Update Domain count. * * @param {number} [parameters.platformFaultDomainCount] Fault Domain count. * * @param {array} [parameters.virtualMachines] A list of references to all * virtual machines in the availability set. * * @param {object} [parameters.sku] Sku of the availability set * * @param {string} [parameters.sku.name] The sku name. * * @param {string} [parameters.sku.tier] Specifies the tier of virtual machines * in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br * /><br /> **Basic** * * @param {number} [parameters.sku.capacity] Specifies the number of virtual * machines in the scale set. * * @param {string} parameters.location Resource location * * @param {object} [parameters.tags] Resource tags * * @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<AvailabilitySet>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, parameters: models.AvailabilitySet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.AvailabilitySet>>; /** * Create or update an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @param {object} parameters Parameters supplied to the Create Availability * Set operation. * * @param {number} [parameters.platformUpdateDomainCount] Update Domain count. * * @param {number} [parameters.platformFaultDomainCount] Fault Domain count. * * @param {array} [parameters.virtualMachines] A list of references to all * virtual machines in the availability set. * * @param {object} [parameters.sku] Sku of the availability set * * @param {string} [parameters.sku.name] The sku name. * * @param {string} [parameters.sku.tier] Specifies the tier of virtual machines * in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br * /><br /> **Basic** * * @param {number} [parameters.sku.capacity] Specifies the number of virtual * machines in the scale set. * * @param {string} parameters.location Resource location * * @param {object} [parameters.tags] Resource tags * * @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 {AvailabilitySet} - 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. * * {AvailabilitySet} [result] - The deserialized result object if an error did not occur. * See {@link AvailabilitySet} 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. */ createOrUpdate(resourceGroupName: string, availabilitySetName: string, parameters: models.AvailabilitySet, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.AvailabilitySet>; createOrUpdate(resourceGroupName: string, availabilitySetName: string, parameters: models.AvailabilitySet, callback: ServiceCallback<models.AvailabilitySet>): void; createOrUpdate(resourceGroupName: string, availabilitySetName: string, parameters: models.AvailabilitySet, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.AvailabilitySet>): void; /** * Delete an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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<OperationStatusResponse>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.OperationStatusResponse>>; /** * Delete an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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 {OperationStatusResponse} - 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. * * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur. * See {@link OperationStatusResponse} 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. */ deleteMethod(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.OperationStatusResponse>; deleteMethod(resourceGroupName: string, availabilitySetName: string, callback: ServiceCallback<models.OperationStatusResponse>): void; deleteMethod(resourceGroupName: string, availabilitySetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationStatusResponse>): void; /** * Retrieves information about an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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<AvailabilitySet>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.AvailabilitySet>>; /** * Retrieves information about an availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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 {AvailabilitySet} - 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. * * {AvailabilitySet} [result] - The deserialized result object if an error did not occur. * See {@link AvailabilitySet} 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. */ get(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.AvailabilitySet>; get(resourceGroupName: string, availabilitySetName: string, callback: ServiceCallback<models.AvailabilitySet>): void; get(resourceGroupName: string, availabilitySetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.AvailabilitySet>): void; /** * Lists all availability sets in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @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<AvailabilitySetListResult>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.AvailabilitySetListResult>>; /** * Lists all availability sets in a resource group. * * @param {string} resourceGroupName The name of the resource group. * * @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 {AvailabilitySetListResult} - 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. * * {AvailabilitySetListResult} [result] - The deserialized result object if an error did not occur. * See {@link AvailabilitySetListResult} 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. */ list(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.AvailabilitySetListResult>; list(resourceGroupName: string, callback: ServiceCallback<models.AvailabilitySetListResult>): void; list(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.AvailabilitySetListResult>): void; /** * Lists all available virtual machine sizes that can be used to create a new * virtual machine in an existing availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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<VirtualMachineSizeListResult>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listAvailableSizesWithHttpOperationResponse(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineSizeListResult>>; /** * Lists all available virtual machine sizes that can be used to create a new * virtual machine in an existing availability set. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} availabilitySetName The name of the availability set. * * @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 {VirtualMachineSizeListResult} - 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. * * {VirtualMachineSizeListResult} [result] - The deserialized result object if an error did not occur. * See {@link VirtualMachineSizeListResult} 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. */ listAvailableSizes(resourceGroupName: string, availabilitySetName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineSizeListResult>; listAvailableSizes(resourceGroupName: string, availabilitySetName: string, callback: ServiceCallback<models.VirtualMachineSizeListResult>): void; listAvailableSizes(resourceGroupName: string, availabilitySetName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineSizeListResult>): void; } /** * @class * VirtualMachineExtensionImages * __NOTE__: An instance of this class is automatically created for an * instance of the ComputeManagementClient. */ export interface VirtualMachineExtensionImages { /** * Gets a virtual machine extension image. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @param {string} type * * @param {string} version * * @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<VirtualMachineExtensionImage>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(location: string, publisherName: string, type: string, version: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtensionImage>>; /** * Gets a virtual machine extension image. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @param {string} type * * @param {string} version * * @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 {VirtualMachineExtensionImage} - 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. * * {VirtualMachineExtensionImage} [result] - The deserialized result object if an error did not occur. * See {@link VirtualMachineExtensionImage} 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. */ get(location: string, publisherName: string, type: string, version: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtensionImage>; get(location: string, publisherName: string, type: string, version: string, callback: ServiceCallback<models.VirtualMachineExtensionImage>): void; get(location: string, publisherName: string, type: string, version: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtensionImage>): void; /** * Gets a list of virtual machine extension image types. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @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<Array>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listTypesWithHttpOperationResponse(location: string, publisherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtensionImage[]>>; /** * Gets a list of virtual machine extension image types. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @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 {Array} - 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. * * {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. */ listTypes(location: string, publisherName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtensionImage[]>; listTypes(location: string, publisherName: string, callback: ServiceCallback<models.VirtualMachineExtensionImage[]>): void; listTypes(location: string, publisherName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtensionImage[]>): void; /** * Gets a list of virtual machine extension image versions. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @param {string} type * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. * * @param {number} [options.top] * * @param {string} [options.orderby] * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<Array>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ listVersionsWithHttpOperationResponse(location: string, publisherName: string, type: string, options?: { filter? : string, top? : number, orderby? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtensionImage[]>>; /** * Gets a list of virtual machine extension image versions. * * @param {string} location The name of a supported Azure region. * * @param {string} publisherName * * @param {string} type * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] The filter to apply on the operation. * * @param {number} [options.top] * * @param {string} [options.orderby] * * @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 {Array} - 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. * * {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. */ listVersions(location: string, publisherName: string, type: string, options?: { filter? : string, top? : number, orderby? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtensionImage[]>; listVersions(location: string, publisherName: string, type: string, callback: ServiceCallback<models.VirtualMachineExtensionImage[]>): void; listVersions(location: string, publisherName: string, type: string, options: { filter? : string, top? : number, orderby? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtensionImage[]>): void; } /** * @class * VirtualMachineExtensions * __NOTE__: An instance of this class is automatically created for an * instance of the ComputeManagementClient. */ export interface VirtualMachineExtensions { /** * The operation to create or update the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be create or updated. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} extensionParameters Parameters supplied to the Create * Virtual Machine Extension operation. * * @param {string} [extensionParameters.forceUpdateTag] How the extension * handler should be forced to update even if the extension configuration has * not changed. * * @param {string} [extensionParameters.publisher] The name of the extension * handler publisher. * * @param {string} [extensionParameters.virtualMachineExtensionType] Specifies * the type of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.typeHandlerVersion] Specifies the * version of the script handler. * * @param {boolean} [extensionParameters.autoUpgradeMinorVersion] Indicates * whether the extension should use a newer minor version if one is available * at deployment time. Once deployed, however, the extension will not upgrade * minor versions unless redeployed, even with this property set to true. * * @param {object} [extensionParameters.settings] Json formatted public * settings for the extension. * * @param {object} [extensionParameters.protectedSettings] The extension can * contain either protectedSettings or protectedSettingsFromKeyVault or no * protected settings at all. * * @param {object} [extensionParameters.instanceView] The virtual machine * extension instance view. * * @param {string} [extensionParameters.instanceView.name] The virtual machine * extension name. * * @param {string} [extensionParameters.instanceView.type] Specifies the type * of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.instanceView.typeHandlerVersion] * Specifies the version of the script handler. * * @param {array} [extensionParameters.instanceView.substatuses] The resource * status information. * * @param {array} [extensionParameters.instanceView.statuses] The resource * status information. * * @param {string} extensionParameters.location Resource location * * @param {object} [extensionParameters.tags] Resource tags * * @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<VirtualMachineExtension>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ createOrUpdateWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtension>>; /** * The operation to create or update the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be create or updated. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} extensionParameters Parameters supplied to the Create * Virtual Machine Extension operation. * * @param {string} [extensionParameters.forceUpdateTag] How the extension * handler should be forced to update even if the extension configuration has * not changed. * * @param {string} [extensionParameters.publisher] The name of the extension * handler publisher. * * @param {string} [extensionParameters.virtualMachineExtensionType] Specifies * the type of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.typeHandlerVersion] Specifies the * version of the script handler. * * @param {boolean} [extensionParameters.autoUpgradeMinorVersion] Indicates * whether the extension should use a newer minor version if one is available * at deployment time. Once deployed, however, the extension will not upgrade * minor versions unless redeployed, even with this property set to true. * * @param {object} [extensionParameters.settings] Json formatted public * settings for the extension. * * @param {object} [extensionParameters.protectedSettings] The extension can * contain either protectedSettings or protectedSettingsFromKeyVault or no * protected settings at all. * * @param {object} [extensionParameters.instanceView] The virtual machine * extension instance view. * * @param {string} [extensionParameters.instanceView.name] The virtual machine * extension name. * * @param {string} [extensionParameters.instanceView.type] Specifies the type * of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.instanceView.typeHandlerVersion] * Specifies the version of the script handler. * * @param {array} [extensionParameters.instanceView.substatuses] The resource * status information. * * @param {array} [extensionParameters.instanceView.statuses] The resource * status information. * * @param {string} extensionParameters.location Resource location * * @param {object} [extensionParameters.tags] Resource tags * * @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 {VirtualMachineExtension} - 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. * * {VirtualMachineExtension} [result] - The deserialized result object if an error did not occur. * See {@link VirtualMachineExtension} 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. */ createOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtension>; createOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, callback: ServiceCallback<models.VirtualMachineExtension>): void; createOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtension>): void; /** * The operation to delete the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be deleted. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @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<OperationStatusResponse>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ deleteMethodWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.OperationStatusResponse>>; /** * The operation to delete the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be deleted. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @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 {OperationStatusResponse} - 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. * * {OperationStatusResponse} [result] - The deserialized result object if an error did not occur. * See {@link OperationStatusResponse} 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. */ deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.OperationStatusResponse>; deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback<models.OperationStatusResponse>): void; deleteMethod(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationStatusResponse>): void; /** * The operation to get the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine containing the * extension. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] The expand expression to apply on the * operation. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * * @resolve {HttpOperationResponse<VirtualMachineExtension>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ getWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtension>>; /** * The operation to get the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine containing the * extension. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} [options] Optional Parameters. * * @param {string} [options.expand] The expand expression to apply on the * operation. * * @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 {VirtualMachineExtension} - 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. * * {VirtualMachineExtension} [result] - The deserialized result object if an error did not occur. * See {@link VirtualMachineExtension} 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. */ get(resourceGroupName: string, vmName: string, vmExtensionName: string, options?: { expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtension>; get(resourceGroupName: string, vmName: string, vmExtensionName: string, callback: ServiceCallback<models.VirtualMachineExtension>): void; get(resourceGroupName: string, vmName: string, vmExtensionName: string, options: { expand? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtension>): void; /** * The operation to create or update the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be create or updated. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} extensionParameters Parameters supplied to the Create * Virtual Machine Extension operation. * * @param {string} [extensionParameters.forceUpdateTag] How the extension * handler should be forced to update even if the extension configuration has * not changed. * * @param {string} [extensionParameters.publisher] The name of the extension * handler publisher. * * @param {string} [extensionParameters.virtualMachineExtensionType] Specifies * the type of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.typeHandlerVersion] Specifies the * version of the script handler. * * @param {boolean} [extensionParameters.autoUpgradeMinorVersion] Indicates * whether the extension should use a newer minor version if one is available * at deployment time. Once deployed, however, the extension will not upgrade * minor versions unless redeployed, even with this property set to true. * * @param {object} [extensionParameters.settings] Json formatted public * settings for the extension. * * @param {object} [extensionParameters.protectedSettings] The extension can * contain either protectedSettings or protectedSettingsFromKeyVault or no * protected settings at all. * * @param {object} [extensionParameters.instanceView] The virtual machine * extension instance view. * * @param {string} [extensionParameters.instanceView.name] The virtual machine * extension name. * * @param {string} [extensionParameters.instanceView.type] Specifies the type * of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.instanceView.typeHandlerVersion] * Specifies the version of the script handler. * * @param {array} [extensionParameters.instanceView.substatuses] The resource * status information. * * @param {array} [extensionParameters.instanceView.statuses] The resource * status information. * * @param {string} extensionParameters.location Resource location * * @param {object} [extensionParameters.tags] Resource tags * * @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<VirtualMachineExtension>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.VirtualMachineExtension>>; /** * The operation to create or update the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be create or updated. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @param {object} extensionParameters Parameters supplied to the Create * Virtual Machine Extension operation. * * @param {string} [extensionParameters.forceUpdateTag] How the extension * handler should be forced to update even if the extension configuration has * not changed. * * @param {string} [extensionParameters.publisher] The name of the extension * handler publisher. * * @param {string} [extensionParameters.virtualMachineExtensionType] Specifies * the type of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.typeHandlerVersion] Specifies the * version of the script handler. * * @param {boolean} [extensionParameters.autoUpgradeMinorVersion] Indicates * whether the extension should use a newer minor version if one is available * at deployment time. Once deployed, however, the extension will not upgrade * minor versions unless redeployed, even with this property set to true. * * @param {object} [extensionParameters.settings] Json formatted public * settings for the extension. * * @param {object} [extensionParameters.protectedSettings] The extension can * contain either protectedSettings or protectedSettingsFromKeyVault or no * protected settings at all. * * @param {object} [extensionParameters.instanceView] The virtual machine * extension instance view. * * @param {string} [extensionParameters.instanceView.name] The virtual machine * extension name. * * @param {string} [extensionParameters.instanceView.type] Specifies the type * of the extension; an example is "CustomScriptExtension". * * @param {string} [extensionParameters.instanceView.typeHandlerVersion] * Specifies the version of the script handler. * * @param {array} [extensionParameters.instanceView.substatuses] The resource * status information. * * @param {array} [extensionParameters.instanceView.statuses] The resource * status information. * * @param {string} extensionParameters.location Resource location * * @param {object} [extensionParameters.tags] Resource tags * * @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 {VirtualMachineExtension} - 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. * * {VirtualMachineExtension} [result] - The deserialized result object if an error did not occur. * See {@link VirtualMachineExtension} 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. */ beginCreateOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.VirtualMachineExtension>; beginCreateOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, callback: ServiceCallback<models.VirtualMachineExtension>): void; beginCreateOrUpdate(resourceGroupName: string, vmName: string, vmExtensionName: string, extensionParameters: models.VirtualMachineExtension, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.VirtualMachineExtension>): void; /** * The operation to delete the extension. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} vmName The name of the virtual machine where the extension * should be deleted. * * @param {string} vmExtensionName The name of the virtual machine extension. * * @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<OperationStatusResponse>} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ beginDeleteMethodWithHttpOpera