Skip to content

Commit cbae014

Browse files
authored
[Internal] Decouple oauth2 and serving (#855)
## What changes are proposed in this pull request? This PR removes serving.py's indirect dependency on oauth2.py by moving DataPlaneInfo to serving.py. This change is also reflected in the OpenAPI specification. It narrows down import scopes to prevent circular dependencies. ## How is this tested? Existing Unit tests.
1 parent d907c0c commit cbae014

File tree

10 files changed

+254
-84
lines changed

10 files changed

+254
-84
lines changed

.codegen/_openapi_sha

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a6a317df8327c9b1e5cb59a03a42ffa2aabeef6d
1+
779817ed8d63031f5ea761fbd25ee84f38feec0d

databricks/sdk/__init__.py

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/data_plane.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from typing import Callable, List
44

55
from databricks.sdk.oauth import Token
6-
from databricks.sdk.service.oauth2 import DataPlaneInfo
76

87

98
@dataclass
@@ -19,6 +18,7 @@ class DataPlaneDetails:
1918

2019
class DataPlaneService:
2120
"""Helper class to fetch and manage DataPlane details."""
21+
from .service.serving import DataPlaneInfo
2222

2323
def __init__(self):
2424
self._data_plane_info = {}

databricks/sdk/service/apps.py

+10-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/catalog.py

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/jobs.py

+84-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/oauth2.py

+33-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)