Cleanup Synapse+Spark Logic (#813)

This commit is contained in:
Steve Faulkner
2021-05-25 14:46:52 -05:00
committed by GitHub
parent 522fdc69ab
commit e7e15c54b3
22 changed files with 46 additions and 6746 deletions

View File

@@ -1,6 +1,6 @@
import * as DataModels from "../Contracts/DataModels";
import * as Logger from "../Common/Logger";
import { getErrorMessage } from "../Common/ErrorHandlingUtils";
import * as Logger from "../Common/Logger";
import * as DataModels from "../Contracts/DataModels";
interface KernelConnectionMetadata {
name: string;
@@ -64,14 +64,13 @@ export const configureServiceEndpoints = async (
return Promise.reject("Invalid or missing cluster connection info");
}
const dataExplorer = window.dataExplorer;
const notebookEndpointInfo: DataModels.NotebookConfigurationEndpointInfo[] = clusterConnectionInfo.endpoints.map(
(clusterEndpoint) => ({
type: clusterEndpoint.kind.toLowerCase(),
endpoint: clusterEndpoint && clusterEndpoint.endpoint,
username: clusterConnectionInfo.userName,
password: clusterConnectionInfo.password,
token: dataExplorer && dataExplorer.arcadiaToken(),
token: "", // TODO. This was arcadiaToken() when our synapse/spark integration comes back
})
);
const configurationEndpoints: DataModels.NotebookConfigurationEndpoints = {

View File

@@ -6,6 +6,8 @@
Generated from: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-03-01/workspace.json
*/
import { ARMResourceProperties } from "../cosmos/types";
/* Workspace active directory administrator properties */
export interface AadAdminProperties {
/* Tenant ID of the workspace active directory administrator */
@@ -113,13 +115,13 @@ export interface PurviewConfiguration {
}
/* Workspace active directory administrator */
export type WorkspaceAadAdminInfo = unknown & {
export type WorkspaceAadAdminInfo = ARMResourceProperties & {
/* Workspace active directory administrator properties */
properties?: AadAdminProperties;
};
/* A workspace */
export type Workspace = unknown & {
export type Workspace = ARMResourceProperties & {
/* Workspace resource properties */
properties?: WorkspaceProperties;
@@ -209,7 +211,7 @@ export interface WorkspacePatchProperties {
}
/* Sql Control Settings for workspace managed identity */
export type ManagedIdentitySqlControlSettingsModel = unknown & {
export type ManagedIdentitySqlControlSettingsModel = ARMResourceProperties & {
/* Sql Control Settings for workspace managed identity */
properties?: unknown;
};
@@ -235,7 +237,7 @@ export interface RestorableDroppedSqlPoolProperties {
}
/* A restorable dropped Sql pool */
export type RestorableDroppedSqlPool = unknown & {
export type RestorableDroppedSqlPool = ARMResourceProperties & {
/* The geo-location where the resource lives */
readonly location?: string;
/* The properties of a restorable dropped Sql pool */