databricks-sdk 0.58.0__py3-none-any.whl → 0.60.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.

Files changed (34) hide show
  1. databricks/sdk/__init__.py +18 -10
  2. databricks/sdk/credentials_provider.py +2 -2
  3. databricks/sdk/mixins/files.py +43 -15
  4. databricks/sdk/mixins/open_ai_client.py +28 -7
  5. databricks/sdk/oidc.py +6 -2
  6. databricks/sdk/service/{aibuilder.py → agentbricks.py} +5 -132
  7. databricks/sdk/service/apps.py +52 -46
  8. databricks/sdk/service/billing.py +9 -200
  9. databricks/sdk/service/catalog.py +5501 -7697
  10. databricks/sdk/service/cleanrooms.py +24 -54
  11. databricks/sdk/service/compute.py +456 -2515
  12. databricks/sdk/service/dashboards.py +1 -177
  13. databricks/sdk/service/database.py +34 -53
  14. databricks/sdk/service/files.py +2 -218
  15. databricks/sdk/service/iam.py +16 -295
  16. databricks/sdk/service/jobs.py +108 -1171
  17. databricks/sdk/service/marketplace.py +0 -573
  18. databricks/sdk/service/ml.py +76 -2445
  19. databricks/sdk/service/oauth2.py +122 -237
  20. databricks/sdk/service/pipelines.py +180 -752
  21. databricks/sdk/service/provisioning.py +0 -603
  22. databricks/sdk/service/serving.py +5 -577
  23. databricks/sdk/service/settings.py +192 -1560
  24. databricks/sdk/service/sharing.py +5 -470
  25. databricks/sdk/service/sql.py +117 -1704
  26. databricks/sdk/service/vectorsearch.py +0 -391
  27. databricks/sdk/service/workspace.py +250 -721
  28. databricks/sdk/version.py +1 -1
  29. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/METADATA +1 -1
  30. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/RECORD +34 -34
  31. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/WHEEL +0 -0
  32. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/LICENSE +0 -0
  33. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/NOTICE +0 -0
  34. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/top_level.txt +0 -0
@@ -416,41 +416,6 @@ class BudgetPolicy:
416
416
  )
417
417
 
418
418
 
419
- @dataclass
420
- class CreateBillingUsageDashboardRequest:
421
- dashboard_type: Optional[UsageDashboardType] = None
422
- """Workspace level usage dashboard shows usage data for the specified workspace ID. Global level
423
- usage dashboard shows usage data for all workspaces in the account."""
424
-
425
- workspace_id: Optional[int] = None
426
- """The workspace ID of the workspace in which the usage dashboard is created."""
427
-
428
- def as_dict(self) -> dict:
429
- """Serializes the CreateBillingUsageDashboardRequest into a dictionary suitable for use as a JSON request body."""
430
- body = {}
431
- if self.dashboard_type is not None:
432
- body["dashboard_type"] = self.dashboard_type.value
433
- if self.workspace_id is not None:
434
- body["workspace_id"] = self.workspace_id
435
- return body
436
-
437
- def as_shallow_dict(self) -> dict:
438
- """Serializes the CreateBillingUsageDashboardRequest into a shallow dictionary of its immediate attributes."""
439
- body = {}
440
- if self.dashboard_type is not None:
441
- body["dashboard_type"] = self.dashboard_type
442
- if self.workspace_id is not None:
443
- body["workspace_id"] = self.workspace_id
444
- return body
445
-
446
- @classmethod
447
- def from_dict(cls, d: Dict[str, Any]) -> CreateBillingUsageDashboardRequest:
448
- """Deserializes the CreateBillingUsageDashboardRequest from a dictionary."""
449
- return cls(
450
- dashboard_type=_enum(d, "dashboard_type", UsageDashboardType), workspace_id=d.get("workspace_id", None)
451
- )
452
-
453
-
454
419
  @dataclass
455
420
  class CreateBillingUsageDashboardResponse:
456
421
  dashboard_id: Optional[str] = None
@@ -628,31 +593,6 @@ class CreateBudgetConfigurationBudgetAlertConfigurations:
628
593
  )
629
594
 
630
595
 
631
- @dataclass
632
- class CreateBudgetConfigurationRequest:
633
- budget: CreateBudgetConfigurationBudget
634
- """Properties of the new budget configuration."""
635
-
636
- def as_dict(self) -> dict:
637
- """Serializes the CreateBudgetConfigurationRequest into a dictionary suitable for use as a JSON request body."""
638
- body = {}
639
- if self.budget:
640
- body["budget"] = self.budget.as_dict()
641
- return body
642
-
643
- def as_shallow_dict(self) -> dict:
644
- """Serializes the CreateBudgetConfigurationRequest into a shallow dictionary of its immediate attributes."""
645
- body = {}
646
- if self.budget:
647
- body["budget"] = self.budget
648
- return body
649
-
650
- @classmethod
651
- def from_dict(cls, d: Dict[str, Any]) -> CreateBudgetConfigurationRequest:
652
- """Deserializes the CreateBudgetConfigurationRequest from a dictionary."""
653
- return cls(budget=_from_dict(d, "budget", CreateBudgetConfigurationBudget))
654
-
655
-
656
596
  @dataclass
657
597
  class CreateBudgetConfigurationResponse:
658
598
  budget: Optional[BudgetConfiguration] = None
@@ -678,43 +618,6 @@ class CreateBudgetConfigurationResponse:
678
618
  return cls(budget=_from_dict(d, "budget", BudgetConfiguration))
679
619
 
680
620
 
681
- @dataclass
682
- class CreateBudgetPolicyRequest:
683
- """A request to create a BudgetPolicy."""
684
-
685
- policy: Optional[BudgetPolicy] = None
686
- """The policy to create. `policy_id` needs to be empty as it will be generated `policy_name` must
687
- be provided, custom_tags may need to be provided depending on the cloud provider. All other
688
- fields are optional."""
689
-
690
- request_id: Optional[str] = None
691
- """A unique identifier for this request. Restricted to 36 ASCII characters. A random UUID is
692
- recommended. This request is only idempotent if a `request_id` is provided."""
693
-
694
- def as_dict(self) -> dict:
695
- """Serializes the CreateBudgetPolicyRequest into a dictionary suitable for use as a JSON request body."""
696
- body = {}
697
- if self.policy:
698
- body["policy"] = self.policy.as_dict()
699
- if self.request_id is not None:
700
- body["request_id"] = self.request_id
701
- return body
702
-
703
- def as_shallow_dict(self) -> dict:
704
- """Serializes the CreateBudgetPolicyRequest into a shallow dictionary of its immediate attributes."""
705
- body = {}
706
- if self.policy:
707
- body["policy"] = self.policy
708
- if self.request_id is not None:
709
- body["request_id"] = self.request_id
710
- return body
711
-
712
- @classmethod
713
- def from_dict(cls, d: Dict[str, Any]) -> CreateBudgetPolicyRequest:
714
- """Deserializes the CreateBudgetPolicyRequest from a dictionary."""
715
- return cls(policy=_from_dict(d, "policy", BudgetPolicy), request_id=d.get("request_id", None))
716
-
717
-
718
621
  @dataclass
719
622
  class CreateLogDeliveryConfigurationParams:
720
623
  """* Log Delivery Configuration"""
@@ -1500,38 +1403,6 @@ class UpdateBudgetConfigurationBudget:
1500
1403
  )
1501
1404
 
1502
1405
 
1503
- @dataclass
1504
- class UpdateBudgetConfigurationRequest:
1505
- budget: UpdateBudgetConfigurationBudget
1506
- """The updated budget. This will overwrite the budget specified by the budget ID."""
1507
-
1508
- budget_id: Optional[str] = None
1509
- """The Databricks budget configuration ID."""
1510
-
1511
- def as_dict(self) -> dict:
1512
- """Serializes the UpdateBudgetConfigurationRequest into a dictionary suitable for use as a JSON request body."""
1513
- body = {}
1514
- if self.budget:
1515
- body["budget"] = self.budget.as_dict()
1516
- if self.budget_id is not None:
1517
- body["budget_id"] = self.budget_id
1518
- return body
1519
-
1520
- def as_shallow_dict(self) -> dict:
1521
- """Serializes the UpdateBudgetConfigurationRequest into a shallow dictionary of its immediate attributes."""
1522
- body = {}
1523
- if self.budget:
1524
- body["budget"] = self.budget
1525
- if self.budget_id is not None:
1526
- body["budget_id"] = self.budget_id
1527
- return body
1528
-
1529
- @classmethod
1530
- def from_dict(cls, d: Dict[str, Any]) -> UpdateBudgetConfigurationRequest:
1531
- """Deserializes the UpdateBudgetConfigurationRequest from a dictionary."""
1532
- return cls(budget=_from_dict(d, "budget", UpdateBudgetConfigurationBudget), budget_id=d.get("budget_id", None))
1533
-
1534
-
1535
1406
  @dataclass
1536
1407
  class UpdateBudgetConfigurationResponse:
1537
1408
  budget: Optional[BudgetConfiguration] = None
@@ -1557,80 +1428,12 @@ class UpdateBudgetConfigurationResponse:
1557
1428
  return cls(budget=_from_dict(d, "budget", BudgetConfiguration))
1558
1429
 
1559
1430
 
1560
- @dataclass
1561
- class UpdateLogDeliveryConfigurationStatusRequest:
1562
- """* Update Log Delivery Configuration"""
1563
-
1564
- status: LogDeliveryConfigStatus
1565
- """Status of log delivery configuration. Set to `ENABLED` (enabled) or `DISABLED` (disabled).
1566
- Defaults to `ENABLED`. You can [enable or disable the
1567
- configuration](#operation/patch-log-delivery-config-status) later. Deletion of a configuration
1568
- is not supported, so disable a log delivery configuration that is no longer needed."""
1569
-
1570
- log_delivery_configuration_id: Optional[str] = None
1571
- """The log delivery configuration id of customer"""
1572
-
1573
- def as_dict(self) -> dict:
1574
- """Serializes the UpdateLogDeliveryConfigurationStatusRequest into a dictionary suitable for use as a JSON request body."""
1575
- body = {}
1576
- if self.log_delivery_configuration_id is not None:
1577
- body["log_delivery_configuration_id"] = self.log_delivery_configuration_id
1578
- if self.status is not None:
1579
- body["status"] = self.status.value
1580
- return body
1581
-
1582
- def as_shallow_dict(self) -> dict:
1583
- """Serializes the UpdateLogDeliveryConfigurationStatusRequest into a shallow dictionary of its immediate attributes."""
1584
- body = {}
1585
- if self.log_delivery_configuration_id is not None:
1586
- body["log_delivery_configuration_id"] = self.log_delivery_configuration_id
1587
- if self.status is not None:
1588
- body["status"] = self.status
1589
- return body
1590
-
1591
- @classmethod
1592
- def from_dict(cls, d: Dict[str, Any]) -> UpdateLogDeliveryConfigurationStatusRequest:
1593
- """Deserializes the UpdateLogDeliveryConfigurationStatusRequest from a dictionary."""
1594
- return cls(
1595
- log_delivery_configuration_id=d.get("log_delivery_configuration_id", None),
1596
- status=_enum(d, "status", LogDeliveryConfigStatus),
1597
- )
1598
-
1599
-
1600
1431
  class UsageDashboardType(Enum):
1601
1432
 
1602
1433
  USAGE_DASHBOARD_TYPE_GLOBAL = "USAGE_DASHBOARD_TYPE_GLOBAL"
1603
1434
  USAGE_DASHBOARD_TYPE_WORKSPACE = "USAGE_DASHBOARD_TYPE_WORKSPACE"
1604
1435
 
1605
1436
 
1606
- @dataclass
1607
- class WrappedCreateLogDeliveryConfiguration:
1608
- """* Properties of the new log delivery configuration."""
1609
-
1610
- log_delivery_configuration: CreateLogDeliveryConfigurationParams
1611
-
1612
- def as_dict(self) -> dict:
1613
- """Serializes the WrappedCreateLogDeliveryConfiguration into a dictionary suitable for use as a JSON request body."""
1614
- body = {}
1615
- if self.log_delivery_configuration:
1616
- body["log_delivery_configuration"] = self.log_delivery_configuration.as_dict()
1617
- return body
1618
-
1619
- def as_shallow_dict(self) -> dict:
1620
- """Serializes the WrappedCreateLogDeliveryConfiguration into a shallow dictionary of its immediate attributes."""
1621
- body = {}
1622
- if self.log_delivery_configuration:
1623
- body["log_delivery_configuration"] = self.log_delivery_configuration
1624
- return body
1625
-
1626
- @classmethod
1627
- def from_dict(cls, d: Dict[str, Any]) -> WrappedCreateLogDeliveryConfiguration:
1628
- """Deserializes the WrappedCreateLogDeliveryConfiguration from a dictionary."""
1629
- return cls(
1630
- log_delivery_configuration=_from_dict(d, "log_delivery_configuration", CreateLogDeliveryConfigurationParams)
1631
- )
1632
-
1633
-
1634
1437
  @dataclass
1635
1438
  class WrappedLogDeliveryConfiguration:
1636
1439
  log_delivery_configuration: Optional[LogDeliveryConfiguration] = None
@@ -1701,16 +1504,22 @@ class BillableUsageAPI:
1701
1504
 
1702
1505
  def download(self, start_month: str, end_month: str, *, personal_data: Optional[bool] = None) -> DownloadResponse:
1703
1506
  """Returns billable usage logs in CSV format for the specified account and date range. For the data
1704
- schema, see [CSV file schema]. Note that this method might take multiple minutes to complete.
1507
+ schema, see:
1508
+
1509
+ - AWS: [CSV file schema]. - GCP: [CSV file schema].
1510
+
1511
+ Note that this method might take multiple minutes to complete.
1705
1512
 
1706
1513
  **Warning**: Depending on the queried date range, the number of workspaces in the account, the size of
1707
1514
  the response and the internet speed of the caller, this API may hit a timeout after a few minutes. If
1708
1515
  you experience this, try to mitigate by calling the API with narrower date ranges.
1709
1516
 
1710
- [CSV file schema]: https://docs.databricks.com/administration-guide/account-settings/usage-analysis.html#schema
1517
+ [CSV file schema]: https://docs.gcp.databricks.com/administration-guide/account-settings/usage-analysis.html#csv-file-schema
1711
1518
 
1712
1519
  :param start_month: str
1713
- Format: `YYYY-MM`. First month to return billable usage logs for. This field is required.
1520
+ Format specification for month in the format `YYYY-MM`. This is used to specify billable usage
1521
+ `start_month` and `end_month` properties. **Note**: Billable usage logs are unavailable before March
1522
+ 2019 (`2019-03`).
1714
1523
  :param end_month: str
1715
1524
  Format: `YYYY-MM`. Last month to return billable usage logs for. This field is required.
1716
1525
  :param personal_data: bool (optional)