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
36 changes: 12 additions & 24 deletions lib/services/applicationinsights/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
*
Expand All @@ -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<HttpOperationResponse<models.Workbooks>>;
listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.Workbooks>>;

/**
* 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'
*
Expand Down Expand Up @@ -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<models.Workbooks>;
listByResourceGroup(resourceGroupName: string, location: string, category: string, callback: ServiceCallback<models.Workbooks>): void;
listByResourceGroup(resourceGroupName: string, location: string, category: string, options: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.Workbooks>): void;
listByResourceGroup(resourceGroupName: string, category: string, options?: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }): Promise<models.Workbooks>;
listByResourceGroup(resourceGroupName: string, category: string, callback: ServiceCallback<models.Workbooks>): void;
listByResourceGroup(resourceGroupName: string, category: string, options: { tags? : string[], canFetchContent? : boolean, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.Workbooks>): void;
}

/**
Expand All @@ -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
Expand All @@ -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<HttpOperationResponse<models.Workbook>>;
getWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.Workbook>>;

/**
* Get a single workbook by its resourceName.
Expand All @@ -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
Expand Down Expand Up @@ -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<models.Workbook>;
get(resourceGroupName: string, resourceName: string, location: string, callback: ServiceCallback<models.Workbook>): void;
get(resourceGroupName: string, resourceName: string, location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.Workbook>): void;
get(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.Workbook>;
get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<models.Workbook>): void;
get(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.Workbook>): void;


/**
Expand All @@ -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
Expand All @@ -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<HttpOperationResponse<void>>;
deleteMethodWithHttpOperationResponse(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;

/**
* Delete a workbook.
Expand All @@ -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
Expand All @@ -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<void>;
deleteMethod(resourceGroupName: string, resourceName: string, location: string, callback: ServiceCallback<void>): void;
deleteMethod(resourceGroupName: string, resourceName: string, location: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
deleteMethod(resourceGroupName: string, resourceName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>): void;
deleteMethod(resourceGroupName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') {
Expand All @@ -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.');
}
Expand All @@ -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('&');
Expand Down Expand Up @@ -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
Expand All @@ -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') {
Expand All @@ -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.');
}
Expand All @@ -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('&');
Expand Down Expand Up @@ -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
Expand All @@ -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); }
Expand All @@ -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
Expand Down Expand Up @@ -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') {
Expand All @@ -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);
}
}

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

Expand Down
Loading