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
|
@@ -34,6 +34,15 @@ class ActionConfiguration:
|
|
|
34
34
|
if self.target is not None: body['target'] = self.target
|
|
35
35
|
return body
|
|
36
36
|
|
|
37
|
+
def as_shallow_dict(self) -> dict:
|
|
38
|
+
"""Serializes the ActionConfiguration into a shallow dictionary of its immediate attributes."""
|
|
39
|
+
body = {}
|
|
40
|
+
if self.action_configuration_id is not None:
|
|
41
|
+
body['action_configuration_id'] = self.action_configuration_id
|
|
42
|
+
if self.action_type is not None: body['action_type'] = self.action_type
|
|
43
|
+
if self.target is not None: body['target'] = self.target
|
|
44
|
+
return body
|
|
45
|
+
|
|
37
46
|
@classmethod
|
|
38
47
|
def from_dict(cls, d: Dict[str, any]) -> ActionConfiguration:
|
|
39
48
|
"""Deserializes the ActionConfiguration from a dictionary."""
|
|
@@ -83,6 +92,18 @@ class AlertConfiguration:
|
|
|
83
92
|
if self.trigger_type is not None: body['trigger_type'] = self.trigger_type.value
|
|
84
93
|
return body
|
|
85
94
|
|
|
95
|
+
def as_shallow_dict(self) -> dict:
|
|
96
|
+
"""Serializes the AlertConfiguration into a shallow dictionary of its immediate attributes."""
|
|
97
|
+
body = {}
|
|
98
|
+
if self.action_configurations: body['action_configurations'] = self.action_configurations
|
|
99
|
+
if self.alert_configuration_id is not None:
|
|
100
|
+
body['alert_configuration_id'] = self.alert_configuration_id
|
|
101
|
+
if self.quantity_threshold is not None: body['quantity_threshold'] = self.quantity_threshold
|
|
102
|
+
if self.quantity_type is not None: body['quantity_type'] = self.quantity_type
|
|
103
|
+
if self.time_period is not None: body['time_period'] = self.time_period
|
|
104
|
+
if self.trigger_type is not None: body['trigger_type'] = self.trigger_type
|
|
105
|
+
return body
|
|
106
|
+
|
|
86
107
|
@classmethod
|
|
87
108
|
def from_dict(cls, d: Dict[str, any]) -> AlertConfiguration:
|
|
88
109
|
"""Deserializes the AlertConfiguration from a dictionary."""
|
|
@@ -149,6 +170,19 @@ class BudgetConfiguration:
|
|
|
149
170
|
if self.update_time is not None: body['update_time'] = self.update_time
|
|
150
171
|
return body
|
|
151
172
|
|
|
173
|
+
def as_shallow_dict(self) -> dict:
|
|
174
|
+
"""Serializes the BudgetConfiguration into a shallow dictionary of its immediate attributes."""
|
|
175
|
+
body = {}
|
|
176
|
+
if self.account_id is not None: body['account_id'] = self.account_id
|
|
177
|
+
if self.alert_configurations: body['alert_configurations'] = self.alert_configurations
|
|
178
|
+
if self.budget_configuration_id is not None:
|
|
179
|
+
body['budget_configuration_id'] = self.budget_configuration_id
|
|
180
|
+
if self.create_time is not None: body['create_time'] = self.create_time
|
|
181
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
182
|
+
if self.filter: body['filter'] = self.filter
|
|
183
|
+
if self.update_time is not None: body['update_time'] = self.update_time
|
|
184
|
+
return body
|
|
185
|
+
|
|
152
186
|
@classmethod
|
|
153
187
|
def from_dict(cls, d: Dict[str, any]) -> BudgetConfiguration:
|
|
154
188
|
"""Deserializes the BudgetConfiguration from a dictionary."""
|
|
@@ -178,6 +212,13 @@ class BudgetConfigurationFilter:
|
|
|
178
212
|
if self.workspace_id: body['workspace_id'] = self.workspace_id.as_dict()
|
|
179
213
|
return body
|
|
180
214
|
|
|
215
|
+
def as_shallow_dict(self) -> dict:
|
|
216
|
+
"""Serializes the BudgetConfigurationFilter into a shallow dictionary of its immediate attributes."""
|
|
217
|
+
body = {}
|
|
218
|
+
if self.tags: body['tags'] = self.tags
|
|
219
|
+
if self.workspace_id: body['workspace_id'] = self.workspace_id
|
|
220
|
+
return body
|
|
221
|
+
|
|
181
222
|
@classmethod
|
|
182
223
|
def from_dict(cls, d: Dict[str, any]) -> BudgetConfigurationFilter:
|
|
183
224
|
"""Deserializes the BudgetConfigurationFilter from a dictionary."""
|
|
@@ -198,6 +239,13 @@ class BudgetConfigurationFilterClause:
|
|
|
198
239
|
if self.values: body['values'] = [v for v in self.values]
|
|
199
240
|
return body
|
|
200
241
|
|
|
242
|
+
def as_shallow_dict(self) -> dict:
|
|
243
|
+
"""Serializes the BudgetConfigurationFilterClause into a shallow dictionary of its immediate attributes."""
|
|
244
|
+
body = {}
|
|
245
|
+
if self.operator is not None: body['operator'] = self.operator
|
|
246
|
+
if self.values: body['values'] = self.values
|
|
247
|
+
return body
|
|
248
|
+
|
|
201
249
|
@classmethod
|
|
202
250
|
def from_dict(cls, d: Dict[str, any]) -> BudgetConfigurationFilterClause:
|
|
203
251
|
"""Deserializes the BudgetConfigurationFilterClause from a dictionary."""
|
|
@@ -223,6 +271,13 @@ class BudgetConfigurationFilterTagClause:
|
|
|
223
271
|
if self.value: body['value'] = self.value.as_dict()
|
|
224
272
|
return body
|
|
225
273
|
|
|
274
|
+
def as_shallow_dict(self) -> dict:
|
|
275
|
+
"""Serializes the BudgetConfigurationFilterTagClause into a shallow dictionary of its immediate attributes."""
|
|
276
|
+
body = {}
|
|
277
|
+
if self.key is not None: body['key'] = self.key
|
|
278
|
+
if self.value: body['value'] = self.value
|
|
279
|
+
return body
|
|
280
|
+
|
|
226
281
|
@classmethod
|
|
227
282
|
def from_dict(cls, d: Dict[str, any]) -> BudgetConfigurationFilterTagClause:
|
|
228
283
|
"""Deserializes the BudgetConfigurationFilterTagClause from a dictionary."""
|
|
@@ -242,6 +297,13 @@ class BudgetConfigurationFilterWorkspaceIdClause:
|
|
|
242
297
|
if self.values: body['values'] = [v for v in self.values]
|
|
243
298
|
return body
|
|
244
299
|
|
|
300
|
+
def as_shallow_dict(self) -> dict:
|
|
301
|
+
"""Serializes the BudgetConfigurationFilterWorkspaceIdClause into a shallow dictionary of its immediate attributes."""
|
|
302
|
+
body = {}
|
|
303
|
+
if self.operator is not None: body['operator'] = self.operator
|
|
304
|
+
if self.values: body['values'] = self.values
|
|
305
|
+
return body
|
|
306
|
+
|
|
245
307
|
@classmethod
|
|
246
308
|
def from_dict(cls, d: Dict[str, any]) -> BudgetConfigurationFilterWorkspaceIdClause:
|
|
247
309
|
"""Deserializes the BudgetConfigurationFilterWorkspaceIdClause from a dictionary."""
|
|
@@ -265,6 +327,13 @@ class CreateBillingUsageDashboardRequest:
|
|
|
265
327
|
if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
|
|
266
328
|
return body
|
|
267
329
|
|
|
330
|
+
def as_shallow_dict(self) -> dict:
|
|
331
|
+
"""Serializes the CreateBillingUsageDashboardRequest into a shallow dictionary of its immediate attributes."""
|
|
332
|
+
body = {}
|
|
333
|
+
if self.dashboard_type is not None: body['dashboard_type'] = self.dashboard_type
|
|
334
|
+
if self.workspace_id is not None: body['workspace_id'] = self.workspace_id
|
|
335
|
+
return body
|
|
336
|
+
|
|
268
337
|
@classmethod
|
|
269
338
|
def from_dict(cls, d: Dict[str, any]) -> CreateBillingUsageDashboardRequest:
|
|
270
339
|
"""Deserializes the CreateBillingUsageDashboardRequest from a dictionary."""
|
|
@@ -283,6 +352,12 @@ class CreateBillingUsageDashboardResponse:
|
|
|
283
352
|
if self.dashboard_id is not None: body['dashboard_id'] = self.dashboard_id
|
|
284
353
|
return body
|
|
285
354
|
|
|
355
|
+
def as_shallow_dict(self) -> dict:
|
|
356
|
+
"""Serializes the CreateBillingUsageDashboardResponse into a shallow dictionary of its immediate attributes."""
|
|
357
|
+
body = {}
|
|
358
|
+
if self.dashboard_id is not None: body['dashboard_id'] = self.dashboard_id
|
|
359
|
+
return body
|
|
360
|
+
|
|
286
361
|
@classmethod
|
|
287
362
|
def from_dict(cls, d: Dict[str, any]) -> CreateBillingUsageDashboardResponse:
|
|
288
363
|
"""Deserializes the CreateBillingUsageDashboardResponse from a dictionary."""
|
|
@@ -316,6 +391,15 @@ class CreateBudgetConfigurationBudget:
|
|
|
316
391
|
if self.filter: body['filter'] = self.filter.as_dict()
|
|
317
392
|
return body
|
|
318
393
|
|
|
394
|
+
def as_shallow_dict(self) -> dict:
|
|
395
|
+
"""Serializes the CreateBudgetConfigurationBudget into a shallow dictionary of its immediate attributes."""
|
|
396
|
+
body = {}
|
|
397
|
+
if self.account_id is not None: body['account_id'] = self.account_id
|
|
398
|
+
if self.alert_configurations: body['alert_configurations'] = self.alert_configurations
|
|
399
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
400
|
+
if self.filter: body['filter'] = self.filter
|
|
401
|
+
return body
|
|
402
|
+
|
|
319
403
|
@classmethod
|
|
320
404
|
def from_dict(cls, d: Dict[str, any]) -> CreateBudgetConfigurationBudget:
|
|
321
405
|
"""Deserializes the CreateBudgetConfigurationBudget from a dictionary."""
|
|
@@ -341,6 +425,13 @@ class CreateBudgetConfigurationBudgetActionConfigurations:
|
|
|
341
425
|
if self.target is not None: body['target'] = self.target
|
|
342
426
|
return body
|
|
343
427
|
|
|
428
|
+
def as_shallow_dict(self) -> dict:
|
|
429
|
+
"""Serializes the CreateBudgetConfigurationBudgetActionConfigurations into a shallow dictionary of its immediate attributes."""
|
|
430
|
+
body = {}
|
|
431
|
+
if self.action_type is not None: body['action_type'] = self.action_type
|
|
432
|
+
if self.target is not None: body['target'] = self.target
|
|
433
|
+
return body
|
|
434
|
+
|
|
344
435
|
@classmethod
|
|
345
436
|
def from_dict(cls, d: Dict[str, any]) -> CreateBudgetConfigurationBudgetActionConfigurations:
|
|
346
437
|
"""Deserializes the CreateBudgetConfigurationBudgetActionConfigurations from a dictionary."""
|
|
@@ -378,6 +469,16 @@ class CreateBudgetConfigurationBudgetAlertConfigurations:
|
|
|
378
469
|
if self.trigger_type is not None: body['trigger_type'] = self.trigger_type.value
|
|
379
470
|
return body
|
|
380
471
|
|
|
472
|
+
def as_shallow_dict(self) -> dict:
|
|
473
|
+
"""Serializes the CreateBudgetConfigurationBudgetAlertConfigurations into a shallow dictionary of its immediate attributes."""
|
|
474
|
+
body = {}
|
|
475
|
+
if self.action_configurations: body['action_configurations'] = self.action_configurations
|
|
476
|
+
if self.quantity_threshold is not None: body['quantity_threshold'] = self.quantity_threshold
|
|
477
|
+
if self.quantity_type is not None: body['quantity_type'] = self.quantity_type
|
|
478
|
+
if self.time_period is not None: body['time_period'] = self.time_period
|
|
479
|
+
if self.trigger_type is not None: body['trigger_type'] = self.trigger_type
|
|
480
|
+
return body
|
|
481
|
+
|
|
381
482
|
@classmethod
|
|
382
483
|
def from_dict(cls, d: Dict[str, any]) -> CreateBudgetConfigurationBudgetAlertConfigurations:
|
|
383
484
|
"""Deserializes the CreateBudgetConfigurationBudgetAlertConfigurations from a dictionary."""
|
|
@@ -400,6 +501,12 @@ class CreateBudgetConfigurationRequest:
|
|
|
400
501
|
if self.budget: body['budget'] = self.budget.as_dict()
|
|
401
502
|
return body
|
|
402
503
|
|
|
504
|
+
def as_shallow_dict(self) -> dict:
|
|
505
|
+
"""Serializes the CreateBudgetConfigurationRequest into a shallow dictionary of its immediate attributes."""
|
|
506
|
+
body = {}
|
|
507
|
+
if self.budget: body['budget'] = self.budget
|
|
508
|
+
return body
|
|
509
|
+
|
|
403
510
|
@classmethod
|
|
404
511
|
def from_dict(cls, d: Dict[str, any]) -> CreateBudgetConfigurationRequest:
|
|
405
512
|
"""Deserializes the CreateBudgetConfigurationRequest from a dictionary."""
|
|
@@ -417,6 +524,12 @@ class CreateBudgetConfigurationResponse:
|
|
|
417
524
|
if self.budget: body['budget'] = self.budget.as_dict()
|
|
418
525
|
return body
|
|
419
526
|
|
|
527
|
+
def as_shallow_dict(self) -> dict:
|
|
528
|
+
"""Serializes the CreateBudgetConfigurationResponse into a shallow dictionary of its immediate attributes."""
|
|
529
|
+
body = {}
|
|
530
|
+
if self.budget: body['budget'] = self.budget
|
|
531
|
+
return body
|
|
532
|
+
|
|
420
533
|
@classmethod
|
|
421
534
|
def from_dict(cls, d: Dict[str, any]) -> CreateBudgetConfigurationResponse:
|
|
422
535
|
"""Deserializes the CreateBudgetConfigurationResponse from a dictionary."""
|
|
@@ -509,6 +622,21 @@ class CreateLogDeliveryConfigurationParams:
|
|
|
509
622
|
if self.workspace_ids_filter: body['workspace_ids_filter'] = [v for v in self.workspace_ids_filter]
|
|
510
623
|
return body
|
|
511
624
|
|
|
625
|
+
def as_shallow_dict(self) -> dict:
|
|
626
|
+
"""Serializes the CreateLogDeliveryConfigurationParams into a shallow dictionary of its immediate attributes."""
|
|
627
|
+
body = {}
|
|
628
|
+
if self.config_name is not None: body['config_name'] = self.config_name
|
|
629
|
+
if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
|
|
630
|
+
if self.delivery_path_prefix is not None: body['delivery_path_prefix'] = self.delivery_path_prefix
|
|
631
|
+
if self.delivery_start_time is not None: body['delivery_start_time'] = self.delivery_start_time
|
|
632
|
+
if self.log_type is not None: body['log_type'] = self.log_type
|
|
633
|
+
if self.output_format is not None: body['output_format'] = self.output_format
|
|
634
|
+
if self.status is not None: body['status'] = self.status
|
|
635
|
+
if self.storage_configuration_id is not None:
|
|
636
|
+
body['storage_configuration_id'] = self.storage_configuration_id
|
|
637
|
+
if self.workspace_ids_filter: body['workspace_ids_filter'] = self.workspace_ids_filter
|
|
638
|
+
return body
|
|
639
|
+
|
|
512
640
|
@classmethod
|
|
513
641
|
def from_dict(cls, d: Dict[str, any]) -> CreateLogDeliveryConfigurationParams:
|
|
514
642
|
"""Deserializes the CreateLogDeliveryConfigurationParams from a dictionary."""
|
|
@@ -531,6 +659,11 @@ class DeleteBudgetConfigurationResponse:
|
|
|
531
659
|
body = {}
|
|
532
660
|
return body
|
|
533
661
|
|
|
662
|
+
def as_shallow_dict(self) -> dict:
|
|
663
|
+
"""Serializes the DeleteBudgetConfigurationResponse into a shallow dictionary of its immediate attributes."""
|
|
664
|
+
body = {}
|
|
665
|
+
return body
|
|
666
|
+
|
|
534
667
|
@classmethod
|
|
535
668
|
def from_dict(cls, d: Dict[str, any]) -> DeleteBudgetConfigurationResponse:
|
|
536
669
|
"""Deserializes the DeleteBudgetConfigurationResponse from a dictionary."""
|
|
@@ -563,6 +696,12 @@ class DownloadResponse:
|
|
|
563
696
|
if self.contents: body['contents'] = self.contents
|
|
564
697
|
return body
|
|
565
698
|
|
|
699
|
+
def as_shallow_dict(self) -> dict:
|
|
700
|
+
"""Serializes the DownloadResponse into a shallow dictionary of its immediate attributes."""
|
|
701
|
+
body = {}
|
|
702
|
+
if self.contents: body['contents'] = self.contents
|
|
703
|
+
return body
|
|
704
|
+
|
|
566
705
|
@classmethod
|
|
567
706
|
def from_dict(cls, d: Dict[str, any]) -> DownloadResponse:
|
|
568
707
|
"""Deserializes the DownloadResponse from a dictionary."""
|
|
@@ -584,6 +723,13 @@ class GetBillingUsageDashboardResponse:
|
|
|
584
723
|
if self.dashboard_url is not None: body['dashboard_url'] = self.dashboard_url
|
|
585
724
|
return body
|
|
586
725
|
|
|
726
|
+
def as_shallow_dict(self) -> dict:
|
|
727
|
+
"""Serializes the GetBillingUsageDashboardResponse into a shallow dictionary of its immediate attributes."""
|
|
728
|
+
body = {}
|
|
729
|
+
if self.dashboard_id is not None: body['dashboard_id'] = self.dashboard_id
|
|
730
|
+
if self.dashboard_url is not None: body['dashboard_url'] = self.dashboard_url
|
|
731
|
+
return body
|
|
732
|
+
|
|
587
733
|
@classmethod
|
|
588
734
|
def from_dict(cls, d: Dict[str, any]) -> GetBillingUsageDashboardResponse:
|
|
589
735
|
"""Deserializes the GetBillingUsageDashboardResponse from a dictionary."""
|
|
@@ -600,6 +746,12 @@ class GetBudgetConfigurationResponse:
|
|
|
600
746
|
if self.budget: body['budget'] = self.budget.as_dict()
|
|
601
747
|
return body
|
|
602
748
|
|
|
749
|
+
def as_shallow_dict(self) -> dict:
|
|
750
|
+
"""Serializes the GetBudgetConfigurationResponse into a shallow dictionary of its immediate attributes."""
|
|
751
|
+
body = {}
|
|
752
|
+
if self.budget: body['budget'] = self.budget
|
|
753
|
+
return body
|
|
754
|
+
|
|
603
755
|
@classmethod
|
|
604
756
|
def from_dict(cls, d: Dict[str, any]) -> GetBudgetConfigurationResponse:
|
|
605
757
|
"""Deserializes the GetBudgetConfigurationResponse from a dictionary."""
|
|
@@ -621,6 +773,13 @@ class ListBudgetConfigurationsResponse:
|
|
|
621
773
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
622
774
|
return body
|
|
623
775
|
|
|
776
|
+
def as_shallow_dict(self) -> dict:
|
|
777
|
+
"""Serializes the ListBudgetConfigurationsResponse into a shallow dictionary of its immediate attributes."""
|
|
778
|
+
body = {}
|
|
779
|
+
if self.budgets: body['budgets'] = self.budgets
|
|
780
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
781
|
+
return body
|
|
782
|
+
|
|
624
783
|
@classmethod
|
|
625
784
|
def from_dict(cls, d: Dict[str, any]) -> ListBudgetConfigurationsResponse:
|
|
626
785
|
"""Deserializes the ListBudgetConfigurationsResponse from a dictionary."""
|
|
@@ -744,6 +903,26 @@ class LogDeliveryConfiguration:
|
|
|
744
903
|
if self.workspace_ids_filter: body['workspace_ids_filter'] = [v for v in self.workspace_ids_filter]
|
|
745
904
|
return body
|
|
746
905
|
|
|
906
|
+
def as_shallow_dict(self) -> dict:
|
|
907
|
+
"""Serializes the LogDeliveryConfiguration into a shallow dictionary of its immediate attributes."""
|
|
908
|
+
body = {}
|
|
909
|
+
if self.account_id is not None: body['account_id'] = self.account_id
|
|
910
|
+
if self.config_id is not None: body['config_id'] = self.config_id
|
|
911
|
+
if self.config_name is not None: body['config_name'] = self.config_name
|
|
912
|
+
if self.creation_time is not None: body['creation_time'] = self.creation_time
|
|
913
|
+
if self.credentials_id is not None: body['credentials_id'] = self.credentials_id
|
|
914
|
+
if self.delivery_path_prefix is not None: body['delivery_path_prefix'] = self.delivery_path_prefix
|
|
915
|
+
if self.delivery_start_time is not None: body['delivery_start_time'] = self.delivery_start_time
|
|
916
|
+
if self.log_delivery_status: body['log_delivery_status'] = self.log_delivery_status
|
|
917
|
+
if self.log_type is not None: body['log_type'] = self.log_type
|
|
918
|
+
if self.output_format is not None: body['output_format'] = self.output_format
|
|
919
|
+
if self.status is not None: body['status'] = self.status
|
|
920
|
+
if self.storage_configuration_id is not None:
|
|
921
|
+
body['storage_configuration_id'] = self.storage_configuration_id
|
|
922
|
+
if self.update_time is not None: body['update_time'] = self.update_time
|
|
923
|
+
if self.workspace_ids_filter: body['workspace_ids_filter'] = self.workspace_ids_filter
|
|
924
|
+
return body
|
|
925
|
+
|
|
747
926
|
@classmethod
|
|
748
927
|
def from_dict(cls, d: Dict[str, any]) -> LogDeliveryConfiguration:
|
|
749
928
|
"""Deserializes the LogDeliveryConfiguration from a dictionary."""
|
|
@@ -796,6 +975,16 @@ class LogDeliveryStatus:
|
|
|
796
975
|
if self.status is not None: body['status'] = self.status.value
|
|
797
976
|
return body
|
|
798
977
|
|
|
978
|
+
def as_shallow_dict(self) -> dict:
|
|
979
|
+
"""Serializes the LogDeliveryStatus into a shallow dictionary of its immediate attributes."""
|
|
980
|
+
body = {}
|
|
981
|
+
if self.last_attempt_time is not None: body['last_attempt_time'] = self.last_attempt_time
|
|
982
|
+
if self.last_successful_attempt_time is not None:
|
|
983
|
+
body['last_successful_attempt_time'] = self.last_successful_attempt_time
|
|
984
|
+
if self.message is not None: body['message'] = self.message
|
|
985
|
+
if self.status is not None: body['status'] = self.status
|
|
986
|
+
return body
|
|
987
|
+
|
|
799
988
|
@classmethod
|
|
800
989
|
def from_dict(cls, d: Dict[str, any]) -> LogDeliveryStatus:
|
|
801
990
|
"""Deserializes the LogDeliveryStatus from a dictionary."""
|
|
@@ -846,6 +1035,11 @@ class PatchStatusResponse:
|
|
|
846
1035
|
body = {}
|
|
847
1036
|
return body
|
|
848
1037
|
|
|
1038
|
+
def as_shallow_dict(self) -> dict:
|
|
1039
|
+
"""Serializes the PatchStatusResponse into a shallow dictionary of its immediate attributes."""
|
|
1040
|
+
body = {}
|
|
1041
|
+
return body
|
|
1042
|
+
|
|
849
1043
|
@classmethod
|
|
850
1044
|
def from_dict(cls, d: Dict[str, any]) -> PatchStatusResponse:
|
|
851
1045
|
"""Deserializes the PatchStatusResponse from a dictionary."""
|
|
@@ -884,6 +1078,17 @@ class UpdateBudgetConfigurationBudget:
|
|
|
884
1078
|
if self.filter: body['filter'] = self.filter.as_dict()
|
|
885
1079
|
return body
|
|
886
1080
|
|
|
1081
|
+
def as_shallow_dict(self) -> dict:
|
|
1082
|
+
"""Serializes the UpdateBudgetConfigurationBudget into a shallow dictionary of its immediate attributes."""
|
|
1083
|
+
body = {}
|
|
1084
|
+
if self.account_id is not None: body['account_id'] = self.account_id
|
|
1085
|
+
if self.alert_configurations: body['alert_configurations'] = self.alert_configurations
|
|
1086
|
+
if self.budget_configuration_id is not None:
|
|
1087
|
+
body['budget_configuration_id'] = self.budget_configuration_id
|
|
1088
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
1089
|
+
if self.filter: body['filter'] = self.filter
|
|
1090
|
+
return body
|
|
1091
|
+
|
|
887
1092
|
@classmethod
|
|
888
1093
|
def from_dict(cls, d: Dict[str, any]) -> UpdateBudgetConfigurationBudget:
|
|
889
1094
|
"""Deserializes the UpdateBudgetConfigurationBudget from a dictionary."""
|
|
@@ -909,6 +1114,13 @@ class UpdateBudgetConfigurationRequest:
|
|
|
909
1114
|
if self.budget_id is not None: body['budget_id'] = self.budget_id
|
|
910
1115
|
return body
|
|
911
1116
|
|
|
1117
|
+
def as_shallow_dict(self) -> dict:
|
|
1118
|
+
"""Serializes the UpdateBudgetConfigurationRequest into a shallow dictionary of its immediate attributes."""
|
|
1119
|
+
body = {}
|
|
1120
|
+
if self.budget: body['budget'] = self.budget
|
|
1121
|
+
if self.budget_id is not None: body['budget_id'] = self.budget_id
|
|
1122
|
+
return body
|
|
1123
|
+
|
|
912
1124
|
@classmethod
|
|
913
1125
|
def from_dict(cls, d: Dict[str, any]) -> UpdateBudgetConfigurationRequest:
|
|
914
1126
|
"""Deserializes the UpdateBudgetConfigurationRequest from a dictionary."""
|
|
@@ -927,6 +1139,12 @@ class UpdateBudgetConfigurationResponse:
|
|
|
927
1139
|
if self.budget: body['budget'] = self.budget.as_dict()
|
|
928
1140
|
return body
|
|
929
1141
|
|
|
1142
|
+
def as_shallow_dict(self) -> dict:
|
|
1143
|
+
"""Serializes the UpdateBudgetConfigurationResponse into a shallow dictionary of its immediate attributes."""
|
|
1144
|
+
body = {}
|
|
1145
|
+
if self.budget: body['budget'] = self.budget
|
|
1146
|
+
return body
|
|
1147
|
+
|
|
930
1148
|
@classmethod
|
|
931
1149
|
def from_dict(cls, d: Dict[str, any]) -> UpdateBudgetConfigurationResponse:
|
|
932
1150
|
"""Deserializes the UpdateBudgetConfigurationResponse from a dictionary."""
|
|
@@ -952,6 +1170,14 @@ class UpdateLogDeliveryConfigurationStatusRequest:
|
|
|
952
1170
|
if self.status is not None: body['status'] = self.status.value
|
|
953
1171
|
return body
|
|
954
1172
|
|
|
1173
|
+
def as_shallow_dict(self) -> dict:
|
|
1174
|
+
"""Serializes the UpdateLogDeliveryConfigurationStatusRequest into a shallow dictionary of its immediate attributes."""
|
|
1175
|
+
body = {}
|
|
1176
|
+
if self.log_delivery_configuration_id is not None:
|
|
1177
|
+
body['log_delivery_configuration_id'] = self.log_delivery_configuration_id
|
|
1178
|
+
if self.status is not None: body['status'] = self.status
|
|
1179
|
+
return body
|
|
1180
|
+
|
|
955
1181
|
@classmethod
|
|
956
1182
|
def from_dict(cls, d: Dict[str, any]) -> UpdateLogDeliveryConfigurationStatusRequest:
|
|
957
1183
|
"""Deserializes the UpdateLogDeliveryConfigurationStatusRequest from a dictionary."""
|
|
@@ -976,6 +1202,13 @@ class WrappedCreateLogDeliveryConfiguration:
|
|
|
976
1202
|
body['log_delivery_configuration'] = self.log_delivery_configuration.as_dict()
|
|
977
1203
|
return body
|
|
978
1204
|
|
|
1205
|
+
def as_shallow_dict(self) -> dict:
|
|
1206
|
+
"""Serializes the WrappedCreateLogDeliveryConfiguration into a shallow dictionary of its immediate attributes."""
|
|
1207
|
+
body = {}
|
|
1208
|
+
if self.log_delivery_configuration:
|
|
1209
|
+
body['log_delivery_configuration'] = self.log_delivery_configuration
|
|
1210
|
+
return body
|
|
1211
|
+
|
|
979
1212
|
@classmethod
|
|
980
1213
|
def from_dict(cls, d: Dict[str, any]) -> WrappedCreateLogDeliveryConfiguration:
|
|
981
1214
|
"""Deserializes the WrappedCreateLogDeliveryConfiguration from a dictionary."""
|
|
@@ -994,6 +1227,13 @@ class WrappedLogDeliveryConfiguration:
|
|
|
994
1227
|
body['log_delivery_configuration'] = self.log_delivery_configuration.as_dict()
|
|
995
1228
|
return body
|
|
996
1229
|
|
|
1230
|
+
def as_shallow_dict(self) -> dict:
|
|
1231
|
+
"""Serializes the WrappedLogDeliveryConfiguration into a shallow dictionary of its immediate attributes."""
|
|
1232
|
+
body = {}
|
|
1233
|
+
if self.log_delivery_configuration:
|
|
1234
|
+
body['log_delivery_configuration'] = self.log_delivery_configuration
|
|
1235
|
+
return body
|
|
1236
|
+
|
|
997
1237
|
@classmethod
|
|
998
1238
|
def from_dict(cls, d: Dict[str, any]) -> WrappedLogDeliveryConfiguration:
|
|
999
1239
|
"""Deserializes the WrappedLogDeliveryConfiguration from a dictionary."""
|
|
@@ -1012,6 +1252,13 @@ class WrappedLogDeliveryConfigurations:
|
|
|
1012
1252
|
body['log_delivery_configurations'] = [v.as_dict() for v in self.log_delivery_configurations]
|
|
1013
1253
|
return body
|
|
1014
1254
|
|
|
1255
|
+
def as_shallow_dict(self) -> dict:
|
|
1256
|
+
"""Serializes the WrappedLogDeliveryConfigurations into a shallow dictionary of its immediate attributes."""
|
|
1257
|
+
body = {}
|
|
1258
|
+
if self.log_delivery_configurations:
|
|
1259
|
+
body['log_delivery_configurations'] = self.log_delivery_configurations
|
|
1260
|
+
return body
|
|
1261
|
+
|
|
1015
1262
|
@classmethod
|
|
1016
1263
|
def from_dict(cls, d: Dict[str, any]) -> WrappedLogDeliveryConfigurations:
|
|
1017
1264
|
"""Deserializes the WrappedLogDeliveryConfigurations from a dictionary."""
|