Update product references from 'sqlops' to 'azdata' (#4259)

* Update extensions to use azdata

* Switch core code to use azdata
This commit is contained in:
Karl Burtram
2019-03-01 13:59:37 -08:00
committed by GitHub
parent 220685a522
commit 84890eb1b4
371 changed files with 3208 additions and 3184 deletions

View File

@@ -6,7 +6,7 @@
import * as nls from 'vscode-nls';
import * as vscode from 'vscode';
import * as sqlops from 'sqlops';
import * as azdata from 'azdata';
import { AgentUtils } from '../agentUtils';
import { IAgentDialogData, AgentDialogMode } from '../interfaces';
import { JobData } from './jobData';
@@ -51,7 +51,7 @@ export class AlertData implements IAgentDialogData {
constructor(
ownerUri:string,
alertInfo: sqlops.AgentAlertInfo,
alertInfo: azdata.AgentAlertInfo,
jobModel?: JobData,
viaJobDialog: boolean = false
) {
@@ -111,7 +111,7 @@ export class AlertData implements IAgentDialogData {
}
}
public toAgentAlertInfo(): sqlops.AgentAlertInfo {
public toAgentAlertInfo(): azdata.AgentAlertInfo {
return {
id: this.id,
name: this.name,
@@ -119,7 +119,7 @@ export class AlertData implements IAgentDialogData {
eventDescriptionKeyword: this.eventDescriptionKeyword,
eventSource: this.eventSource,
hasNotification: this.hasNotification,
includeEventDescription: sqlops.NotifyMethods.none, // this.includeEventDescription,
includeEventDescription: azdata.NotifyMethods.none, // this.includeEventDescription,
isEnabled: this.isEnabled,
jobId: this.jobId,
jobName: this.jobName,
@@ -139,13 +139,13 @@ export class AlertData implements IAgentDialogData {
};
}
private static getAlertTypeFromString(alertTypeString: string): sqlops.AlertType {
private static getAlertTypeFromString(alertTypeString: string): azdata.AlertType {
if (alertTypeString === AlertData.AlertTypePerformanceConditionString) {
return sqlops.AlertType.sqlServerPerformanceCondition;
return azdata.AlertType.sqlServerPerformanceCondition;
} else if (alertTypeString === AlertData.AlertTypeWmiEventString) {
return sqlops.AlertType.wmiEvent;
return azdata.AlertType.wmiEvent;
} else {
return sqlops.AlertType.sqlServerEvent;
return azdata.AlertType.sqlServerEvent;
}
}
}