Skip to content

Commit a19d778

Browse files
committed
update
1 parent d056712 commit a19d778

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

databricks/sdk/data_plane.py

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
11
import threading
2-
from abc import ABC, abstractmethod
32
from dataclasses import dataclass
4-
from typing import Callable, List, Optional
3+
from typing import Callable, List
54

65
from databricks.sdk.oauth import Token
76

87

9-
@dataclass
10-
class DataPlaneInfo(ABC):
11-
"""
12-
Abstract base class for DataPlane information.
13-
"""
14-
15-
@property
16-
@abstractmethod
17-
def url(self) -> str:
18-
"""Gets the URL for the DataPlane endpoint."""
19-
20-
@property
21-
@abstractmethod
22-
def token(self) -> Optional[str]:
23-
"""Gets the token for the DataPlane endpoint."""
24-
25-
268
@dataclass
279
class DataPlaneDetails:
2810
"""
@@ -36,6 +18,7 @@ class DataPlaneDetails:
3618

3719
class DataPlaneService:
3820
"""Helper class to fetch and manage DataPlane details."""
21+
from .service.serving import DataPlaneInfo
3922

4023
def __init__(self):
4124
self._data_plane_info = {}

databricks/sdk/service/serving.py

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)