databricks-sdk 0.38.0__py3-none-any.whl → 0.40.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 +36 -1
- 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 +1795 -62
- databricks/sdk/service/cleanrooms.py +1281 -0
- databricks/sdk/service/compute.py +1843 -67
- databricks/sdk/service/dashboards.py +342 -3
- databricks/sdk/service/files.py +162 -2
- databricks/sdk/service/iam.py +351 -0
- databricks/sdk/service/jobs.py +1355 -24
- databricks/sdk/service/marketplace.py +688 -0
- databricks/sdk/service/ml.py +1038 -2
- databricks/sdk/service/oauth2.py +636 -0
- databricks/sdk/service/pipelines.py +524 -4
- 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.40.0.dist-info}/METADATA +26 -26
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/RECORD +29 -28
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/top_level.txt +0 -0
databricks/sdk/service/ml.py
CHANGED
|
@@ -90,6 +90,21 @@ class Activity:
|
|
|
90
90
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
91
91
|
return body
|
|
92
92
|
|
|
93
|
+
def as_shallow_dict(self) -> dict:
|
|
94
|
+
"""Serializes the Activity into a shallow dictionary of its immediate attributes."""
|
|
95
|
+
body = {}
|
|
96
|
+
if self.activity_type is not None: body['activity_type'] = self.activity_type
|
|
97
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
98
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
99
|
+
if self.from_stage is not None: body['from_stage'] = self.from_stage
|
|
100
|
+
if self.id is not None: body['id'] = self.id
|
|
101
|
+
if self.last_updated_timestamp is not None:
|
|
102
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
103
|
+
if self.system_comment is not None: body['system_comment'] = self.system_comment
|
|
104
|
+
if self.to_stage is not None: body['to_stage'] = self.to_stage
|
|
105
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
106
|
+
return body
|
|
107
|
+
|
|
93
108
|
@classmethod
|
|
94
109
|
def from_dict(cls, d: Dict[str, any]) -> Activity:
|
|
95
110
|
"""Deserializes the Activity from a dictionary."""
|
|
@@ -177,6 +192,17 @@ class ApproveTransitionRequest:
|
|
|
177
192
|
if self.version is not None: body['version'] = self.version
|
|
178
193
|
return body
|
|
179
194
|
|
|
195
|
+
def as_shallow_dict(self) -> dict:
|
|
196
|
+
"""Serializes the ApproveTransitionRequest into a shallow dictionary of its immediate attributes."""
|
|
197
|
+
body = {}
|
|
198
|
+
if self.archive_existing_versions is not None:
|
|
199
|
+
body['archive_existing_versions'] = self.archive_existing_versions
|
|
200
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
201
|
+
if self.name is not None: body['name'] = self.name
|
|
202
|
+
if self.stage is not None: body['stage'] = self.stage
|
|
203
|
+
if self.version is not None: body['version'] = self.version
|
|
204
|
+
return body
|
|
205
|
+
|
|
180
206
|
@classmethod
|
|
181
207
|
def from_dict(cls, d: Dict[str, any]) -> ApproveTransitionRequest:
|
|
182
208
|
"""Deserializes the ApproveTransitionRequest from a dictionary."""
|
|
@@ -198,6 +224,12 @@ class ApproveTransitionRequestResponse:
|
|
|
198
224
|
if self.activity: body['activity'] = self.activity.as_dict()
|
|
199
225
|
return body
|
|
200
226
|
|
|
227
|
+
def as_shallow_dict(self) -> dict:
|
|
228
|
+
"""Serializes the ApproveTransitionRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
229
|
+
body = {}
|
|
230
|
+
if self.activity: body['activity'] = self.activity
|
|
231
|
+
return body
|
|
232
|
+
|
|
201
233
|
@classmethod
|
|
202
234
|
def from_dict(cls, d: Dict[str, any]) -> ApproveTransitionRequestResponse:
|
|
203
235
|
"""Deserializes the ApproveTransitionRequestResponse from a dictionary."""
|
|
@@ -248,6 +280,18 @@ class CommentObject:
|
|
|
248
280
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
249
281
|
return body
|
|
250
282
|
|
|
283
|
+
def as_shallow_dict(self) -> dict:
|
|
284
|
+
"""Serializes the CommentObject into a shallow dictionary of its immediate attributes."""
|
|
285
|
+
body = {}
|
|
286
|
+
if self.available_actions: body['available_actions'] = self.available_actions
|
|
287
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
288
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
289
|
+
if self.id is not None: body['id'] = self.id
|
|
290
|
+
if self.last_updated_timestamp is not None:
|
|
291
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
292
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
293
|
+
return body
|
|
294
|
+
|
|
251
295
|
@classmethod
|
|
252
296
|
def from_dict(cls, d: Dict[str, any]) -> CommentObject:
|
|
253
297
|
"""Deserializes the CommentObject from a dictionary."""
|
|
@@ -278,6 +322,14 @@ class CreateComment:
|
|
|
278
322
|
if self.version is not None: body['version'] = self.version
|
|
279
323
|
return body
|
|
280
324
|
|
|
325
|
+
def as_shallow_dict(self) -> dict:
|
|
326
|
+
"""Serializes the CreateComment into a shallow dictionary of its immediate attributes."""
|
|
327
|
+
body = {}
|
|
328
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
329
|
+
if self.name is not None: body['name'] = self.name
|
|
330
|
+
if self.version is not None: body['version'] = self.version
|
|
331
|
+
return body
|
|
332
|
+
|
|
281
333
|
@classmethod
|
|
282
334
|
def from_dict(cls, d: Dict[str, any]) -> CreateComment:
|
|
283
335
|
"""Deserializes the CreateComment from a dictionary."""
|
|
@@ -295,6 +347,12 @@ class CreateCommentResponse:
|
|
|
295
347
|
if self.comment: body['comment'] = self.comment.as_dict()
|
|
296
348
|
return body
|
|
297
349
|
|
|
350
|
+
def as_shallow_dict(self) -> dict:
|
|
351
|
+
"""Serializes the CreateCommentResponse into a shallow dictionary of its immediate attributes."""
|
|
352
|
+
body = {}
|
|
353
|
+
if self.comment: body['comment'] = self.comment
|
|
354
|
+
return body
|
|
355
|
+
|
|
298
356
|
@classmethod
|
|
299
357
|
def from_dict(cls, d: Dict[str, any]) -> CreateCommentResponse:
|
|
300
358
|
"""Deserializes the CreateCommentResponse from a dictionary."""
|
|
@@ -324,6 +382,14 @@ class CreateExperiment:
|
|
|
324
382
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
325
383
|
return body
|
|
326
384
|
|
|
385
|
+
def as_shallow_dict(self) -> dict:
|
|
386
|
+
"""Serializes the CreateExperiment into a shallow dictionary of its immediate attributes."""
|
|
387
|
+
body = {}
|
|
388
|
+
if self.artifact_location is not None: body['artifact_location'] = self.artifact_location
|
|
389
|
+
if self.name is not None: body['name'] = self.name
|
|
390
|
+
if self.tags: body['tags'] = self.tags
|
|
391
|
+
return body
|
|
392
|
+
|
|
327
393
|
@classmethod
|
|
328
394
|
def from_dict(cls, d: Dict[str, any]) -> CreateExperiment:
|
|
329
395
|
"""Deserializes the CreateExperiment from a dictionary."""
|
|
@@ -343,6 +409,12 @@ class CreateExperimentResponse:
|
|
|
343
409
|
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
344
410
|
return body
|
|
345
411
|
|
|
412
|
+
def as_shallow_dict(self) -> dict:
|
|
413
|
+
"""Serializes the CreateExperimentResponse into a shallow dictionary of its immediate attributes."""
|
|
414
|
+
body = {}
|
|
415
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
416
|
+
return body
|
|
417
|
+
|
|
346
418
|
@classmethod
|
|
347
419
|
def from_dict(cls, d: Dict[str, any]) -> CreateExperimentResponse:
|
|
348
420
|
"""Deserializes the CreateExperimentResponse from a dictionary."""
|
|
@@ -368,6 +440,14 @@ class CreateModelRequest:
|
|
|
368
440
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
369
441
|
return body
|
|
370
442
|
|
|
443
|
+
def as_shallow_dict(self) -> dict:
|
|
444
|
+
"""Serializes the CreateModelRequest into a shallow dictionary of its immediate attributes."""
|
|
445
|
+
body = {}
|
|
446
|
+
if self.description is not None: body['description'] = self.description
|
|
447
|
+
if self.name is not None: body['name'] = self.name
|
|
448
|
+
if self.tags: body['tags'] = self.tags
|
|
449
|
+
return body
|
|
450
|
+
|
|
371
451
|
@classmethod
|
|
372
452
|
def from_dict(cls, d: Dict[str, any]) -> CreateModelRequest:
|
|
373
453
|
"""Deserializes the CreateModelRequest from a dictionary."""
|
|
@@ -386,6 +466,12 @@ class CreateModelResponse:
|
|
|
386
466
|
if self.registered_model: body['registered_model'] = self.registered_model.as_dict()
|
|
387
467
|
return body
|
|
388
468
|
|
|
469
|
+
def as_shallow_dict(self) -> dict:
|
|
470
|
+
"""Serializes the CreateModelResponse into a shallow dictionary of its immediate attributes."""
|
|
471
|
+
body = {}
|
|
472
|
+
if self.registered_model: body['registered_model'] = self.registered_model
|
|
473
|
+
return body
|
|
474
|
+
|
|
389
475
|
@classmethod
|
|
390
476
|
def from_dict(cls, d: Dict[str, any]) -> CreateModelResponse:
|
|
391
477
|
"""Deserializes the CreateModelResponse from a dictionary."""
|
|
@@ -425,6 +511,17 @@ class CreateModelVersionRequest:
|
|
|
425
511
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
426
512
|
return body
|
|
427
513
|
|
|
514
|
+
def as_shallow_dict(self) -> dict:
|
|
515
|
+
"""Serializes the CreateModelVersionRequest into a shallow dictionary of its immediate attributes."""
|
|
516
|
+
body = {}
|
|
517
|
+
if self.description is not None: body['description'] = self.description
|
|
518
|
+
if self.name is not None: body['name'] = self.name
|
|
519
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
520
|
+
if self.run_link is not None: body['run_link'] = self.run_link
|
|
521
|
+
if self.source is not None: body['source'] = self.source
|
|
522
|
+
if self.tags: body['tags'] = self.tags
|
|
523
|
+
return body
|
|
524
|
+
|
|
428
525
|
@classmethod
|
|
429
526
|
def from_dict(cls, d: Dict[str, any]) -> CreateModelVersionRequest:
|
|
430
527
|
"""Deserializes the CreateModelVersionRequest from a dictionary."""
|
|
@@ -447,6 +544,12 @@ class CreateModelVersionResponse:
|
|
|
447
544
|
if self.model_version: body['model_version'] = self.model_version.as_dict()
|
|
448
545
|
return body
|
|
449
546
|
|
|
547
|
+
def as_shallow_dict(self) -> dict:
|
|
548
|
+
"""Serializes the CreateModelVersionResponse into a shallow dictionary of its immediate attributes."""
|
|
549
|
+
body = {}
|
|
550
|
+
if self.model_version: body['model_version'] = self.model_version
|
|
551
|
+
return body
|
|
552
|
+
|
|
450
553
|
@classmethod
|
|
451
554
|
def from_dict(cls, d: Dict[str, any]) -> CreateModelVersionResponse:
|
|
452
555
|
"""Deserializes the CreateModelVersionResponse from a dictionary."""
|
|
@@ -515,6 +618,17 @@ class CreateRegistryWebhook:
|
|
|
515
618
|
if self.status is not None: body['status'] = self.status.value
|
|
516
619
|
return body
|
|
517
620
|
|
|
621
|
+
def as_shallow_dict(self) -> dict:
|
|
622
|
+
"""Serializes the CreateRegistryWebhook into a shallow dictionary of its immediate attributes."""
|
|
623
|
+
body = {}
|
|
624
|
+
if self.description is not None: body['description'] = self.description
|
|
625
|
+
if self.events: body['events'] = self.events
|
|
626
|
+
if self.http_url_spec: body['http_url_spec'] = self.http_url_spec
|
|
627
|
+
if self.job_spec: body['job_spec'] = self.job_spec
|
|
628
|
+
if self.model_name is not None: body['model_name'] = self.model_name
|
|
629
|
+
if self.status is not None: body['status'] = self.status
|
|
630
|
+
return body
|
|
631
|
+
|
|
518
632
|
@classmethod
|
|
519
633
|
def from_dict(cls, d: Dict[str, any]) -> CreateRegistryWebhook:
|
|
520
634
|
"""Deserializes the CreateRegistryWebhook from a dictionary."""
|
|
@@ -550,6 +664,15 @@ class CreateRun:
|
|
|
550
664
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
551
665
|
return body
|
|
552
666
|
|
|
667
|
+
def as_shallow_dict(self) -> dict:
|
|
668
|
+
"""Serializes the CreateRun into a shallow dictionary of its immediate attributes."""
|
|
669
|
+
body = {}
|
|
670
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
671
|
+
if self.start_time is not None: body['start_time'] = self.start_time
|
|
672
|
+
if self.tags: body['tags'] = self.tags
|
|
673
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
674
|
+
return body
|
|
675
|
+
|
|
553
676
|
@classmethod
|
|
554
677
|
def from_dict(cls, d: Dict[str, any]) -> CreateRun:
|
|
555
678
|
"""Deserializes the CreateRun from a dictionary."""
|
|
@@ -570,6 +693,12 @@ class CreateRunResponse:
|
|
|
570
693
|
if self.run: body['run'] = self.run.as_dict()
|
|
571
694
|
return body
|
|
572
695
|
|
|
696
|
+
def as_shallow_dict(self) -> dict:
|
|
697
|
+
"""Serializes the CreateRunResponse into a shallow dictionary of its immediate attributes."""
|
|
698
|
+
body = {}
|
|
699
|
+
if self.run: body['run'] = self.run
|
|
700
|
+
return body
|
|
701
|
+
|
|
573
702
|
@classmethod
|
|
574
703
|
def from_dict(cls, d: Dict[str, any]) -> CreateRunResponse:
|
|
575
704
|
"""Deserializes the CreateRunResponse from a dictionary."""
|
|
@@ -607,6 +736,15 @@ class CreateTransitionRequest:
|
|
|
607
736
|
if self.version is not None: body['version'] = self.version
|
|
608
737
|
return body
|
|
609
738
|
|
|
739
|
+
def as_shallow_dict(self) -> dict:
|
|
740
|
+
"""Serializes the CreateTransitionRequest into a shallow dictionary of its immediate attributes."""
|
|
741
|
+
body = {}
|
|
742
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
743
|
+
if self.name is not None: body['name'] = self.name
|
|
744
|
+
if self.stage is not None: body['stage'] = self.stage
|
|
745
|
+
if self.version is not None: body['version'] = self.version
|
|
746
|
+
return body
|
|
747
|
+
|
|
610
748
|
@classmethod
|
|
611
749
|
def from_dict(cls, d: Dict[str, any]) -> CreateTransitionRequest:
|
|
612
750
|
"""Deserializes the CreateTransitionRequest from a dictionary."""
|
|
@@ -627,6 +765,12 @@ class CreateTransitionRequestResponse:
|
|
|
627
765
|
if self.request: body['request'] = self.request.as_dict()
|
|
628
766
|
return body
|
|
629
767
|
|
|
768
|
+
def as_shallow_dict(self) -> dict:
|
|
769
|
+
"""Serializes the CreateTransitionRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
770
|
+
body = {}
|
|
771
|
+
if self.request: body['request'] = self.request
|
|
772
|
+
return body
|
|
773
|
+
|
|
630
774
|
@classmethod
|
|
631
775
|
def from_dict(cls, d: Dict[str, any]) -> CreateTransitionRequestResponse:
|
|
632
776
|
"""Deserializes the CreateTransitionRequestResponse from a dictionary."""
|
|
@@ -643,6 +787,12 @@ class CreateWebhookResponse:
|
|
|
643
787
|
if self.webhook: body['webhook'] = self.webhook.as_dict()
|
|
644
788
|
return body
|
|
645
789
|
|
|
790
|
+
def as_shallow_dict(self) -> dict:
|
|
791
|
+
"""Serializes the CreateWebhookResponse into a shallow dictionary of its immediate attributes."""
|
|
792
|
+
body = {}
|
|
793
|
+
if self.webhook: body['webhook'] = self.webhook
|
|
794
|
+
return body
|
|
795
|
+
|
|
646
796
|
@classmethod
|
|
647
797
|
def from_dict(cls, d: Dict[str, any]) -> CreateWebhookResponse:
|
|
648
798
|
"""Deserializes the CreateWebhookResponse from a dictionary."""
|
|
@@ -684,6 +834,17 @@ class Dataset:
|
|
|
684
834
|
if self.source_type is not None: body['source_type'] = self.source_type
|
|
685
835
|
return body
|
|
686
836
|
|
|
837
|
+
def as_shallow_dict(self) -> dict:
|
|
838
|
+
"""Serializes the Dataset into a shallow dictionary of its immediate attributes."""
|
|
839
|
+
body = {}
|
|
840
|
+
if self.digest is not None: body['digest'] = self.digest
|
|
841
|
+
if self.name is not None: body['name'] = self.name
|
|
842
|
+
if self.profile is not None: body['profile'] = self.profile
|
|
843
|
+
if self.schema is not None: body['schema'] = self.schema
|
|
844
|
+
if self.source is not None: body['source'] = self.source
|
|
845
|
+
if self.source_type is not None: body['source_type'] = self.source_type
|
|
846
|
+
return body
|
|
847
|
+
|
|
687
848
|
@classmethod
|
|
688
849
|
def from_dict(cls, d: Dict[str, any]) -> Dataset:
|
|
689
850
|
"""Deserializes the Dataset from a dictionary."""
|
|
@@ -710,6 +871,13 @@ class DatasetInput:
|
|
|
710
871
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
711
872
|
return body
|
|
712
873
|
|
|
874
|
+
def as_shallow_dict(self) -> dict:
|
|
875
|
+
"""Serializes the DatasetInput into a shallow dictionary of its immediate attributes."""
|
|
876
|
+
body = {}
|
|
877
|
+
if self.dataset: body['dataset'] = self.dataset
|
|
878
|
+
if self.tags: body['tags'] = self.tags
|
|
879
|
+
return body
|
|
880
|
+
|
|
713
881
|
@classmethod
|
|
714
882
|
def from_dict(cls, d: Dict[str, any]) -> DatasetInput:
|
|
715
883
|
"""Deserializes the DatasetInput from a dictionary."""
|
|
@@ -724,6 +892,11 @@ class DeleteCommentResponse:
|
|
|
724
892
|
body = {}
|
|
725
893
|
return body
|
|
726
894
|
|
|
895
|
+
def as_shallow_dict(self) -> dict:
|
|
896
|
+
"""Serializes the DeleteCommentResponse into a shallow dictionary of its immediate attributes."""
|
|
897
|
+
body = {}
|
|
898
|
+
return body
|
|
899
|
+
|
|
727
900
|
@classmethod
|
|
728
901
|
def from_dict(cls, d: Dict[str, any]) -> DeleteCommentResponse:
|
|
729
902
|
"""Deserializes the DeleteCommentResponse from a dictionary."""
|
|
@@ -741,6 +914,12 @@ class DeleteExperiment:
|
|
|
741
914
|
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
742
915
|
return body
|
|
743
916
|
|
|
917
|
+
def as_shallow_dict(self) -> dict:
|
|
918
|
+
"""Serializes the DeleteExperiment into a shallow dictionary of its immediate attributes."""
|
|
919
|
+
body = {}
|
|
920
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
921
|
+
return body
|
|
922
|
+
|
|
744
923
|
@classmethod
|
|
745
924
|
def from_dict(cls, d: Dict[str, any]) -> DeleteExperiment:
|
|
746
925
|
"""Deserializes the DeleteExperiment from a dictionary."""
|
|
@@ -755,6 +934,11 @@ class DeleteExperimentResponse:
|
|
|
755
934
|
body = {}
|
|
756
935
|
return body
|
|
757
936
|
|
|
937
|
+
def as_shallow_dict(self) -> dict:
|
|
938
|
+
"""Serializes the DeleteExperimentResponse into a shallow dictionary of its immediate attributes."""
|
|
939
|
+
body = {}
|
|
940
|
+
return body
|
|
941
|
+
|
|
758
942
|
@classmethod
|
|
759
943
|
def from_dict(cls, d: Dict[str, any]) -> DeleteExperimentResponse:
|
|
760
944
|
"""Deserializes the DeleteExperimentResponse from a dictionary."""
|
|
@@ -769,6 +953,11 @@ class DeleteModelResponse:
|
|
|
769
953
|
body = {}
|
|
770
954
|
return body
|
|
771
955
|
|
|
956
|
+
def as_shallow_dict(self) -> dict:
|
|
957
|
+
"""Serializes the DeleteModelResponse into a shallow dictionary of its immediate attributes."""
|
|
958
|
+
body = {}
|
|
959
|
+
return body
|
|
960
|
+
|
|
772
961
|
@classmethod
|
|
773
962
|
def from_dict(cls, d: Dict[str, any]) -> DeleteModelResponse:
|
|
774
963
|
"""Deserializes the DeleteModelResponse from a dictionary."""
|
|
@@ -783,6 +972,11 @@ class DeleteModelTagResponse:
|
|
|
783
972
|
body = {}
|
|
784
973
|
return body
|
|
785
974
|
|
|
975
|
+
def as_shallow_dict(self) -> dict:
|
|
976
|
+
"""Serializes the DeleteModelTagResponse into a shallow dictionary of its immediate attributes."""
|
|
977
|
+
body = {}
|
|
978
|
+
return body
|
|
979
|
+
|
|
786
980
|
@classmethod
|
|
787
981
|
def from_dict(cls, d: Dict[str, any]) -> DeleteModelTagResponse:
|
|
788
982
|
"""Deserializes the DeleteModelTagResponse from a dictionary."""
|
|
@@ -797,6 +991,11 @@ class DeleteModelVersionResponse:
|
|
|
797
991
|
body = {}
|
|
798
992
|
return body
|
|
799
993
|
|
|
994
|
+
def as_shallow_dict(self) -> dict:
|
|
995
|
+
"""Serializes the DeleteModelVersionResponse into a shallow dictionary of its immediate attributes."""
|
|
996
|
+
body = {}
|
|
997
|
+
return body
|
|
998
|
+
|
|
800
999
|
@classmethod
|
|
801
1000
|
def from_dict(cls, d: Dict[str, any]) -> DeleteModelVersionResponse:
|
|
802
1001
|
"""Deserializes the DeleteModelVersionResponse from a dictionary."""
|
|
@@ -811,6 +1010,11 @@ class DeleteModelVersionTagResponse:
|
|
|
811
1010
|
body = {}
|
|
812
1011
|
return body
|
|
813
1012
|
|
|
1013
|
+
def as_shallow_dict(self) -> dict:
|
|
1014
|
+
"""Serializes the DeleteModelVersionTagResponse into a shallow dictionary of its immediate attributes."""
|
|
1015
|
+
body = {}
|
|
1016
|
+
return body
|
|
1017
|
+
|
|
814
1018
|
@classmethod
|
|
815
1019
|
def from_dict(cls, d: Dict[str, any]) -> DeleteModelVersionTagResponse:
|
|
816
1020
|
"""Deserializes the DeleteModelVersionTagResponse from a dictionary."""
|
|
@@ -828,6 +1032,12 @@ class DeleteRun:
|
|
|
828
1032
|
if self.run_id is not None: body['run_id'] = self.run_id
|
|
829
1033
|
return body
|
|
830
1034
|
|
|
1035
|
+
def as_shallow_dict(self) -> dict:
|
|
1036
|
+
"""Serializes the DeleteRun into a shallow dictionary of its immediate attributes."""
|
|
1037
|
+
body = {}
|
|
1038
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
1039
|
+
return body
|
|
1040
|
+
|
|
831
1041
|
@classmethod
|
|
832
1042
|
def from_dict(cls, d: Dict[str, any]) -> DeleteRun:
|
|
833
1043
|
"""Deserializes the DeleteRun from a dictionary."""
|
|
@@ -842,6 +1052,11 @@ class DeleteRunResponse:
|
|
|
842
1052
|
body = {}
|
|
843
1053
|
return body
|
|
844
1054
|
|
|
1055
|
+
def as_shallow_dict(self) -> dict:
|
|
1056
|
+
"""Serializes the DeleteRunResponse into a shallow dictionary of its immediate attributes."""
|
|
1057
|
+
body = {}
|
|
1058
|
+
return body
|
|
1059
|
+
|
|
845
1060
|
@classmethod
|
|
846
1061
|
def from_dict(cls, d: Dict[str, any]) -> DeleteRunResponse:
|
|
847
1062
|
"""Deserializes the DeleteRunResponse from a dictionary."""
|
|
@@ -869,6 +1084,14 @@ class DeleteRuns:
|
|
|
869
1084
|
if self.max_timestamp_millis is not None: body['max_timestamp_millis'] = self.max_timestamp_millis
|
|
870
1085
|
return body
|
|
871
1086
|
|
|
1087
|
+
def as_shallow_dict(self) -> dict:
|
|
1088
|
+
"""Serializes the DeleteRuns into a shallow dictionary of its immediate attributes."""
|
|
1089
|
+
body = {}
|
|
1090
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
1091
|
+
if self.max_runs is not None: body['max_runs'] = self.max_runs
|
|
1092
|
+
if self.max_timestamp_millis is not None: body['max_timestamp_millis'] = self.max_timestamp_millis
|
|
1093
|
+
return body
|
|
1094
|
+
|
|
872
1095
|
@classmethod
|
|
873
1096
|
def from_dict(cls, d: Dict[str, any]) -> DeleteRuns:
|
|
874
1097
|
"""Deserializes the DeleteRuns from a dictionary."""
|
|
@@ -888,6 +1111,12 @@ class DeleteRunsResponse:
|
|
|
888
1111
|
if self.runs_deleted is not None: body['runs_deleted'] = self.runs_deleted
|
|
889
1112
|
return body
|
|
890
1113
|
|
|
1114
|
+
def as_shallow_dict(self) -> dict:
|
|
1115
|
+
"""Serializes the DeleteRunsResponse into a shallow dictionary of its immediate attributes."""
|
|
1116
|
+
body = {}
|
|
1117
|
+
if self.runs_deleted is not None: body['runs_deleted'] = self.runs_deleted
|
|
1118
|
+
return body
|
|
1119
|
+
|
|
891
1120
|
@classmethod
|
|
892
1121
|
def from_dict(cls, d: Dict[str, any]) -> DeleteRunsResponse:
|
|
893
1122
|
"""Deserializes the DeleteRunsResponse from a dictionary."""
|
|
@@ -909,6 +1138,13 @@ class DeleteTag:
|
|
|
909
1138
|
if self.run_id is not None: body['run_id'] = self.run_id
|
|
910
1139
|
return body
|
|
911
1140
|
|
|
1141
|
+
def as_shallow_dict(self) -> dict:
|
|
1142
|
+
"""Serializes the DeleteTag into a shallow dictionary of its immediate attributes."""
|
|
1143
|
+
body = {}
|
|
1144
|
+
if self.key is not None: body['key'] = self.key
|
|
1145
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
1146
|
+
return body
|
|
1147
|
+
|
|
912
1148
|
@classmethod
|
|
913
1149
|
def from_dict(cls, d: Dict[str, any]) -> DeleteTag:
|
|
914
1150
|
"""Deserializes the DeleteTag from a dictionary."""
|
|
@@ -923,6 +1159,11 @@ class DeleteTagResponse:
|
|
|
923
1159
|
body = {}
|
|
924
1160
|
return body
|
|
925
1161
|
|
|
1162
|
+
def as_shallow_dict(self) -> dict:
|
|
1163
|
+
"""Serializes the DeleteTagResponse into a shallow dictionary of its immediate attributes."""
|
|
1164
|
+
body = {}
|
|
1165
|
+
return body
|
|
1166
|
+
|
|
926
1167
|
@classmethod
|
|
927
1168
|
def from_dict(cls, d: Dict[str, any]) -> DeleteTagResponse:
|
|
928
1169
|
"""Deserializes the DeleteTagResponse from a dictionary."""
|
|
@@ -937,6 +1178,11 @@ class DeleteTransitionRequestResponse:
|
|
|
937
1178
|
body = {}
|
|
938
1179
|
return body
|
|
939
1180
|
|
|
1181
|
+
def as_shallow_dict(self) -> dict:
|
|
1182
|
+
"""Serializes the DeleteTransitionRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
1183
|
+
body = {}
|
|
1184
|
+
return body
|
|
1185
|
+
|
|
940
1186
|
@classmethod
|
|
941
1187
|
def from_dict(cls, d: Dict[str, any]) -> DeleteTransitionRequestResponse:
|
|
942
1188
|
"""Deserializes the DeleteTransitionRequestResponse from a dictionary."""
|
|
@@ -959,6 +1205,11 @@ class DeleteWebhookResponse:
|
|
|
959
1205
|
body = {}
|
|
960
1206
|
return body
|
|
961
1207
|
|
|
1208
|
+
def as_shallow_dict(self) -> dict:
|
|
1209
|
+
"""Serializes the DeleteWebhookResponse into a shallow dictionary of its immediate attributes."""
|
|
1210
|
+
body = {}
|
|
1211
|
+
return body
|
|
1212
|
+
|
|
962
1213
|
@classmethod
|
|
963
1214
|
def from_dict(cls, d: Dict[str, any]) -> DeleteWebhookResponse:
|
|
964
1215
|
"""Deserializes the DeleteWebhookResponse from a dictionary."""
|
|
@@ -1001,6 +1252,18 @@ class Experiment:
|
|
|
1001
1252
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
1002
1253
|
return body
|
|
1003
1254
|
|
|
1255
|
+
def as_shallow_dict(self) -> dict:
|
|
1256
|
+
"""Serializes the Experiment into a shallow dictionary of its immediate attributes."""
|
|
1257
|
+
body = {}
|
|
1258
|
+
if self.artifact_location is not None: body['artifact_location'] = self.artifact_location
|
|
1259
|
+
if self.creation_time is not None: body['creation_time'] = self.creation_time
|
|
1260
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
1261
|
+
if self.last_update_time is not None: body['last_update_time'] = self.last_update_time
|
|
1262
|
+
if self.lifecycle_stage is not None: body['lifecycle_stage'] = self.lifecycle_stage
|
|
1263
|
+
if self.name is not None: body['name'] = self.name
|
|
1264
|
+
if self.tags: body['tags'] = self.tags
|
|
1265
|
+
return body
|
|
1266
|
+
|
|
1004
1267
|
@classmethod
|
|
1005
1268
|
def from_dict(cls, d: Dict[str, any]) -> Experiment:
|
|
1006
1269
|
"""Deserializes the Experiment from a dictionary."""
|
|
@@ -1037,6 +1300,16 @@ class ExperimentAccessControlRequest:
|
|
|
1037
1300
|
if self.user_name is not None: body['user_name'] = self.user_name
|
|
1038
1301
|
return body
|
|
1039
1302
|
|
|
1303
|
+
def as_shallow_dict(self) -> dict:
|
|
1304
|
+
"""Serializes the ExperimentAccessControlRequest into a shallow dictionary of its immediate attributes."""
|
|
1305
|
+
body = {}
|
|
1306
|
+
if self.group_name is not None: body['group_name'] = self.group_name
|
|
1307
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
1308
|
+
if self.service_principal_name is not None:
|
|
1309
|
+
body['service_principal_name'] = self.service_principal_name
|
|
1310
|
+
if self.user_name is not None: body['user_name'] = self.user_name
|
|
1311
|
+
return body
|
|
1312
|
+
|
|
1040
1313
|
@classmethod
|
|
1041
1314
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentAccessControlRequest:
|
|
1042
1315
|
"""Deserializes the ExperimentAccessControlRequest from a dictionary."""
|
|
@@ -1074,6 +1347,17 @@ class ExperimentAccessControlResponse:
|
|
|
1074
1347
|
if self.user_name is not None: body['user_name'] = self.user_name
|
|
1075
1348
|
return body
|
|
1076
1349
|
|
|
1350
|
+
def as_shallow_dict(self) -> dict:
|
|
1351
|
+
"""Serializes the ExperimentAccessControlResponse into a shallow dictionary of its immediate attributes."""
|
|
1352
|
+
body = {}
|
|
1353
|
+
if self.all_permissions: body['all_permissions'] = self.all_permissions
|
|
1354
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
1355
|
+
if self.group_name is not None: body['group_name'] = self.group_name
|
|
1356
|
+
if self.service_principal_name is not None:
|
|
1357
|
+
body['service_principal_name'] = self.service_principal_name
|
|
1358
|
+
if self.user_name is not None: body['user_name'] = self.user_name
|
|
1359
|
+
return body
|
|
1360
|
+
|
|
1077
1361
|
@classmethod
|
|
1078
1362
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentAccessControlResponse:
|
|
1079
1363
|
"""Deserializes the ExperimentAccessControlResponse from a dictionary."""
|
|
@@ -1101,6 +1385,14 @@ class ExperimentPermission:
|
|
|
1101
1385
|
if self.permission_level is not None: body['permission_level'] = self.permission_level.value
|
|
1102
1386
|
return body
|
|
1103
1387
|
|
|
1388
|
+
def as_shallow_dict(self) -> dict:
|
|
1389
|
+
"""Serializes the ExperimentPermission into a shallow dictionary of its immediate attributes."""
|
|
1390
|
+
body = {}
|
|
1391
|
+
if self.inherited is not None: body['inherited'] = self.inherited
|
|
1392
|
+
if self.inherited_from_object: body['inherited_from_object'] = self.inherited_from_object
|
|
1393
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
1394
|
+
return body
|
|
1395
|
+
|
|
1104
1396
|
@classmethod
|
|
1105
1397
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentPermission:
|
|
1106
1398
|
"""Deserializes the ExperimentPermission from a dictionary."""
|
|
@@ -1134,6 +1426,14 @@ class ExperimentPermissions:
|
|
|
1134
1426
|
if self.object_type is not None: body['object_type'] = self.object_type
|
|
1135
1427
|
return body
|
|
1136
1428
|
|
|
1429
|
+
def as_shallow_dict(self) -> dict:
|
|
1430
|
+
"""Serializes the ExperimentPermissions into a shallow dictionary of its immediate attributes."""
|
|
1431
|
+
body = {}
|
|
1432
|
+
if self.access_control_list: body['access_control_list'] = self.access_control_list
|
|
1433
|
+
if self.object_id is not None: body['object_id'] = self.object_id
|
|
1434
|
+
if self.object_type is not None: body['object_type'] = self.object_type
|
|
1435
|
+
return body
|
|
1436
|
+
|
|
1137
1437
|
@classmethod
|
|
1138
1438
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentPermissions:
|
|
1139
1439
|
"""Deserializes the ExperimentPermissions from a dictionary."""
|
|
@@ -1157,6 +1457,13 @@ class ExperimentPermissionsDescription:
|
|
|
1157
1457
|
if self.permission_level is not None: body['permission_level'] = self.permission_level.value
|
|
1158
1458
|
return body
|
|
1159
1459
|
|
|
1460
|
+
def as_shallow_dict(self) -> dict:
|
|
1461
|
+
"""Serializes the ExperimentPermissionsDescription into a shallow dictionary of its immediate attributes."""
|
|
1462
|
+
body = {}
|
|
1463
|
+
if self.description is not None: body['description'] = self.description
|
|
1464
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
1465
|
+
return body
|
|
1466
|
+
|
|
1160
1467
|
@classmethod
|
|
1161
1468
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentPermissionsDescription:
|
|
1162
1469
|
"""Deserializes the ExperimentPermissionsDescription from a dictionary."""
|
|
@@ -1179,6 +1486,13 @@ class ExperimentPermissionsRequest:
|
|
|
1179
1486
|
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
1180
1487
|
return body
|
|
1181
1488
|
|
|
1489
|
+
def as_shallow_dict(self) -> dict:
|
|
1490
|
+
"""Serializes the ExperimentPermissionsRequest into a shallow dictionary of its immediate attributes."""
|
|
1491
|
+
body = {}
|
|
1492
|
+
if self.access_control_list: body['access_control_list'] = self.access_control_list
|
|
1493
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
1494
|
+
return body
|
|
1495
|
+
|
|
1182
1496
|
@classmethod
|
|
1183
1497
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentPermissionsRequest:
|
|
1184
1498
|
"""Deserializes the ExperimentPermissionsRequest from a dictionary."""
|
|
@@ -1202,6 +1516,13 @@ class ExperimentTag:
|
|
|
1202
1516
|
if self.value is not None: body['value'] = self.value
|
|
1203
1517
|
return body
|
|
1204
1518
|
|
|
1519
|
+
def as_shallow_dict(self) -> dict:
|
|
1520
|
+
"""Serializes the ExperimentTag into a shallow dictionary of its immediate attributes."""
|
|
1521
|
+
body = {}
|
|
1522
|
+
if self.key is not None: body['key'] = self.key
|
|
1523
|
+
if self.value is not None: body['value'] = self.value
|
|
1524
|
+
return body
|
|
1525
|
+
|
|
1205
1526
|
@classmethod
|
|
1206
1527
|
def from_dict(cls, d: Dict[str, any]) -> ExperimentTag:
|
|
1207
1528
|
"""Deserializes the ExperimentTag from a dictionary."""
|
|
@@ -1227,6 +1548,14 @@ class FileInfo:
|
|
|
1227
1548
|
if self.path is not None: body['path'] = self.path
|
|
1228
1549
|
return body
|
|
1229
1550
|
|
|
1551
|
+
def as_shallow_dict(self) -> dict:
|
|
1552
|
+
"""Serializes the FileInfo into a shallow dictionary of its immediate attributes."""
|
|
1553
|
+
body = {}
|
|
1554
|
+
if self.file_size is not None: body['file_size'] = self.file_size
|
|
1555
|
+
if self.is_dir is not None: body['is_dir'] = self.is_dir
|
|
1556
|
+
if self.path is not None: body['path'] = self.path
|
|
1557
|
+
return body
|
|
1558
|
+
|
|
1230
1559
|
@classmethod
|
|
1231
1560
|
def from_dict(cls, d: Dict[str, any]) -> FileInfo:
|
|
1232
1561
|
"""Deserializes the FileInfo from a dictionary."""
|
|
@@ -1244,6 +1573,12 @@ class GetExperimentPermissionLevelsResponse:
|
|
|
1244
1573
|
if self.permission_levels: body['permission_levels'] = [v.as_dict() for v in self.permission_levels]
|
|
1245
1574
|
return body
|
|
1246
1575
|
|
|
1576
|
+
def as_shallow_dict(self) -> dict:
|
|
1577
|
+
"""Serializes the GetExperimentPermissionLevelsResponse into a shallow dictionary of its immediate attributes."""
|
|
1578
|
+
body = {}
|
|
1579
|
+
if self.permission_levels: body['permission_levels'] = self.permission_levels
|
|
1580
|
+
return body
|
|
1581
|
+
|
|
1247
1582
|
@classmethod
|
|
1248
1583
|
def from_dict(cls, d: Dict[str, any]) -> GetExperimentPermissionLevelsResponse:
|
|
1249
1584
|
"""Deserializes the GetExperimentPermissionLevelsResponse from a dictionary."""
|
|
@@ -1261,6 +1596,12 @@ class GetExperimentResponse:
|
|
|
1261
1596
|
if self.experiment: body['experiment'] = self.experiment.as_dict()
|
|
1262
1597
|
return body
|
|
1263
1598
|
|
|
1599
|
+
def as_shallow_dict(self) -> dict:
|
|
1600
|
+
"""Serializes the GetExperimentResponse into a shallow dictionary of its immediate attributes."""
|
|
1601
|
+
body = {}
|
|
1602
|
+
if self.experiment: body['experiment'] = self.experiment
|
|
1603
|
+
return body
|
|
1604
|
+
|
|
1264
1605
|
@classmethod
|
|
1265
1606
|
def from_dict(cls, d: Dict[str, any]) -> GetExperimentResponse:
|
|
1266
1607
|
"""Deserializes the GetExperimentResponse from a dictionary."""
|
|
@@ -1282,6 +1623,13 @@ class GetLatestVersionsRequest:
|
|
|
1282
1623
|
if self.stages: body['stages'] = [v for v in self.stages]
|
|
1283
1624
|
return body
|
|
1284
1625
|
|
|
1626
|
+
def as_shallow_dict(self) -> dict:
|
|
1627
|
+
"""Serializes the GetLatestVersionsRequest into a shallow dictionary of its immediate attributes."""
|
|
1628
|
+
body = {}
|
|
1629
|
+
if self.name is not None: body['name'] = self.name
|
|
1630
|
+
if self.stages: body['stages'] = self.stages
|
|
1631
|
+
return body
|
|
1632
|
+
|
|
1285
1633
|
@classmethod
|
|
1286
1634
|
def from_dict(cls, d: Dict[str, any]) -> GetLatestVersionsRequest:
|
|
1287
1635
|
"""Deserializes the GetLatestVersionsRequest from a dictionary."""
|
|
@@ -1300,6 +1648,12 @@ class GetLatestVersionsResponse:
|
|
|
1300
1648
|
if self.model_versions: body['model_versions'] = [v.as_dict() for v in self.model_versions]
|
|
1301
1649
|
return body
|
|
1302
1650
|
|
|
1651
|
+
def as_shallow_dict(self) -> dict:
|
|
1652
|
+
"""Serializes the GetLatestVersionsResponse into a shallow dictionary of its immediate attributes."""
|
|
1653
|
+
body = {}
|
|
1654
|
+
if self.model_versions: body['model_versions'] = self.model_versions
|
|
1655
|
+
return body
|
|
1656
|
+
|
|
1303
1657
|
@classmethod
|
|
1304
1658
|
def from_dict(cls, d: Dict[str, any]) -> GetLatestVersionsResponse:
|
|
1305
1659
|
"""Deserializes the GetLatestVersionsResponse from a dictionary."""
|
|
@@ -1321,6 +1675,13 @@ class GetMetricHistoryResponse:
|
|
|
1321
1675
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1322
1676
|
return body
|
|
1323
1677
|
|
|
1678
|
+
def as_shallow_dict(self) -> dict:
|
|
1679
|
+
"""Serializes the GetMetricHistoryResponse into a shallow dictionary of its immediate attributes."""
|
|
1680
|
+
body = {}
|
|
1681
|
+
if self.metrics: body['metrics'] = self.metrics
|
|
1682
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1683
|
+
return body
|
|
1684
|
+
|
|
1324
1685
|
@classmethod
|
|
1325
1686
|
def from_dict(cls, d: Dict[str, any]) -> GetMetricHistoryResponse:
|
|
1326
1687
|
"""Deserializes the GetMetricHistoryResponse from a dictionary."""
|
|
@@ -1339,6 +1700,13 @@ class GetModelResponse:
|
|
|
1339
1700
|
body['registered_model_databricks'] = self.registered_model_databricks.as_dict()
|
|
1340
1701
|
return body
|
|
1341
1702
|
|
|
1703
|
+
def as_shallow_dict(self) -> dict:
|
|
1704
|
+
"""Serializes the GetModelResponse into a shallow dictionary of its immediate attributes."""
|
|
1705
|
+
body = {}
|
|
1706
|
+
if self.registered_model_databricks:
|
|
1707
|
+
body['registered_model_databricks'] = self.registered_model_databricks
|
|
1708
|
+
return body
|
|
1709
|
+
|
|
1342
1710
|
@classmethod
|
|
1343
1711
|
def from_dict(cls, d: Dict[str, any]) -> GetModelResponse:
|
|
1344
1712
|
"""Deserializes the GetModelResponse from a dictionary."""
|
|
@@ -1356,6 +1724,12 @@ class GetModelVersionDownloadUriResponse:
|
|
|
1356
1724
|
if self.artifact_uri is not None: body['artifact_uri'] = self.artifact_uri
|
|
1357
1725
|
return body
|
|
1358
1726
|
|
|
1727
|
+
def as_shallow_dict(self) -> dict:
|
|
1728
|
+
"""Serializes the GetModelVersionDownloadUriResponse into a shallow dictionary of its immediate attributes."""
|
|
1729
|
+
body = {}
|
|
1730
|
+
if self.artifact_uri is not None: body['artifact_uri'] = self.artifact_uri
|
|
1731
|
+
return body
|
|
1732
|
+
|
|
1359
1733
|
@classmethod
|
|
1360
1734
|
def from_dict(cls, d: Dict[str, any]) -> GetModelVersionDownloadUriResponse:
|
|
1361
1735
|
"""Deserializes the GetModelVersionDownloadUriResponse from a dictionary."""
|
|
@@ -1372,6 +1746,12 @@ class GetModelVersionResponse:
|
|
|
1372
1746
|
if self.model_version: body['model_version'] = self.model_version.as_dict()
|
|
1373
1747
|
return body
|
|
1374
1748
|
|
|
1749
|
+
def as_shallow_dict(self) -> dict:
|
|
1750
|
+
"""Serializes the GetModelVersionResponse into a shallow dictionary of its immediate attributes."""
|
|
1751
|
+
body = {}
|
|
1752
|
+
if self.model_version: body['model_version'] = self.model_version
|
|
1753
|
+
return body
|
|
1754
|
+
|
|
1375
1755
|
@classmethod
|
|
1376
1756
|
def from_dict(cls, d: Dict[str, any]) -> GetModelVersionResponse:
|
|
1377
1757
|
"""Deserializes the GetModelVersionResponse from a dictionary."""
|
|
@@ -1389,6 +1769,12 @@ class GetRegisteredModelPermissionLevelsResponse:
|
|
|
1389
1769
|
if self.permission_levels: body['permission_levels'] = [v.as_dict() for v in self.permission_levels]
|
|
1390
1770
|
return body
|
|
1391
1771
|
|
|
1772
|
+
def as_shallow_dict(self) -> dict:
|
|
1773
|
+
"""Serializes the GetRegisteredModelPermissionLevelsResponse into a shallow dictionary of its immediate attributes."""
|
|
1774
|
+
body = {}
|
|
1775
|
+
if self.permission_levels: body['permission_levels'] = self.permission_levels
|
|
1776
|
+
return body
|
|
1777
|
+
|
|
1392
1778
|
@classmethod
|
|
1393
1779
|
def from_dict(cls, d: Dict[str, any]) -> GetRegisteredModelPermissionLevelsResponse:
|
|
1394
1780
|
"""Deserializes the GetRegisteredModelPermissionLevelsResponse from a dictionary."""
|
|
@@ -1407,6 +1793,12 @@ class GetRunResponse:
|
|
|
1407
1793
|
if self.run: body['run'] = self.run.as_dict()
|
|
1408
1794
|
return body
|
|
1409
1795
|
|
|
1796
|
+
def as_shallow_dict(self) -> dict:
|
|
1797
|
+
"""Serializes the GetRunResponse into a shallow dictionary of its immediate attributes."""
|
|
1798
|
+
body = {}
|
|
1799
|
+
if self.run: body['run'] = self.run
|
|
1800
|
+
return body
|
|
1801
|
+
|
|
1410
1802
|
@classmethod
|
|
1411
1803
|
def from_dict(cls, d: Dict[str, any]) -> GetRunResponse:
|
|
1412
1804
|
"""Deserializes the GetRunResponse from a dictionary."""
|
|
@@ -1444,6 +1836,16 @@ class HttpUrlSpec:
|
|
|
1444
1836
|
if self.url is not None: body['url'] = self.url
|
|
1445
1837
|
return body
|
|
1446
1838
|
|
|
1839
|
+
def as_shallow_dict(self) -> dict:
|
|
1840
|
+
"""Serializes the HttpUrlSpec into a shallow dictionary of its immediate attributes."""
|
|
1841
|
+
body = {}
|
|
1842
|
+
if self.authorization is not None: body['authorization'] = self.authorization
|
|
1843
|
+
if self.enable_ssl_verification is not None:
|
|
1844
|
+
body['enable_ssl_verification'] = self.enable_ssl_verification
|
|
1845
|
+
if self.secret is not None: body['secret'] = self.secret
|
|
1846
|
+
if self.url is not None: body['url'] = self.url
|
|
1847
|
+
return body
|
|
1848
|
+
|
|
1447
1849
|
@classmethod
|
|
1448
1850
|
def from_dict(cls, d: Dict[str, any]) -> HttpUrlSpec:
|
|
1449
1851
|
"""Deserializes the HttpUrlSpec from a dictionary."""
|
|
@@ -1473,6 +1875,14 @@ class HttpUrlSpecWithoutSecret:
|
|
|
1473
1875
|
if self.url is not None: body['url'] = self.url
|
|
1474
1876
|
return body
|
|
1475
1877
|
|
|
1878
|
+
def as_shallow_dict(self) -> dict:
|
|
1879
|
+
"""Serializes the HttpUrlSpecWithoutSecret into a shallow dictionary of its immediate attributes."""
|
|
1880
|
+
body = {}
|
|
1881
|
+
if self.enable_ssl_verification is not None:
|
|
1882
|
+
body['enable_ssl_verification'] = self.enable_ssl_verification
|
|
1883
|
+
if self.url is not None: body['url'] = self.url
|
|
1884
|
+
return body
|
|
1885
|
+
|
|
1476
1886
|
@classmethod
|
|
1477
1887
|
def from_dict(cls, d: Dict[str, any]) -> HttpUrlSpecWithoutSecret:
|
|
1478
1888
|
"""Deserializes the HttpUrlSpecWithoutSecret from a dictionary."""
|
|
@@ -1494,6 +1904,13 @@ class InputTag:
|
|
|
1494
1904
|
if self.value is not None: body['value'] = self.value
|
|
1495
1905
|
return body
|
|
1496
1906
|
|
|
1907
|
+
def as_shallow_dict(self) -> dict:
|
|
1908
|
+
"""Serializes the InputTag into a shallow dictionary of its immediate attributes."""
|
|
1909
|
+
body = {}
|
|
1910
|
+
if self.key is not None: body['key'] = self.key
|
|
1911
|
+
if self.value is not None: body['value'] = self.value
|
|
1912
|
+
return body
|
|
1913
|
+
|
|
1497
1914
|
@classmethod
|
|
1498
1915
|
def from_dict(cls, d: Dict[str, any]) -> InputTag:
|
|
1499
1916
|
"""Deserializes the InputTag from a dictionary."""
|
|
@@ -1520,6 +1937,14 @@ class JobSpec:
|
|
|
1520
1937
|
if self.workspace_url is not None: body['workspace_url'] = self.workspace_url
|
|
1521
1938
|
return body
|
|
1522
1939
|
|
|
1940
|
+
def as_shallow_dict(self) -> dict:
|
|
1941
|
+
"""Serializes the JobSpec into a shallow dictionary of its immediate attributes."""
|
|
1942
|
+
body = {}
|
|
1943
|
+
if self.access_token is not None: body['access_token'] = self.access_token
|
|
1944
|
+
if self.job_id is not None: body['job_id'] = self.job_id
|
|
1945
|
+
if self.workspace_url is not None: body['workspace_url'] = self.workspace_url
|
|
1946
|
+
return body
|
|
1947
|
+
|
|
1523
1948
|
@classmethod
|
|
1524
1949
|
def from_dict(cls, d: Dict[str, any]) -> JobSpec:
|
|
1525
1950
|
"""Deserializes the JobSpec from a dictionary."""
|
|
@@ -1545,6 +1970,13 @@ class JobSpecWithoutSecret:
|
|
|
1545
1970
|
if self.workspace_url is not None: body['workspace_url'] = self.workspace_url
|
|
1546
1971
|
return body
|
|
1547
1972
|
|
|
1973
|
+
def as_shallow_dict(self) -> dict:
|
|
1974
|
+
"""Serializes the JobSpecWithoutSecret into a shallow dictionary of its immediate attributes."""
|
|
1975
|
+
body = {}
|
|
1976
|
+
if self.job_id is not None: body['job_id'] = self.job_id
|
|
1977
|
+
if self.workspace_url is not None: body['workspace_url'] = self.workspace_url
|
|
1978
|
+
return body
|
|
1979
|
+
|
|
1548
1980
|
@classmethod
|
|
1549
1981
|
def from_dict(cls, d: Dict[str, any]) -> JobSpecWithoutSecret:
|
|
1550
1982
|
"""Deserializes the JobSpecWithoutSecret from a dictionary."""
|
|
@@ -1570,6 +2002,14 @@ class ListArtifactsResponse:
|
|
|
1570
2002
|
if self.root_uri is not None: body['root_uri'] = self.root_uri
|
|
1571
2003
|
return body
|
|
1572
2004
|
|
|
2005
|
+
def as_shallow_dict(self) -> dict:
|
|
2006
|
+
"""Serializes the ListArtifactsResponse into a shallow dictionary of its immediate attributes."""
|
|
2007
|
+
body = {}
|
|
2008
|
+
if self.files: body['files'] = self.files
|
|
2009
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
2010
|
+
if self.root_uri is not None: body['root_uri'] = self.root_uri
|
|
2011
|
+
return body
|
|
2012
|
+
|
|
1573
2013
|
@classmethod
|
|
1574
2014
|
def from_dict(cls, d: Dict[str, any]) -> ListArtifactsResponse:
|
|
1575
2015
|
"""Deserializes the ListArtifactsResponse from a dictionary."""
|
|
@@ -1594,6 +2034,13 @@ class ListExperimentsResponse:
|
|
|
1594
2034
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1595
2035
|
return body
|
|
1596
2036
|
|
|
2037
|
+
def as_shallow_dict(self) -> dict:
|
|
2038
|
+
"""Serializes the ListExperimentsResponse into a shallow dictionary of its immediate attributes."""
|
|
2039
|
+
body = {}
|
|
2040
|
+
if self.experiments: body['experiments'] = self.experiments
|
|
2041
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
2042
|
+
return body
|
|
2043
|
+
|
|
1597
2044
|
@classmethod
|
|
1598
2045
|
def from_dict(cls, d: Dict[str, any]) -> ListExperimentsResponse:
|
|
1599
2046
|
"""Deserializes the ListExperimentsResponse from a dictionary."""
|
|
@@ -1615,6 +2062,13 @@ class ListModelsResponse:
|
|
|
1615
2062
|
if self.registered_models: body['registered_models'] = [v.as_dict() for v in self.registered_models]
|
|
1616
2063
|
return body
|
|
1617
2064
|
|
|
2065
|
+
def as_shallow_dict(self) -> dict:
|
|
2066
|
+
"""Serializes the ListModelsResponse into a shallow dictionary of its immediate attributes."""
|
|
2067
|
+
body = {}
|
|
2068
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
2069
|
+
if self.registered_models: body['registered_models'] = self.registered_models
|
|
2070
|
+
return body
|
|
2071
|
+
|
|
1618
2072
|
@classmethod
|
|
1619
2073
|
def from_dict(cls, d: Dict[str, any]) -> ListModelsResponse:
|
|
1620
2074
|
"""Deserializes the ListModelsResponse from a dictionary."""
|
|
@@ -1637,6 +2091,13 @@ class ListRegistryWebhooks:
|
|
|
1637
2091
|
if self.webhooks: body['webhooks'] = [v.as_dict() for v in self.webhooks]
|
|
1638
2092
|
return body
|
|
1639
2093
|
|
|
2094
|
+
def as_shallow_dict(self) -> dict:
|
|
2095
|
+
"""Serializes the ListRegistryWebhooks into a shallow dictionary of its immediate attributes."""
|
|
2096
|
+
body = {}
|
|
2097
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
2098
|
+
if self.webhooks: body['webhooks'] = self.webhooks
|
|
2099
|
+
return body
|
|
2100
|
+
|
|
1640
2101
|
@classmethod
|
|
1641
2102
|
def from_dict(cls, d: Dict[str, any]) -> ListRegistryWebhooks:
|
|
1642
2103
|
"""Deserializes the ListRegistryWebhooks from a dictionary."""
|
|
@@ -1655,6 +2116,12 @@ class ListTransitionRequestsResponse:
|
|
|
1655
2116
|
if self.requests: body['requests'] = [v.as_dict() for v in self.requests]
|
|
1656
2117
|
return body
|
|
1657
2118
|
|
|
2119
|
+
def as_shallow_dict(self) -> dict:
|
|
2120
|
+
"""Serializes the ListTransitionRequestsResponse into a shallow dictionary of its immediate attributes."""
|
|
2121
|
+
body = {}
|
|
2122
|
+
if self.requests: body['requests'] = self.requests
|
|
2123
|
+
return body
|
|
2124
|
+
|
|
1658
2125
|
@classmethod
|
|
1659
2126
|
def from_dict(cls, d: Dict[str, any]) -> ListTransitionRequestsResponse:
|
|
1660
2127
|
"""Deserializes the ListTransitionRequestsResponse from a dictionary."""
|
|
@@ -1687,6 +2154,15 @@ class LogBatch:
|
|
|
1687
2154
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
1688
2155
|
return body
|
|
1689
2156
|
|
|
2157
|
+
def as_shallow_dict(self) -> dict:
|
|
2158
|
+
"""Serializes the LogBatch into a shallow dictionary of its immediate attributes."""
|
|
2159
|
+
body = {}
|
|
2160
|
+
if self.metrics: body['metrics'] = self.metrics
|
|
2161
|
+
if self.params: body['params'] = self.params
|
|
2162
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2163
|
+
if self.tags: body['tags'] = self.tags
|
|
2164
|
+
return body
|
|
2165
|
+
|
|
1690
2166
|
@classmethod
|
|
1691
2167
|
def from_dict(cls, d: Dict[str, any]) -> LogBatch:
|
|
1692
2168
|
"""Deserializes the LogBatch from a dictionary."""
|
|
@@ -1704,6 +2180,11 @@ class LogBatchResponse:
|
|
|
1704
2180
|
body = {}
|
|
1705
2181
|
return body
|
|
1706
2182
|
|
|
2183
|
+
def as_shallow_dict(self) -> dict:
|
|
2184
|
+
"""Serializes the LogBatchResponse into a shallow dictionary of its immediate attributes."""
|
|
2185
|
+
body = {}
|
|
2186
|
+
return body
|
|
2187
|
+
|
|
1707
2188
|
@classmethod
|
|
1708
2189
|
def from_dict(cls, d: Dict[str, any]) -> LogBatchResponse:
|
|
1709
2190
|
"""Deserializes the LogBatchResponse from a dictionary."""
|
|
@@ -1725,6 +2206,13 @@ class LogInputs:
|
|
|
1725
2206
|
if self.run_id is not None: body['run_id'] = self.run_id
|
|
1726
2207
|
return body
|
|
1727
2208
|
|
|
2209
|
+
def as_shallow_dict(self) -> dict:
|
|
2210
|
+
"""Serializes the LogInputs into a shallow dictionary of its immediate attributes."""
|
|
2211
|
+
body = {}
|
|
2212
|
+
if self.datasets: body['datasets'] = self.datasets
|
|
2213
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2214
|
+
return body
|
|
2215
|
+
|
|
1728
2216
|
@classmethod
|
|
1729
2217
|
def from_dict(cls, d: Dict[str, any]) -> LogInputs:
|
|
1730
2218
|
"""Deserializes the LogInputs from a dictionary."""
|
|
@@ -1739,6 +2227,11 @@ class LogInputsResponse:
|
|
|
1739
2227
|
body = {}
|
|
1740
2228
|
return body
|
|
1741
2229
|
|
|
2230
|
+
def as_shallow_dict(self) -> dict:
|
|
2231
|
+
"""Serializes the LogInputsResponse into a shallow dictionary of its immediate attributes."""
|
|
2232
|
+
body = {}
|
|
2233
|
+
return body
|
|
2234
|
+
|
|
1742
2235
|
@classmethod
|
|
1743
2236
|
def from_dict(cls, d: Dict[str, any]) -> LogInputsResponse:
|
|
1744
2237
|
"""Deserializes the LogInputsResponse from a dictionary."""
|
|
@@ -1777,6 +2270,17 @@ class LogMetric:
|
|
|
1777
2270
|
if self.value is not None: body['value'] = self.value
|
|
1778
2271
|
return body
|
|
1779
2272
|
|
|
2273
|
+
def as_shallow_dict(self) -> dict:
|
|
2274
|
+
"""Serializes the LogMetric into a shallow dictionary of its immediate attributes."""
|
|
2275
|
+
body = {}
|
|
2276
|
+
if self.key is not None: body['key'] = self.key
|
|
2277
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2278
|
+
if self.run_uuid is not None: body['run_uuid'] = self.run_uuid
|
|
2279
|
+
if self.step is not None: body['step'] = self.step
|
|
2280
|
+
if self.timestamp is not None: body['timestamp'] = self.timestamp
|
|
2281
|
+
if self.value is not None: body['value'] = self.value
|
|
2282
|
+
return body
|
|
2283
|
+
|
|
1780
2284
|
@classmethod
|
|
1781
2285
|
def from_dict(cls, d: Dict[str, any]) -> LogMetric:
|
|
1782
2286
|
"""Deserializes the LogMetric from a dictionary."""
|
|
@@ -1796,6 +2300,11 @@ class LogMetricResponse:
|
|
|
1796
2300
|
body = {}
|
|
1797
2301
|
return body
|
|
1798
2302
|
|
|
2303
|
+
def as_shallow_dict(self) -> dict:
|
|
2304
|
+
"""Serializes the LogMetricResponse into a shallow dictionary of its immediate attributes."""
|
|
2305
|
+
body = {}
|
|
2306
|
+
return body
|
|
2307
|
+
|
|
1799
2308
|
@classmethod
|
|
1800
2309
|
def from_dict(cls, d: Dict[str, any]) -> LogMetricResponse:
|
|
1801
2310
|
"""Deserializes the LogMetricResponse from a dictionary."""
|
|
@@ -1817,6 +2326,13 @@ class LogModel:
|
|
|
1817
2326
|
if self.run_id is not None: body['run_id'] = self.run_id
|
|
1818
2327
|
return body
|
|
1819
2328
|
|
|
2329
|
+
def as_shallow_dict(self) -> dict:
|
|
2330
|
+
"""Serializes the LogModel into a shallow dictionary of its immediate attributes."""
|
|
2331
|
+
body = {}
|
|
2332
|
+
if self.model_json is not None: body['model_json'] = self.model_json
|
|
2333
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2334
|
+
return body
|
|
2335
|
+
|
|
1820
2336
|
@classmethod
|
|
1821
2337
|
def from_dict(cls, d: Dict[str, any]) -> LogModel:
|
|
1822
2338
|
"""Deserializes the LogModel from a dictionary."""
|
|
@@ -1831,6 +2347,11 @@ class LogModelResponse:
|
|
|
1831
2347
|
body = {}
|
|
1832
2348
|
return body
|
|
1833
2349
|
|
|
2350
|
+
def as_shallow_dict(self) -> dict:
|
|
2351
|
+
"""Serializes the LogModelResponse into a shallow dictionary of its immediate attributes."""
|
|
2352
|
+
body = {}
|
|
2353
|
+
return body
|
|
2354
|
+
|
|
1834
2355
|
@classmethod
|
|
1835
2356
|
def from_dict(cls, d: Dict[str, any]) -> LogModelResponse:
|
|
1836
2357
|
"""Deserializes the LogModelResponse from a dictionary."""
|
|
@@ -1861,6 +2382,15 @@ class LogParam:
|
|
|
1861
2382
|
if self.value is not None: body['value'] = self.value
|
|
1862
2383
|
return body
|
|
1863
2384
|
|
|
2385
|
+
def as_shallow_dict(self) -> dict:
|
|
2386
|
+
"""Serializes the LogParam into a shallow dictionary of its immediate attributes."""
|
|
2387
|
+
body = {}
|
|
2388
|
+
if self.key is not None: body['key'] = self.key
|
|
2389
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2390
|
+
if self.run_uuid is not None: body['run_uuid'] = self.run_uuid
|
|
2391
|
+
if self.value is not None: body['value'] = self.value
|
|
2392
|
+
return body
|
|
2393
|
+
|
|
1864
2394
|
@classmethod
|
|
1865
2395
|
def from_dict(cls, d: Dict[str, any]) -> LogParam:
|
|
1866
2396
|
"""Deserializes the LogParam from a dictionary."""
|
|
@@ -1878,6 +2408,11 @@ class LogParamResponse:
|
|
|
1878
2408
|
body = {}
|
|
1879
2409
|
return body
|
|
1880
2410
|
|
|
2411
|
+
def as_shallow_dict(self) -> dict:
|
|
2412
|
+
"""Serializes the LogParamResponse into a shallow dictionary of its immediate attributes."""
|
|
2413
|
+
body = {}
|
|
2414
|
+
return body
|
|
2415
|
+
|
|
1881
2416
|
@classmethod
|
|
1882
2417
|
def from_dict(cls, d: Dict[str, any]) -> LogParamResponse:
|
|
1883
2418
|
"""Deserializes the LogParamResponse from a dictionary."""
|
|
@@ -1907,6 +2442,15 @@ class Metric:
|
|
|
1907
2442
|
if self.value is not None: body['value'] = self.value
|
|
1908
2443
|
return body
|
|
1909
2444
|
|
|
2445
|
+
def as_shallow_dict(self) -> dict:
|
|
2446
|
+
"""Serializes the Metric into a shallow dictionary of its immediate attributes."""
|
|
2447
|
+
body = {}
|
|
2448
|
+
if self.key is not None: body['key'] = self.key
|
|
2449
|
+
if self.step is not None: body['step'] = self.step
|
|
2450
|
+
if self.timestamp is not None: body['timestamp'] = self.timestamp
|
|
2451
|
+
if self.value is not None: body['value'] = self.value
|
|
2452
|
+
return body
|
|
2453
|
+
|
|
1910
2454
|
@classmethod
|
|
1911
2455
|
def from_dict(cls, d: Dict[str, any]) -> Metric:
|
|
1912
2456
|
"""Deserializes the Metric from a dictionary."""
|
|
@@ -1953,6 +2497,19 @@ class Model:
|
|
|
1953
2497
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
1954
2498
|
return body
|
|
1955
2499
|
|
|
2500
|
+
def as_shallow_dict(self) -> dict:
|
|
2501
|
+
"""Serializes the Model into a shallow dictionary of its immediate attributes."""
|
|
2502
|
+
body = {}
|
|
2503
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
2504
|
+
if self.description is not None: body['description'] = self.description
|
|
2505
|
+
if self.last_updated_timestamp is not None:
|
|
2506
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
2507
|
+
if self.latest_versions: body['latest_versions'] = self.latest_versions
|
|
2508
|
+
if self.name is not None: body['name'] = self.name
|
|
2509
|
+
if self.tags: body['tags'] = self.tags
|
|
2510
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2511
|
+
return body
|
|
2512
|
+
|
|
1956
2513
|
@classmethod
|
|
1957
2514
|
def from_dict(cls, d: Dict[str, any]) -> Model:
|
|
1958
2515
|
"""Deserializes the Model from a dictionary."""
|
|
@@ -2010,6 +2567,21 @@ class ModelDatabricks:
|
|
|
2010
2567
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2011
2568
|
return body
|
|
2012
2569
|
|
|
2570
|
+
def as_shallow_dict(self) -> dict:
|
|
2571
|
+
"""Serializes the ModelDatabricks into a shallow dictionary of its immediate attributes."""
|
|
2572
|
+
body = {}
|
|
2573
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
2574
|
+
if self.description is not None: body['description'] = self.description
|
|
2575
|
+
if self.id is not None: body['id'] = self.id
|
|
2576
|
+
if self.last_updated_timestamp is not None:
|
|
2577
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
2578
|
+
if self.latest_versions: body['latest_versions'] = self.latest_versions
|
|
2579
|
+
if self.name is not None: body['name'] = self.name
|
|
2580
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
2581
|
+
if self.tags: body['tags'] = self.tags
|
|
2582
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2583
|
+
return body
|
|
2584
|
+
|
|
2013
2585
|
@classmethod
|
|
2014
2586
|
def from_dict(cls, d: Dict[str, any]) -> ModelDatabricks:
|
|
2015
2587
|
"""Deserializes the ModelDatabricks from a dictionary."""
|
|
@@ -2039,6 +2611,13 @@ class ModelTag:
|
|
|
2039
2611
|
if self.value is not None: body['value'] = self.value
|
|
2040
2612
|
return body
|
|
2041
2613
|
|
|
2614
|
+
def as_shallow_dict(self) -> dict:
|
|
2615
|
+
"""Serializes the ModelTag into a shallow dictionary of its immediate attributes."""
|
|
2616
|
+
body = {}
|
|
2617
|
+
if self.key is not None: body['key'] = self.key
|
|
2618
|
+
if self.value is not None: body['value'] = self.value
|
|
2619
|
+
return body
|
|
2620
|
+
|
|
2042
2621
|
@classmethod
|
|
2043
2622
|
def from_dict(cls, d: Dict[str, any]) -> ModelTag:
|
|
2044
2623
|
"""Deserializes the ModelTag from a dictionary."""
|
|
@@ -2106,6 +2685,25 @@ class ModelVersion:
|
|
|
2106
2685
|
if self.version is not None: body['version'] = self.version
|
|
2107
2686
|
return body
|
|
2108
2687
|
|
|
2688
|
+
def as_shallow_dict(self) -> dict:
|
|
2689
|
+
"""Serializes the ModelVersion into a shallow dictionary of its immediate attributes."""
|
|
2690
|
+
body = {}
|
|
2691
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
2692
|
+
if self.current_stage is not None: body['current_stage'] = self.current_stage
|
|
2693
|
+
if self.description is not None: body['description'] = self.description
|
|
2694
|
+
if self.last_updated_timestamp is not None:
|
|
2695
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
2696
|
+
if self.name is not None: body['name'] = self.name
|
|
2697
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2698
|
+
if self.run_link is not None: body['run_link'] = self.run_link
|
|
2699
|
+
if self.source is not None: body['source'] = self.source
|
|
2700
|
+
if self.status is not None: body['status'] = self.status
|
|
2701
|
+
if self.status_message is not None: body['status_message'] = self.status_message
|
|
2702
|
+
if self.tags: body['tags'] = self.tags
|
|
2703
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2704
|
+
if self.version is not None: body['version'] = self.version
|
|
2705
|
+
return body
|
|
2706
|
+
|
|
2109
2707
|
@classmethod
|
|
2110
2708
|
def from_dict(cls, d: Dict[str, any]) -> ModelVersion:
|
|
2111
2709
|
"""Deserializes the ModelVersion from a dictionary."""
|
|
@@ -2205,6 +2803,26 @@ class ModelVersionDatabricks:
|
|
|
2205
2803
|
if self.version is not None: body['version'] = self.version
|
|
2206
2804
|
return body
|
|
2207
2805
|
|
|
2806
|
+
def as_shallow_dict(self) -> dict:
|
|
2807
|
+
"""Serializes the ModelVersionDatabricks into a shallow dictionary of its immediate attributes."""
|
|
2808
|
+
body = {}
|
|
2809
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
2810
|
+
if self.current_stage is not None: body['current_stage'] = self.current_stage
|
|
2811
|
+
if self.description is not None: body['description'] = self.description
|
|
2812
|
+
if self.last_updated_timestamp is not None:
|
|
2813
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
2814
|
+
if self.name is not None: body['name'] = self.name
|
|
2815
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
2816
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2817
|
+
if self.run_link is not None: body['run_link'] = self.run_link
|
|
2818
|
+
if self.source is not None: body['source'] = self.source
|
|
2819
|
+
if self.status is not None: body['status'] = self.status
|
|
2820
|
+
if self.status_message is not None: body['status_message'] = self.status_message
|
|
2821
|
+
if self.tags: body['tags'] = self.tags
|
|
2822
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2823
|
+
if self.version is not None: body['version'] = self.version
|
|
2824
|
+
return body
|
|
2825
|
+
|
|
2208
2826
|
@classmethod
|
|
2209
2827
|
def from_dict(cls, d: Dict[str, any]) -> ModelVersionDatabricks:
|
|
2210
2828
|
"""Deserializes the ModelVersionDatabricks from a dictionary."""
|
|
@@ -2247,6 +2865,13 @@ class ModelVersionTag:
|
|
|
2247
2865
|
if self.value is not None: body['value'] = self.value
|
|
2248
2866
|
return body
|
|
2249
2867
|
|
|
2868
|
+
def as_shallow_dict(self) -> dict:
|
|
2869
|
+
"""Serializes the ModelVersionTag into a shallow dictionary of its immediate attributes."""
|
|
2870
|
+
body = {}
|
|
2871
|
+
if self.key is not None: body['key'] = self.key
|
|
2872
|
+
if self.value is not None: body['value'] = self.value
|
|
2873
|
+
return body
|
|
2874
|
+
|
|
2250
2875
|
@classmethod
|
|
2251
2876
|
def from_dict(cls, d: Dict[str, any]) -> ModelVersionTag:
|
|
2252
2877
|
"""Deserializes the ModelVersionTag from a dictionary."""
|
|
@@ -2261,8 +2886,15 @@ class Param:
|
|
|
2261
2886
|
value: Optional[str] = None
|
|
2262
2887
|
"""Value associated with this param."""
|
|
2263
2888
|
|
|
2264
|
-
def as_dict(self) -> dict:
|
|
2265
|
-
"""Serializes the Param into a dictionary suitable for use as a JSON request body."""
|
|
2889
|
+
def as_dict(self) -> dict:
|
|
2890
|
+
"""Serializes the Param into a dictionary suitable for use as a JSON request body."""
|
|
2891
|
+
body = {}
|
|
2892
|
+
if self.key is not None: body['key'] = self.key
|
|
2893
|
+
if self.value is not None: body['value'] = self.value
|
|
2894
|
+
return body
|
|
2895
|
+
|
|
2896
|
+
def as_shallow_dict(self) -> dict:
|
|
2897
|
+
"""Serializes the Param into a shallow dictionary of its immediate attributes."""
|
|
2266
2898
|
body = {}
|
|
2267
2899
|
if self.key is not None: body['key'] = self.key
|
|
2268
2900
|
if self.value is not None: body['value'] = self.value
|
|
@@ -2309,6 +2941,16 @@ class RegisteredModelAccessControlRequest:
|
|
|
2309
2941
|
if self.user_name is not None: body['user_name'] = self.user_name
|
|
2310
2942
|
return body
|
|
2311
2943
|
|
|
2944
|
+
def as_shallow_dict(self) -> dict:
|
|
2945
|
+
"""Serializes the RegisteredModelAccessControlRequest into a shallow dictionary of its immediate attributes."""
|
|
2946
|
+
body = {}
|
|
2947
|
+
if self.group_name is not None: body['group_name'] = self.group_name
|
|
2948
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
2949
|
+
if self.service_principal_name is not None:
|
|
2950
|
+
body['service_principal_name'] = self.service_principal_name
|
|
2951
|
+
if self.user_name is not None: body['user_name'] = self.user_name
|
|
2952
|
+
return body
|
|
2953
|
+
|
|
2312
2954
|
@classmethod
|
|
2313
2955
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelAccessControlRequest:
|
|
2314
2956
|
"""Deserializes the RegisteredModelAccessControlRequest from a dictionary."""
|
|
@@ -2346,6 +2988,17 @@ class RegisteredModelAccessControlResponse:
|
|
|
2346
2988
|
if self.user_name is not None: body['user_name'] = self.user_name
|
|
2347
2989
|
return body
|
|
2348
2990
|
|
|
2991
|
+
def as_shallow_dict(self) -> dict:
|
|
2992
|
+
"""Serializes the RegisteredModelAccessControlResponse into a shallow dictionary of its immediate attributes."""
|
|
2993
|
+
body = {}
|
|
2994
|
+
if self.all_permissions: body['all_permissions'] = self.all_permissions
|
|
2995
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
2996
|
+
if self.group_name is not None: body['group_name'] = self.group_name
|
|
2997
|
+
if self.service_principal_name is not None:
|
|
2998
|
+
body['service_principal_name'] = self.service_principal_name
|
|
2999
|
+
if self.user_name is not None: body['user_name'] = self.user_name
|
|
3000
|
+
return body
|
|
3001
|
+
|
|
2349
3002
|
@classmethod
|
|
2350
3003
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelAccessControlResponse:
|
|
2351
3004
|
"""Deserializes the RegisteredModelAccessControlResponse from a dictionary."""
|
|
@@ -2373,6 +3026,14 @@ class RegisteredModelPermission:
|
|
|
2373
3026
|
if self.permission_level is not None: body['permission_level'] = self.permission_level.value
|
|
2374
3027
|
return body
|
|
2375
3028
|
|
|
3029
|
+
def as_shallow_dict(self) -> dict:
|
|
3030
|
+
"""Serializes the RegisteredModelPermission into a shallow dictionary of its immediate attributes."""
|
|
3031
|
+
body = {}
|
|
3032
|
+
if self.inherited is not None: body['inherited'] = self.inherited
|
|
3033
|
+
if self.inherited_from_object: body['inherited_from_object'] = self.inherited_from_object
|
|
3034
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
3035
|
+
return body
|
|
3036
|
+
|
|
2376
3037
|
@classmethod
|
|
2377
3038
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelPermission:
|
|
2378
3039
|
"""Deserializes the RegisteredModelPermission from a dictionary."""
|
|
@@ -2408,6 +3069,14 @@ class RegisteredModelPermissions:
|
|
|
2408
3069
|
if self.object_type is not None: body['object_type'] = self.object_type
|
|
2409
3070
|
return body
|
|
2410
3071
|
|
|
3072
|
+
def as_shallow_dict(self) -> dict:
|
|
3073
|
+
"""Serializes the RegisteredModelPermissions into a shallow dictionary of its immediate attributes."""
|
|
3074
|
+
body = {}
|
|
3075
|
+
if self.access_control_list: body['access_control_list'] = self.access_control_list
|
|
3076
|
+
if self.object_id is not None: body['object_id'] = self.object_id
|
|
3077
|
+
if self.object_type is not None: body['object_type'] = self.object_type
|
|
3078
|
+
return body
|
|
3079
|
+
|
|
2411
3080
|
@classmethod
|
|
2412
3081
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelPermissions:
|
|
2413
3082
|
"""Deserializes the RegisteredModelPermissions from a dictionary."""
|
|
@@ -2431,6 +3100,13 @@ class RegisteredModelPermissionsDescription:
|
|
|
2431
3100
|
if self.permission_level is not None: body['permission_level'] = self.permission_level.value
|
|
2432
3101
|
return body
|
|
2433
3102
|
|
|
3103
|
+
def as_shallow_dict(self) -> dict:
|
|
3104
|
+
"""Serializes the RegisteredModelPermissionsDescription into a shallow dictionary of its immediate attributes."""
|
|
3105
|
+
body = {}
|
|
3106
|
+
if self.description is not None: body['description'] = self.description
|
|
3107
|
+
if self.permission_level is not None: body['permission_level'] = self.permission_level
|
|
3108
|
+
return body
|
|
3109
|
+
|
|
2434
3110
|
@classmethod
|
|
2435
3111
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelPermissionsDescription:
|
|
2436
3112
|
"""Deserializes the RegisteredModelPermissionsDescription from a dictionary."""
|
|
@@ -2453,6 +3129,13 @@ class RegisteredModelPermissionsRequest:
|
|
|
2453
3129
|
if self.registered_model_id is not None: body['registered_model_id'] = self.registered_model_id
|
|
2454
3130
|
return body
|
|
2455
3131
|
|
|
3132
|
+
def as_shallow_dict(self) -> dict:
|
|
3133
|
+
"""Serializes the RegisteredModelPermissionsRequest into a shallow dictionary of its immediate attributes."""
|
|
3134
|
+
body = {}
|
|
3135
|
+
if self.access_control_list: body['access_control_list'] = self.access_control_list
|
|
3136
|
+
if self.registered_model_id is not None: body['registered_model_id'] = self.registered_model_id
|
|
3137
|
+
return body
|
|
3138
|
+
|
|
2456
3139
|
@classmethod
|
|
2457
3140
|
def from_dict(cls, d: Dict[str, any]) -> RegisteredModelPermissionsRequest:
|
|
2458
3141
|
"""Deserializes the RegisteredModelPermissionsRequest from a dictionary."""
|
|
@@ -2536,6 +3219,21 @@ class RegistryWebhook:
|
|
|
2536
3219
|
if self.status is not None: body['status'] = self.status.value
|
|
2537
3220
|
return body
|
|
2538
3221
|
|
|
3222
|
+
def as_shallow_dict(self) -> dict:
|
|
3223
|
+
"""Serializes the RegistryWebhook into a shallow dictionary of its immediate attributes."""
|
|
3224
|
+
body = {}
|
|
3225
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
3226
|
+
if self.description is not None: body['description'] = self.description
|
|
3227
|
+
if self.events: body['events'] = self.events
|
|
3228
|
+
if self.http_url_spec: body['http_url_spec'] = self.http_url_spec
|
|
3229
|
+
if self.id is not None: body['id'] = self.id
|
|
3230
|
+
if self.job_spec: body['job_spec'] = self.job_spec
|
|
3231
|
+
if self.last_updated_timestamp is not None:
|
|
3232
|
+
body['last_updated_timestamp'] = self.last_updated_timestamp
|
|
3233
|
+
if self.model_name is not None: body['model_name'] = self.model_name
|
|
3234
|
+
if self.status is not None: body['status'] = self.status
|
|
3235
|
+
return body
|
|
3236
|
+
|
|
2539
3237
|
@classmethod
|
|
2540
3238
|
def from_dict(cls, d: Dict[str, any]) -> RegistryWebhook:
|
|
2541
3239
|
"""Deserializes the RegistryWebhook from a dictionary."""
|
|
@@ -2611,6 +3309,15 @@ class RejectTransitionRequest:
|
|
|
2611
3309
|
if self.version is not None: body['version'] = self.version
|
|
2612
3310
|
return body
|
|
2613
3311
|
|
|
3312
|
+
def as_shallow_dict(self) -> dict:
|
|
3313
|
+
"""Serializes the RejectTransitionRequest into a shallow dictionary of its immediate attributes."""
|
|
3314
|
+
body = {}
|
|
3315
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
3316
|
+
if self.name is not None: body['name'] = self.name
|
|
3317
|
+
if self.stage is not None: body['stage'] = self.stage
|
|
3318
|
+
if self.version is not None: body['version'] = self.version
|
|
3319
|
+
return body
|
|
3320
|
+
|
|
2614
3321
|
@classmethod
|
|
2615
3322
|
def from_dict(cls, d: Dict[str, any]) -> RejectTransitionRequest:
|
|
2616
3323
|
"""Deserializes the RejectTransitionRequest from a dictionary."""
|
|
@@ -2631,6 +3338,12 @@ class RejectTransitionRequestResponse:
|
|
|
2631
3338
|
if self.activity: body['activity'] = self.activity.as_dict()
|
|
2632
3339
|
return body
|
|
2633
3340
|
|
|
3341
|
+
def as_shallow_dict(self) -> dict:
|
|
3342
|
+
"""Serializes the RejectTransitionRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
3343
|
+
body = {}
|
|
3344
|
+
if self.activity: body['activity'] = self.activity
|
|
3345
|
+
return body
|
|
3346
|
+
|
|
2634
3347
|
@classmethod
|
|
2635
3348
|
def from_dict(cls, d: Dict[str, any]) -> RejectTransitionRequestResponse:
|
|
2636
3349
|
"""Deserializes the RejectTransitionRequestResponse from a dictionary."""
|
|
@@ -2652,6 +3365,13 @@ class RenameModelRequest:
|
|
|
2652
3365
|
if self.new_name is not None: body['new_name'] = self.new_name
|
|
2653
3366
|
return body
|
|
2654
3367
|
|
|
3368
|
+
def as_shallow_dict(self) -> dict:
|
|
3369
|
+
"""Serializes the RenameModelRequest into a shallow dictionary of its immediate attributes."""
|
|
3370
|
+
body = {}
|
|
3371
|
+
if self.name is not None: body['name'] = self.name
|
|
3372
|
+
if self.new_name is not None: body['new_name'] = self.new_name
|
|
3373
|
+
return body
|
|
3374
|
+
|
|
2655
3375
|
@classmethod
|
|
2656
3376
|
def from_dict(cls, d: Dict[str, any]) -> RenameModelRequest:
|
|
2657
3377
|
"""Deserializes the RenameModelRequest from a dictionary."""
|
|
@@ -2668,6 +3388,12 @@ class RenameModelResponse:
|
|
|
2668
3388
|
if self.registered_model: body['registered_model'] = self.registered_model.as_dict()
|
|
2669
3389
|
return body
|
|
2670
3390
|
|
|
3391
|
+
def as_shallow_dict(self) -> dict:
|
|
3392
|
+
"""Serializes the RenameModelResponse into a shallow dictionary of its immediate attributes."""
|
|
3393
|
+
body = {}
|
|
3394
|
+
if self.registered_model: body['registered_model'] = self.registered_model
|
|
3395
|
+
return body
|
|
3396
|
+
|
|
2671
3397
|
@classmethod
|
|
2672
3398
|
def from_dict(cls, d: Dict[str, any]) -> RenameModelResponse:
|
|
2673
3399
|
"""Deserializes the RenameModelResponse from a dictionary."""
|
|
@@ -2685,6 +3411,12 @@ class RestoreExperiment:
|
|
|
2685
3411
|
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
2686
3412
|
return body
|
|
2687
3413
|
|
|
3414
|
+
def as_shallow_dict(self) -> dict:
|
|
3415
|
+
"""Serializes the RestoreExperiment into a shallow dictionary of its immediate attributes."""
|
|
3416
|
+
body = {}
|
|
3417
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
3418
|
+
return body
|
|
3419
|
+
|
|
2688
3420
|
@classmethod
|
|
2689
3421
|
def from_dict(cls, d: Dict[str, any]) -> RestoreExperiment:
|
|
2690
3422
|
"""Deserializes the RestoreExperiment from a dictionary."""
|
|
@@ -2699,6 +3431,11 @@ class RestoreExperimentResponse:
|
|
|
2699
3431
|
body = {}
|
|
2700
3432
|
return body
|
|
2701
3433
|
|
|
3434
|
+
def as_shallow_dict(self) -> dict:
|
|
3435
|
+
"""Serializes the RestoreExperimentResponse into a shallow dictionary of its immediate attributes."""
|
|
3436
|
+
body = {}
|
|
3437
|
+
return body
|
|
3438
|
+
|
|
2702
3439
|
@classmethod
|
|
2703
3440
|
def from_dict(cls, d: Dict[str, any]) -> RestoreExperimentResponse:
|
|
2704
3441
|
"""Deserializes the RestoreExperimentResponse from a dictionary."""
|
|
@@ -2716,6 +3453,12 @@ class RestoreRun:
|
|
|
2716
3453
|
if self.run_id is not None: body['run_id'] = self.run_id
|
|
2717
3454
|
return body
|
|
2718
3455
|
|
|
3456
|
+
def as_shallow_dict(self) -> dict:
|
|
3457
|
+
"""Serializes the RestoreRun into a shallow dictionary of its immediate attributes."""
|
|
3458
|
+
body = {}
|
|
3459
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
3460
|
+
return body
|
|
3461
|
+
|
|
2719
3462
|
@classmethod
|
|
2720
3463
|
def from_dict(cls, d: Dict[str, any]) -> RestoreRun:
|
|
2721
3464
|
"""Deserializes the RestoreRun from a dictionary."""
|
|
@@ -2730,6 +3473,11 @@ class RestoreRunResponse:
|
|
|
2730
3473
|
body = {}
|
|
2731
3474
|
return body
|
|
2732
3475
|
|
|
3476
|
+
def as_shallow_dict(self) -> dict:
|
|
3477
|
+
"""Serializes the RestoreRunResponse into a shallow dictionary of its immediate attributes."""
|
|
3478
|
+
body = {}
|
|
3479
|
+
return body
|
|
3480
|
+
|
|
2733
3481
|
@classmethod
|
|
2734
3482
|
def from_dict(cls, d: Dict[str, any]) -> RestoreRunResponse:
|
|
2735
3483
|
"""Deserializes the RestoreRunResponse from a dictionary."""
|
|
@@ -2757,6 +3505,14 @@ class RestoreRuns:
|
|
|
2757
3505
|
if self.min_timestamp_millis is not None: body['min_timestamp_millis'] = self.min_timestamp_millis
|
|
2758
3506
|
return body
|
|
2759
3507
|
|
|
3508
|
+
def as_shallow_dict(self) -> dict:
|
|
3509
|
+
"""Serializes the RestoreRuns into a shallow dictionary of its immediate attributes."""
|
|
3510
|
+
body = {}
|
|
3511
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
3512
|
+
if self.max_runs is not None: body['max_runs'] = self.max_runs
|
|
3513
|
+
if self.min_timestamp_millis is not None: body['min_timestamp_millis'] = self.min_timestamp_millis
|
|
3514
|
+
return body
|
|
3515
|
+
|
|
2760
3516
|
@classmethod
|
|
2761
3517
|
def from_dict(cls, d: Dict[str, any]) -> RestoreRuns:
|
|
2762
3518
|
"""Deserializes the RestoreRuns from a dictionary."""
|
|
@@ -2776,6 +3532,12 @@ class RestoreRunsResponse:
|
|
|
2776
3532
|
if self.runs_restored is not None: body['runs_restored'] = self.runs_restored
|
|
2777
3533
|
return body
|
|
2778
3534
|
|
|
3535
|
+
def as_shallow_dict(self) -> dict:
|
|
3536
|
+
"""Serializes the RestoreRunsResponse into a shallow dictionary of its immediate attributes."""
|
|
3537
|
+
body = {}
|
|
3538
|
+
if self.runs_restored is not None: body['runs_restored'] = self.runs_restored
|
|
3539
|
+
return body
|
|
3540
|
+
|
|
2779
3541
|
@classmethod
|
|
2780
3542
|
def from_dict(cls, d: Dict[str, any]) -> RestoreRunsResponse:
|
|
2781
3543
|
"""Deserializes the RestoreRunsResponse from a dictionary."""
|
|
@@ -2801,6 +3563,14 @@ class Run:
|
|
|
2801
3563
|
if self.inputs: body['inputs'] = self.inputs.as_dict()
|
|
2802
3564
|
return body
|
|
2803
3565
|
|
|
3566
|
+
def as_shallow_dict(self) -> dict:
|
|
3567
|
+
"""Serializes the Run into a shallow dictionary of its immediate attributes."""
|
|
3568
|
+
body = {}
|
|
3569
|
+
if self.data: body['data'] = self.data
|
|
3570
|
+
if self.info: body['info'] = self.info
|
|
3571
|
+
if self.inputs: body['inputs'] = self.inputs
|
|
3572
|
+
return body
|
|
3573
|
+
|
|
2804
3574
|
@classmethod
|
|
2805
3575
|
def from_dict(cls, d: Dict[str, any]) -> Run:
|
|
2806
3576
|
"""Deserializes the Run from a dictionary."""
|
|
@@ -2828,6 +3598,14 @@ class RunData:
|
|
|
2828
3598
|
if self.tags: body['tags'] = [v.as_dict() for v in self.tags]
|
|
2829
3599
|
return body
|
|
2830
3600
|
|
|
3601
|
+
def as_shallow_dict(self) -> dict:
|
|
3602
|
+
"""Serializes the RunData into a shallow dictionary of its immediate attributes."""
|
|
3603
|
+
body = {}
|
|
3604
|
+
if self.metrics: body['metrics'] = self.metrics
|
|
3605
|
+
if self.params: body['params'] = self.params
|
|
3606
|
+
if self.tags: body['tags'] = self.tags
|
|
3607
|
+
return body
|
|
3608
|
+
|
|
2831
3609
|
@classmethod
|
|
2832
3610
|
def from_dict(cls, d: Dict[str, any]) -> RunData:
|
|
2833
3611
|
"""Deserializes the RunData from a dictionary."""
|
|
@@ -2883,6 +3661,20 @@ class RunInfo:
|
|
|
2883
3661
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
2884
3662
|
return body
|
|
2885
3663
|
|
|
3664
|
+
def as_shallow_dict(self) -> dict:
|
|
3665
|
+
"""Serializes the RunInfo into a shallow dictionary of its immediate attributes."""
|
|
3666
|
+
body = {}
|
|
3667
|
+
if self.artifact_uri is not None: body['artifact_uri'] = self.artifact_uri
|
|
3668
|
+
if self.end_time is not None: body['end_time'] = self.end_time
|
|
3669
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
3670
|
+
if self.lifecycle_stage is not None: body['lifecycle_stage'] = self.lifecycle_stage
|
|
3671
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
3672
|
+
if self.run_uuid is not None: body['run_uuid'] = self.run_uuid
|
|
3673
|
+
if self.start_time is not None: body['start_time'] = self.start_time
|
|
3674
|
+
if self.status is not None: body['status'] = self.status
|
|
3675
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
3676
|
+
return body
|
|
3677
|
+
|
|
2886
3678
|
@classmethod
|
|
2887
3679
|
def from_dict(cls, d: Dict[str, any]) -> RunInfo:
|
|
2888
3680
|
"""Deserializes the RunInfo from a dictionary."""
|
|
@@ -2918,6 +3710,12 @@ class RunInputs:
|
|
|
2918
3710
|
if self.dataset_inputs: body['dataset_inputs'] = [v.as_dict() for v in self.dataset_inputs]
|
|
2919
3711
|
return body
|
|
2920
3712
|
|
|
3713
|
+
def as_shallow_dict(self) -> dict:
|
|
3714
|
+
"""Serializes the RunInputs into a shallow dictionary of its immediate attributes."""
|
|
3715
|
+
body = {}
|
|
3716
|
+
if self.dataset_inputs: body['dataset_inputs'] = self.dataset_inputs
|
|
3717
|
+
return body
|
|
3718
|
+
|
|
2921
3719
|
@classmethod
|
|
2922
3720
|
def from_dict(cls, d: Dict[str, any]) -> RunInputs:
|
|
2923
3721
|
"""Deserializes the RunInputs from a dictionary."""
|
|
@@ -2939,6 +3737,13 @@ class RunTag:
|
|
|
2939
3737
|
if self.value is not None: body['value'] = self.value
|
|
2940
3738
|
return body
|
|
2941
3739
|
|
|
3740
|
+
def as_shallow_dict(self) -> dict:
|
|
3741
|
+
"""Serializes the RunTag into a shallow dictionary of its immediate attributes."""
|
|
3742
|
+
body = {}
|
|
3743
|
+
if self.key is not None: body['key'] = self.key
|
|
3744
|
+
if self.value is not None: body['value'] = self.value
|
|
3745
|
+
return body
|
|
3746
|
+
|
|
2942
3747
|
@classmethod
|
|
2943
3748
|
def from_dict(cls, d: Dict[str, any]) -> RunTag:
|
|
2944
3749
|
"""Deserializes the RunTag from a dictionary."""
|
|
@@ -2975,6 +3780,16 @@ class SearchExperiments:
|
|
|
2975
3780
|
if self.view_type is not None: body['view_type'] = self.view_type.value
|
|
2976
3781
|
return body
|
|
2977
3782
|
|
|
3783
|
+
def as_shallow_dict(self) -> dict:
|
|
3784
|
+
"""Serializes the SearchExperiments into a shallow dictionary of its immediate attributes."""
|
|
3785
|
+
body = {}
|
|
3786
|
+
if self.filter is not None: body['filter'] = self.filter
|
|
3787
|
+
if self.max_results is not None: body['max_results'] = self.max_results
|
|
3788
|
+
if self.order_by: body['order_by'] = self.order_by
|
|
3789
|
+
if self.page_token is not None: body['page_token'] = self.page_token
|
|
3790
|
+
if self.view_type is not None: body['view_type'] = self.view_type
|
|
3791
|
+
return body
|
|
3792
|
+
|
|
2978
3793
|
@classmethod
|
|
2979
3794
|
def from_dict(cls, d: Dict[str, any]) -> SearchExperiments:
|
|
2980
3795
|
"""Deserializes the SearchExperiments from a dictionary."""
|
|
@@ -3001,6 +3816,13 @@ class SearchExperimentsResponse:
|
|
|
3001
3816
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3002
3817
|
return body
|
|
3003
3818
|
|
|
3819
|
+
def as_shallow_dict(self) -> dict:
|
|
3820
|
+
"""Serializes the SearchExperimentsResponse into a shallow dictionary of its immediate attributes."""
|
|
3821
|
+
body = {}
|
|
3822
|
+
if self.experiments: body['experiments'] = self.experiments
|
|
3823
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3824
|
+
return body
|
|
3825
|
+
|
|
3004
3826
|
@classmethod
|
|
3005
3827
|
def from_dict(cls, d: Dict[str, any]) -> SearchExperimentsResponse:
|
|
3006
3828
|
"""Deserializes the SearchExperimentsResponse from a dictionary."""
|
|
@@ -3032,6 +3854,13 @@ class SearchModelVersionsResponse:
|
|
|
3032
3854
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3033
3855
|
return body
|
|
3034
3856
|
|
|
3857
|
+
def as_shallow_dict(self) -> dict:
|
|
3858
|
+
"""Serializes the SearchModelVersionsResponse into a shallow dictionary of its immediate attributes."""
|
|
3859
|
+
body = {}
|
|
3860
|
+
if self.model_versions: body['model_versions'] = self.model_versions
|
|
3861
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3862
|
+
return body
|
|
3863
|
+
|
|
3035
3864
|
@classmethod
|
|
3036
3865
|
def from_dict(cls, d: Dict[str, any]) -> SearchModelVersionsResponse:
|
|
3037
3866
|
"""Deserializes the SearchModelVersionsResponse from a dictionary."""
|
|
@@ -3054,6 +3883,13 @@ class SearchModelsResponse:
|
|
|
3054
3883
|
if self.registered_models: body['registered_models'] = [v.as_dict() for v in self.registered_models]
|
|
3055
3884
|
return body
|
|
3056
3885
|
|
|
3886
|
+
def as_shallow_dict(self) -> dict:
|
|
3887
|
+
"""Serializes the SearchModelsResponse into a shallow dictionary of its immediate attributes."""
|
|
3888
|
+
body = {}
|
|
3889
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3890
|
+
if self.registered_models: body['registered_models'] = self.registered_models
|
|
3891
|
+
return body
|
|
3892
|
+
|
|
3057
3893
|
@classmethod
|
|
3058
3894
|
def from_dict(cls, d: Dict[str, any]) -> SearchModelsResponse:
|
|
3059
3895
|
"""Deserializes the SearchModelsResponse from a dictionary."""
|
|
@@ -3105,6 +3941,17 @@ class SearchRuns:
|
|
|
3105
3941
|
if self.run_view_type is not None: body['run_view_type'] = self.run_view_type.value
|
|
3106
3942
|
return body
|
|
3107
3943
|
|
|
3944
|
+
def as_shallow_dict(self) -> dict:
|
|
3945
|
+
"""Serializes the SearchRuns into a shallow dictionary of its immediate attributes."""
|
|
3946
|
+
body = {}
|
|
3947
|
+
if self.experiment_ids: body['experiment_ids'] = self.experiment_ids
|
|
3948
|
+
if self.filter is not None: body['filter'] = self.filter
|
|
3949
|
+
if self.max_results is not None: body['max_results'] = self.max_results
|
|
3950
|
+
if self.order_by: body['order_by'] = self.order_by
|
|
3951
|
+
if self.page_token is not None: body['page_token'] = self.page_token
|
|
3952
|
+
if self.run_view_type is not None: body['run_view_type'] = self.run_view_type
|
|
3953
|
+
return body
|
|
3954
|
+
|
|
3108
3955
|
@classmethod
|
|
3109
3956
|
def from_dict(cls, d: Dict[str, any]) -> SearchRuns:
|
|
3110
3957
|
"""Deserializes the SearchRuns from a dictionary."""
|
|
@@ -3131,6 +3978,13 @@ class SearchRunsResponse:
|
|
|
3131
3978
|
if self.runs: body['runs'] = [v.as_dict() for v in self.runs]
|
|
3132
3979
|
return body
|
|
3133
3980
|
|
|
3981
|
+
def as_shallow_dict(self) -> dict:
|
|
3982
|
+
"""Serializes the SearchRunsResponse into a shallow dictionary of its immediate attributes."""
|
|
3983
|
+
body = {}
|
|
3984
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
3985
|
+
if self.runs: body['runs'] = self.runs
|
|
3986
|
+
return body
|
|
3987
|
+
|
|
3134
3988
|
@classmethod
|
|
3135
3989
|
def from_dict(cls, d: Dict[str, any]) -> SearchRunsResponse:
|
|
3136
3990
|
"""Deserializes the SearchRunsResponse from a dictionary."""
|
|
@@ -3166,6 +4020,14 @@ class SetExperimentTag:
|
|
|
3166
4020
|
if self.value is not None: body['value'] = self.value
|
|
3167
4021
|
return body
|
|
3168
4022
|
|
|
4023
|
+
def as_shallow_dict(self) -> dict:
|
|
4024
|
+
"""Serializes the SetExperimentTag into a shallow dictionary of its immediate attributes."""
|
|
4025
|
+
body = {}
|
|
4026
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
4027
|
+
if self.key is not None: body['key'] = self.key
|
|
4028
|
+
if self.value is not None: body['value'] = self.value
|
|
4029
|
+
return body
|
|
4030
|
+
|
|
3169
4031
|
@classmethod
|
|
3170
4032
|
def from_dict(cls, d: Dict[str, any]) -> SetExperimentTag:
|
|
3171
4033
|
"""Deserializes the SetExperimentTag from a dictionary."""
|
|
@@ -3182,6 +4044,11 @@ class SetExperimentTagResponse:
|
|
|
3182
4044
|
body = {}
|
|
3183
4045
|
return body
|
|
3184
4046
|
|
|
4047
|
+
def as_shallow_dict(self) -> dict:
|
|
4048
|
+
"""Serializes the SetExperimentTagResponse into a shallow dictionary of its immediate attributes."""
|
|
4049
|
+
body = {}
|
|
4050
|
+
return body
|
|
4051
|
+
|
|
3185
4052
|
@classmethod
|
|
3186
4053
|
def from_dict(cls, d: Dict[str, any]) -> SetExperimentTagResponse:
|
|
3187
4054
|
"""Deserializes the SetExperimentTagResponse from a dictionary."""
|
|
@@ -3210,6 +4077,14 @@ class SetModelTagRequest:
|
|
|
3210
4077
|
if self.value is not None: body['value'] = self.value
|
|
3211
4078
|
return body
|
|
3212
4079
|
|
|
4080
|
+
def as_shallow_dict(self) -> dict:
|
|
4081
|
+
"""Serializes the SetModelTagRequest into a shallow dictionary of its immediate attributes."""
|
|
4082
|
+
body = {}
|
|
4083
|
+
if self.key is not None: body['key'] = self.key
|
|
4084
|
+
if self.name is not None: body['name'] = self.name
|
|
4085
|
+
if self.value is not None: body['value'] = self.value
|
|
4086
|
+
return body
|
|
4087
|
+
|
|
3213
4088
|
@classmethod
|
|
3214
4089
|
def from_dict(cls, d: Dict[str, any]) -> SetModelTagRequest:
|
|
3215
4090
|
"""Deserializes the SetModelTagRequest from a dictionary."""
|
|
@@ -3224,6 +4099,11 @@ class SetModelTagResponse:
|
|
|
3224
4099
|
body = {}
|
|
3225
4100
|
return body
|
|
3226
4101
|
|
|
4102
|
+
def as_shallow_dict(self) -> dict:
|
|
4103
|
+
"""Serializes the SetModelTagResponse into a shallow dictionary of its immediate attributes."""
|
|
4104
|
+
body = {}
|
|
4105
|
+
return body
|
|
4106
|
+
|
|
3227
4107
|
@classmethod
|
|
3228
4108
|
def from_dict(cls, d: Dict[str, any]) -> SetModelTagResponse:
|
|
3229
4109
|
"""Deserializes the SetModelTagResponse from a dictionary."""
|
|
@@ -3256,6 +4136,15 @@ class SetModelVersionTagRequest:
|
|
|
3256
4136
|
if self.version is not None: body['version'] = self.version
|
|
3257
4137
|
return body
|
|
3258
4138
|
|
|
4139
|
+
def as_shallow_dict(self) -> dict:
|
|
4140
|
+
"""Serializes the SetModelVersionTagRequest into a shallow dictionary of its immediate attributes."""
|
|
4141
|
+
body = {}
|
|
4142
|
+
if self.key is not None: body['key'] = self.key
|
|
4143
|
+
if self.name is not None: body['name'] = self.name
|
|
4144
|
+
if self.value is not None: body['value'] = self.value
|
|
4145
|
+
if self.version is not None: body['version'] = self.version
|
|
4146
|
+
return body
|
|
4147
|
+
|
|
3259
4148
|
@classmethod
|
|
3260
4149
|
def from_dict(cls, d: Dict[str, any]) -> SetModelVersionTagRequest:
|
|
3261
4150
|
"""Deserializes the SetModelVersionTagRequest from a dictionary."""
|
|
@@ -3273,6 +4162,11 @@ class SetModelVersionTagResponse:
|
|
|
3273
4162
|
body = {}
|
|
3274
4163
|
return body
|
|
3275
4164
|
|
|
4165
|
+
def as_shallow_dict(self) -> dict:
|
|
4166
|
+
"""Serializes the SetModelVersionTagResponse into a shallow dictionary of its immediate attributes."""
|
|
4167
|
+
body = {}
|
|
4168
|
+
return body
|
|
4169
|
+
|
|
3276
4170
|
@classmethod
|
|
3277
4171
|
def from_dict(cls, d: Dict[str, any]) -> SetModelVersionTagResponse:
|
|
3278
4172
|
"""Deserializes the SetModelVersionTagResponse from a dictionary."""
|
|
@@ -3305,6 +4199,15 @@ class SetTag:
|
|
|
3305
4199
|
if self.value is not None: body['value'] = self.value
|
|
3306
4200
|
return body
|
|
3307
4201
|
|
|
4202
|
+
def as_shallow_dict(self) -> dict:
|
|
4203
|
+
"""Serializes the SetTag into a shallow dictionary of its immediate attributes."""
|
|
4204
|
+
body = {}
|
|
4205
|
+
if self.key is not None: body['key'] = self.key
|
|
4206
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
4207
|
+
if self.run_uuid is not None: body['run_uuid'] = self.run_uuid
|
|
4208
|
+
if self.value is not None: body['value'] = self.value
|
|
4209
|
+
return body
|
|
4210
|
+
|
|
3308
4211
|
@classmethod
|
|
3309
4212
|
def from_dict(cls, d: Dict[str, any]) -> SetTag:
|
|
3310
4213
|
"""Deserializes the SetTag from a dictionary."""
|
|
@@ -3322,6 +4225,11 @@ class SetTagResponse:
|
|
|
3322
4225
|
body = {}
|
|
3323
4226
|
return body
|
|
3324
4227
|
|
|
4228
|
+
def as_shallow_dict(self) -> dict:
|
|
4229
|
+
"""Serializes the SetTagResponse into a shallow dictionary of its immediate attributes."""
|
|
4230
|
+
body = {}
|
|
4231
|
+
return body
|
|
4232
|
+
|
|
3325
4233
|
@classmethod
|
|
3326
4234
|
def from_dict(cls, d: Dict[str, any]) -> SetTagResponse:
|
|
3327
4235
|
"""Deserializes the SetTagResponse from a dictionary."""
|
|
@@ -3375,6 +4283,13 @@ class TestRegistryWebhook:
|
|
|
3375
4283
|
if self.status_code is not None: body['status_code'] = self.status_code
|
|
3376
4284
|
return body
|
|
3377
4285
|
|
|
4286
|
+
def as_shallow_dict(self) -> dict:
|
|
4287
|
+
"""Serializes the TestRegistryWebhook into a shallow dictionary of its immediate attributes."""
|
|
4288
|
+
body = {}
|
|
4289
|
+
if self.body is not None: body['body'] = self.body
|
|
4290
|
+
if self.status_code is not None: body['status_code'] = self.status_code
|
|
4291
|
+
return body
|
|
4292
|
+
|
|
3378
4293
|
@classmethod
|
|
3379
4294
|
def from_dict(cls, d: Dict[str, any]) -> TestRegistryWebhook:
|
|
3380
4295
|
"""Deserializes the TestRegistryWebhook from a dictionary."""
|
|
@@ -3397,6 +4312,13 @@ class TestRegistryWebhookRequest:
|
|
|
3397
4312
|
if self.id is not None: body['id'] = self.id
|
|
3398
4313
|
return body
|
|
3399
4314
|
|
|
4315
|
+
def as_shallow_dict(self) -> dict:
|
|
4316
|
+
"""Serializes the TestRegistryWebhookRequest into a shallow dictionary of its immediate attributes."""
|
|
4317
|
+
body = {}
|
|
4318
|
+
if self.event is not None: body['event'] = self.event
|
|
4319
|
+
if self.id is not None: body['id'] = self.id
|
|
4320
|
+
return body
|
|
4321
|
+
|
|
3400
4322
|
@classmethod
|
|
3401
4323
|
def from_dict(cls, d: Dict[str, any]) -> TestRegistryWebhookRequest:
|
|
3402
4324
|
"""Deserializes the TestRegistryWebhookRequest from a dictionary."""
|
|
@@ -3414,6 +4336,12 @@ class TestRegistryWebhookResponse:
|
|
|
3414
4336
|
if self.webhook: body['webhook'] = self.webhook.as_dict()
|
|
3415
4337
|
return body
|
|
3416
4338
|
|
|
4339
|
+
def as_shallow_dict(self) -> dict:
|
|
4340
|
+
"""Serializes the TestRegistryWebhookResponse into a shallow dictionary of its immediate attributes."""
|
|
4341
|
+
body = {}
|
|
4342
|
+
if self.webhook: body['webhook'] = self.webhook
|
|
4343
|
+
return body
|
|
4344
|
+
|
|
3417
4345
|
@classmethod
|
|
3418
4346
|
def from_dict(cls, d: Dict[str, any]) -> TestRegistryWebhookResponse:
|
|
3419
4347
|
"""Deserializes the TestRegistryWebhookResponse from a dictionary."""
|
|
@@ -3456,6 +4384,17 @@ class TransitionModelVersionStageDatabricks:
|
|
|
3456
4384
|
if self.version is not None: body['version'] = self.version
|
|
3457
4385
|
return body
|
|
3458
4386
|
|
|
4387
|
+
def as_shallow_dict(self) -> dict:
|
|
4388
|
+
"""Serializes the TransitionModelVersionStageDatabricks into a shallow dictionary of its immediate attributes."""
|
|
4389
|
+
body = {}
|
|
4390
|
+
if self.archive_existing_versions is not None:
|
|
4391
|
+
body['archive_existing_versions'] = self.archive_existing_versions
|
|
4392
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
4393
|
+
if self.name is not None: body['name'] = self.name
|
|
4394
|
+
if self.stage is not None: body['stage'] = self.stage
|
|
4395
|
+
if self.version is not None: body['version'] = self.version
|
|
4396
|
+
return body
|
|
4397
|
+
|
|
3459
4398
|
@classmethod
|
|
3460
4399
|
def from_dict(cls, d: Dict[str, any]) -> TransitionModelVersionStageDatabricks:
|
|
3461
4400
|
"""Deserializes the TransitionModelVersionStageDatabricks from a dictionary."""
|
|
@@ -3503,6 +4442,16 @@ class TransitionRequest:
|
|
|
3503
4442
|
if self.user_id is not None: body['user_id'] = self.user_id
|
|
3504
4443
|
return body
|
|
3505
4444
|
|
|
4445
|
+
def as_shallow_dict(self) -> dict:
|
|
4446
|
+
"""Serializes the TransitionRequest into a shallow dictionary of its immediate attributes."""
|
|
4447
|
+
body = {}
|
|
4448
|
+
if self.available_actions: body['available_actions'] = self.available_actions
|
|
4449
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
4450
|
+
if self.creation_timestamp is not None: body['creation_timestamp'] = self.creation_timestamp
|
|
4451
|
+
if self.to_stage is not None: body['to_stage'] = self.to_stage
|
|
4452
|
+
if self.user_id is not None: body['user_id'] = self.user_id
|
|
4453
|
+
return body
|
|
4454
|
+
|
|
3506
4455
|
@classmethod
|
|
3507
4456
|
def from_dict(cls, d: Dict[str, any]) -> TransitionRequest:
|
|
3508
4457
|
"""Deserializes the TransitionRequest from a dictionary."""
|
|
@@ -3523,6 +4472,12 @@ class TransitionStageResponse:
|
|
|
3523
4472
|
if self.model_version: body['model_version'] = self.model_version.as_dict()
|
|
3524
4473
|
return body
|
|
3525
4474
|
|
|
4475
|
+
def as_shallow_dict(self) -> dict:
|
|
4476
|
+
"""Serializes the TransitionStageResponse into a shallow dictionary of its immediate attributes."""
|
|
4477
|
+
body = {}
|
|
4478
|
+
if self.model_version: body['model_version'] = self.model_version
|
|
4479
|
+
return body
|
|
4480
|
+
|
|
3526
4481
|
@classmethod
|
|
3527
4482
|
def from_dict(cls, d: Dict[str, any]) -> TransitionStageResponse:
|
|
3528
4483
|
"""Deserializes the TransitionStageResponse from a dictionary."""
|
|
@@ -3544,6 +4499,13 @@ class UpdateComment:
|
|
|
3544
4499
|
if self.id is not None: body['id'] = self.id
|
|
3545
4500
|
return body
|
|
3546
4501
|
|
|
4502
|
+
def as_shallow_dict(self) -> dict:
|
|
4503
|
+
"""Serializes the UpdateComment into a shallow dictionary of its immediate attributes."""
|
|
4504
|
+
body = {}
|
|
4505
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
4506
|
+
if self.id is not None: body['id'] = self.id
|
|
4507
|
+
return body
|
|
4508
|
+
|
|
3547
4509
|
@classmethod
|
|
3548
4510
|
def from_dict(cls, d: Dict[str, any]) -> UpdateComment:
|
|
3549
4511
|
"""Deserializes the UpdateComment from a dictionary."""
|
|
@@ -3561,6 +4523,12 @@ class UpdateCommentResponse:
|
|
|
3561
4523
|
if self.comment: body['comment'] = self.comment.as_dict()
|
|
3562
4524
|
return body
|
|
3563
4525
|
|
|
4526
|
+
def as_shallow_dict(self) -> dict:
|
|
4527
|
+
"""Serializes the UpdateCommentResponse into a shallow dictionary of its immediate attributes."""
|
|
4528
|
+
body = {}
|
|
4529
|
+
if self.comment: body['comment'] = self.comment
|
|
4530
|
+
return body
|
|
4531
|
+
|
|
3564
4532
|
@classmethod
|
|
3565
4533
|
def from_dict(cls, d: Dict[str, any]) -> UpdateCommentResponse:
|
|
3566
4534
|
"""Deserializes the UpdateCommentResponse from a dictionary."""
|
|
@@ -3582,6 +4550,13 @@ class UpdateExperiment:
|
|
|
3582
4550
|
if self.new_name is not None: body['new_name'] = self.new_name
|
|
3583
4551
|
return body
|
|
3584
4552
|
|
|
4553
|
+
def as_shallow_dict(self) -> dict:
|
|
4554
|
+
"""Serializes the UpdateExperiment into a shallow dictionary of its immediate attributes."""
|
|
4555
|
+
body = {}
|
|
4556
|
+
if self.experiment_id is not None: body['experiment_id'] = self.experiment_id
|
|
4557
|
+
if self.new_name is not None: body['new_name'] = self.new_name
|
|
4558
|
+
return body
|
|
4559
|
+
|
|
3585
4560
|
@classmethod
|
|
3586
4561
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExperiment:
|
|
3587
4562
|
"""Deserializes the UpdateExperiment from a dictionary."""
|
|
@@ -3596,6 +4571,11 @@ class UpdateExperimentResponse:
|
|
|
3596
4571
|
body = {}
|
|
3597
4572
|
return body
|
|
3598
4573
|
|
|
4574
|
+
def as_shallow_dict(self) -> dict:
|
|
4575
|
+
"""Serializes the UpdateExperimentResponse into a shallow dictionary of its immediate attributes."""
|
|
4576
|
+
body = {}
|
|
4577
|
+
return body
|
|
4578
|
+
|
|
3599
4579
|
@classmethod
|
|
3600
4580
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExperimentResponse:
|
|
3601
4581
|
"""Deserializes the UpdateExperimentResponse from a dictionary."""
|
|
@@ -3617,6 +4597,13 @@ class UpdateModelRequest:
|
|
|
3617
4597
|
if self.name is not None: body['name'] = self.name
|
|
3618
4598
|
return body
|
|
3619
4599
|
|
|
4600
|
+
def as_shallow_dict(self) -> dict:
|
|
4601
|
+
"""Serializes the UpdateModelRequest into a shallow dictionary of its immediate attributes."""
|
|
4602
|
+
body = {}
|
|
4603
|
+
if self.description is not None: body['description'] = self.description
|
|
4604
|
+
if self.name is not None: body['name'] = self.name
|
|
4605
|
+
return body
|
|
4606
|
+
|
|
3620
4607
|
@classmethod
|
|
3621
4608
|
def from_dict(cls, d: Dict[str, any]) -> UpdateModelRequest:
|
|
3622
4609
|
"""Deserializes the UpdateModelRequest from a dictionary."""
|
|
@@ -3631,6 +4618,11 @@ class UpdateModelResponse:
|
|
|
3631
4618
|
body = {}
|
|
3632
4619
|
return body
|
|
3633
4620
|
|
|
4621
|
+
def as_shallow_dict(self) -> dict:
|
|
4622
|
+
"""Serializes the UpdateModelResponse into a shallow dictionary of its immediate attributes."""
|
|
4623
|
+
body = {}
|
|
4624
|
+
return body
|
|
4625
|
+
|
|
3634
4626
|
@classmethod
|
|
3635
4627
|
def from_dict(cls, d: Dict[str, any]) -> UpdateModelResponse:
|
|
3636
4628
|
"""Deserializes the UpdateModelResponse from a dictionary."""
|
|
@@ -3656,6 +4648,14 @@ class UpdateModelVersionRequest:
|
|
|
3656
4648
|
if self.version is not None: body['version'] = self.version
|
|
3657
4649
|
return body
|
|
3658
4650
|
|
|
4651
|
+
def as_shallow_dict(self) -> dict:
|
|
4652
|
+
"""Serializes the UpdateModelVersionRequest into a shallow dictionary of its immediate attributes."""
|
|
4653
|
+
body = {}
|
|
4654
|
+
if self.description is not None: body['description'] = self.description
|
|
4655
|
+
if self.name is not None: body['name'] = self.name
|
|
4656
|
+
if self.version is not None: body['version'] = self.version
|
|
4657
|
+
return body
|
|
4658
|
+
|
|
3659
4659
|
@classmethod
|
|
3660
4660
|
def from_dict(cls, d: Dict[str, any]) -> UpdateModelVersionRequest:
|
|
3661
4661
|
"""Deserializes the UpdateModelVersionRequest from a dictionary."""
|
|
@@ -3672,6 +4672,11 @@ class UpdateModelVersionResponse:
|
|
|
3672
4672
|
body = {}
|
|
3673
4673
|
return body
|
|
3674
4674
|
|
|
4675
|
+
def as_shallow_dict(self) -> dict:
|
|
4676
|
+
"""Serializes the UpdateModelVersionResponse into a shallow dictionary of its immediate attributes."""
|
|
4677
|
+
body = {}
|
|
4678
|
+
return body
|
|
4679
|
+
|
|
3675
4680
|
@classmethod
|
|
3676
4681
|
def from_dict(cls, d: Dict[str, any]) -> UpdateModelVersionResponse:
|
|
3677
4682
|
"""Deserializes the UpdateModelVersionResponse from a dictionary."""
|
|
@@ -3740,6 +4745,17 @@ class UpdateRegistryWebhook:
|
|
|
3740
4745
|
if self.status is not None: body['status'] = self.status.value
|
|
3741
4746
|
return body
|
|
3742
4747
|
|
|
4748
|
+
def as_shallow_dict(self) -> dict:
|
|
4749
|
+
"""Serializes the UpdateRegistryWebhook into a shallow dictionary of its immediate attributes."""
|
|
4750
|
+
body = {}
|
|
4751
|
+
if self.description is not None: body['description'] = self.description
|
|
4752
|
+
if self.events: body['events'] = self.events
|
|
4753
|
+
if self.http_url_spec: body['http_url_spec'] = self.http_url_spec
|
|
4754
|
+
if self.id is not None: body['id'] = self.id
|
|
4755
|
+
if self.job_spec: body['job_spec'] = self.job_spec
|
|
4756
|
+
if self.status is not None: body['status'] = self.status
|
|
4757
|
+
return body
|
|
4758
|
+
|
|
3743
4759
|
@classmethod
|
|
3744
4760
|
def from_dict(cls, d: Dict[str, any]) -> UpdateRegistryWebhook:
|
|
3745
4761
|
"""Deserializes the UpdateRegistryWebhook from a dictionary."""
|
|
@@ -3775,6 +4791,15 @@ class UpdateRun:
|
|
|
3775
4791
|
if self.status is not None: body['status'] = self.status.value
|
|
3776
4792
|
return body
|
|
3777
4793
|
|
|
4794
|
+
def as_shallow_dict(self) -> dict:
|
|
4795
|
+
"""Serializes the UpdateRun into a shallow dictionary of its immediate attributes."""
|
|
4796
|
+
body = {}
|
|
4797
|
+
if self.end_time is not None: body['end_time'] = self.end_time
|
|
4798
|
+
if self.run_id is not None: body['run_id'] = self.run_id
|
|
4799
|
+
if self.run_uuid is not None: body['run_uuid'] = self.run_uuid
|
|
4800
|
+
if self.status is not None: body['status'] = self.status
|
|
4801
|
+
return body
|
|
4802
|
+
|
|
3778
4803
|
@classmethod
|
|
3779
4804
|
def from_dict(cls, d: Dict[str, any]) -> UpdateRun:
|
|
3780
4805
|
"""Deserializes the UpdateRun from a dictionary."""
|
|
@@ -3795,6 +4820,12 @@ class UpdateRunResponse:
|
|
|
3795
4820
|
if self.run_info: body['run_info'] = self.run_info.as_dict()
|
|
3796
4821
|
return body
|
|
3797
4822
|
|
|
4823
|
+
def as_shallow_dict(self) -> dict:
|
|
4824
|
+
"""Serializes the UpdateRunResponse into a shallow dictionary of its immediate attributes."""
|
|
4825
|
+
body = {}
|
|
4826
|
+
if self.run_info: body['run_info'] = self.run_info
|
|
4827
|
+
return body
|
|
4828
|
+
|
|
3798
4829
|
@classmethod
|
|
3799
4830
|
def from_dict(cls, d: Dict[str, any]) -> UpdateRunResponse:
|
|
3800
4831
|
"""Deserializes the UpdateRunResponse from a dictionary."""
|
|
@@ -3819,6 +4850,11 @@ class UpdateWebhookResponse:
|
|
|
3819
4850
|
body = {}
|
|
3820
4851
|
return body
|
|
3821
4852
|
|
|
4853
|
+
def as_shallow_dict(self) -> dict:
|
|
4854
|
+
"""Serializes the UpdateWebhookResponse into a shallow dictionary of its immediate attributes."""
|
|
4855
|
+
body = {}
|
|
4856
|
+
return body
|
|
4857
|
+
|
|
3822
4858
|
@classmethod
|
|
3823
4859
|
def from_dict(cls, d: Dict[str, any]) -> UpdateWebhookResponse:
|
|
3824
4860
|
"""Deserializes the UpdateWebhookResponse from a dictionary."""
|