databricks-sdk 0.66.0__py3-none-any.whl → 0.68.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +10 -3
- databricks/sdk/_base_client.py +4 -1
- databricks/sdk/common/lro.py +17 -0
- databricks/sdk/common/types/__init__.py +0 -0
- databricks/sdk/common/types/fieldmask.py +39 -0
- databricks/sdk/credentials_provider.py +61 -12
- databricks/sdk/dbutils.py +5 -1
- databricks/sdk/errors/parser.py +8 -3
- databricks/sdk/mixins/files.py +1 -0
- databricks/sdk/oidc_token_supplier.py +80 -0
- databricks/sdk/retries.py +102 -2
- databricks/sdk/service/_internal.py +93 -1
- databricks/sdk/service/agentbricks.py +1 -1
- databricks/sdk/service/apps.py +264 -1
- databricks/sdk/service/billing.py +2 -3
- databricks/sdk/service/catalog.py +1030 -537
- databricks/sdk/service/cleanrooms.py +3 -3
- databricks/sdk/service/compute.py +21 -33
- databricks/sdk/service/dashboards.py +51 -3
- databricks/sdk/service/database.py +99 -8
- databricks/sdk/service/dataquality.py +1145 -0
- databricks/sdk/service/files.py +2 -1
- databricks/sdk/service/iam.py +6 -5
- databricks/sdk/service/iamv2.py +1 -1
- databricks/sdk/service/jobs.py +6 -9
- databricks/sdk/service/marketplace.py +3 -1
- databricks/sdk/service/ml.py +3 -1
- databricks/sdk/service/oauth2.py +1 -1
- databricks/sdk/service/pipelines.py +5 -6
- databricks/sdk/service/provisioning.py +544 -655
- databricks/sdk/service/qualitymonitorv2.py +1 -1
- databricks/sdk/service/serving.py +59 -1
- databricks/sdk/service/settings.py +5 -2
- databricks/sdk/service/settingsv2.py +1 -1
- databricks/sdk/service/sharing.py +12 -3
- databricks/sdk/service/sql.py +305 -70
- databricks/sdk/service/tags.py +1 -1
- databricks/sdk/service/vectorsearch.py +3 -1
- databricks/sdk/service/workspace.py +70 -17
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.66.0.dist-info → databricks_sdk-0.68.0.dist-info}/METADATA +4 -2
- databricks_sdk-0.68.0.dist-info/RECORD +83 -0
- databricks_sdk-0.66.0.dist-info/RECORD +0 -79
- {databricks_sdk-0.66.0.dist-info → databricks_sdk-0.68.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.66.0.dist-info → databricks_sdk-0.68.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.66.0.dist-info → databricks_sdk-0.68.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.66.0.dist-info → databricks_sdk-0.68.0.dist-info}/top_level.txt +0 -0
|
@@ -7,7 +7,7 @@ from dataclasses import dataclass
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Any, Dict, Iterator, List, Optional
|
|
9
9
|
|
|
10
|
-
from ._internal import _enum, _from_dict, _repeated_dict
|
|
10
|
+
from databricks.sdk.service._internal import _enum, _from_dict, _repeated_dict
|
|
11
11
|
|
|
12
12
|
_LOG = logging.getLogger("databricks.sdk")
|
|
13
13
|
|
|
@@ -13,8 +13,10 @@ from typing import Any, BinaryIO, Callable, Dict, Iterator, List, Optional
|
|
|
13
13
|
|
|
14
14
|
import requests
|
|
15
15
|
|
|
16
|
+
from databricks.sdk.service._internal import (Wait, _enum, _from_dict,
|
|
17
|
+
_repeated_dict)
|
|
18
|
+
|
|
16
19
|
from ..errors import OperationFailed
|
|
17
|
-
from ._internal import Wait, _enum, _from_dict, _repeated_dict
|
|
18
20
|
|
|
19
21
|
_LOG = logging.getLogger("databricks.sdk")
|
|
20
22
|
|
|
@@ -3905,6 +3907,38 @@ class TrafficConfig:
|
|
|
3905
3907
|
return cls(routes=_repeated_dict(d, "routes", Route))
|
|
3906
3908
|
|
|
3907
3909
|
|
|
3910
|
+
@dataclass
|
|
3911
|
+
class UpdateInferenceEndpointNotificationsResponse:
|
|
3912
|
+
email_notifications: Optional[EmailNotifications] = None
|
|
3913
|
+
|
|
3914
|
+
name: Optional[str] = None
|
|
3915
|
+
|
|
3916
|
+
def as_dict(self) -> dict:
|
|
3917
|
+
"""Serializes the UpdateInferenceEndpointNotificationsResponse into a dictionary suitable for use as a JSON request body."""
|
|
3918
|
+
body = {}
|
|
3919
|
+
if self.email_notifications:
|
|
3920
|
+
body["email_notifications"] = self.email_notifications.as_dict()
|
|
3921
|
+
if self.name is not None:
|
|
3922
|
+
body["name"] = self.name
|
|
3923
|
+
return body
|
|
3924
|
+
|
|
3925
|
+
def as_shallow_dict(self) -> dict:
|
|
3926
|
+
"""Serializes the UpdateInferenceEndpointNotificationsResponse into a shallow dictionary of its immediate attributes."""
|
|
3927
|
+
body = {}
|
|
3928
|
+
if self.email_notifications:
|
|
3929
|
+
body["email_notifications"] = self.email_notifications
|
|
3930
|
+
if self.name is not None:
|
|
3931
|
+
body["name"] = self.name
|
|
3932
|
+
return body
|
|
3933
|
+
|
|
3934
|
+
@classmethod
|
|
3935
|
+
def from_dict(cls, d: Dict[str, Any]) -> UpdateInferenceEndpointNotificationsResponse:
|
|
3936
|
+
"""Deserializes the UpdateInferenceEndpointNotificationsResponse from a dictionary."""
|
|
3937
|
+
return cls(
|
|
3938
|
+
email_notifications=_from_dict(d, "email_notifications", EmailNotifications), name=d.get("name", None)
|
|
3939
|
+
)
|
|
3940
|
+
|
|
3941
|
+
|
|
3908
3942
|
@dataclass
|
|
3909
3943
|
class V1ResponseChoiceElement:
|
|
3910
3944
|
finish_reason: Optional[str] = None
|
|
@@ -4706,6 +4740,30 @@ class ServingEndpointsAPI:
|
|
|
4706
4740
|
traffic_config=traffic_config,
|
|
4707
4741
|
).result(timeout=timeout)
|
|
4708
4742
|
|
|
4743
|
+
def update_notifications(
|
|
4744
|
+
self, name: str, *, email_notifications: Optional[EmailNotifications] = None
|
|
4745
|
+
) -> UpdateInferenceEndpointNotificationsResponse:
|
|
4746
|
+
"""Updates the email and webhook notification settings for an endpoint.
|
|
4747
|
+
|
|
4748
|
+
:param name: str
|
|
4749
|
+
The name of the serving endpoint whose notifications are being updated. This field is required.
|
|
4750
|
+
:param email_notifications: :class:`EmailNotifications` (optional)
|
|
4751
|
+
The email notification settings to update. Specify email addresses to notify when endpoint state
|
|
4752
|
+
changes occur.
|
|
4753
|
+
|
|
4754
|
+
:returns: :class:`UpdateInferenceEndpointNotificationsResponse`
|
|
4755
|
+
"""
|
|
4756
|
+
body = {}
|
|
4757
|
+
if email_notifications is not None:
|
|
4758
|
+
body["email_notifications"] = email_notifications.as_dict()
|
|
4759
|
+
headers = {
|
|
4760
|
+
"Accept": "application/json",
|
|
4761
|
+
"Content-Type": "application/json",
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4764
|
+
res = self._api.do("PATCH", f"/api/2.0/serving-endpoints/{name}/notifications", body=body, headers=headers)
|
|
4765
|
+
return UpdateInferenceEndpointNotificationsResponse.from_dict(res)
|
|
4766
|
+
|
|
4709
4767
|
def update_permissions(
|
|
4710
4768
|
self,
|
|
4711
4769
|
serving_endpoint_id: str,
|
|
@@ -7,7 +7,8 @@ from dataclasses import dataclass
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Any, Dict, Iterator, List, Optional
|
|
9
9
|
|
|
10
|
-
from ._internal import _enum, _from_dict,
|
|
10
|
+
from databricks.sdk.service._internal import (_enum, _from_dict,
|
|
11
|
+
_repeated_dict, _repeated_enum)
|
|
11
12
|
|
|
12
13
|
_LOG = logging.getLogger("databricks.sdk")
|
|
13
14
|
|
|
@@ -660,7 +661,8 @@ class ComplianceSecurityProfileSetting:
|
|
|
660
661
|
|
|
661
662
|
|
|
662
663
|
class ComplianceStandard(Enum):
|
|
663
|
-
"""Compliance
|
|
664
|
+
"""Compliance standard for SHIELD customers. See README.md for how instructions of how to add new
|
|
665
|
+
standards."""
|
|
664
666
|
|
|
665
667
|
CANADA_PROTECTED_B = "CANADA_PROTECTED_B"
|
|
666
668
|
CYBER_ESSENTIAL_PLUS = "CYBER_ESSENTIAL_PLUS"
|
|
@@ -668,6 +670,7 @@ class ComplianceStandard(Enum):
|
|
|
668
670
|
FEDRAMP_IL5 = "FEDRAMP_IL5"
|
|
669
671
|
FEDRAMP_MODERATE = "FEDRAMP_MODERATE"
|
|
670
672
|
GERMANY_C5 = "GERMANY_C5"
|
|
673
|
+
GERMANY_TISAX = "GERMANY_TISAX"
|
|
671
674
|
HIPAA = "HIPAA"
|
|
672
675
|
HITRUST = "HITRUST"
|
|
673
676
|
IRAP_PROTECTED = "IRAP_PROTECTED"
|
|
@@ -7,7 +7,7 @@ from dataclasses import dataclass
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Any, Dict, Iterator, List, Optional
|
|
9
9
|
|
|
10
|
-
from ._internal import _enum, _from_dict, _repeated_dict
|
|
10
|
+
from databricks.sdk.service._internal import _enum, _from_dict, _repeated_dict
|
|
11
11
|
|
|
12
12
|
_LOG = logging.getLogger("databricks.sdk")
|
|
13
13
|
|
|
@@ -7,13 +7,13 @@ from dataclasses import dataclass
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Any, Dict, Iterator, List, Optional
|
|
9
9
|
|
|
10
|
-
from .
|
|
10
|
+
from databricks.sdk.service import catalog
|
|
11
|
+
from databricks.sdk.service._internal import (_enum, _from_dict,
|
|
12
|
+
_repeated_dict, _repeated_enum)
|
|
11
13
|
|
|
12
14
|
_LOG = logging.getLogger("databricks.sdk")
|
|
13
15
|
|
|
14
16
|
|
|
15
|
-
from databricks.sdk.service import catalog
|
|
16
|
-
|
|
17
17
|
# all definitions in this file are in alphabetical order
|
|
18
18
|
|
|
19
19
|
|
|
@@ -2310,6 +2310,10 @@ class TableInternalAttributes:
|
|
|
2310
2310
|
auxiliary_managed_location: Optional[str] = None
|
|
2311
2311
|
"""Managed Delta Metadata location for foreign iceberg tables."""
|
|
2312
2312
|
|
|
2313
|
+
dependency_storage_locations: Optional[List[str]] = None
|
|
2314
|
+
"""Storage locations of all table dependencies for shared views. Used on the recipient side for SEG
|
|
2315
|
+
(Secure Egress Gateway) whitelisting."""
|
|
2316
|
+
|
|
2313
2317
|
parent_storage_location: Optional[str] = None
|
|
2314
2318
|
"""Will be populated in the reconciliation response for VIEW and FOREIGN_TABLE, with the value of
|
|
2315
2319
|
the parent UC entity's storage_location, following the same logic as getManagedEntityPath in
|
|
@@ -2332,6 +2336,8 @@ class TableInternalAttributes:
|
|
|
2332
2336
|
body = {}
|
|
2333
2337
|
if self.auxiliary_managed_location is not None:
|
|
2334
2338
|
body["auxiliary_managed_location"] = self.auxiliary_managed_location
|
|
2339
|
+
if self.dependency_storage_locations:
|
|
2340
|
+
body["dependency_storage_locations"] = [v for v in self.dependency_storage_locations]
|
|
2335
2341
|
if self.parent_storage_location is not None:
|
|
2336
2342
|
body["parent_storage_location"] = self.parent_storage_location
|
|
2337
2343
|
if self.storage_location is not None:
|
|
@@ -2347,6 +2353,8 @@ class TableInternalAttributes:
|
|
|
2347
2353
|
body = {}
|
|
2348
2354
|
if self.auxiliary_managed_location is not None:
|
|
2349
2355
|
body["auxiliary_managed_location"] = self.auxiliary_managed_location
|
|
2356
|
+
if self.dependency_storage_locations:
|
|
2357
|
+
body["dependency_storage_locations"] = self.dependency_storage_locations
|
|
2350
2358
|
if self.parent_storage_location is not None:
|
|
2351
2359
|
body["parent_storage_location"] = self.parent_storage_location
|
|
2352
2360
|
if self.storage_location is not None:
|
|
@@ -2362,6 +2370,7 @@ class TableInternalAttributes:
|
|
|
2362
2370
|
"""Deserializes the TableInternalAttributes from a dictionary."""
|
|
2363
2371
|
return cls(
|
|
2364
2372
|
auxiliary_managed_location=d.get("auxiliary_managed_location", None),
|
|
2373
|
+
dependency_storage_locations=d.get("dependency_storage_locations", None),
|
|
2365
2374
|
parent_storage_location=d.get("parent_storage_location", None),
|
|
2366
2375
|
storage_location=d.get("storage_location", None),
|
|
2367
2376
|
type=_enum(d, "type", TableInternalAttributesSharedTableType),
|