databricks-sdk 0.37.0__py3-none-any.whl → 0.39.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 (33) hide show
  1. databricks/sdk/__init__.py +24 -2
  2. databricks/sdk/_base_client.py +61 -14
  3. databricks/sdk/config.py +10 -9
  4. databricks/sdk/credentials_provider.py +6 -5
  5. databricks/sdk/mixins/jobs.py +49 -0
  6. databricks/sdk/mixins/open_ai_client.py +2 -2
  7. databricks/sdk/service/apps.py +185 -4
  8. databricks/sdk/service/billing.py +248 -1
  9. databricks/sdk/service/catalog.py +1943 -46
  10. databricks/sdk/service/cleanrooms.py +1281 -0
  11. databricks/sdk/service/compute.py +1486 -8
  12. databricks/sdk/service/dashboards.py +336 -11
  13. databricks/sdk/service/files.py +162 -2
  14. databricks/sdk/service/iam.py +353 -2
  15. databricks/sdk/service/jobs.py +1281 -16
  16. databricks/sdk/service/marketplace.py +688 -0
  17. databricks/sdk/service/ml.py +1038 -2
  18. databricks/sdk/service/oauth2.py +176 -0
  19. databricks/sdk/service/pipelines.py +602 -15
  20. databricks/sdk/service/provisioning.py +402 -0
  21. databricks/sdk/service/serving.py +615 -0
  22. databricks/sdk/service/settings.py +1190 -3
  23. databricks/sdk/service/sharing.py +328 -2
  24. databricks/sdk/service/sql.py +1186 -2
  25. databricks/sdk/service/vectorsearch.py +290 -0
  26. databricks/sdk/service/workspace.py +453 -1
  27. databricks/sdk/version.py +1 -1
  28. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/METADATA +26 -26
  29. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/RECORD +33 -31
  30. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/WHEEL +1 -1
  31. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/LICENSE +0 -0
  32. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/NOTICE +0 -0
  33. {databricks_sdk-0.37.0.dist-info → databricks_sdk-0.39.0.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,16 @@ class CreateCustomAppIntegration:
41
41
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
42
42
  return body
43
43
 
44
+ def as_shallow_dict(self) -> dict:
45
+ """Serializes the CreateCustomAppIntegration into a shallow dictionary of its immediate attributes."""
46
+ body = {}
47
+ if self.confidential is not None: body['confidential'] = self.confidential
48
+ if self.name is not None: body['name'] = self.name
49
+ if self.redirect_urls: body['redirect_urls'] = self.redirect_urls
50
+ if self.scopes: body['scopes'] = self.scopes
51
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
52
+ return body
53
+
44
54
  @classmethod
45
55
  def from_dict(cls, d: Dict[str, any]) -> CreateCustomAppIntegration:
46
56
  """Deserializes the CreateCustomAppIntegration from a dictionary."""
@@ -71,6 +81,14 @@ class CreateCustomAppIntegrationOutput:
71
81
  if self.integration_id is not None: body['integration_id'] = self.integration_id
72
82
  return body
73
83
 
84
+ def as_shallow_dict(self) -> dict:
85
+ """Serializes the CreateCustomAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
86
+ body = {}
87
+ if self.client_id is not None: body['client_id'] = self.client_id
88
+ if self.client_secret is not None: body['client_secret'] = self.client_secret
89
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
90
+ return body
91
+
74
92
  @classmethod
75
93
  def from_dict(cls, d: Dict[str, any]) -> CreateCustomAppIntegrationOutput:
76
94
  """Deserializes the CreateCustomAppIntegrationOutput from a dictionary."""
@@ -94,6 +112,13 @@ class CreatePublishedAppIntegration:
94
112
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
95
113
  return body
96
114
 
115
+ def as_shallow_dict(self) -> dict:
116
+ """Serializes the CreatePublishedAppIntegration into a shallow dictionary of its immediate attributes."""
117
+ body = {}
118
+ if self.app_id is not None: body['app_id'] = self.app_id
119
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
120
+ return body
121
+
97
122
  @classmethod
98
123
  def from_dict(cls, d: Dict[str, any]) -> CreatePublishedAppIntegration:
99
124
  """Deserializes the CreatePublishedAppIntegration from a dictionary."""
@@ -112,6 +137,12 @@ class CreatePublishedAppIntegrationOutput:
112
137
  if self.integration_id is not None: body['integration_id'] = self.integration_id
113
138
  return body
114
139
 
140
+ def as_shallow_dict(self) -> dict:
141
+ """Serializes the CreatePublishedAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
142
+ body = {}
143
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
144
+ return body
145
+
115
146
  @classmethod
116
147
  def from_dict(cls, d: Dict[str, any]) -> CreatePublishedAppIntegrationOutput:
117
148
  """Deserializes the CreatePublishedAppIntegrationOutput from a dictionary."""
@@ -149,6 +180,17 @@ class CreateServicePrincipalSecretResponse:
149
180
  if self.update_time is not None: body['update_time'] = self.update_time
150
181
  return body
151
182
 
183
+ def as_shallow_dict(self) -> dict:
184
+ """Serializes the CreateServicePrincipalSecretResponse into a shallow dictionary of its immediate attributes."""
185
+ body = {}
186
+ if self.create_time is not None: body['create_time'] = self.create_time
187
+ if self.id is not None: body['id'] = self.id
188
+ if self.secret is not None: body['secret'] = self.secret
189
+ if self.secret_hash is not None: body['secret_hash'] = self.secret_hash
190
+ if self.status is not None: body['status'] = self.status
191
+ if self.update_time is not None: body['update_time'] = self.update_time
192
+ return body
193
+
152
194
  @classmethod
153
195
  def from_dict(cls, d: Dict[str, any]) -> CreateServicePrincipalSecretResponse:
154
196
  """Deserializes the CreateServicePrincipalSecretResponse from a dictionary."""
@@ -175,6 +217,13 @@ class DataPlaneInfo:
175
217
  if self.endpoint_url is not None: body['endpoint_url'] = self.endpoint_url
176
218
  return body
177
219
 
220
+ def as_shallow_dict(self) -> dict:
221
+ """Serializes the DataPlaneInfo into a shallow dictionary of its immediate attributes."""
222
+ body = {}
223
+ if self.authorization_details is not None: body['authorization_details'] = self.authorization_details
224
+ if self.endpoint_url is not None: body['endpoint_url'] = self.endpoint_url
225
+ return body
226
+
178
227
  @classmethod
179
228
  def from_dict(cls, d: Dict[str, any]) -> DataPlaneInfo:
180
229
  """Deserializes the DataPlaneInfo from a dictionary."""
@@ -190,6 +239,11 @@ class DeleteCustomAppIntegrationOutput:
190
239
  body = {}
191
240
  return body
192
241
 
242
+ def as_shallow_dict(self) -> dict:
243
+ """Serializes the DeleteCustomAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
244
+ body = {}
245
+ return body
246
+
193
247
  @classmethod
194
248
  def from_dict(cls, d: Dict[str, any]) -> DeleteCustomAppIntegrationOutput:
195
249
  """Deserializes the DeleteCustomAppIntegrationOutput from a dictionary."""
@@ -204,6 +258,11 @@ class DeletePublishedAppIntegrationOutput:
204
258
  body = {}
205
259
  return body
206
260
 
261
+ def as_shallow_dict(self) -> dict:
262
+ """Serializes the DeletePublishedAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
263
+ body = {}
264
+ return body
265
+
207
266
  @classmethod
208
267
  def from_dict(cls, d: Dict[str, any]) -> DeletePublishedAppIntegrationOutput:
209
268
  """Deserializes the DeletePublishedAppIntegrationOutput from a dictionary."""
@@ -218,6 +277,11 @@ class DeleteResponse:
218
277
  body = {}
219
278
  return body
220
279
 
280
+ def as_shallow_dict(self) -> dict:
281
+ """Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
282
+ body = {}
283
+ return body
284
+
221
285
  @classmethod
222
286
  def from_dict(cls, d: Dict[str, any]) -> DeleteResponse:
223
287
  """Deserializes the DeleteResponse from a dictionary."""
@@ -267,6 +331,21 @@ class GetCustomAppIntegrationOutput:
267
331
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
268
332
  return body
269
333
 
334
+ def as_shallow_dict(self) -> dict:
335
+ """Serializes the GetCustomAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
336
+ body = {}
337
+ if self.client_id is not None: body['client_id'] = self.client_id
338
+ if self.confidential is not None: body['confidential'] = self.confidential
339
+ if self.create_time is not None: body['create_time'] = self.create_time
340
+ if self.created_by is not None: body['created_by'] = self.created_by
341
+ if self.creator_username is not None: body['creator_username'] = self.creator_username
342
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
343
+ if self.name is not None: body['name'] = self.name
344
+ if self.redirect_urls: body['redirect_urls'] = self.redirect_urls
345
+ if self.scopes: body['scopes'] = self.scopes
346
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
347
+ return body
348
+
270
349
  @classmethod
271
350
  def from_dict(cls, d: Dict[str, any]) -> GetCustomAppIntegrationOutput:
272
351
  """Deserializes the GetCustomAppIntegrationOutput from a dictionary."""
@@ -296,6 +375,13 @@ class GetCustomAppIntegrationsOutput:
296
375
  if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
297
376
  return body
298
377
 
378
+ def as_shallow_dict(self) -> dict:
379
+ """Serializes the GetCustomAppIntegrationsOutput into a shallow dictionary of its immediate attributes."""
380
+ body = {}
381
+ if self.apps: body['apps'] = self.apps
382
+ if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
383
+ return body
384
+
299
385
  @classmethod
300
386
  def from_dict(cls, d: Dict[str, any]) -> GetCustomAppIntegrationsOutput:
301
387
  """Deserializes the GetCustomAppIntegrationsOutput from a dictionary."""
@@ -332,6 +418,17 @@ class GetPublishedAppIntegrationOutput:
332
418
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
333
419
  return body
334
420
 
421
+ def as_shallow_dict(self) -> dict:
422
+ """Serializes the GetPublishedAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
423
+ body = {}
424
+ if self.app_id is not None: body['app_id'] = self.app_id
425
+ if self.create_time is not None: body['create_time'] = self.create_time
426
+ if self.created_by is not None: body['created_by'] = self.created_by
427
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
428
+ if self.name is not None: body['name'] = self.name
429
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
430
+ return body
431
+
335
432
  @classmethod
336
433
  def from_dict(cls, d: Dict[str, any]) -> GetPublishedAppIntegrationOutput:
337
434
  """Deserializes the GetPublishedAppIntegrationOutput from a dictionary."""
@@ -357,6 +454,13 @@ class GetPublishedAppIntegrationsOutput:
357
454
  if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
358
455
  return body
359
456
 
457
+ def as_shallow_dict(self) -> dict:
458
+ """Serializes the GetPublishedAppIntegrationsOutput into a shallow dictionary of its immediate attributes."""
459
+ body = {}
460
+ if self.apps: body['apps'] = self.apps
461
+ if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
462
+ return body
463
+
360
464
  @classmethod
361
465
  def from_dict(cls, d: Dict[str, any]) -> GetPublishedAppIntegrationsOutput:
362
466
  """Deserializes the GetPublishedAppIntegrationsOutput from a dictionary."""
@@ -380,6 +484,13 @@ class GetPublishedAppsOutput:
380
484
  if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
381
485
  return body
382
486
 
487
+ def as_shallow_dict(self) -> dict:
488
+ """Serializes the GetPublishedAppsOutput into a shallow dictionary of its immediate attributes."""
489
+ body = {}
490
+ if self.apps: body['apps'] = self.apps
491
+ if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
492
+ return body
493
+
383
494
  @classmethod
384
495
  def from_dict(cls, d: Dict[str, any]) -> GetPublishedAppsOutput:
385
496
  """Deserializes the GetPublishedAppsOutput from a dictionary."""
@@ -402,6 +513,13 @@ class ListServicePrincipalSecretsResponse:
402
513
  if self.secrets: body['secrets'] = [v.as_dict() for v in self.secrets]
403
514
  return body
404
515
 
516
+ def as_shallow_dict(self) -> dict:
517
+ """Serializes the ListServicePrincipalSecretsResponse into a shallow dictionary of its immediate attributes."""
518
+ body = {}
519
+ if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
520
+ if self.secrets: body['secrets'] = self.secrets
521
+ return body
522
+
405
523
  @classmethod
406
524
  def from_dict(cls, d: Dict[str, any]) -> ListServicePrincipalSecretsResponse:
407
525
  """Deserializes the ListServicePrincipalSecretsResponse from a dictionary."""
@@ -446,6 +564,19 @@ class PublishedAppOutput:
446
564
  if self.scopes: body['scopes'] = [v for v in self.scopes]
447
565
  return body
448
566
 
567
+ def as_shallow_dict(self) -> dict:
568
+ """Serializes the PublishedAppOutput into a shallow dictionary of its immediate attributes."""
569
+ body = {}
570
+ if self.app_id is not None: body['app_id'] = self.app_id
571
+ if self.client_id is not None: body['client_id'] = self.client_id
572
+ if self.description is not None: body['description'] = self.description
573
+ if self.is_confidential_client is not None:
574
+ body['is_confidential_client'] = self.is_confidential_client
575
+ if self.name is not None: body['name'] = self.name
576
+ if self.redirect_urls: body['redirect_urls'] = self.redirect_urls
577
+ if self.scopes: body['scopes'] = self.scopes
578
+ return body
579
+
449
580
  @classmethod
450
581
  def from_dict(cls, d: Dict[str, any]) -> PublishedAppOutput:
451
582
  """Deserializes the PublishedAppOutput from a dictionary."""
@@ -485,6 +616,16 @@ class SecretInfo:
485
616
  if self.update_time is not None: body['update_time'] = self.update_time
486
617
  return body
487
618
 
619
+ def as_shallow_dict(self) -> dict:
620
+ """Serializes the SecretInfo into a shallow dictionary of its immediate attributes."""
621
+ body = {}
622
+ if self.create_time is not None: body['create_time'] = self.create_time
623
+ if self.id is not None: body['id'] = self.id
624
+ if self.secret_hash is not None: body['secret_hash'] = self.secret_hash
625
+ if self.status is not None: body['status'] = self.status
626
+ if self.update_time is not None: body['update_time'] = self.update_time
627
+ return body
628
+
488
629
  @classmethod
489
630
  def from_dict(cls, d: Dict[str, any]) -> SecretInfo:
490
631
  """Deserializes the SecretInfo from a dictionary."""
@@ -512,6 +653,15 @@ class TokenAccessPolicy:
512
653
  body['refresh_token_ttl_in_minutes'] = self.refresh_token_ttl_in_minutes
513
654
  return body
514
655
 
656
+ def as_shallow_dict(self) -> dict:
657
+ """Serializes the TokenAccessPolicy into a shallow dictionary of its immediate attributes."""
658
+ body = {}
659
+ if self.access_token_ttl_in_minutes is not None:
660
+ body['access_token_ttl_in_minutes'] = self.access_token_ttl_in_minutes
661
+ if self.refresh_token_ttl_in_minutes is not None:
662
+ body['refresh_token_ttl_in_minutes'] = self.refresh_token_ttl_in_minutes
663
+ return body
664
+
515
665
  @classmethod
516
666
  def from_dict(cls, d: Dict[str, any]) -> TokenAccessPolicy:
517
667
  """Deserializes the TokenAccessPolicy from a dictionary."""
@@ -537,6 +687,14 @@ class UpdateCustomAppIntegration:
537
687
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
538
688
  return body
539
689
 
690
+ def as_shallow_dict(self) -> dict:
691
+ """Serializes the UpdateCustomAppIntegration into a shallow dictionary of its immediate attributes."""
692
+ body = {}
693
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
694
+ if self.redirect_urls: body['redirect_urls'] = self.redirect_urls
695
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
696
+ return body
697
+
540
698
  @classmethod
541
699
  def from_dict(cls, d: Dict[str, any]) -> UpdateCustomAppIntegration:
542
700
  """Deserializes the UpdateCustomAppIntegration from a dictionary."""
@@ -553,6 +711,11 @@ class UpdateCustomAppIntegrationOutput:
553
711
  body = {}
554
712
  return body
555
713
 
714
+ def as_shallow_dict(self) -> dict:
715
+ """Serializes the UpdateCustomAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
716
+ body = {}
717
+ return body
718
+
556
719
  @classmethod
557
720
  def from_dict(cls, d: Dict[str, any]) -> UpdateCustomAppIntegrationOutput:
558
721
  """Deserializes the UpdateCustomAppIntegrationOutput from a dictionary."""
@@ -573,6 +736,13 @@ class UpdatePublishedAppIntegration:
573
736
  if self.token_access_policy: body['token_access_policy'] = self.token_access_policy.as_dict()
574
737
  return body
575
738
 
739
+ def as_shallow_dict(self) -> dict:
740
+ """Serializes the UpdatePublishedAppIntegration into a shallow dictionary of its immediate attributes."""
741
+ body = {}
742
+ if self.integration_id is not None: body['integration_id'] = self.integration_id
743
+ if self.token_access_policy: body['token_access_policy'] = self.token_access_policy
744
+ return body
745
+
576
746
  @classmethod
577
747
  def from_dict(cls, d: Dict[str, any]) -> UpdatePublishedAppIntegration:
578
748
  """Deserializes the UpdatePublishedAppIntegration from a dictionary."""
@@ -588,6 +758,11 @@ class UpdatePublishedAppIntegrationOutput:
588
758
  body = {}
589
759
  return body
590
760
 
761
+ def as_shallow_dict(self) -> dict:
762
+ """Serializes the UpdatePublishedAppIntegrationOutput into a shallow dictionary of its immediate attributes."""
763
+ body = {}
764
+ return body
765
+
591
766
  @classmethod
592
767
  def from_dict(cls, d: Dict[str, any]) -> UpdatePublishedAppIntegrationOutput:
593
768
  """Deserializes the UpdatePublishedAppIntegrationOutput from a dictionary."""
@@ -666,6 +841,7 @@ class CustomAppIntegrationAPI:
666
841
  Gets the Custom OAuth App Integration for the given integration id.
667
842
 
668
843
  :param integration_id: str
844
+ The OAuth app integration ID.
669
845
 
670
846
  :returns: :class:`GetCustomAppIntegrationOutput`
671
847
  """