databricks-sdk 0.56.0__py3-none-any.whl → 0.57.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 +15 -9
- databricks/sdk/service/aibuilder.py +157 -16
- databricks/sdk/service/apps.py +14 -42
- databricks/sdk/service/billing.py +17 -51
- databricks/sdk/service/catalog.py +198 -399
- databricks/sdk/service/cleanrooms.py +11 -33
- databricks/sdk/service/compute.py +63 -189
- databricks/sdk/service/dashboards.py +21 -63
- databricks/sdk/service/database.py +45 -30
- databricks/sdk/service/files.py +18 -54
- databricks/sdk/service/iam.py +55 -165
- databricks/sdk/service/jobs.py +232 -85
- databricks/sdk/service/marketplace.py +46 -146
- databricks/sdk/service/ml.py +455 -216
- databricks/sdk/service/oauth2.py +17 -45
- databricks/sdk/service/pipelines.py +81 -40
- databricks/sdk/service/provisioning.py +30 -90
- databricks/sdk/service/qualitymonitorv2.py +5 -15
- databricks/sdk/service/serving.py +30 -42
- databricks/sdk/service/settings.py +103 -314
- databricks/sdk/service/sharing.py +30 -86
- databricks/sdk/service/sql.py +74 -184
- databricks/sdk/service/vectorsearch.py +13 -43
- databricks/sdk/service/workspace.py +35 -105
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/RECORD +31 -31
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.56.0.dist-info → databricks_sdk-0.57.0.dist-info}/top_level.txt +0 -0
databricks/sdk/service/oauth2.py
CHANGED
|
@@ -1355,8 +1355,6 @@ class CustomAppIntegrationAPI:
|
|
|
1355
1355
|
) -> CreateCustomAppIntegrationOutput:
|
|
1356
1356
|
"""Create Custom OAuth App Integration.
|
|
1357
1357
|
|
|
1358
|
-
Create Custom OAuth App Integration.
|
|
1359
|
-
|
|
1360
1358
|
You can retrieve the custom OAuth app integration via :method:CustomAppIntegration/get.
|
|
1361
1359
|
|
|
1362
1360
|
:param confidential: bool (optional)
|
|
@@ -1403,9 +1401,7 @@ class CustomAppIntegrationAPI:
|
|
|
1403
1401
|
return CreateCustomAppIntegrationOutput.from_dict(res)
|
|
1404
1402
|
|
|
1405
1403
|
def delete(self, integration_id: str):
|
|
1406
|
-
"""Delete Custom OAuth App Integration.
|
|
1407
|
-
|
|
1408
|
-
Delete an existing Custom OAuth App Integration. You can retrieve the custom OAuth app integration via
|
|
1404
|
+
"""Delete an existing Custom OAuth App Integration. You can retrieve the custom OAuth app integration via
|
|
1409
1405
|
:method:CustomAppIntegration/get.
|
|
1410
1406
|
|
|
1411
1407
|
:param integration_id: str
|
|
@@ -1424,9 +1420,7 @@ class CustomAppIntegrationAPI:
|
|
|
1424
1420
|
)
|
|
1425
1421
|
|
|
1426
1422
|
def get(self, integration_id: str) -> GetCustomAppIntegrationOutput:
|
|
1427
|
-
"""
|
|
1428
|
-
|
|
1429
|
-
Gets the Custom OAuth App Integration for the given integration id.
|
|
1423
|
+
"""Gets the Custom OAuth App Integration for the given integration id.
|
|
1430
1424
|
|
|
1431
1425
|
:param integration_id: str
|
|
1432
1426
|
The OAuth app integration ID.
|
|
@@ -1452,9 +1446,7 @@ class CustomAppIntegrationAPI:
|
|
|
1452
1446
|
page_size: Optional[int] = None,
|
|
1453
1447
|
page_token: Optional[str] = None,
|
|
1454
1448
|
) -> Iterator[GetCustomAppIntegrationOutput]:
|
|
1455
|
-
"""Get custom
|
|
1456
|
-
|
|
1457
|
-
Get the list of custom OAuth app integrations for the specified Databricks account
|
|
1449
|
+
"""Get the list of custom OAuth app integrations for the specified Databricks account
|
|
1458
1450
|
|
|
1459
1451
|
:param include_creator_username: bool (optional)
|
|
1460
1452
|
:param page_size: int (optional)
|
|
@@ -1497,9 +1489,7 @@ class CustomAppIntegrationAPI:
|
|
|
1497
1489
|
token_access_policy: Optional[TokenAccessPolicy] = None,
|
|
1498
1490
|
user_authorized_scopes: Optional[List[str]] = None,
|
|
1499
1491
|
):
|
|
1500
|
-
"""Updates
|
|
1501
|
-
|
|
1502
|
-
Updates an existing custom OAuth App Integration. You can retrieve the custom OAuth app integration
|
|
1492
|
+
"""Updates an existing custom OAuth App Integration. You can retrieve the custom OAuth app integration
|
|
1503
1493
|
via :method:CustomAppIntegration/get.
|
|
1504
1494
|
|
|
1505
1495
|
:param integration_id: str
|
|
@@ -1549,9 +1539,7 @@ class OAuthPublishedAppsAPI:
|
|
|
1549
1539
|
def list(
|
|
1550
1540
|
self, *, page_size: Optional[int] = None, page_token: Optional[str] = None
|
|
1551
1541
|
) -> Iterator[PublishedAppOutput]:
|
|
1552
|
-
"""Get all the published OAuth apps.
|
|
1553
|
-
|
|
1554
|
-
Get all the available published OAuth apps in Databricks.
|
|
1542
|
+
"""Get all the available published OAuth apps in Databricks.
|
|
1555
1543
|
|
|
1556
1544
|
:param page_size: int (optional)
|
|
1557
1545
|
The max number of OAuth published apps to return in one page.
|
|
@@ -1594,8 +1582,6 @@ class PublishedAppIntegrationAPI:
|
|
|
1594
1582
|
) -> CreatePublishedAppIntegrationOutput:
|
|
1595
1583
|
"""Create Published OAuth App Integration.
|
|
1596
1584
|
|
|
1597
|
-
Create Published OAuth App Integration.
|
|
1598
|
-
|
|
1599
1585
|
You can retrieve the published OAuth app integration via :method:PublishedAppIntegration/get.
|
|
1600
1586
|
|
|
1601
1587
|
:param app_id: str (optional)
|
|
@@ -1624,9 +1610,7 @@ class PublishedAppIntegrationAPI:
|
|
|
1624
1610
|
return CreatePublishedAppIntegrationOutput.from_dict(res)
|
|
1625
1611
|
|
|
1626
1612
|
def delete(self, integration_id: str):
|
|
1627
|
-
"""Delete Published OAuth App Integration.
|
|
1628
|
-
|
|
1629
|
-
Delete an existing Published OAuth App Integration. You can retrieve the published OAuth app
|
|
1613
|
+
"""Delete an existing Published OAuth App Integration. You can retrieve the published OAuth app
|
|
1630
1614
|
integration via :method:PublishedAppIntegration/get.
|
|
1631
1615
|
|
|
1632
1616
|
:param integration_id: str
|
|
@@ -1645,9 +1629,7 @@ class PublishedAppIntegrationAPI:
|
|
|
1645
1629
|
)
|
|
1646
1630
|
|
|
1647
1631
|
def get(self, integration_id: str) -> GetPublishedAppIntegrationOutput:
|
|
1648
|
-
"""
|
|
1649
|
-
|
|
1650
|
-
Gets the Published OAuth App Integration for the given integration id.
|
|
1632
|
+
"""Gets the Published OAuth App Integration for the given integration id.
|
|
1651
1633
|
|
|
1652
1634
|
:param integration_id: str
|
|
1653
1635
|
|
|
@@ -1668,9 +1650,7 @@ class PublishedAppIntegrationAPI:
|
|
|
1668
1650
|
def list(
|
|
1669
1651
|
self, *, page_size: Optional[int] = None, page_token: Optional[str] = None
|
|
1670
1652
|
) -> Iterator[GetPublishedAppIntegrationOutput]:
|
|
1671
|
-
"""Get published
|
|
1672
|
-
|
|
1673
|
-
Get the list of published OAuth app integrations for the specified Databricks account
|
|
1653
|
+
"""Get the list of published OAuth app integrations for the specified Databricks account
|
|
1674
1654
|
|
|
1675
1655
|
:param page_size: int (optional)
|
|
1676
1656
|
:param page_token: str (optional)
|
|
@@ -1702,9 +1682,7 @@ class PublishedAppIntegrationAPI:
|
|
|
1702
1682
|
query["page_token"] = json["next_page_token"]
|
|
1703
1683
|
|
|
1704
1684
|
def update(self, integration_id: str, *, token_access_policy: Optional[TokenAccessPolicy] = None):
|
|
1705
|
-
"""Updates
|
|
1706
|
-
|
|
1707
|
-
Updates an existing published OAuth App Integration. You can retrieve the published OAuth app
|
|
1685
|
+
"""Updates an existing published OAuth App Integration. You can retrieve the published OAuth app
|
|
1708
1686
|
integration via :method:PublishedAppIntegration/get.
|
|
1709
1687
|
|
|
1710
1688
|
:param integration_id: str
|
|
@@ -1777,7 +1755,7 @@ class ServicePrincipalFederationPolicyAPI:
|
|
|
1777
1755
|
def create(
|
|
1778
1756
|
self, service_principal_id: int, policy: FederationPolicy, *, policy_id: Optional[str] = None
|
|
1779
1757
|
) -> FederationPolicy:
|
|
1780
|
-
"""Create
|
|
1758
|
+
"""Create account federation policy.
|
|
1781
1759
|
|
|
1782
1760
|
:param service_principal_id: int
|
|
1783
1761
|
The service principal id for the federation policy.
|
|
@@ -1807,7 +1785,7 @@ class ServicePrincipalFederationPolicyAPI:
|
|
|
1807
1785
|
return FederationPolicy.from_dict(res)
|
|
1808
1786
|
|
|
1809
1787
|
def delete(self, service_principal_id: int, policy_id: str):
|
|
1810
|
-
"""Delete
|
|
1788
|
+
"""Delete account federation policy.
|
|
1811
1789
|
|
|
1812
1790
|
:param service_principal_id: int
|
|
1813
1791
|
The service principal id for the federation policy.
|
|
@@ -1828,7 +1806,7 @@ class ServicePrincipalFederationPolicyAPI:
|
|
|
1828
1806
|
)
|
|
1829
1807
|
|
|
1830
1808
|
def get(self, service_principal_id: int, policy_id: str) -> FederationPolicy:
|
|
1831
|
-
"""Get
|
|
1809
|
+
"""Get account federation policy.
|
|
1832
1810
|
|
|
1833
1811
|
:param service_principal_id: int
|
|
1834
1812
|
The service principal id for the federation policy.
|
|
@@ -1852,7 +1830,7 @@ class ServicePrincipalFederationPolicyAPI:
|
|
|
1852
1830
|
def list(
|
|
1853
1831
|
self, service_principal_id: int, *, page_size: Optional[int] = None, page_token: Optional[str] = None
|
|
1854
1832
|
) -> Iterator[FederationPolicy]:
|
|
1855
|
-
"""List
|
|
1833
|
+
"""List account federation policies.
|
|
1856
1834
|
|
|
1857
1835
|
:param service_principal_id: int
|
|
1858
1836
|
The service principal id for the federation policy.
|
|
@@ -1888,7 +1866,7 @@ class ServicePrincipalFederationPolicyAPI:
|
|
|
1888
1866
|
def update(
|
|
1889
1867
|
self, service_principal_id: int, policy_id: str, policy: FederationPolicy, *, update_mask: Optional[str] = None
|
|
1890
1868
|
) -> FederationPolicy:
|
|
1891
|
-
"""Update
|
|
1869
|
+
"""Update account federation policy.
|
|
1892
1870
|
|
|
1893
1871
|
:param service_principal_id: int
|
|
1894
1872
|
The service principal id for the federation policy.
|
|
@@ -1943,9 +1921,7 @@ class ServicePrincipalSecretsAPI:
|
|
|
1943
1921
|
def create(
|
|
1944
1922
|
self, service_principal_id: int, *, lifetime: Optional[str] = None
|
|
1945
1923
|
) -> CreateServicePrincipalSecretResponse:
|
|
1946
|
-
"""Create service principal
|
|
1947
|
-
|
|
1948
|
-
Create a secret for the given service principal.
|
|
1924
|
+
"""Create a secret for the given service principal.
|
|
1949
1925
|
|
|
1950
1926
|
:param service_principal_id: int
|
|
1951
1927
|
The service principal ID.
|
|
@@ -1972,9 +1948,7 @@ class ServicePrincipalSecretsAPI:
|
|
|
1972
1948
|
return CreateServicePrincipalSecretResponse.from_dict(res)
|
|
1973
1949
|
|
|
1974
1950
|
def delete(self, service_principal_id: int, secret_id: str):
|
|
1975
|
-
"""Delete service principal
|
|
1976
|
-
|
|
1977
|
-
Delete a secret from the given service principal.
|
|
1951
|
+
"""Delete a secret from the given service principal.
|
|
1978
1952
|
|
|
1979
1953
|
:param service_principal_id: int
|
|
1980
1954
|
The service principal ID.
|
|
@@ -1993,9 +1967,7 @@ class ServicePrincipalSecretsAPI:
|
|
|
1993
1967
|
)
|
|
1994
1968
|
|
|
1995
1969
|
def list(self, service_principal_id: int, *, page_token: Optional[str] = None) -> Iterator[SecretInfo]:
|
|
1996
|
-
"""List service principal
|
|
1997
|
-
|
|
1998
|
-
List all secrets associated with the given service principal. This operation only returns information
|
|
1970
|
+
"""List all secrets associated with the given service principal. This operation only returns information
|
|
1999
1971
|
about the secrets themselves and does not include the secret values.
|
|
2000
1972
|
|
|
2001
1973
|
:param service_principal_id: int
|
|
@@ -58,6 +58,9 @@ class CreatePipeline:
|
|
|
58
58
|
edition: Optional[str] = None
|
|
59
59
|
"""Pipeline product edition."""
|
|
60
60
|
|
|
61
|
+
environment: Optional[PipelinesEnvironment] = None
|
|
62
|
+
"""Environment specification for this pipeline used to install dependencies."""
|
|
63
|
+
|
|
61
64
|
event_log: Optional[EventLogSpec] = None
|
|
62
65
|
"""Event log configuration for this pipeline"""
|
|
63
66
|
|
|
@@ -149,6 +152,8 @@ class CreatePipeline:
|
|
|
149
152
|
body["dry_run"] = self.dry_run
|
|
150
153
|
if self.edition is not None:
|
|
151
154
|
body["edition"] = self.edition
|
|
155
|
+
if self.environment:
|
|
156
|
+
body["environment"] = self.environment.as_dict()
|
|
152
157
|
if self.event_log:
|
|
153
158
|
body["event_log"] = self.event_log.as_dict()
|
|
154
159
|
if self.filters:
|
|
@@ -212,6 +217,8 @@ class CreatePipeline:
|
|
|
212
217
|
body["dry_run"] = self.dry_run
|
|
213
218
|
if self.edition is not None:
|
|
214
219
|
body["edition"] = self.edition
|
|
220
|
+
if self.environment:
|
|
221
|
+
body["environment"] = self.environment
|
|
215
222
|
if self.event_log:
|
|
216
223
|
body["event_log"] = self.event_log
|
|
217
224
|
if self.filters:
|
|
@@ -265,6 +272,7 @@ class CreatePipeline:
|
|
|
265
272
|
development=d.get("development", None),
|
|
266
273
|
dry_run=d.get("dry_run", None),
|
|
267
274
|
edition=d.get("edition", None),
|
|
275
|
+
environment=_from_dict(d, "environment", PipelinesEnvironment),
|
|
268
276
|
event_log=_from_dict(d, "event_log", EventLogSpec),
|
|
269
277
|
filters=_from_dict(d, "filters", Filters),
|
|
270
278
|
gateway_definition=_from_dict(d, "gateway_definition", IngestionGatewayPipelineDefinition),
|
|
@@ -455,6 +463,9 @@ class EditPipeline:
|
|
|
455
463
|
edition: Optional[str] = None
|
|
456
464
|
"""Pipeline product edition."""
|
|
457
465
|
|
|
466
|
+
environment: Optional[PipelinesEnvironment] = None
|
|
467
|
+
"""Environment specification for this pipeline used to install dependencies."""
|
|
468
|
+
|
|
458
469
|
event_log: Optional[EventLogSpec] = None
|
|
459
470
|
"""Event log configuration for this pipeline"""
|
|
460
471
|
|
|
@@ -551,6 +562,8 @@ class EditPipeline:
|
|
|
551
562
|
body["development"] = self.development
|
|
552
563
|
if self.edition is not None:
|
|
553
564
|
body["edition"] = self.edition
|
|
565
|
+
if self.environment:
|
|
566
|
+
body["environment"] = self.environment.as_dict()
|
|
554
567
|
if self.event_log:
|
|
555
568
|
body["event_log"] = self.event_log.as_dict()
|
|
556
569
|
if self.expected_last_modified is not None:
|
|
@@ -616,6 +629,8 @@ class EditPipeline:
|
|
|
616
629
|
body["development"] = self.development
|
|
617
630
|
if self.edition is not None:
|
|
618
631
|
body["edition"] = self.edition
|
|
632
|
+
if self.environment:
|
|
633
|
+
body["environment"] = self.environment
|
|
619
634
|
if self.event_log:
|
|
620
635
|
body["event_log"] = self.event_log
|
|
621
636
|
if self.expected_last_modified is not None:
|
|
@@ -672,6 +687,7 @@ class EditPipeline:
|
|
|
672
687
|
deployment=_from_dict(d, "deployment", PipelineDeployment),
|
|
673
688
|
development=d.get("development", None),
|
|
674
689
|
edition=d.get("edition", None),
|
|
690
|
+
environment=_from_dict(d, "environment", PipelinesEnvironment),
|
|
675
691
|
event_log=_from_dict(d, "event_log", EventLogSpec),
|
|
676
692
|
expected_last_modified=d.get("expected_last_modified", None),
|
|
677
693
|
filters=_from_dict(d, "filters", Filters),
|
|
@@ -2362,6 +2378,9 @@ class PipelineSpec:
|
|
|
2362
2378
|
edition: Optional[str] = None
|
|
2363
2379
|
"""Pipeline product edition."""
|
|
2364
2380
|
|
|
2381
|
+
environment: Optional[PipelinesEnvironment] = None
|
|
2382
|
+
"""Environment specification for this pipeline used to install dependencies."""
|
|
2383
|
+
|
|
2365
2384
|
event_log: Optional[EventLogSpec] = None
|
|
2366
2385
|
"""Event log configuration for this pipeline"""
|
|
2367
2386
|
|
|
@@ -2441,6 +2460,8 @@ class PipelineSpec:
|
|
|
2441
2460
|
body["development"] = self.development
|
|
2442
2461
|
if self.edition is not None:
|
|
2443
2462
|
body["edition"] = self.edition
|
|
2463
|
+
if self.environment:
|
|
2464
|
+
body["environment"] = self.environment.as_dict()
|
|
2444
2465
|
if self.event_log:
|
|
2445
2466
|
body["event_log"] = self.event_log.as_dict()
|
|
2446
2467
|
if self.filters:
|
|
@@ -2498,6 +2519,8 @@ class PipelineSpec:
|
|
|
2498
2519
|
body["development"] = self.development
|
|
2499
2520
|
if self.edition is not None:
|
|
2500
2521
|
body["edition"] = self.edition
|
|
2522
|
+
if self.environment:
|
|
2523
|
+
body["environment"] = self.environment
|
|
2501
2524
|
if self.event_log:
|
|
2502
2525
|
body["event_log"] = self.event_log
|
|
2503
2526
|
if self.filters:
|
|
@@ -2547,6 +2570,7 @@ class PipelineSpec:
|
|
|
2547
2570
|
deployment=_from_dict(d, "deployment", PipelineDeployment),
|
|
2548
2571
|
development=d.get("development", None),
|
|
2549
2572
|
edition=d.get("edition", None),
|
|
2573
|
+
environment=_from_dict(d, "environment", PipelinesEnvironment),
|
|
2550
2574
|
event_log=_from_dict(d, "event_log", EventLogSpec),
|
|
2551
2575
|
filters=_from_dict(d, "filters", Filters),
|
|
2552
2576
|
gateway_definition=_from_dict(d, "gateway_definition", IngestionGatewayPipelineDefinition),
|
|
@@ -2702,6 +2726,39 @@ class PipelineTrigger:
|
|
|
2702
2726
|
return cls(cron=_from_dict(d, "cron", CronTrigger), manual=_from_dict(d, "manual", ManualTrigger))
|
|
2703
2727
|
|
|
2704
2728
|
|
|
2729
|
+
@dataclass
|
|
2730
|
+
class PipelinesEnvironment:
|
|
2731
|
+
"""The environment entity used to preserve serverless environment side panel, jobs' environment for
|
|
2732
|
+
non-notebook task, and DLT's environment for classic and serverless pipelines. In this minimal
|
|
2733
|
+
environment spec, only pip dependencies are supported."""
|
|
2734
|
+
|
|
2735
|
+
dependencies: Optional[List[str]] = None
|
|
2736
|
+
"""List of pip dependencies, as supported by the version of pip in this environment. Each
|
|
2737
|
+
dependency is a pip requirement file line
|
|
2738
|
+
https://pip.pypa.io/en/stable/reference/requirements-file-format/ Allowed dependency could be
|
|
2739
|
+
<requirement specifier>, <archive url/path>, <local project path>(WSFS or Volumes in
|
|
2740
|
+
Databricks), <vcs project url>"""
|
|
2741
|
+
|
|
2742
|
+
def as_dict(self) -> dict:
|
|
2743
|
+
"""Serializes the PipelinesEnvironment into a dictionary suitable for use as a JSON request body."""
|
|
2744
|
+
body = {}
|
|
2745
|
+
if self.dependencies:
|
|
2746
|
+
body["dependencies"] = [v for v in self.dependencies]
|
|
2747
|
+
return body
|
|
2748
|
+
|
|
2749
|
+
def as_shallow_dict(self) -> dict:
|
|
2750
|
+
"""Serializes the PipelinesEnvironment into a shallow dictionary of its immediate attributes."""
|
|
2751
|
+
body = {}
|
|
2752
|
+
if self.dependencies:
|
|
2753
|
+
body["dependencies"] = self.dependencies
|
|
2754
|
+
return body
|
|
2755
|
+
|
|
2756
|
+
@classmethod
|
|
2757
|
+
def from_dict(cls, d: Dict[str, Any]) -> PipelinesEnvironment:
|
|
2758
|
+
"""Deserializes the PipelinesEnvironment from a dictionary."""
|
|
2759
|
+
return cls(dependencies=d.get("dependencies", None))
|
|
2760
|
+
|
|
2761
|
+
|
|
2705
2762
|
@dataclass
|
|
2706
2763
|
class ReportSpec:
|
|
2707
2764
|
source_url: str
|
|
@@ -2915,7 +2972,7 @@ class SchemaSpec:
|
|
|
2915
2972
|
@dataclass
|
|
2916
2973
|
class Sequencing:
|
|
2917
2974
|
control_plane_seq_no: Optional[int] = None
|
|
2918
|
-
"""A sequence number, unique and increasing
|
|
2975
|
+
"""A sequence number, unique and increasing per pipeline."""
|
|
2919
2976
|
|
|
2920
2977
|
data_plane_id: Optional[DataPlaneId] = None
|
|
2921
2978
|
"""the ID assigned by the data plane."""
|
|
@@ -3584,6 +3641,7 @@ class PipelinesAPI:
|
|
|
3584
3641
|
development: Optional[bool] = None,
|
|
3585
3642
|
dry_run: Optional[bool] = None,
|
|
3586
3643
|
edition: Optional[str] = None,
|
|
3644
|
+
environment: Optional[PipelinesEnvironment] = None,
|
|
3587
3645
|
event_log: Optional[EventLogSpec] = None,
|
|
3588
3646
|
filters: Optional[Filters] = None,
|
|
3589
3647
|
gateway_definition: Optional[IngestionGatewayPipelineDefinition] = None,
|
|
@@ -3603,9 +3661,7 @@ class PipelinesAPI:
|
|
|
3603
3661
|
target: Optional[str] = None,
|
|
3604
3662
|
trigger: Optional[PipelineTrigger] = None,
|
|
3605
3663
|
) -> CreatePipelineResponse:
|
|
3606
|
-
"""
|
|
3607
|
-
|
|
3608
|
-
Creates a new data processing pipeline based on the requested configuration. If successful, this
|
|
3664
|
+
"""Creates a new data processing pipeline based on the requested configuration. If successful, this
|
|
3609
3665
|
method returns the ID of the new pipeline.
|
|
3610
3666
|
|
|
3611
3667
|
:param allow_duplicate_names: bool (optional)
|
|
@@ -3631,6 +3687,8 @@ class PipelinesAPI:
|
|
|
3631
3687
|
:param dry_run: bool (optional)
|
|
3632
3688
|
:param edition: str (optional)
|
|
3633
3689
|
Pipeline product edition.
|
|
3690
|
+
:param environment: :class:`PipelinesEnvironment` (optional)
|
|
3691
|
+
Environment specification for this pipeline used to install dependencies.
|
|
3634
3692
|
:param event_log: :class:`EventLogSpec` (optional)
|
|
3635
3693
|
Event log configuration for this pipeline
|
|
3636
3694
|
:param filters: :class:`Filters` (optional)
|
|
@@ -3703,6 +3761,8 @@ class PipelinesAPI:
|
|
|
3703
3761
|
body["dry_run"] = dry_run
|
|
3704
3762
|
if edition is not None:
|
|
3705
3763
|
body["edition"] = edition
|
|
3764
|
+
if environment is not None:
|
|
3765
|
+
body["environment"] = environment.as_dict()
|
|
3706
3766
|
if event_log is not None:
|
|
3707
3767
|
body["event_log"] = event_log.as_dict()
|
|
3708
3768
|
if filters is not None:
|
|
@@ -3748,9 +3808,7 @@ class PipelinesAPI:
|
|
|
3748
3808
|
return CreatePipelineResponse.from_dict(res)
|
|
3749
3809
|
|
|
3750
3810
|
def delete(self, pipeline_id: str):
|
|
3751
|
-
"""
|
|
3752
|
-
|
|
3753
|
-
Deletes a pipeline. Deleting a pipeline is a permanent action that stops and removes the pipeline and
|
|
3811
|
+
"""Deletes a pipeline. Deleting a pipeline is a permanent action that stops and removes the pipeline and
|
|
3754
3812
|
its tables. You cannot undo this action.
|
|
3755
3813
|
|
|
3756
3814
|
:param pipeline_id: str
|
|
@@ -3780,9 +3838,7 @@ class PipelinesAPI:
|
|
|
3780
3838
|
return GetPipelineResponse.from_dict(res)
|
|
3781
3839
|
|
|
3782
3840
|
def get_permission_levels(self, pipeline_id: str) -> GetPipelinePermissionLevelsResponse:
|
|
3783
|
-
"""
|
|
3784
|
-
|
|
3785
|
-
Gets the permission levels that a user can have on an object.
|
|
3841
|
+
"""Gets the permission levels that a user can have on an object.
|
|
3786
3842
|
|
|
3787
3843
|
:param pipeline_id: str
|
|
3788
3844
|
The pipeline for which to get or manage permissions.
|
|
@@ -3798,9 +3854,7 @@ class PipelinesAPI:
|
|
|
3798
3854
|
return GetPipelinePermissionLevelsResponse.from_dict(res)
|
|
3799
3855
|
|
|
3800
3856
|
def get_permissions(self, pipeline_id: str) -> PipelinePermissions:
|
|
3801
|
-
"""
|
|
3802
|
-
|
|
3803
|
-
Gets the permissions of a pipeline. Pipelines can inherit permissions from their root object.
|
|
3857
|
+
"""Gets the permissions of a pipeline. Pipelines can inherit permissions from their root object.
|
|
3804
3858
|
|
|
3805
3859
|
:param pipeline_id: str
|
|
3806
3860
|
The pipeline for which to get or manage permissions.
|
|
@@ -3816,9 +3870,7 @@ class PipelinesAPI:
|
|
|
3816
3870
|
return PipelinePermissions.from_dict(res)
|
|
3817
3871
|
|
|
3818
3872
|
def get_update(self, pipeline_id: str, update_id: str) -> GetUpdateResponse:
|
|
3819
|
-
"""
|
|
3820
|
-
|
|
3821
|
-
Gets an update from an active pipeline.
|
|
3873
|
+
"""Gets an update from an active pipeline.
|
|
3822
3874
|
|
|
3823
3875
|
:param pipeline_id: str
|
|
3824
3876
|
The ID of the pipeline.
|
|
@@ -3844,9 +3896,7 @@ class PipelinesAPI:
|
|
|
3844
3896
|
order_by: Optional[List[str]] = None,
|
|
3845
3897
|
page_token: Optional[str] = None,
|
|
3846
3898
|
) -> Iterator[PipelineEvent]:
|
|
3847
|
-
"""
|
|
3848
|
-
|
|
3849
|
-
Retrieves events for a pipeline.
|
|
3899
|
+
"""Retrieves events for a pipeline.
|
|
3850
3900
|
|
|
3851
3901
|
:param pipeline_id: str
|
|
3852
3902
|
The pipeline to return events for.
|
|
@@ -3902,9 +3952,7 @@ class PipelinesAPI:
|
|
|
3902
3952
|
order_by: Optional[List[str]] = None,
|
|
3903
3953
|
page_token: Optional[str] = None,
|
|
3904
3954
|
) -> Iterator[PipelineStateInfo]:
|
|
3905
|
-
"""
|
|
3906
|
-
|
|
3907
|
-
Lists pipelines defined in the Delta Live Tables system.
|
|
3955
|
+
"""Lists pipelines defined in the Delta Live Tables system.
|
|
3908
3956
|
|
|
3909
3957
|
:param filter: str (optional)
|
|
3910
3958
|
Select a subset of results based on the specified criteria. The supported filters are:
|
|
@@ -3958,9 +4006,7 @@ class PipelinesAPI:
|
|
|
3958
4006
|
page_token: Optional[str] = None,
|
|
3959
4007
|
until_update_id: Optional[str] = None,
|
|
3960
4008
|
) -> ListUpdatesResponse:
|
|
3961
|
-
"""List pipeline
|
|
3962
|
-
|
|
3963
|
-
List updates for an active pipeline.
|
|
4009
|
+
"""List updates for an active pipeline.
|
|
3964
4010
|
|
|
3965
4011
|
:param pipeline_id: str
|
|
3966
4012
|
The pipeline to return updates for.
|
|
@@ -3991,9 +4037,7 @@ class PipelinesAPI:
|
|
|
3991
4037
|
def set_permissions(
|
|
3992
4038
|
self, pipeline_id: str, *, access_control_list: Optional[List[PipelineAccessControlRequest]] = None
|
|
3993
4039
|
) -> PipelinePermissions:
|
|
3994
|
-
"""
|
|
3995
|
-
|
|
3996
|
-
Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct
|
|
4040
|
+
"""Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct
|
|
3997
4041
|
permissions if none are specified. Objects can inherit permissions from their root object.
|
|
3998
4042
|
|
|
3999
4043
|
:param pipeline_id: str
|
|
@@ -4023,9 +4067,7 @@ class PipelinesAPI:
|
|
|
4023
4067
|
refresh_selection: Optional[List[str]] = None,
|
|
4024
4068
|
validate_only: Optional[bool] = None,
|
|
4025
4069
|
) -> StartUpdateResponse:
|
|
4026
|
-
"""
|
|
4027
|
-
|
|
4028
|
-
Starts a new update for the pipeline. If there is already an active update for the pipeline, the
|
|
4070
|
+
"""Starts a new update for the pipeline. If there is already an active update for the pipeline, the
|
|
4029
4071
|
request will fail and the active update will remain running.
|
|
4030
4072
|
|
|
4031
4073
|
:param pipeline_id: str
|
|
@@ -4067,9 +4109,7 @@ class PipelinesAPI:
|
|
|
4067
4109
|
return StartUpdateResponse.from_dict(res)
|
|
4068
4110
|
|
|
4069
4111
|
def stop(self, pipeline_id: str) -> Wait[GetPipelineResponse]:
|
|
4070
|
-
"""
|
|
4071
|
-
|
|
4072
|
-
Stops the pipeline by canceling the active update. If there is no active update for the pipeline, this
|
|
4112
|
+
"""Stops the pipeline by canceling the active update. If there is no active update for the pipeline, this
|
|
4073
4113
|
request is a no-op.
|
|
4074
4114
|
|
|
4075
4115
|
:param pipeline_id: str
|
|
@@ -4105,6 +4145,7 @@ class PipelinesAPI:
|
|
|
4105
4145
|
deployment: Optional[PipelineDeployment] = None,
|
|
4106
4146
|
development: Optional[bool] = None,
|
|
4107
4147
|
edition: Optional[str] = None,
|
|
4148
|
+
environment: Optional[PipelinesEnvironment] = None,
|
|
4108
4149
|
event_log: Optional[EventLogSpec] = None,
|
|
4109
4150
|
expected_last_modified: Optional[int] = None,
|
|
4110
4151
|
filters: Optional[Filters] = None,
|
|
@@ -4125,9 +4166,7 @@ class PipelinesAPI:
|
|
|
4125
4166
|
target: Optional[str] = None,
|
|
4126
4167
|
trigger: Optional[PipelineTrigger] = None,
|
|
4127
4168
|
):
|
|
4128
|
-
"""
|
|
4129
|
-
|
|
4130
|
-
Updates a pipeline with the supplied configuration.
|
|
4169
|
+
"""Updates a pipeline with the supplied configuration.
|
|
4131
4170
|
|
|
4132
4171
|
:param pipeline_id: str
|
|
4133
4172
|
Unique identifier for this pipeline.
|
|
@@ -4153,6 +4192,8 @@ class PipelinesAPI:
|
|
|
4153
4192
|
Whether the pipeline is in Development mode. Defaults to false.
|
|
4154
4193
|
:param edition: str (optional)
|
|
4155
4194
|
Pipeline product edition.
|
|
4195
|
+
:param environment: :class:`PipelinesEnvironment` (optional)
|
|
4196
|
+
Environment specification for this pipeline used to install dependencies.
|
|
4156
4197
|
:param event_log: :class:`EventLogSpec` (optional)
|
|
4157
4198
|
Event log configuration for this pipeline
|
|
4158
4199
|
:param expected_last_modified: int (optional)
|
|
@@ -4226,6 +4267,8 @@ class PipelinesAPI:
|
|
|
4226
4267
|
body["development"] = development
|
|
4227
4268
|
if edition is not None:
|
|
4228
4269
|
body["edition"] = edition
|
|
4270
|
+
if environment is not None:
|
|
4271
|
+
body["environment"] = environment.as_dict()
|
|
4229
4272
|
if event_log is not None:
|
|
4230
4273
|
body["event_log"] = event_log.as_dict()
|
|
4231
4274
|
if expected_last_modified is not None:
|
|
@@ -4274,9 +4317,7 @@ class PipelinesAPI:
|
|
|
4274
4317
|
def update_permissions(
|
|
4275
4318
|
self, pipeline_id: str, *, access_control_list: Optional[List[PipelineAccessControlRequest]] = None
|
|
4276
4319
|
) -> PipelinePermissions:
|
|
4277
|
-
"""
|
|
4278
|
-
|
|
4279
|
-
Updates the permissions on a pipeline. Pipelines can inherit permissions from their root object.
|
|
4320
|
+
"""Updates the permissions on a pipeline. Pipelines can inherit permissions from their root object.
|
|
4280
4321
|
|
|
4281
4322
|
:param pipeline_id: str
|
|
4282
4323
|
The pipeline for which to get or manage permissions.
|