databricks-sdk 0.69.0__py3-none-any.whl → 0.71.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 (37) hide show
  1. databricks/sdk/__init__.py +24 -24
  2. databricks/sdk/dbutils.py +17 -0
  3. databricks/sdk/mixins/files.py +10 -10
  4. databricks/sdk/service/agentbricks.py +2 -0
  5. databricks/sdk/service/apps.py +10 -0
  6. databricks/sdk/service/billing.py +13 -3
  7. databricks/sdk/service/catalog.py +131 -47
  8. databricks/sdk/service/cleanrooms.py +11 -3
  9. databricks/sdk/service/compute.py +64 -0
  10. databricks/sdk/service/dashboards.py +10 -0
  11. databricks/sdk/service/database.py +12 -0
  12. databricks/sdk/service/dataquality.py +201 -52
  13. databricks/sdk/service/files.py +7 -72
  14. databricks/sdk/service/iam.py +26 -36
  15. databricks/sdk/service/iamv2.py +6 -0
  16. databricks/sdk/service/jobs.py +86 -154
  17. databricks/sdk/service/marketplace.py +18 -0
  18. databricks/sdk/service/ml.py +464 -13
  19. databricks/sdk/service/oauth2.py +37 -19
  20. databricks/sdk/service/pipelines.py +25 -2
  21. databricks/sdk/service/provisioning.py +19 -1
  22. databricks/sdk/service/qualitymonitorv2.py +2 -0
  23. databricks/sdk/service/serving.py +16 -21
  24. databricks/sdk/service/settings.py +45 -72
  25. databricks/sdk/service/settingsv2.py +2 -0
  26. databricks/sdk/service/sharing.py +23 -69
  27. databricks/sdk/service/sql.py +85 -62
  28. databricks/sdk/service/tags.py +2 -0
  29. databricks/sdk/service/vectorsearch.py +8 -0
  30. databricks/sdk/service/workspace.py +18 -91
  31. databricks/sdk/version.py +1 -1
  32. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/METADATA +1 -1
  33. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/RECORD +37 -37
  34. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/WHEEL +0 -0
  35. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/licenses/LICENSE +0 -0
  36. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/licenses/NOTICE +0 -0
  37. {databricks_sdk-0.69.0.dist-info → databricks_sdk-0.71.0.dist-info}/top_level.txt +0 -0
@@ -194,24 +194,6 @@ class DeletePublishedAppIntegrationOutput:
194
194
  return cls()
195
195
 
196
196
 
197
- @dataclass
198
- class DeleteResponse:
199
- def as_dict(self) -> dict:
200
- """Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
201
- body = {}
202
- return body
203
-
204
- def as_shallow_dict(self) -> dict:
205
- """Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
206
- body = {}
207
- return body
208
-
209
- @classmethod
210
- def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
211
- """Deserializes the DeleteResponse from a dictionary."""
212
- return cls()
213
-
214
-
215
197
  @dataclass
216
198
  class FederationPolicy:
217
199
  create_time: Optional[str] = None
@@ -863,17 +845,37 @@ class SecretInfo:
863
845
 
864
846
  @dataclass
865
847
  class TokenAccessPolicy:
848
+ absolute_session_lifetime_in_minutes: Optional[int] = None
849
+ """Absolute OAuth session TTL in minutes. Effective only when the single-use refresh token feature
850
+ is enabled. This is the absolute TTL of all refresh tokens issued in one OAuth session. When a
851
+ new refresh token is issued during refresh token rotation, it will inherit the same absolute TTL
852
+ as the old refresh token. In other words, this represents the maximum amount of time a user can
853
+ stay logged in without re-authenticating."""
854
+
866
855
  access_token_ttl_in_minutes: Optional[int] = None
867
856
  """access token time to live in minutes"""
868
857
 
858
+ enable_single_use_refresh_tokens: Optional[bool] = None
859
+ """Whether to enable single-use refresh tokens (refresh token rotation). If this feature is
860
+ enabled, upon successfully getting a new access token using a refresh token, Databricks will
861
+ issue a new refresh token along with the access token in the response and invalidate the old
862
+ refresh token. The client should use the new refresh token to get access tokens in future
863
+ requests."""
864
+
869
865
  refresh_token_ttl_in_minutes: Optional[int] = None
870
- """refresh token time to live in minutes"""
866
+ """Refresh token time to live in minutes. When single-use refresh tokens are enabled, this
867
+ represents the TTL of an individual refresh token. If the refresh token is used before it
868
+ expires, a new one is issued with a renewed individual TTL."""
871
869
 
872
870
  def as_dict(self) -> dict:
873
871
  """Serializes the TokenAccessPolicy into a dictionary suitable for use as a JSON request body."""
874
872
  body = {}
873
+ if self.absolute_session_lifetime_in_minutes is not None:
874
+ body["absolute_session_lifetime_in_minutes"] = self.absolute_session_lifetime_in_minutes
875
875
  if self.access_token_ttl_in_minutes is not None:
876
876
  body["access_token_ttl_in_minutes"] = self.access_token_ttl_in_minutes
877
+ if self.enable_single_use_refresh_tokens is not None:
878
+ body["enable_single_use_refresh_tokens"] = self.enable_single_use_refresh_tokens
877
879
  if self.refresh_token_ttl_in_minutes is not None:
878
880
  body["refresh_token_ttl_in_minutes"] = self.refresh_token_ttl_in_minutes
879
881
  return body
@@ -881,8 +883,12 @@ class TokenAccessPolicy:
881
883
  def as_shallow_dict(self) -> dict:
882
884
  """Serializes the TokenAccessPolicy into a shallow dictionary of its immediate attributes."""
883
885
  body = {}
886
+ if self.absolute_session_lifetime_in_minutes is not None:
887
+ body["absolute_session_lifetime_in_minutes"] = self.absolute_session_lifetime_in_minutes
884
888
  if self.access_token_ttl_in_minutes is not None:
885
889
  body["access_token_ttl_in_minutes"] = self.access_token_ttl_in_minutes
890
+ if self.enable_single_use_refresh_tokens is not None:
891
+ body["enable_single_use_refresh_tokens"] = self.enable_single_use_refresh_tokens
886
892
  if self.refresh_token_ttl_in_minutes is not None:
887
893
  body["refresh_token_ttl_in_minutes"] = self.refresh_token_ttl_in_minutes
888
894
  return body
@@ -891,7 +897,9 @@ class TokenAccessPolicy:
891
897
  def from_dict(cls, d: Dict[str, Any]) -> TokenAccessPolicy:
892
898
  """Deserializes the TokenAccessPolicy from a dictionary."""
893
899
  return cls(
900
+ absolute_session_lifetime_in_minutes=d.get("absolute_session_lifetime_in_minutes", None),
894
901
  access_token_ttl_in_minutes=d.get("access_token_ttl_in_minutes", None),
902
+ enable_single_use_refresh_tokens=d.get("enable_single_use_refresh_tokens", None),
895
903
  refresh_token_ttl_in_minutes=d.get("refresh_token_ttl_in_minutes", None),
896
904
  )
897
905
 
@@ -987,6 +995,7 @@ class AccountFederationPolicyAPI:
987
995
 
988
996
  :returns: :class:`FederationPolicy`
989
997
  """
998
+
990
999
  body = policy.as_dict()
991
1000
  query = {}
992
1001
  if policy_id is not None:
@@ -1086,6 +1095,7 @@ class AccountFederationPolicyAPI:
1086
1095
 
1087
1096
  :returns: :class:`FederationPolicy`
1088
1097
  """
1098
+
1089
1099
  body = policy.as_dict()
1090
1100
  query = {}
1091
1101
  if update_mask is not None:
@@ -1143,6 +1153,7 @@ class CustomAppIntegrationAPI:
1143
1153
 
1144
1154
  :returns: :class:`CreateCustomAppIntegrationOutput`
1145
1155
  """
1156
+
1146
1157
  body = {}
1147
1158
  if confidential is not None:
1148
1159
  body["confidential"] = confidential
@@ -1275,6 +1286,7 @@ class CustomAppIntegrationAPI:
1275
1286
 
1276
1287
 
1277
1288
  """
1289
+
1278
1290
  body = {}
1279
1291
  if redirect_urls is not None:
1280
1292
  body["redirect_urls"] = [v for v in redirect_urls]
@@ -1360,6 +1372,7 @@ class PublishedAppIntegrationAPI:
1360
1372
 
1361
1373
  :returns: :class:`CreatePublishedAppIntegrationOutput`
1362
1374
  """
1375
+
1363
1376
  body = {}
1364
1377
  if app_id is not None:
1365
1378
  body["app_id"] = app_id
@@ -1460,6 +1473,7 @@ class PublishedAppIntegrationAPI:
1460
1473
 
1461
1474
 
1462
1475
  """
1476
+
1463
1477
  body = {}
1464
1478
  if token_access_policy is not None:
1465
1479
  body["token_access_policy"] = token_access_policy.as_dict()
@@ -1535,6 +1549,7 @@ class ServicePrincipalFederationPolicyAPI:
1535
1549
 
1536
1550
  :returns: :class:`FederationPolicy`
1537
1551
  """
1552
+
1538
1553
  body = policy.as_dict()
1539
1554
  query = {}
1540
1555
  if policy_id is not None:
@@ -1651,6 +1666,7 @@ class ServicePrincipalFederationPolicyAPI:
1651
1666
 
1652
1667
  :returns: :class:`FederationPolicy`
1653
1668
  """
1669
+
1654
1670
  body = policy.as_dict()
1655
1671
  query = {}
1656
1672
  if update_mask is not None:
@@ -1700,6 +1716,7 @@ class ServicePrincipalSecretsAPI:
1700
1716
 
1701
1717
  :returns: :class:`CreateServicePrincipalSecretResponse`
1702
1718
  """
1719
+
1703
1720
  body = {}
1704
1721
  if lifetime is not None:
1705
1722
  body["lifetime"] = lifetime
@@ -1810,6 +1827,7 @@ class ServicePrincipalSecretsProxyAPI:
1810
1827
 
1811
1828
  :returns: :class:`CreateServicePrincipalSecretResponse`
1812
1829
  """
1830
+
1813
1831
  body = {}
1814
1832
  if lifetime is not None:
1815
1833
  body["lifetime"] = lifetime
@@ -119,8 +119,8 @@ class DataPlaneId:
119
119
 
120
120
 
121
121
  class DayOfWeek(Enum):
122
- """Days of week in which the restart is allowed to happen (within a five-hour window starting at
123
- start_hour). If not specified all days of the week will be used."""
122
+ """Days of week in which the window is allowed to happen. If not specified all days of the week
123
+ will be used."""
124
124
 
125
125
  FRIDAY = "FRIDAY"
126
126
  MONDAY = "MONDAY"
@@ -2024,6 +2024,9 @@ class PipelineSpec:
2024
2024
  trigger: Optional[PipelineTrigger] = None
2025
2025
  """Which pipeline trigger to use. Deprecated: Use `continuous` instead."""
2026
2026
 
2027
+ usage_policy_id: Optional[str] = None
2028
+ """Usage policy of this pipeline."""
2029
+
2027
2030
  def as_dict(self) -> dict:
2028
2031
  """Serializes the PipelineSpec into a dictionary suitable for use as a JSON request body."""
2029
2032
  body = {}
@@ -2081,6 +2084,8 @@ class PipelineSpec:
2081
2084
  body["target"] = self.target
2082
2085
  if self.trigger:
2083
2086
  body["trigger"] = self.trigger.as_dict()
2087
+ if self.usage_policy_id is not None:
2088
+ body["usage_policy_id"] = self.usage_policy_id
2084
2089
  return body
2085
2090
 
2086
2091
  def as_shallow_dict(self) -> dict:
@@ -2140,6 +2145,8 @@ class PipelineSpec:
2140
2145
  body["target"] = self.target
2141
2146
  if self.trigger:
2142
2147
  body["trigger"] = self.trigger
2148
+ if self.usage_policy_id is not None:
2149
+ body["usage_policy_id"] = self.usage_policy_id
2143
2150
  return body
2144
2151
 
2145
2152
  @classmethod
@@ -2173,6 +2180,7 @@ class PipelineSpec:
2173
2180
  tags=d.get("tags", None),
2174
2181
  target=d.get("target", None),
2175
2182
  trigger=_from_dict(d, "trigger", PipelineTrigger),
2183
+ usage_policy_id=d.get("usage_policy_id", None),
2176
2184
  )
2177
2185
 
2178
2186
 
@@ -3318,6 +3326,7 @@ class PipelinesAPI:
3318
3326
  tags: Optional[Dict[str, str]] = None,
3319
3327
  target: Optional[str] = None,
3320
3328
  trigger: Optional[PipelineTrigger] = None,
3329
+ usage_policy_id: Optional[str] = None,
3321
3330
  ) -> CreatePipelineResponse:
3322
3331
  """Creates a new data processing pipeline based on the requested configuration. If successful, this
3323
3332
  method returns the ID of the new pipeline.
@@ -3388,9 +3397,12 @@ class PipelinesAPI:
3388
3397
  for pipeline creation in favor of the `schema` field.
3389
3398
  :param trigger: :class:`PipelineTrigger` (optional)
3390
3399
  Which pipeline trigger to use. Deprecated: Use `continuous` instead.
3400
+ :param usage_policy_id: str (optional)
3401
+ Usage policy of this pipeline.
3391
3402
 
3392
3403
  :returns: :class:`CreatePipelineResponse`
3393
3404
  """
3405
+
3394
3406
  body = {}
3395
3407
  if allow_duplicate_names is not None:
3396
3408
  body["allow_duplicate_names"] = allow_duplicate_names
@@ -3452,6 +3464,8 @@ class PipelinesAPI:
3452
3464
  body["target"] = target
3453
3465
  if trigger is not None:
3454
3466
  body["trigger"] = trigger.as_dict()
3467
+ if usage_policy_id is not None:
3468
+ body["usage_policy_id"] = usage_policy_id
3455
3469
  headers = {
3456
3470
  "Accept": "application/json",
3457
3471
  "Content-Type": "application/json",
@@ -3699,6 +3713,7 @@ class PipelinesAPI:
3699
3713
 
3700
3714
  :returns: :class:`PipelinePermissions`
3701
3715
  """
3716
+
3702
3717
  body = {}
3703
3718
  if access_control_list is not None:
3704
3719
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -3741,6 +3756,7 @@ class PipelinesAPI:
3741
3756
 
3742
3757
  :returns: :class:`StartUpdateResponse`
3743
3758
  """
3759
+
3744
3760
  body = {}
3745
3761
  if cause is not None:
3746
3762
  body["cause"] = cause.value
@@ -3815,6 +3831,7 @@ class PipelinesAPI:
3815
3831
  tags: Optional[Dict[str, str]] = None,
3816
3832
  target: Optional[str] = None,
3817
3833
  trigger: Optional[PipelineTrigger] = None,
3834
+ usage_policy_id: Optional[str] = None,
3818
3835
  ):
3819
3836
  """Updates a pipeline with the supplied configuration.
3820
3837
 
@@ -3888,9 +3905,12 @@ class PipelinesAPI:
3888
3905
  for pipeline creation in favor of the `schema` field.
3889
3906
  :param trigger: :class:`PipelineTrigger` (optional)
3890
3907
  Which pipeline trigger to use. Deprecated: Use `continuous` instead.
3908
+ :param usage_policy_id: str (optional)
3909
+ Usage policy of this pipeline.
3891
3910
 
3892
3911
 
3893
3912
  """
3913
+
3894
3914
  body = {}
3895
3915
  if allow_duplicate_names is not None:
3896
3916
  body["allow_duplicate_names"] = allow_duplicate_names
@@ -3952,6 +3972,8 @@ class PipelinesAPI:
3952
3972
  body["target"] = target
3953
3973
  if trigger is not None:
3954
3974
  body["trigger"] = trigger.as_dict()
3975
+ if usage_policy_id is not None:
3976
+ body["usage_policy_id"] = usage_policy_id
3955
3977
  headers = {
3956
3978
  "Accept": "application/json",
3957
3979
  "Content-Type": "application/json",
@@ -3970,6 +3992,7 @@ class PipelinesAPI:
3970
3992
 
3971
3993
  :returns: :class:`PipelinePermissions`
3972
3994
  """
3995
+
3973
3996
  body = {}
3974
3997
  if access_control_list is not None:
3975
3998
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -1436,7 +1436,7 @@ class Workspace:
1436
1436
  azure_workspace_info: Optional[AzureWorkspaceInfo] = None
1437
1437
 
1438
1438
  cloud: Optional[str] = None
1439
- """The cloud name. This field always has the value `gcp`."""
1439
+ """The cloud name. This field can have values like `azure`, `gcp`."""
1440
1440
 
1441
1441
  cloud_resource_container: Optional[CloudResourceContainer] = None
1442
1442
 
@@ -1765,6 +1765,7 @@ class CredentialsAPI:
1765
1765
 
1766
1766
  :returns: :class:`Credential`
1767
1767
  """
1768
+
1768
1769
  body = {}
1769
1770
  if aws_credentials is not None:
1770
1771
  body["aws_credentials"] = aws_credentials.as_dict()
@@ -1876,6 +1877,7 @@ class EncryptionKeysAPI:
1876
1877
 
1877
1878
  :returns: :class:`CustomerManagedKey`
1878
1879
  """
1880
+
1879
1881
  body = {}
1880
1882
  if aws_key_info is not None:
1881
1883
  body["aws_key_info"] = aws_key_info.as_dict()
@@ -1996,6 +1998,7 @@ class NetworksAPI:
1996
1998
 
1997
1999
  :returns: :class:`Network`
1998
2000
  """
2001
+
1999
2002
  body = {}
2000
2003
  if gcp_network_info is not None:
2001
2004
  body["gcp_network_info"] = gcp_network_info.as_dict()
@@ -2111,6 +2114,7 @@ class PrivateAccessAPI:
2111
2114
 
2112
2115
  :returns: :class:`PrivateAccessSettings`
2113
2116
  """
2117
+
2114
2118
  body = {}
2115
2119
  if allowed_vpc_endpoint_ids is not None:
2116
2120
  body["allowed_vpc_endpoint_ids"] = [v for v in allowed_vpc_endpoint_ids]
@@ -2205,6 +2209,7 @@ class PrivateAccessAPI:
2205
2209
 
2206
2210
  :returns: :class:`PrivateAccessSettings`
2207
2211
  """
2212
+
2208
2213
  body = customer_facing_private_access_settings.as_dict()
2209
2214
  headers = {
2210
2215
  "Accept": "application/json",
@@ -2247,6 +2252,7 @@ class StorageAPI:
2247
2252
 
2248
2253
  :returns: :class:`StorageConfiguration`
2249
2254
  """
2255
+
2250
2256
  body = {}
2251
2257
  if role_arn is not None:
2252
2258
  body["role_arn"] = role_arn
@@ -2356,6 +2362,7 @@ class VpcEndpointsAPI:
2356
2362
 
2357
2363
  :returns: :class:`VpcEndpoint`
2358
2364
  """
2365
+
2359
2366
  body = {}
2360
2367
  if aws_vpc_endpoint_id is not None:
2361
2368
  body["aws_vpc_endpoint_id"] = aws_vpc_endpoint_id
@@ -2487,6 +2494,7 @@ class WorkspacesAPI:
2487
2494
  gke_config: Optional[GkeConfig] = None,
2488
2495
  location: Optional[str] = None,
2489
2496
  managed_services_customer_managed_key_id: Optional[str] = None,
2497
+ network_connectivity_config_id: Optional[str] = None,
2490
2498
  network_id: Optional[str] = None,
2491
2499
  pricing_tier: Optional[PricingTier] = None,
2492
2500
  private_access_settings_id: Optional[str] = None,
@@ -2565,6 +2573,10 @@ class WorkspacesAPI:
2565
2573
  The ID of the workspace's managed services encryption key configuration object. This is used to help
2566
2574
  protect and control access to the workspace's notebooks, secrets, Databricks SQL queries, and query
2567
2575
  history. The provided key configuration object property use_cases must contain MANAGED_SERVICES.
2576
+ :param network_connectivity_config_id: str (optional)
2577
+ The object ID of network connectivity config. Once assigned, the workspace serverless compute
2578
+ resources use the same set of stable IP CIDR blocks and optional private link to access your
2579
+ resources.
2568
2580
  :param network_id: str (optional)
2569
2581
  The ID of the workspace's network configuration object. To use AWS PrivateLink, this field is
2570
2582
  required.
@@ -2590,6 +2602,7 @@ class WorkspacesAPI:
2590
2602
  Long-running operation waiter for :class:`Workspace`.
2591
2603
  See :method:wait_get_workspace_running for more details.
2592
2604
  """
2605
+
2593
2606
  body = {}
2594
2607
  if aws_region is not None:
2595
2608
  body["aws_region"] = aws_region
@@ -2613,6 +2626,8 @@ class WorkspacesAPI:
2613
2626
  body["location"] = location
2614
2627
  if managed_services_customer_managed_key_id is not None:
2615
2628
  body["managed_services_customer_managed_key_id"] = managed_services_customer_managed_key_id
2629
+ if network_connectivity_config_id is not None:
2630
+ body["network_connectivity_config_id"] = network_connectivity_config_id
2616
2631
  if network_id is not None:
2617
2632
  body["network_id"] = network_id
2618
2633
  if pricing_tier is not None:
@@ -2653,6 +2668,7 @@ class WorkspacesAPI:
2653
2668
  gke_config: Optional[GkeConfig] = None,
2654
2669
  location: Optional[str] = None,
2655
2670
  managed_services_customer_managed_key_id: Optional[str] = None,
2671
+ network_connectivity_config_id: Optional[str] = None,
2656
2672
  network_id: Optional[str] = None,
2657
2673
  pricing_tier: Optional[PricingTier] = None,
2658
2674
  private_access_settings_id: Optional[str] = None,
@@ -2673,6 +2689,7 @@ class WorkspacesAPI:
2673
2689
  gke_config=gke_config,
2674
2690
  location=location,
2675
2691
  managed_services_customer_managed_key_id=managed_services_customer_managed_key_id,
2692
+ network_connectivity_config_id=network_connectivity_config_id,
2676
2693
  network_id=network_id,
2677
2694
  pricing_tier=pricing_tier,
2678
2695
  private_access_settings_id=private_access_settings_id,
@@ -2759,6 +2776,7 @@ class WorkspacesAPI:
2759
2776
  Long-running operation waiter for :class:`Workspace`.
2760
2777
  See :method:wait_get_workspace_running for more details.
2761
2778
  """
2779
+
2762
2780
  body = customer_facing_workspace.as_dict()
2763
2781
  query = {}
2764
2782
  if update_mask is not None:
@@ -151,6 +151,7 @@ class QualityMonitorV2API:
151
151
 
152
152
  :returns: :class:`QualityMonitor`
153
153
  """
154
+
154
155
  body = quality_monitor.as_dict()
155
156
  headers = {
156
157
  "Accept": "application/json",
@@ -237,6 +238,7 @@ class QualityMonitorV2API:
237
238
 
238
239
  :returns: :class:`QualityMonitor`
239
240
  """
241
+
240
242
  body = quality_monitor.as_dict()
241
243
  headers = {
242
244
  "Accept": "application/json",
@@ -1036,24 +1036,6 @@ class DataframeSplitInput:
1036
1036
  return cls(columns=d.get("columns", None), data=d.get("data", None), index=d.get("index", None))
1037
1037
 
1038
1038
 
1039
- @dataclass
1040
- class DeleteResponse:
1041
- def as_dict(self) -> dict:
1042
- """Serializes the DeleteResponse into a dictionary suitable for use as a JSON request body."""
1043
- body = {}
1044
- return body
1045
-
1046
- def as_shallow_dict(self) -> dict:
1047
- """Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
1048
- body = {}
1049
- return body
1050
-
1051
- @classmethod
1052
- def from_dict(cls, d: Dict[str, Any]) -> DeleteResponse:
1053
- """Deserializes the DeleteResponse from a dictionary."""
1054
- return cls()
1055
-
1056
-
1057
1039
  @dataclass
1058
1040
  class EmailNotifications:
1059
1041
  on_update_failure: Optional[List[str]] = None
@@ -1141,15 +1123,15 @@ class EmbeddingsV1ResponseEmbeddingElementObject(Enum):
1141
1123
 
1142
1124
  @dataclass
1143
1125
  class EndpointCoreConfigInput:
1126
+ name: str
1127
+ """The name of the serving endpoint to update. This field is required."""
1128
+
1144
1129
  auto_capture_config: Optional[AutoCaptureConfigInput] = None
1145
1130
  """Configuration for Inference Tables which automatically logs requests and responses to Unity
1146
1131
  Catalog. Note: this field is deprecated for creating new provisioned throughput endpoints, or
1147
1132
  updating existing provisioned throughput endpoints that never have inference table configured;
1148
1133
  in these cases please use AI Gateway to manage inference tables."""
1149
1134
 
1150
- name: Optional[str] = None
1151
- """The name of the serving endpoint to update. This field is required."""
1152
-
1153
1135
  served_entities: Optional[List[ServedEntityInput]] = None
1154
1136
  """The list of served entities under the serving endpoint config."""
1155
1137
 
@@ -4109,6 +4091,7 @@ class ServingEndpointsAPI:
4109
4091
  Long-running operation waiter for :class:`ServingEndpointDetailed`.
4110
4092
  See :method:wait_get_serving_endpoint_not_updating for more details.
4111
4093
  """
4094
+
4112
4095
  body = {}
4113
4096
  if ai_gateway is not None:
4114
4097
  body["ai_gateway"] = ai_gateway.as_dict()
@@ -4196,6 +4179,7 @@ class ServingEndpointsAPI:
4196
4179
  Long-running operation waiter for :class:`ServingEndpointDetailed`.
4197
4180
  See :method:wait_get_serving_endpoint_not_updating for more details.
4198
4181
  """
4182
+
4199
4183
  body = {}
4200
4184
  if ai_gateway is not None:
4201
4185
  body["ai_gateway"] = ai_gateway.as_dict()
@@ -4366,6 +4350,7 @@ class ServingEndpointsAPI:
4366
4350
 
4367
4351
  :returns: :class:`HttpRequestResponse`
4368
4352
  """
4353
+
4369
4354
  body = {}
4370
4355
  if connection_name is not None:
4371
4356
  body["connection_name"] = connection_name
@@ -4436,6 +4421,7 @@ class ServingEndpointsAPI:
4436
4421
 
4437
4422
  :returns: :class:`EndpointTags`
4438
4423
  """
4424
+
4439
4425
  body = {}
4440
4426
  if add_tags is not None:
4441
4427
  body["add_tags"] = [v.as_dict() for v in add_tags]
@@ -4459,6 +4445,7 @@ class ServingEndpointsAPI:
4459
4445
 
4460
4446
  :returns: :class:`PutResponse`
4461
4447
  """
4448
+
4462
4449
  body = {}
4463
4450
  if rate_limits is not None:
4464
4451
  body["rate_limits"] = [v.as_dict() for v in rate_limits]
@@ -4501,6 +4488,7 @@ class ServingEndpointsAPI:
4501
4488
 
4502
4489
  :returns: :class:`PutAiGatewayResponse`
4503
4490
  """
4491
+
4504
4492
  body = {}
4505
4493
  if fallback_config is not None:
4506
4494
  body["fallback_config"] = fallback_config.as_dict()
@@ -4593,6 +4581,7 @@ class ServingEndpointsAPI:
4593
4581
 
4594
4582
  :returns: :class:`QueryEndpointResponse`
4595
4583
  """
4584
+
4596
4585
  body = {}
4597
4586
  if client_request_id is not None:
4598
4587
  body["client_request_id"] = client_request_id
@@ -4656,6 +4645,7 @@ class ServingEndpointsAPI:
4656
4645
 
4657
4646
  :returns: :class:`ServingEndpointPermissions`
4658
4647
  """
4648
+
4659
4649
  body = {}
4660
4650
  if access_control_list is not None:
4661
4651
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -4701,6 +4691,7 @@ class ServingEndpointsAPI:
4701
4691
  Long-running operation waiter for :class:`ServingEndpointDetailed`.
4702
4692
  See :method:wait_get_serving_endpoint_not_updating for more details.
4703
4693
  """
4694
+
4704
4695
  body = {}
4705
4696
  if auto_capture_config is not None:
4706
4697
  body["auto_capture_config"] = auto_capture_config.as_dict()
@@ -4753,6 +4744,7 @@ class ServingEndpointsAPI:
4753
4744
 
4754
4745
  :returns: :class:`UpdateInferenceEndpointNotificationsResponse`
4755
4746
  """
4747
+
4756
4748
  body = {}
4757
4749
  if email_notifications is not None:
4758
4750
  body["email_notifications"] = email_notifications.as_dict()
@@ -4779,6 +4771,7 @@ class ServingEndpointsAPI:
4779
4771
 
4780
4772
  :returns: :class:`ServingEndpointPermissions`
4781
4773
  """
4774
+
4782
4775
  body = {}
4783
4776
  if access_control_list is not None:
4784
4777
  body["access_control_list"] = [v.as_dict() for v in access_control_list]
@@ -4807,6 +4800,7 @@ class ServingEndpointsAPI:
4807
4800
  Long-running operation waiter for :class:`ServingEndpointDetailed`.
4808
4801
  See :method:wait_get_serving_endpoint_not_updating for more details.
4809
4802
  """
4803
+
4810
4804
  body = {}
4811
4805
  if config is not None:
4812
4806
  body["config"] = config.as_dict()
@@ -4931,6 +4925,7 @@ class ServingEndpointsDataPlaneAPI:
4931
4925
 
4932
4926
  :returns: :class:`QueryEndpointResponse`
4933
4927
  """
4928
+
4934
4929
  body = {}
4935
4930
  if client_request_id is not None:
4936
4931
  body["client_request_id"] = client_request_id