diff --git a/lib/services/applicationinsights/lib/operations/index.d.ts b/lib/services/applicationinsights/lib/operations/index.d.ts index 5c39016762..c456d1921a 100644 --- a/lib/services/applicationinsights/lib/operations/index.d.ts +++ b/lib/services/applicationinsights/lib/operations/index.d.ts @@ -4484,8 +4484,6 @@ export interface WorkbooksOperations { * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The name of location where workbook is stored. - * * @param {string} category Category of workbook to return. Possible values * include: 'workbook', 'TSG', 'performance', 'retention' * @@ -4506,15 +4504,13 @@ export interface WorkbooksOperations { * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, location: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get all Workbooks defined within a specified resource group and category. * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The name of location where workbook is stored. - * * @param {string} category Category of workbook to return. Possible values * include: 'workbook', 'TSG', 'performance', 'retention' * @@ -4551,9 +4547,9 @@ export interface WorkbooksOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName: string, location: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, location: string, category: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, location: string, category: string, options: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroup(resourceGroupName: string, category: string, callback: ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, category: string, options: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -4573,8 +4569,6 @@ export interface WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -4586,7 +4580,7 @@ export interface WorkbookOperations { * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, resourceName: string, location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Get a single workbook by its resourceName. @@ -4596,8 +4590,6 @@ export interface WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -4625,9 +4617,9 @@ export interface WorkbookOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, resourceName: string, location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, resourceName: string, location: string, callback: ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, resourceName: string, callback: ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -4638,8 +4630,6 @@ export interface WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -4651,7 +4641,7 @@ export interface WorkbookOperations { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, resourceName: string, location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Delete a workbook. @@ -4661,8 +4651,6 @@ export interface WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -4689,9 +4677,9 @@ export interface WorkbookOperations { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, resourceName: string, location: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, resourceName: string, location: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/applicationinsights/lib/operations/workbookOperations.js b/lib/services/applicationinsights/lib/operations/workbookOperations.js index 1563f8f8b5..fb4388c9c5 100644 --- a/lib/services/applicationinsights/lib/operations/workbookOperations.js +++ b/lib/services/applicationinsights/lib/operations/workbookOperations.js @@ -22,8 +22,6 @@ const WebResource = msRest.WebResource; * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -42,7 +40,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _get(resourceGroupName, resourceName, location, options, callback) { +function _get(resourceGroupName, resourceName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -63,9 +61,6 @@ function _get(resourceGroupName, resourceName, location, options, callback) { if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } - if (location === null || location === undefined || typeof location.valueOf() !== 'string') { - throw new Error('location cannot be null or undefined and it must be of type string.'); - } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -83,7 +78,6 @@ function _get(resourceGroupName, resourceName, location, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); let queryParameters = []; - queryParameters.push('location=' + encodeURIComponent(location)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -175,8 +169,6 @@ function _get(resourceGroupName, resourceName, location, options, callback) { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -194,7 +186,7 @@ function _get(resourceGroupName, resourceName, location, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _deleteMethod(resourceGroupName, resourceName, location, options, callback) { +function _deleteMethod(resourceGroupName, resourceName, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -215,9 +207,6 @@ function _deleteMethod(resourceGroupName, resourceName, location, options, callb if (resourceName === null || resourceName === undefined || typeof resourceName.valueOf() !== 'string') { throw new Error('resourceName cannot be null or undefined and it must be of type string.'); } - if (location === null || location === undefined || typeof location.valueOf() !== 'string') { - throw new Error('location cannot be null or undefined and it must be of type string.'); - } if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); } @@ -235,7 +224,6 @@ function _deleteMethod(resourceGroupName, resourceName, location, options, callb requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{resourceName}', encodeURIComponent(resourceName)); let queryParameters = []; - queryParameters.push('location=' + encodeURIComponent(location)); queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); @@ -749,8 +737,6 @@ class WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -762,11 +748,11 @@ class WorkbookOperations { * * @reject {Error} - The error object. */ - getWithHttpOperationResponse(resourceGroupName, resourceName, location, options) { + getWithHttpOperationResponse(resourceGroupName, resourceName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._get(resourceGroupName, resourceName, location, options, (err, result, request, response) => { + self._get(resourceGroupName, resourceName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -784,8 +770,6 @@ class WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -813,7 +797,7 @@ class WorkbookOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName, resourceName, location, options, optionalCallback) { + get(resourceGroupName, resourceName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -822,14 +806,14 @@ class WorkbookOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._get(resourceGroupName, resourceName, location, options, (err, result, request, response) => { + self._get(resourceGroupName, resourceName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._get(resourceGroupName, resourceName, location, options, optionalCallback); + return self._get(resourceGroupName, resourceName, options, optionalCallback); } } @@ -841,8 +825,6 @@ class WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -854,11 +836,11 @@ class WorkbookOperations { * * @reject {Error} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName, resourceName, location, options) { + deleteMethodWithHttpOperationResponse(resourceGroupName, resourceName, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, resourceName, location, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -876,8 +858,6 @@ class WorkbookOperations { * @param {string} resourceName The name of the Application Insights component * resource. * - * @param {string} location The name of location where workbook is stored. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -904,7 +884,7 @@ class WorkbookOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName, resourceName, location, options, optionalCallback) { + deleteMethod(resourceGroupName, resourceName, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -913,14 +893,14 @@ class WorkbookOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._deleteMethod(resourceGroupName, resourceName, location, options, (err, result, request, response) => { + self._deleteMethod(resourceGroupName, resourceName, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._deleteMethod(resourceGroupName, resourceName, location, options, optionalCallback); + return self._deleteMethod(resourceGroupName, resourceName, options, optionalCallback); } } diff --git a/lib/services/applicationinsights/lib/operations/workbooksOperations.js b/lib/services/applicationinsights/lib/operations/workbooksOperations.js index 7e0c06433d..680b37328c 100644 --- a/lib/services/applicationinsights/lib/operations/workbooksOperations.js +++ b/lib/services/applicationinsights/lib/operations/workbooksOperations.js @@ -19,8 +19,6 @@ const WebResource = msRest.WebResource; * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The name of location where workbook is stored. - * * @param {string} category Category of workbook to return. Possible values * include: 'workbook', 'TSG', 'performance', 'retention' * @@ -48,7 +46,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listByResourceGroup(resourceGroupName, location, category, options, callback) { +function _listByResourceGroup(resourceGroupName, category, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -68,9 +66,6 @@ function _listByResourceGroup(resourceGroupName, location, category, options, ca if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } - if (location === null || location === undefined || typeof location.valueOf() !== 'string') { - throw new Error('location cannot be null or undefined and it must be of type string.'); - } if (category === null || category === undefined || typeof category.valueOf() !== 'string') { throw new Error('category cannot be null or undefined and it must be of type string.'); } @@ -100,7 +95,6 @@ function _listByResourceGroup(resourceGroupName, location, category, options, ca requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); let queryParameters = []; - queryParameters.push('location=' + encodeURIComponent(location)); queryParameters.push('category=' + encodeURIComponent(category)); if (tags !== null && tags !== undefined) { queryParameters.push('tags=' + encodeURIComponent(tags.join(','))); @@ -207,8 +201,6 @@ class WorkbooksOperations { * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The name of location where workbook is stored. - * * @param {string} category Category of workbook to return. Possible values * include: 'workbook', 'TSG', 'performance', 'retention' * @@ -229,11 +221,11 @@ class WorkbooksOperations { * * @reject {Error} - The error object. */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName, location, category, options) { + listByResourceGroupWithHttpOperationResponse(resourceGroupName, category, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, location, category, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, category, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -248,8 +240,6 @@ class WorkbooksOperations { * * @param {string} resourceGroupName The name of the resource group. * - * @param {string} location The name of location where workbook is stored. - * * @param {string} category Category of workbook to return. Possible values * include: 'workbook', 'TSG', 'performance', 'retention' * @@ -286,7 +276,7 @@ class WorkbooksOperations { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroup(resourceGroupName, location, category, options, optionalCallback) { + listByResourceGroup(resourceGroupName, category, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -295,14 +285,14 @@ class WorkbooksOperations { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listByResourceGroup(resourceGroupName, location, category, options, (err, result, request, response) => { + self._listByResourceGroup(resourceGroupName, category, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listByResourceGroup(resourceGroupName, location, category, options, optionalCallback); + return self._listByResourceGroup(resourceGroupName, category, options, optionalCallback); } }