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
42 changes: 21 additions & 21 deletions lib/services/hdInsightManagement/lib/operations/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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') {
Expand All @@ -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();
Expand Down Expand Up @@ -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.
*
Expand All @@ -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') {
Expand Down Expand Up @@ -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.
*
Expand All @@ -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); }
Expand All @@ -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.
*
Expand Down Expand Up @@ -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') {
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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.
*
Expand All @@ -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); }
Expand All @@ -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.
*
Expand Down Expand Up @@ -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') {
Expand All @@ -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);
}
}

Expand Down
24 changes: 12 additions & 12 deletions lib/services/hdInsightManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand All @@ -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<HttpOperationResponse<void>>;
updateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;

/**
* Configures the HTTP settings on the specified cluster.
* Configures the configuration on the specified cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
Expand Down Expand Up @@ -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<void>;
updateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback<void>): void;
updateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback<void>): void;
update(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
Expand Down Expand Up @@ -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.
*
Expand All @@ -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<HttpOperationResponse<void>>;
beginUpdateWithHttpOperationResponse(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;

/**
* Configures the HTTP settings on the specified cluster.
* Configures the configuration on the specified cluster.
*
* @param {string} resourceGroupName The name of the resource group.
*
Expand Down Expand Up @@ -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<void>;
beginUpdateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback<void>): void;
beginUpdateHTTPSettings(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, callback: ServiceCallback<void>): void;
beginUpdate(resourceGroupName: string, clusterName: string, configurationName: string, parameters: { [propertyName: string]: string }, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/services/hdInsightManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down