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
databricks/sdk/service/files.py
CHANGED
|
@@ -6,7 +6,8 @@ import logging
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from typing import Any, BinaryIO, Dict, Iterator, List, Optional
|
|
8
8
|
|
|
9
|
-
from ._internal import
|
|
9
|
+
from databricks.sdk.service._internal import (
|
|
10
|
+
_escape_multi_segment_path_parameter, _repeated_dict)
|
|
10
11
|
|
|
11
12
|
_LOG = logging.getLogger("databricks.sdk")
|
|
12
13
|
|
databricks/sdk/service/iam.py
CHANGED
|
@@ -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
|
|
|
@@ -3583,7 +3584,7 @@ class PermissionsAPI:
|
|
|
3583
3584
|
|
|
3584
3585
|
:param request_object_type: str
|
|
3585
3586
|
The type of the request object. Can be one of the following: alerts, alertsv2, authorization,
|
|
3586
|
-
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files,
|
|
3587
|
+
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files, genie,
|
|
3587
3588
|
instance-pools, jobs, notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or
|
|
3588
3589
|
warehouses.
|
|
3589
3590
|
:param request_object_id: str
|
|
@@ -3604,7 +3605,7 @@ class PermissionsAPI:
|
|
|
3604
3605
|
|
|
3605
3606
|
:param request_object_type: str
|
|
3606
3607
|
The type of the request object. Can be one of the following: alerts, alertsv2, authorization,
|
|
3607
|
-
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files,
|
|
3608
|
+
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files, genie,
|
|
3608
3609
|
instance-pools, jobs, notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or
|
|
3609
3610
|
warehouses.
|
|
3610
3611
|
:param request_object_id: str
|
|
@@ -3634,7 +3635,7 @@ class PermissionsAPI:
|
|
|
3634
3635
|
|
|
3635
3636
|
:param request_object_type: str
|
|
3636
3637
|
The type of the request object. Can be one of the following: alerts, alertsv2, authorization,
|
|
3637
|
-
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files,
|
|
3638
|
+
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files, genie,
|
|
3638
3639
|
instance-pools, jobs, notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or
|
|
3639
3640
|
warehouses.
|
|
3640
3641
|
:param request_object_id: str
|
|
@@ -3668,7 +3669,7 @@ class PermissionsAPI:
|
|
|
3668
3669
|
|
|
3669
3670
|
:param request_object_type: str
|
|
3670
3671
|
The type of the request object. Can be one of the following: alerts, alertsv2, authorization,
|
|
3671
|
-
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files,
|
|
3672
|
+
clusters, cluster-policies, dashboards, dbsql-dashboards, directories, experiments, files, genie,
|
|
3672
3673
|
instance-pools, jobs, notebooks, pipelines, queries, registered-models, repos, serving-endpoints, or
|
|
3673
3674
|
warehouses.
|
|
3674
3675
|
:param request_object_id: str
|
databricks/sdk/service/iamv2.py
CHANGED
|
@@ -7,7 +7,7 @@ from dataclasses import dataclass
|
|
|
7
7
|
from enum import Enum
|
|
8
8
|
from typing import Any, Dict, List, Optional
|
|
9
9
|
|
|
10
|
-
from ._internal import _enum, _from_dict, _repeated_enum
|
|
10
|
+
from databricks.sdk.service._internal import _enum, _from_dict, _repeated_enum
|
|
11
11
|
|
|
12
12
|
_LOG = logging.getLogger("databricks.sdk")
|
|
13
13
|
|
databricks/sdk/service/jobs.py
CHANGED
|
@@ -10,14 +10,15 @@ from datetime import timedelta
|
|
|
10
10
|
from enum import Enum
|
|
11
11
|
from typing import Any, Callable, Dict, Iterator, List, Optional
|
|
12
12
|
|
|
13
|
+
from databricks.sdk.service import compute
|
|
14
|
+
from databricks.sdk.service._internal import (Wait, _enum, _from_dict,
|
|
15
|
+
_repeated_dict)
|
|
16
|
+
|
|
13
17
|
from ..errors import OperationFailed
|
|
14
|
-
from ._internal import Wait, _enum, _from_dict, _repeated_dict
|
|
15
18
|
|
|
16
19
|
_LOG = logging.getLogger("databricks.sdk")
|
|
17
20
|
|
|
18
21
|
|
|
19
|
-
from databricks.sdk.service import compute
|
|
20
|
-
|
|
21
22
|
# all definitions in this file are in alphabetical order
|
|
22
23
|
|
|
23
24
|
|
|
@@ -7318,7 +7319,7 @@ class TableUpdateTriggerConfiguration:
|
|
|
7318
7319
|
last time the trigger fired. The minimum allowed value is 60 seconds."""
|
|
7319
7320
|
|
|
7320
7321
|
table_names: Optional[List[str]] = None
|
|
7321
|
-
"""A list of
|
|
7322
|
+
"""A list of tables to monitor for changes. The table name must be in the format
|
|
7322
7323
|
`catalog_name.schema_name.table_name`."""
|
|
7323
7324
|
|
|
7324
7325
|
wait_after_last_change_seconds: Optional[int] = None
|
|
@@ -8428,11 +8429,7 @@ class JobsAPI:
|
|
|
8428
8429
|
}
|
|
8429
8430
|
|
|
8430
8431
|
op_response = self._api.do("POST", "/api/2.2/jobs/runs/cancel", body=body, headers=headers)
|
|
8431
|
-
return Wait(
|
|
8432
|
-
self.wait_get_run_job_terminated_or_skipped,
|
|
8433
|
-
response=CancelRunResponse.from_dict(op_response),
|
|
8434
|
-
run_id=run_id,
|
|
8435
|
-
)
|
|
8432
|
+
return Wait(self.wait_get_run_job_terminated_or_skipped, run_id=run_id)
|
|
8436
8433
|
|
|
8437
8434
|
def cancel_run_and_wait(self, run_id: int, timeout=timedelta(minutes=20)) -> Run:
|
|
8438
8435
|
return self.cancel_run(run_id=run_id).result(timeout=timeout)
|
|
@@ -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
|
|
|
@@ -44,6 +45,7 @@ class AssetType(Enum):
|
|
|
44
45
|
ASSET_TYPE_APP = "ASSET_TYPE_APP"
|
|
45
46
|
ASSET_TYPE_DATA_TABLE = "ASSET_TYPE_DATA_TABLE"
|
|
46
47
|
ASSET_TYPE_GIT_REPO = "ASSET_TYPE_GIT_REPO"
|
|
48
|
+
ASSET_TYPE_MCP = "ASSET_TYPE_MCP"
|
|
47
49
|
ASSET_TYPE_MEDIA = "ASSET_TYPE_MEDIA"
|
|
48
50
|
ASSET_TYPE_MODEL = "ASSET_TYPE_MODEL"
|
|
49
51
|
ASSET_TYPE_NOTEBOOK = "ASSET_TYPE_NOTEBOOK"
|
databricks/sdk/service/ml.py
CHANGED
|
@@ -10,8 +10,10 @@ from datetime import timedelta
|
|
|
10
10
|
from enum import Enum
|
|
11
11
|
from typing import Any, Callable, Dict, Iterator, List, Optional
|
|
12
12
|
|
|
13
|
+
from databricks.sdk.service._internal import (Wait, _enum, _from_dict,
|
|
14
|
+
_repeated_dict, _repeated_enum)
|
|
15
|
+
|
|
13
16
|
from ..errors import OperationFailed
|
|
14
|
-
from ._internal import Wait, _enum, _from_dict, _repeated_dict, _repeated_enum
|
|
15
17
|
|
|
16
18
|
_LOG = logging.getLogger("databricks.sdk")
|
|
17
19
|
|
databricks/sdk/service/oauth2.py
CHANGED
|
@@ -6,7 +6,7 @@ import logging
|
|
|
6
6
|
from dataclasses import dataclass
|
|
7
7
|
from typing import Any, Dict, Iterator, List, Optional
|
|
8
8
|
|
|
9
|
-
from ._internal import _from_dict, _repeated_dict
|
|
9
|
+
from databricks.sdk.service._internal import _from_dict, _repeated_dict
|
|
10
10
|
|
|
11
11
|
_LOG = logging.getLogger("databricks.sdk")
|
|
12
12
|
|
|
@@ -10,14 +10,15 @@ from datetime import timedelta
|
|
|
10
10
|
from enum import Enum
|
|
11
11
|
from typing import Any, Callable, Dict, Iterator, List, Optional
|
|
12
12
|
|
|
13
|
+
from databricks.sdk.service import compute
|
|
14
|
+
from databricks.sdk.service._internal import (Wait, _enum, _from_dict,
|
|
15
|
+
_repeated_dict, _repeated_enum)
|
|
16
|
+
|
|
13
17
|
from ..errors import OperationFailed
|
|
14
|
-
from ._internal import Wait, _enum, _from_dict, _repeated_dict, _repeated_enum
|
|
15
18
|
|
|
16
19
|
_LOG = logging.getLogger("databricks.sdk")
|
|
17
20
|
|
|
18
21
|
|
|
19
|
-
from databricks.sdk.service import compute
|
|
20
|
-
|
|
21
22
|
# all definitions in this file are in alphabetical order
|
|
22
23
|
|
|
23
24
|
|
|
@@ -3775,9 +3776,7 @@ class PipelinesAPI:
|
|
|
3775
3776
|
}
|
|
3776
3777
|
|
|
3777
3778
|
op_response = self._api.do("POST", f"/api/2.0/pipelines/{pipeline_id}/stop", headers=headers)
|
|
3778
|
-
return Wait(
|
|
3779
|
-
self.wait_get_pipeline_idle, response=StopPipelineResponse.from_dict(op_response), pipeline_id=pipeline_id
|
|
3780
|
-
)
|
|
3779
|
+
return Wait(self.wait_get_pipeline_idle, pipeline_id=pipeline_id)
|
|
3781
3780
|
|
|
3782
3781
|
def stop_and_wait(self, pipeline_id: str, timeout=timedelta(minutes=20)) -> GetPipelineResponse:
|
|
3783
3782
|
return self.stop(pipeline_id=pipeline_id).result(timeout=timeout)
|