diff --git a/lib/services/hdInsightManagement/lib/operations/configurations.js b/lib/services/hdInsightManagement/lib/operations/configurations.js index c03268d3e8..1cb15ca527 100644 --- a/lib/services/hdInsightManagement/lib/operations/configurations.js +++ b/lib/services/hdInsightManagement/lib/operations/configurations.js @@ -16,7 +16,7 @@ const WebResource = msRest.WebResource; /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -43,7 +43,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _updateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, callback) { +function _update(resourceGroupName, clusterName, configurationName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -56,7 +56,7 @@ function _updateHTTPSettings(resourceGroupName, clusterName, configurationName, } // Send request - this.beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, (err, parsedResult, httpRequest, response) => { + this.beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, (err, parsedResult, httpRequest, response) => { if (err) return callback(err); let initialResult = new msRest.HttpOperationResponse(); @@ -246,7 +246,7 @@ function _get(resourceGroupName, clusterName, configurationName, options, callba } /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -273,7 +273,7 @@ function _get(resourceGroupName, clusterName, configurationName, options, callba * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, callback) { +function _beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -424,13 +424,13 @@ class Configurations { */ constructor(client) { this.client = client; - this._updateHTTPSettings = _updateHTTPSettings; + this._update = _update; this._get = _get; - this._beginUpdateHTTPSettings = _beginUpdateHTTPSettings; + this._beginUpdate = _beginUpdate; } /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -451,11 +451,11 @@ class Configurations { * * @reject {Error} - The error object. */ - updateHTTPSettingsWithHttpOperationResponse(resourceGroupName, clusterName, configurationName, parameters, options) { + updateWithHttpOperationResponse(resourceGroupName, clusterName, configurationName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._updateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { + self._update(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -466,7 +466,7 @@ class Configurations { } /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -502,7 +502,7 @@ class Configurations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - updateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback) { + update(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -511,14 +511,14 @@ class Configurations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._updateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { + self._update(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._updateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback); + return self._update(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback); } } @@ -612,7 +612,7 @@ class Configurations { } /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -633,11 +633,11 @@ class Configurations { * * @reject {Error} - The error object. */ - beginUpdateHTTPSettingsWithHttpOperationResponse(resourceGroupName, clusterName, configurationName, parameters, options) { + beginUpdateWithHttpOperationResponse(resourceGroupName, clusterName, configurationName, parameters, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { + self._beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -648,7 +648,7 @@ class Configurations { } /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -684,7 +684,7 @@ class Configurations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback) { + beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -693,14 +693,14 @@ class Configurations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { + self._beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._beginUpdateHTTPSettings(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback); + return self._beginUpdate(resourceGroupName, clusterName, configurationName, parameters, options, optionalCallback); } } diff --git a/lib/services/hdInsightManagement/lib/operations/index.d.ts b/lib/services/hdInsightManagement/lib/operations/index.d.ts index 3d60f76937..5494d105ed 100644 --- a/lib/services/hdInsightManagement/lib/operations/index.d.ts +++ b/lib/services/hdInsightManagement/lib/operations/index.d.ts @@ -1773,7 +1773,7 @@ export interface Configurations { /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -1794,10 +1794,10 @@ export interface Configurations { * * @reject {Error|ServiceError} - The error object. */ - updateHTTPSettingsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -1833,9 +1833,9 @@ export interface Configurations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - updateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - updateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; - updateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; + update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1901,7 +1901,7 @@ export interface Configurations { /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -1922,10 +1922,10 @@ export interface Configurations { * * @reject {Error|ServiceError} - The error object. */ - beginUpdateHTTPSettingsWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + beginUpdateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Configures the HTTP settings on the specified cluster. + * Configures the configuration on the specified cluster. * * @param {string} resourceGroupName The name of the resource group. * @@ -1961,9 +1961,9 @@ export interface Configurations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; - beginUpdateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** diff --git a/lib/services/hdInsightManagement/package.json b/lib/services/hdInsightManagement/package.json index 8289e8f32a..62ee3aa132 100644 --- a/lib/services/hdInsightManagement/package.json +++ b/lib/services/hdInsightManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-hdinsight", "author": "Microsoft Corporation", "description": "HDInsightManagementClient Library with typescript type definitions for node", - "version": "0.3.0", + "version": "0.4.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"