mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-28 15:50:29 -04:00
simplify object management feature APIs (#22781)
This commit is contained in:
@@ -1534,103 +1534,51 @@ export namespace ExecutionPlanComparisonRequest {
|
||||
// ------------------------------- < Execution Plan > ------------------------------------
|
||||
|
||||
// ------------------------------- < Object Management > ------------------------------------
|
||||
export interface InitializeLoginViewRequestParams {
|
||||
export interface InitializeViewRequestParams {
|
||||
connectionUri: string;
|
||||
contextId: string;
|
||||
isNewObject: boolean;
|
||||
name: string | undefined;
|
||||
}
|
||||
|
||||
export namespace InitializeLoginViewRequest {
|
||||
export const type = new RequestType<InitializeLoginViewRequestParams, mssql.ObjectManagement.LoginViewInfo, void, void>('objectManagement/initializeLoginView');
|
||||
}
|
||||
|
||||
export interface CreateLoginRequestParams {
|
||||
contextId: string;
|
||||
login: mssql.ObjectManagement.Login;
|
||||
}
|
||||
|
||||
export namespace CreateLoginRequest {
|
||||
export const type = new RequestType<CreateLoginRequestParams, void, void, void>('objectManagement/createLogin');
|
||||
}
|
||||
|
||||
export interface ScriptLoginRequestParams {
|
||||
contextId: string;
|
||||
login: mssql.ObjectManagement.Login;
|
||||
}
|
||||
|
||||
export namespace ScriptLoginRequest {
|
||||
export const type = new RequestType<ScriptLoginRequestParams, string, void, void>('objectManagement/scriptLogin');
|
||||
}
|
||||
|
||||
export interface UpdateLoginRequestParams {
|
||||
contextId: string;
|
||||
login: mssql.ObjectManagement.Login;
|
||||
}
|
||||
|
||||
export namespace UpdateLoginRequest {
|
||||
export const type = new RequestType<UpdateLoginRequestParams, void, void, void>('objectManagement/updateLogin');
|
||||
}
|
||||
|
||||
export interface DisposeLoginViewRequestParams {
|
||||
contextId: string;
|
||||
}
|
||||
|
||||
export namespace DisposeLoginViewRequest {
|
||||
export const type = new RequestType<DisposeLoginViewRequestParams, void, void, void>('objectManagement/disposeLoginView');
|
||||
}
|
||||
|
||||
export interface InitializeUserViewRequestParams {
|
||||
connectionUri: string;
|
||||
contextId: string;
|
||||
isNewObject: boolean;
|
||||
database: string;
|
||||
name: string | undefined;
|
||||
}
|
||||
|
||||
export namespace InitializeUserViewRequest {
|
||||
export const type = new RequestType<InitializeUserViewRequestParams, mssql.ObjectManagement.UserViewInfo, void, void>('objectManagement/initializeUserView');
|
||||
}
|
||||
|
||||
export interface CreateUserRequestParams {
|
||||
contextId: string;
|
||||
user: mssql.ObjectManagement.User;
|
||||
isNewObject: boolean;
|
||||
objectType: string;
|
||||
parentUrn: string;
|
||||
objectUrn?: string;
|
||||
}
|
||||
|
||||
export namespace CreateUserRequest {
|
||||
export const type = new RequestType<CreateUserRequestParams, void, void, void>('objectManagement/createUser');
|
||||
export namespace InitializeViewRequest {
|
||||
export const type = new RequestType<InitializeViewRequestParams, mssql.ObjectManagement.ObjectViewInfo<mssql.ObjectManagement.SqlObject>, void, void>('objectManagement/initializeView');
|
||||
}
|
||||
|
||||
export interface ScriptUserRequestParams {
|
||||
export interface SaveObjectRequestParams {
|
||||
contextId: string;
|
||||
user: mssql.ObjectManagement.User;
|
||||
object: mssql.ObjectManagement.SqlObject;
|
||||
}
|
||||
|
||||
export namespace ScriptUserRequest {
|
||||
export const type = new RequestType<ScriptUserRequestParams, string, void, void>('objectManagement/scriptUser');
|
||||
export namespace SaveObjectRequest {
|
||||
export const type = new RequestType<SaveObjectRequestParams, void, void, void>('objectManagement/save');
|
||||
}
|
||||
|
||||
export interface UpdateUserRequestParams {
|
||||
export interface ScriptObjectRequestParams {
|
||||
contextId: string;
|
||||
user: mssql.ObjectManagement.User;
|
||||
object: mssql.ObjectManagement.SqlObject;
|
||||
}
|
||||
|
||||
export namespace UpdateUserRequest {
|
||||
export const type = new RequestType<UpdateUserRequestParams, void, void, void>('objectManagement/updateUser');
|
||||
export namespace ScriptObjectRequest {
|
||||
export const type = new RequestType<ScriptObjectRequestParams, string, void, void>('objectManagement/script');
|
||||
}
|
||||
|
||||
export interface DisposeUserViewRequestParams {
|
||||
export interface DisposeViewRequestParams {
|
||||
contextId: string;
|
||||
}
|
||||
|
||||
export namespace DisposeUserViewRequest {
|
||||
export const type = new RequestType<DisposeUserViewRequestParams, void, void, void>('objectManagement/disposeUserView');
|
||||
export namespace DisposeViewRequest {
|
||||
export const type = new RequestType<DisposeViewRequestParams, void, void, void>('objectManagement/disposeView');
|
||||
}
|
||||
|
||||
export interface RenameObjectRequestParams {
|
||||
connectionUri: string;
|
||||
newName: string;
|
||||
objectUrn: string;
|
||||
objectType: mssql.ObjectManagement.NodeType;
|
||||
}
|
||||
|
||||
export namespace RenameObjectRequest {
|
||||
@@ -1640,11 +1588,13 @@ export namespace RenameObjectRequest {
|
||||
export interface DropObjectRequestParams {
|
||||
connectionUri: string;
|
||||
objectUrn: string;
|
||||
objectType: mssql.ObjectManagement.NodeType;
|
||||
}
|
||||
|
||||
export namespace DropObjectRequest {
|
||||
export const type = new RequestType<DropObjectRequestParams, void, void, void>('objectManagement/drop');
|
||||
}
|
||||
|
||||
// ------------------------------- < Object Management > ------------------------------------
|
||||
|
||||
// ------------------------------- < Encryption IV/KEY updation Event > ------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user