databricks-sdk 0.38.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.
- databricks/sdk/__init__.py +21 -0
- databricks/sdk/mixins/open_ai_client.py +2 -2
- databricks/sdk/service/apps.py +175 -0
- databricks/sdk/service/billing.py +247 -0
- databricks/sdk/service/catalog.py +1794 -61
- databricks/sdk/service/cleanrooms.py +1281 -0
- databricks/sdk/service/compute.py +1486 -8
- databricks/sdk/service/dashboards.py +326 -1
- databricks/sdk/service/files.py +162 -2
- databricks/sdk/service/iam.py +351 -0
- databricks/sdk/service/jobs.py +1264 -8
- databricks/sdk/service/marketplace.py +688 -0
- databricks/sdk/service/ml.py +1038 -2
- databricks/sdk/service/oauth2.py +175 -0
- databricks/sdk/service/pipelines.py +520 -0
- databricks/sdk/service/provisioning.py +387 -0
- databricks/sdk/service/serving.py +615 -0
- databricks/sdk/service/settings.py +1186 -1
- databricks/sdk/service/sharing.py +326 -2
- databricks/sdk/service/sql.py +1186 -2
- databricks/sdk/service/vectorsearch.py +290 -0
- databricks/sdk/service/workspace.py +451 -0
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/METADATA +26 -26
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/RECORD +29 -28
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/top_level.txt +0 -0
databricks/sdk/service/files.py
CHANGED
|
@@ -28,6 +28,13 @@ class AddBlock:
|
|
|
28
28
|
if self.handle is not None: body['handle'] = self.handle
|
|
29
29
|
return body
|
|
30
30
|
|
|
31
|
+
def as_shallow_dict(self) -> dict:
|
|
32
|
+
"""Serializes the AddBlock into a shallow dictionary of its immediate attributes."""
|
|
33
|
+
body = {}
|
|
34
|
+
if self.data is not None: body['data'] = self.data
|
|
35
|
+
if self.handle is not None: body['handle'] = self.handle
|
|
36
|
+
return body
|
|
37
|
+
|
|
31
38
|
@classmethod
|
|
32
39
|
def from_dict(cls, d: Dict[str, any]) -> AddBlock:
|
|
33
40
|
"""Deserializes the AddBlock from a dictionary."""
|
|
@@ -42,6 +49,11 @@ class AddBlockResponse:
|
|
|
42
49
|
body = {}
|
|
43
50
|
return body
|
|
44
51
|
|
|
52
|
+
def as_shallow_dict(self) -> dict:
|
|
53
|
+
"""Serializes the AddBlockResponse into a shallow dictionary of its immediate attributes."""
|
|
54
|
+
body = {}
|
|
55
|
+
return body
|
|
56
|
+
|
|
45
57
|
@classmethod
|
|
46
58
|
def from_dict(cls, d: Dict[str, any]) -> AddBlockResponse:
|
|
47
59
|
"""Deserializes the AddBlockResponse from a dictionary."""
|
|
@@ -59,6 +71,12 @@ class Close:
|
|
|
59
71
|
if self.handle is not None: body['handle'] = self.handle
|
|
60
72
|
return body
|
|
61
73
|
|
|
74
|
+
def as_shallow_dict(self) -> dict:
|
|
75
|
+
"""Serializes the Close into a shallow dictionary of its immediate attributes."""
|
|
76
|
+
body = {}
|
|
77
|
+
if self.handle is not None: body['handle'] = self.handle
|
|
78
|
+
return body
|
|
79
|
+
|
|
62
80
|
@classmethod
|
|
63
81
|
def from_dict(cls, d: Dict[str, any]) -> Close:
|
|
64
82
|
"""Deserializes the Close from a dictionary."""
|
|
@@ -73,6 +91,11 @@ class CloseResponse:
|
|
|
73
91
|
body = {}
|
|
74
92
|
return body
|
|
75
93
|
|
|
94
|
+
def as_shallow_dict(self) -> dict:
|
|
95
|
+
"""Serializes the CloseResponse into a shallow dictionary of its immediate attributes."""
|
|
96
|
+
body = {}
|
|
97
|
+
return body
|
|
98
|
+
|
|
76
99
|
@classmethod
|
|
77
100
|
def from_dict(cls, d: Dict[str, any]) -> CloseResponse:
|
|
78
101
|
"""Deserializes the CloseResponse from a dictionary."""
|
|
@@ -94,6 +117,13 @@ class Create:
|
|
|
94
117
|
if self.path is not None: body['path'] = self.path
|
|
95
118
|
return body
|
|
96
119
|
|
|
120
|
+
def as_shallow_dict(self) -> dict:
|
|
121
|
+
"""Serializes the Create into a shallow dictionary of its immediate attributes."""
|
|
122
|
+
body = {}
|
|
123
|
+
if self.overwrite is not None: body['overwrite'] = self.overwrite
|
|
124
|
+
if self.path is not None: body['path'] = self.path
|
|
125
|
+
return body
|
|
126
|
+
|
|
97
127
|
@classmethod
|
|
98
128
|
def from_dict(cls, d: Dict[str, any]) -> Create:
|
|
99
129
|
"""Deserializes the Create from a dictionary."""
|
|
@@ -108,6 +138,11 @@ class CreateDirectoryResponse:
|
|
|
108
138
|
body = {}
|
|
109
139
|
return body
|
|
110
140
|
|
|
141
|
+
def as_shallow_dict(self) -> dict:
|
|
142
|
+
"""Serializes the CreateDirectoryResponse into a shallow dictionary of its immediate attributes."""
|
|
143
|
+
body = {}
|
|
144
|
+
return body
|
|
145
|
+
|
|
111
146
|
@classmethod
|
|
112
147
|
def from_dict(cls, d: Dict[str, any]) -> CreateDirectoryResponse:
|
|
113
148
|
"""Deserializes the CreateDirectoryResponse from a dictionary."""
|
|
@@ -126,6 +161,12 @@ class CreateResponse:
|
|
|
126
161
|
if self.handle is not None: body['handle'] = self.handle
|
|
127
162
|
return body
|
|
128
163
|
|
|
164
|
+
def as_shallow_dict(self) -> dict:
|
|
165
|
+
"""Serializes the CreateResponse into a shallow dictionary of its immediate attributes."""
|
|
166
|
+
body = {}
|
|
167
|
+
if self.handle is not None: body['handle'] = self.handle
|
|
168
|
+
return body
|
|
169
|
+
|
|
129
170
|
@classmethod
|
|
130
171
|
def from_dict(cls, d: Dict[str, any]) -> CreateResponse:
|
|
131
172
|
"""Deserializes the CreateResponse from a dictionary."""
|
|
@@ -148,6 +189,13 @@ class Delete:
|
|
|
148
189
|
if self.recursive is not None: body['recursive'] = self.recursive
|
|
149
190
|
return body
|
|
150
191
|
|
|
192
|
+
def as_shallow_dict(self) -> dict:
|
|
193
|
+
"""Serializes the Delete into a shallow dictionary of its immediate attributes."""
|
|
194
|
+
body = {}
|
|
195
|
+
if self.path is not None: body['path'] = self.path
|
|
196
|
+
if self.recursive is not None: body['recursive'] = self.recursive
|
|
197
|
+
return body
|
|
198
|
+
|
|
151
199
|
@classmethod
|
|
152
200
|
def from_dict(cls, d: Dict[str, any]) -> Delete:
|
|
153
201
|
"""Deserializes the Delete from a dictionary."""
|
|
@@ -162,6 +210,11 @@ class DeleteDirectoryResponse:
|
|
|
162
210
|
body = {}
|
|
163
211
|
return body
|
|
164
212
|
|
|
213
|
+
def as_shallow_dict(self) -> dict:
|
|
214
|
+
"""Serializes the DeleteDirectoryResponse into a shallow dictionary of its immediate attributes."""
|
|
215
|
+
body = {}
|
|
216
|
+
return body
|
|
217
|
+
|
|
165
218
|
@classmethod
|
|
166
219
|
def from_dict(cls, d: Dict[str, any]) -> DeleteDirectoryResponse:
|
|
167
220
|
"""Deserializes the DeleteDirectoryResponse from a dictionary."""
|
|
@@ -176,6 +229,11 @@ class DeleteResponse:
|
|
|
176
229
|
body = {}
|
|
177
230
|
return body
|
|
178
231
|
|
|
232
|
+
def as_shallow_dict(self) -> dict:
|
|
233
|
+
"""Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
|
|
234
|
+
body = {}
|
|
235
|
+
return body
|
|
236
|
+
|
|
179
237
|
@classmethod
|
|
180
238
|
def from_dict(cls, d: Dict[str, any]) -> DeleteResponse:
|
|
181
239
|
"""Deserializes the DeleteResponse from a dictionary."""
|
|
@@ -209,6 +267,16 @@ class DirectoryEntry:
|
|
|
209
267
|
if self.path is not None: body['path'] = self.path
|
|
210
268
|
return body
|
|
211
269
|
|
|
270
|
+
def as_shallow_dict(self) -> dict:
|
|
271
|
+
"""Serializes the DirectoryEntry into a shallow dictionary of its immediate attributes."""
|
|
272
|
+
body = {}
|
|
273
|
+
if self.file_size is not None: body['file_size'] = self.file_size
|
|
274
|
+
if self.is_directory is not None: body['is_directory'] = self.is_directory
|
|
275
|
+
if self.last_modified is not None: body['last_modified'] = self.last_modified
|
|
276
|
+
if self.name is not None: body['name'] = self.name
|
|
277
|
+
if self.path is not None: body['path'] = self.path
|
|
278
|
+
return body
|
|
279
|
+
|
|
212
280
|
@classmethod
|
|
213
281
|
def from_dict(cls, d: Dict[str, any]) -> DirectoryEntry:
|
|
214
282
|
"""Deserializes the DirectoryEntry from a dictionary."""
|
|
@@ -238,6 +306,15 @@ class DownloadResponse:
|
|
|
238
306
|
if self.last_modified is not None: body['last-modified'] = self.last_modified
|
|
239
307
|
return body
|
|
240
308
|
|
|
309
|
+
def as_shallow_dict(self) -> dict:
|
|
310
|
+
"""Serializes the DownloadResponse into a shallow dictionary of its immediate attributes."""
|
|
311
|
+
body = {}
|
|
312
|
+
if self.content_length is not None: body['content-length'] = self.content_length
|
|
313
|
+
if self.content_type is not None: body['content-type'] = self.content_type
|
|
314
|
+
if self.contents: body['contents'] = self.contents
|
|
315
|
+
if self.last_modified is not None: body['last-modified'] = self.last_modified
|
|
316
|
+
return body
|
|
317
|
+
|
|
241
318
|
@classmethod
|
|
242
319
|
def from_dict(cls, d: Dict[str, any]) -> DownloadResponse:
|
|
243
320
|
"""Deserializes the DownloadResponse from a dictionary."""
|
|
@@ -270,6 +347,15 @@ class FileInfo:
|
|
|
270
347
|
if self.path is not None: body['path'] = self.path
|
|
271
348
|
return body
|
|
272
349
|
|
|
350
|
+
def as_shallow_dict(self) -> dict:
|
|
351
|
+
"""Serializes the FileInfo into a shallow dictionary of its immediate attributes."""
|
|
352
|
+
body = {}
|
|
353
|
+
if self.file_size is not None: body['file_size'] = self.file_size
|
|
354
|
+
if self.is_dir is not None: body['is_dir'] = self.is_dir
|
|
355
|
+
if self.modification_time is not None: body['modification_time'] = self.modification_time
|
|
356
|
+
if self.path is not None: body['path'] = self.path
|
|
357
|
+
return body
|
|
358
|
+
|
|
273
359
|
@classmethod
|
|
274
360
|
def from_dict(cls, d: Dict[str, any]) -> FileInfo:
|
|
275
361
|
"""Deserializes the FileInfo from a dictionary."""
|
|
@@ -287,6 +373,11 @@ class GetDirectoryMetadataResponse:
|
|
|
287
373
|
body = {}
|
|
288
374
|
return body
|
|
289
375
|
|
|
376
|
+
def as_shallow_dict(self) -> dict:
|
|
377
|
+
"""Serializes the GetDirectoryMetadataResponse into a shallow dictionary of its immediate attributes."""
|
|
378
|
+
body = {}
|
|
379
|
+
return body
|
|
380
|
+
|
|
290
381
|
@classmethod
|
|
291
382
|
def from_dict(cls, d: Dict[str, any]) -> GetDirectoryMetadataResponse:
|
|
292
383
|
"""Deserializes the GetDirectoryMetadataResponse from a dictionary."""
|
|
@@ -309,6 +400,14 @@ class GetMetadataResponse:
|
|
|
309
400
|
if self.last_modified is not None: body['last-modified'] = self.last_modified
|
|
310
401
|
return body
|
|
311
402
|
|
|
403
|
+
def as_shallow_dict(self) -> dict:
|
|
404
|
+
"""Serializes the GetMetadataResponse into a shallow dictionary of its immediate attributes."""
|
|
405
|
+
body = {}
|
|
406
|
+
if self.content_length is not None: body['content-length'] = self.content_length
|
|
407
|
+
if self.content_type is not None: body['content-type'] = self.content_type
|
|
408
|
+
if self.last_modified is not None: body['last-modified'] = self.last_modified
|
|
409
|
+
return body
|
|
410
|
+
|
|
312
411
|
@classmethod
|
|
313
412
|
def from_dict(cls, d: Dict[str, any]) -> GetMetadataResponse:
|
|
314
413
|
"""Deserializes the GetMetadataResponse from a dictionary."""
|
|
@@ -332,6 +431,13 @@ class ListDirectoryResponse:
|
|
|
332
431
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
333
432
|
return body
|
|
334
433
|
|
|
434
|
+
def as_shallow_dict(self) -> dict:
|
|
435
|
+
"""Serializes the ListDirectoryResponse into a shallow dictionary of its immediate attributes."""
|
|
436
|
+
body = {}
|
|
437
|
+
if self.contents: body['contents'] = self.contents
|
|
438
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
439
|
+
return body
|
|
440
|
+
|
|
335
441
|
@classmethod
|
|
336
442
|
def from_dict(cls, d: Dict[str, any]) -> ListDirectoryResponse:
|
|
337
443
|
"""Deserializes the ListDirectoryResponse from a dictionary."""
|
|
@@ -350,6 +456,12 @@ class ListStatusResponse:
|
|
|
350
456
|
if self.files: body['files'] = [v.as_dict() for v in self.files]
|
|
351
457
|
return body
|
|
352
458
|
|
|
459
|
+
def as_shallow_dict(self) -> dict:
|
|
460
|
+
"""Serializes the ListStatusResponse into a shallow dictionary of its immediate attributes."""
|
|
461
|
+
body = {}
|
|
462
|
+
if self.files: body['files'] = self.files
|
|
463
|
+
return body
|
|
464
|
+
|
|
353
465
|
@classmethod
|
|
354
466
|
def from_dict(cls, d: Dict[str, any]) -> ListStatusResponse:
|
|
355
467
|
"""Deserializes the ListStatusResponse from a dictionary."""
|
|
@@ -367,6 +479,12 @@ class MkDirs:
|
|
|
367
479
|
if self.path is not None: body['path'] = self.path
|
|
368
480
|
return body
|
|
369
481
|
|
|
482
|
+
def as_shallow_dict(self) -> dict:
|
|
483
|
+
"""Serializes the MkDirs into a shallow dictionary of its immediate attributes."""
|
|
484
|
+
body = {}
|
|
485
|
+
if self.path is not None: body['path'] = self.path
|
|
486
|
+
return body
|
|
487
|
+
|
|
370
488
|
@classmethod
|
|
371
489
|
def from_dict(cls, d: Dict[str, any]) -> MkDirs:
|
|
372
490
|
"""Deserializes the MkDirs from a dictionary."""
|
|
@@ -381,6 +499,11 @@ class MkDirsResponse:
|
|
|
381
499
|
body = {}
|
|
382
500
|
return body
|
|
383
501
|
|
|
502
|
+
def as_shallow_dict(self) -> dict:
|
|
503
|
+
"""Serializes the MkDirsResponse into a shallow dictionary of its immediate attributes."""
|
|
504
|
+
body = {}
|
|
505
|
+
return body
|
|
506
|
+
|
|
384
507
|
@classmethod
|
|
385
508
|
def from_dict(cls, d: Dict[str, any]) -> MkDirsResponse:
|
|
386
509
|
"""Deserializes the MkDirsResponse from a dictionary."""
|
|
@@ -402,6 +525,13 @@ class Move:
|
|
|
402
525
|
if self.source_path is not None: body['source_path'] = self.source_path
|
|
403
526
|
return body
|
|
404
527
|
|
|
528
|
+
def as_shallow_dict(self) -> dict:
|
|
529
|
+
"""Serializes the Move into a shallow dictionary of its immediate attributes."""
|
|
530
|
+
body = {}
|
|
531
|
+
if self.destination_path is not None: body['destination_path'] = self.destination_path
|
|
532
|
+
if self.source_path is not None: body['source_path'] = self.source_path
|
|
533
|
+
return body
|
|
534
|
+
|
|
405
535
|
@classmethod
|
|
406
536
|
def from_dict(cls, d: Dict[str, any]) -> Move:
|
|
407
537
|
"""Deserializes the Move from a dictionary."""
|
|
@@ -416,6 +546,11 @@ class MoveResponse:
|
|
|
416
546
|
body = {}
|
|
417
547
|
return body
|
|
418
548
|
|
|
549
|
+
def as_shallow_dict(self) -> dict:
|
|
550
|
+
"""Serializes the MoveResponse into a shallow dictionary of its immediate attributes."""
|
|
551
|
+
body = {}
|
|
552
|
+
return body
|
|
553
|
+
|
|
419
554
|
@classmethod
|
|
420
555
|
def from_dict(cls, d: Dict[str, any]) -> MoveResponse:
|
|
421
556
|
"""Deserializes the MoveResponse from a dictionary."""
|
|
@@ -441,6 +576,14 @@ class Put:
|
|
|
441
576
|
if self.path is not None: body['path'] = self.path
|
|
442
577
|
return body
|
|
443
578
|
|
|
579
|
+
def as_shallow_dict(self) -> dict:
|
|
580
|
+
"""Serializes the Put into a shallow dictionary of its immediate attributes."""
|
|
581
|
+
body = {}
|
|
582
|
+
if self.contents is not None: body['contents'] = self.contents
|
|
583
|
+
if self.overwrite is not None: body['overwrite'] = self.overwrite
|
|
584
|
+
if self.path is not None: body['path'] = self.path
|
|
585
|
+
return body
|
|
586
|
+
|
|
444
587
|
@classmethod
|
|
445
588
|
def from_dict(cls, d: Dict[str, any]) -> Put:
|
|
446
589
|
"""Deserializes the Put from a dictionary."""
|
|
@@ -457,6 +600,11 @@ class PutResponse:
|
|
|
457
600
|
body = {}
|
|
458
601
|
return body
|
|
459
602
|
|
|
603
|
+
def as_shallow_dict(self) -> dict:
|
|
604
|
+
"""Serializes the PutResponse into a shallow dictionary of its immediate attributes."""
|
|
605
|
+
body = {}
|
|
606
|
+
return body
|
|
607
|
+
|
|
460
608
|
@classmethod
|
|
461
609
|
def from_dict(cls, d: Dict[str, any]) -> PutResponse:
|
|
462
610
|
"""Deserializes the PutResponse from a dictionary."""
|
|
@@ -479,6 +627,13 @@ class ReadResponse:
|
|
|
479
627
|
if self.data is not None: body['data'] = self.data
|
|
480
628
|
return body
|
|
481
629
|
|
|
630
|
+
def as_shallow_dict(self) -> dict:
|
|
631
|
+
"""Serializes the ReadResponse into a shallow dictionary of its immediate attributes."""
|
|
632
|
+
body = {}
|
|
633
|
+
if self.bytes_read is not None: body['bytes_read'] = self.bytes_read
|
|
634
|
+
if self.data is not None: body['data'] = self.data
|
|
635
|
+
return body
|
|
636
|
+
|
|
482
637
|
@classmethod
|
|
483
638
|
def from_dict(cls, d: Dict[str, any]) -> ReadResponse:
|
|
484
639
|
"""Deserializes the ReadResponse from a dictionary."""
|
|
@@ -493,6 +648,11 @@ class UploadResponse:
|
|
|
493
648
|
body = {}
|
|
494
649
|
return body
|
|
495
650
|
|
|
651
|
+
def as_shallow_dict(self) -> dict:
|
|
652
|
+
"""Serializes the UploadResponse into a shallow dictionary of its immediate attributes."""
|
|
653
|
+
body = {}
|
|
654
|
+
return body
|
|
655
|
+
|
|
496
656
|
@classmethod
|
|
497
657
|
def from_dict(cls, d: Dict[str, any]) -> UploadResponse:
|
|
498
658
|
"""Deserializes the UploadResponse from a dictionary."""
|
|
@@ -833,8 +993,8 @@ class FilesAPI:
|
|
|
833
993
|
def download(self, file_path: str) -> DownloadResponse:
|
|
834
994
|
"""Download a file.
|
|
835
995
|
|
|
836
|
-
Downloads a file
|
|
837
|
-
|
|
996
|
+
Downloads a file. The file contents are the response body. This is a standard HTTP file download, not
|
|
997
|
+
a JSON RPC. It supports the Range and If-Unmodified-Since HTTP headers.
|
|
838
998
|
|
|
839
999
|
:param file_path: str
|
|
840
1000
|
The absolute path of the file.
|