databricks-sdk 0.58.0__py3-none-any.whl → 0.60.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of databricks-sdk might be problematic. Click here for more details.

Files changed (34) hide show
  1. databricks/sdk/__init__.py +18 -10
  2. databricks/sdk/credentials_provider.py +2 -2
  3. databricks/sdk/mixins/files.py +43 -15
  4. databricks/sdk/mixins/open_ai_client.py +28 -7
  5. databricks/sdk/oidc.py +6 -2
  6. databricks/sdk/service/{aibuilder.py → agentbricks.py} +5 -132
  7. databricks/sdk/service/apps.py +52 -46
  8. databricks/sdk/service/billing.py +9 -200
  9. databricks/sdk/service/catalog.py +5501 -7697
  10. databricks/sdk/service/cleanrooms.py +24 -54
  11. databricks/sdk/service/compute.py +456 -2515
  12. databricks/sdk/service/dashboards.py +1 -177
  13. databricks/sdk/service/database.py +34 -53
  14. databricks/sdk/service/files.py +2 -218
  15. databricks/sdk/service/iam.py +16 -295
  16. databricks/sdk/service/jobs.py +108 -1171
  17. databricks/sdk/service/marketplace.py +0 -573
  18. databricks/sdk/service/ml.py +76 -2445
  19. databricks/sdk/service/oauth2.py +122 -237
  20. databricks/sdk/service/pipelines.py +180 -752
  21. databricks/sdk/service/provisioning.py +0 -603
  22. databricks/sdk/service/serving.py +5 -577
  23. databricks/sdk/service/settings.py +192 -1560
  24. databricks/sdk/service/sharing.py +5 -470
  25. databricks/sdk/service/sql.py +117 -1704
  26. databricks/sdk/service/vectorsearch.py +0 -391
  27. databricks/sdk/service/workspace.py +250 -721
  28. databricks/sdk/version.py +1 -1
  29. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/METADATA +1 -1
  30. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/RECORD +34 -34
  31. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/WHEEL +0 -0
  32. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/LICENSE +0 -0
  33. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/licenses/NOTICE +0 -0
  34. {databricks_sdk-0.58.0.dist-info → databricks_sdk-0.60.0.dist-info}/top_level.txt +0 -0
@@ -15,36 +15,6 @@ _LOG = logging.getLogger("databricks.sdk")
15
15
  # all definitions in this file are in alphabetical order
16
16
 
17
17
 
18
- @dataclass
19
- class AddExchangeForListingRequest:
20
- listing_id: str
21
-
22
- exchange_id: str
23
-
24
- def as_dict(self) -> dict:
25
- """Serializes the AddExchangeForListingRequest into a dictionary suitable for use as a JSON request body."""
26
- body = {}
27
- if self.exchange_id is not None:
28
- body["exchange_id"] = self.exchange_id
29
- if self.listing_id is not None:
30
- body["listing_id"] = self.listing_id
31
- return body
32
-
33
- def as_shallow_dict(self) -> dict:
34
- """Serializes the AddExchangeForListingRequest into a shallow dictionary of its immediate attributes."""
35
- body = {}
36
- if self.exchange_id is not None:
37
- body["exchange_id"] = self.exchange_id
38
- if self.listing_id is not None:
39
- body["listing_id"] = self.listing_id
40
- return body
41
-
42
- @classmethod
43
- def from_dict(cls, d: Dict[str, Any]) -> AddExchangeForListingRequest:
44
- """Deserializes the AddExchangeForListingRequest from a dictionary."""
45
- return cls(exchange_id=d.get("exchange_id", None), listing_id=d.get("listing_id", None))
46
-
47
-
48
18
  @dataclass
49
19
  class AddExchangeForListingResponse:
50
20
  exchange_for_listing: Optional[ExchangeListing] = None
@@ -233,30 +203,6 @@ class Cost(Enum):
233
203
  PAID = "PAID"
234
204
 
235
205
 
236
- @dataclass
237
- class CreateExchangeFilterRequest:
238
- filter: ExchangeFilter
239
-
240
- def as_dict(self) -> dict:
241
- """Serializes the CreateExchangeFilterRequest into a dictionary suitable for use as a JSON request body."""
242
- body = {}
243
- if self.filter:
244
- body["filter"] = self.filter.as_dict()
245
- return body
246
-
247
- def as_shallow_dict(self) -> dict:
248
- """Serializes the CreateExchangeFilterRequest into a shallow dictionary of its immediate attributes."""
249
- body = {}
250
- if self.filter:
251
- body["filter"] = self.filter
252
- return body
253
-
254
- @classmethod
255
- def from_dict(cls, d: Dict[str, Any]) -> CreateExchangeFilterRequest:
256
- """Deserializes the CreateExchangeFilterRequest from a dictionary."""
257
- return cls(filter=_from_dict(d, "filter", ExchangeFilter))
258
-
259
-
260
206
  @dataclass
261
207
  class CreateExchangeFilterResponse:
262
208
  filter_id: Optional[str] = None
@@ -281,30 +227,6 @@ class CreateExchangeFilterResponse:
281
227
  return cls(filter_id=d.get("filter_id", None))
282
228
 
283
229
 
284
- @dataclass
285
- class CreateExchangeRequest:
286
- exchange: Exchange
287
-
288
- def as_dict(self) -> dict:
289
- """Serializes the CreateExchangeRequest into a dictionary suitable for use as a JSON request body."""
290
- body = {}
291
- if self.exchange:
292
- body["exchange"] = self.exchange.as_dict()
293
- return body
294
-
295
- def as_shallow_dict(self) -> dict:
296
- """Serializes the CreateExchangeRequest into a shallow dictionary of its immediate attributes."""
297
- body = {}
298
- if self.exchange:
299
- body["exchange"] = self.exchange
300
- return body
301
-
302
- @classmethod
303
- def from_dict(cls, d: Dict[str, Any]) -> CreateExchangeRequest:
304
- """Deserializes the CreateExchangeRequest from a dictionary."""
305
- return cls(exchange=_from_dict(d, "exchange", Exchange))
306
-
307
-
308
230
  @dataclass
309
231
  class CreateExchangeResponse:
310
232
  exchange_id: Optional[str] = None
@@ -329,53 +251,6 @@ class CreateExchangeResponse:
329
251
  return cls(exchange_id=d.get("exchange_id", None))
330
252
 
331
253
 
332
- @dataclass
333
- class CreateFileRequest:
334
- file_parent: FileParent
335
-
336
- marketplace_file_type: MarketplaceFileType
337
-
338
- mime_type: str
339
-
340
- display_name: Optional[str] = None
341
-
342
- def as_dict(self) -> dict:
343
- """Serializes the CreateFileRequest into a dictionary suitable for use as a JSON request body."""
344
- body = {}
345
- if self.display_name is not None:
346
- body["display_name"] = self.display_name
347
- if self.file_parent:
348
- body["file_parent"] = self.file_parent.as_dict()
349
- if self.marketplace_file_type is not None:
350
- body["marketplace_file_type"] = self.marketplace_file_type.value
351
- if self.mime_type is not None:
352
- body["mime_type"] = self.mime_type
353
- return body
354
-
355
- def as_shallow_dict(self) -> dict:
356
- """Serializes the CreateFileRequest into a shallow dictionary of its immediate attributes."""
357
- body = {}
358
- if self.display_name is not None:
359
- body["display_name"] = self.display_name
360
- if self.file_parent:
361
- body["file_parent"] = self.file_parent
362
- if self.marketplace_file_type is not None:
363
- body["marketplace_file_type"] = self.marketplace_file_type
364
- if self.mime_type is not None:
365
- body["mime_type"] = self.mime_type
366
- return body
367
-
368
- @classmethod
369
- def from_dict(cls, d: Dict[str, Any]) -> CreateFileRequest:
370
- """Deserializes the CreateFileRequest from a dictionary."""
371
- return cls(
372
- display_name=d.get("display_name", None),
373
- file_parent=_from_dict(d, "file_parent", FileParent),
374
- marketplace_file_type=_enum(d, "marketplace_file_type", MarketplaceFileType),
375
- mime_type=d.get("mime_type", None),
376
- )
377
-
378
-
379
254
  @dataclass
380
255
  class CreateFileResponse:
381
256
  file_info: Optional[FileInfo] = None
@@ -407,92 +282,6 @@ class CreateFileResponse:
407
282
  return cls(file_info=_from_dict(d, "file_info", FileInfo), upload_url=d.get("upload_url", None))
408
283
 
409
284
 
410
- @dataclass
411
- class CreateInstallationRequest:
412
- accepted_consumer_terms: Optional[ConsumerTerms] = None
413
-
414
- catalog_name: Optional[str] = None
415
-
416
- listing_id: Optional[str] = None
417
-
418
- recipient_type: Optional[DeltaSharingRecipientType] = None
419
-
420
- repo_detail: Optional[RepoInstallation] = None
421
- """for git repo installations"""
422
-
423
- share_name: Optional[str] = None
424
-
425
- def as_dict(self) -> dict:
426
- """Serializes the CreateInstallationRequest into a dictionary suitable for use as a JSON request body."""
427
- body = {}
428
- if self.accepted_consumer_terms:
429
- body["accepted_consumer_terms"] = self.accepted_consumer_terms.as_dict()
430
- if self.catalog_name is not None:
431
- body["catalog_name"] = self.catalog_name
432
- if self.listing_id is not None:
433
- body["listing_id"] = self.listing_id
434
- if self.recipient_type is not None:
435
- body["recipient_type"] = self.recipient_type.value
436
- if self.repo_detail:
437
- body["repo_detail"] = self.repo_detail.as_dict()
438
- if self.share_name is not None:
439
- body["share_name"] = self.share_name
440
- return body
441
-
442
- def as_shallow_dict(self) -> dict:
443
- """Serializes the CreateInstallationRequest into a shallow dictionary of its immediate attributes."""
444
- body = {}
445
- if self.accepted_consumer_terms:
446
- body["accepted_consumer_terms"] = self.accepted_consumer_terms
447
- if self.catalog_name is not None:
448
- body["catalog_name"] = self.catalog_name
449
- if self.listing_id is not None:
450
- body["listing_id"] = self.listing_id
451
- if self.recipient_type is not None:
452
- body["recipient_type"] = self.recipient_type
453
- if self.repo_detail:
454
- body["repo_detail"] = self.repo_detail
455
- if self.share_name is not None:
456
- body["share_name"] = self.share_name
457
- return body
458
-
459
- @classmethod
460
- def from_dict(cls, d: Dict[str, Any]) -> CreateInstallationRequest:
461
- """Deserializes the CreateInstallationRequest from a dictionary."""
462
- return cls(
463
- accepted_consumer_terms=_from_dict(d, "accepted_consumer_terms", ConsumerTerms),
464
- catalog_name=d.get("catalog_name", None),
465
- listing_id=d.get("listing_id", None),
466
- recipient_type=_enum(d, "recipient_type", DeltaSharingRecipientType),
467
- repo_detail=_from_dict(d, "repo_detail", RepoInstallation),
468
- share_name=d.get("share_name", None),
469
- )
470
-
471
-
472
- @dataclass
473
- class CreateListingRequest:
474
- listing: Listing
475
-
476
- def as_dict(self) -> dict:
477
- """Serializes the CreateListingRequest into a dictionary suitable for use as a JSON request body."""
478
- body = {}
479
- if self.listing:
480
- body["listing"] = self.listing.as_dict()
481
- return body
482
-
483
- def as_shallow_dict(self) -> dict:
484
- """Serializes the CreateListingRequest into a shallow dictionary of its immediate attributes."""
485
- body = {}
486
- if self.listing:
487
- body["listing"] = self.listing
488
- return body
489
-
490
- @classmethod
491
- def from_dict(cls, d: Dict[str, Any]) -> CreateListingRequest:
492
- """Deserializes the CreateListingRequest from a dictionary."""
493
- return cls(listing=_from_dict(d, "listing", Listing))
494
-
495
-
496
285
  @dataclass
497
286
  class CreateListingResponse:
498
287
  listing_id: Optional[str] = None
@@ -517,90 +306,6 @@ class CreateListingResponse:
517
306
  return cls(listing_id=d.get("listing_id", None))
518
307
 
519
308
 
520
- @dataclass
521
- class CreatePersonalizationRequest:
522
- """Data request messages also creates a lead (maybe)"""
523
-
524
- intended_use: str
525
-
526
- accepted_consumer_terms: ConsumerTerms
527
-
528
- comment: Optional[str] = None
529
-
530
- company: Optional[str] = None
531
-
532
- first_name: Optional[str] = None
533
-
534
- is_from_lighthouse: Optional[bool] = None
535
-
536
- last_name: Optional[str] = None
537
-
538
- listing_id: Optional[str] = None
539
-
540
- recipient_type: Optional[DeltaSharingRecipientType] = None
541
-
542
- def as_dict(self) -> dict:
543
- """Serializes the CreatePersonalizationRequest into a dictionary suitable for use as a JSON request body."""
544
- body = {}
545
- if self.accepted_consumer_terms:
546
- body["accepted_consumer_terms"] = self.accepted_consumer_terms.as_dict()
547
- if self.comment is not None:
548
- body["comment"] = self.comment
549
- if self.company is not None:
550
- body["company"] = self.company
551
- if self.first_name is not None:
552
- body["first_name"] = self.first_name
553
- if self.intended_use is not None:
554
- body["intended_use"] = self.intended_use
555
- if self.is_from_lighthouse is not None:
556
- body["is_from_lighthouse"] = self.is_from_lighthouse
557
- if self.last_name is not None:
558
- body["last_name"] = self.last_name
559
- if self.listing_id is not None:
560
- body["listing_id"] = self.listing_id
561
- if self.recipient_type is not None:
562
- body["recipient_type"] = self.recipient_type.value
563
- return body
564
-
565
- def as_shallow_dict(self) -> dict:
566
- """Serializes the CreatePersonalizationRequest into a shallow dictionary of its immediate attributes."""
567
- body = {}
568
- if self.accepted_consumer_terms:
569
- body["accepted_consumer_terms"] = self.accepted_consumer_terms
570
- if self.comment is not None:
571
- body["comment"] = self.comment
572
- if self.company is not None:
573
- body["company"] = self.company
574
- if self.first_name is not None:
575
- body["first_name"] = self.first_name
576
- if self.intended_use is not None:
577
- body["intended_use"] = self.intended_use
578
- if self.is_from_lighthouse is not None:
579
- body["is_from_lighthouse"] = self.is_from_lighthouse
580
- if self.last_name is not None:
581
- body["last_name"] = self.last_name
582
- if self.listing_id is not None:
583
- body["listing_id"] = self.listing_id
584
- if self.recipient_type is not None:
585
- body["recipient_type"] = self.recipient_type
586
- return body
587
-
588
- @classmethod
589
- def from_dict(cls, d: Dict[str, Any]) -> CreatePersonalizationRequest:
590
- """Deserializes the CreatePersonalizationRequest from a dictionary."""
591
- return cls(
592
- accepted_consumer_terms=_from_dict(d, "accepted_consumer_terms", ConsumerTerms),
593
- comment=d.get("comment", None),
594
- company=d.get("company", None),
595
- first_name=d.get("first_name", None),
596
- intended_use=d.get("intended_use", None),
597
- is_from_lighthouse=d.get("is_from_lighthouse", None),
598
- last_name=d.get("last_name", None),
599
- listing_id=d.get("listing_id", None),
600
- recipient_type=_enum(d, "recipient_type", DeltaSharingRecipientType),
601
- )
602
-
603
-
604
309
  @dataclass
605
310
  class CreatePersonalizationRequestResponse:
606
311
  id: Optional[str] = None
@@ -625,30 +330,6 @@ class CreatePersonalizationRequestResponse:
625
330
  return cls(id=d.get("id", None))
626
331
 
627
332
 
628
- @dataclass
629
- class CreateProviderRequest:
630
- provider: ProviderInfo
631
-
632
- def as_dict(self) -> dict:
633
- """Serializes the CreateProviderRequest into a dictionary suitable for use as a JSON request body."""
634
- body = {}
635
- if self.provider:
636
- body["provider"] = self.provider.as_dict()
637
- return body
638
-
639
- def as_shallow_dict(self) -> dict:
640
- """Serializes the CreateProviderRequest into a shallow dictionary of its immediate attributes."""
641
- body = {}
642
- if self.provider:
643
- body["provider"] = self.provider
644
- return body
645
-
646
- @classmethod
647
- def from_dict(cls, d: Dict[str, Any]) -> CreateProviderRequest:
648
- """Deserializes the CreateProviderRequest from a dictionary."""
649
- return cls(provider=_from_dict(d, "provider", ProviderInfo))
650
-
651
-
652
333
  @dataclass
653
334
  class CreateProviderResponse:
654
335
  id: Optional[str] = None
@@ -3059,36 +2740,6 @@ class TokenInfo:
3059
2740
  )
3060
2741
 
3061
2742
 
3062
- @dataclass
3063
- class UpdateExchangeFilterRequest:
3064
- filter: ExchangeFilter
3065
-
3066
- id: Optional[str] = None
3067
-
3068
- def as_dict(self) -> dict:
3069
- """Serializes the UpdateExchangeFilterRequest into a dictionary suitable for use as a JSON request body."""
3070
- body = {}
3071
- if self.filter:
3072
- body["filter"] = self.filter.as_dict()
3073
- if self.id is not None:
3074
- body["id"] = self.id
3075
- return body
3076
-
3077
- def as_shallow_dict(self) -> dict:
3078
- """Serializes the UpdateExchangeFilterRequest into a shallow dictionary of its immediate attributes."""
3079
- body = {}
3080
- if self.filter:
3081
- body["filter"] = self.filter
3082
- if self.id is not None:
3083
- body["id"] = self.id
3084
- return body
3085
-
3086
- @classmethod
3087
- def from_dict(cls, d: Dict[str, Any]) -> UpdateExchangeFilterRequest:
3088
- """Deserializes the UpdateExchangeFilterRequest from a dictionary."""
3089
- return cls(filter=_from_dict(d, "filter", ExchangeFilter), id=d.get("id", None))
3090
-
3091
-
3092
2743
  @dataclass
3093
2744
  class UpdateExchangeFilterResponse:
3094
2745
  filter: Optional[ExchangeFilter] = None
@@ -3113,36 +2764,6 @@ class UpdateExchangeFilterResponse:
3113
2764
  return cls(filter=_from_dict(d, "filter", ExchangeFilter))
3114
2765
 
3115
2766
 
3116
- @dataclass
3117
- class UpdateExchangeRequest:
3118
- exchange: Exchange
3119
-
3120
- id: Optional[str] = None
3121
-
3122
- def as_dict(self) -> dict:
3123
- """Serializes the UpdateExchangeRequest into a dictionary suitable for use as a JSON request body."""
3124
- body = {}
3125
- if self.exchange:
3126
- body["exchange"] = self.exchange.as_dict()
3127
- if self.id is not None:
3128
- body["id"] = self.id
3129
- return body
3130
-
3131
- def as_shallow_dict(self) -> dict:
3132
- """Serializes the UpdateExchangeRequest into a shallow dictionary of its immediate attributes."""
3133
- body = {}
3134
- if self.exchange:
3135
- body["exchange"] = self.exchange
3136
- if self.id is not None:
3137
- body["id"] = self.id
3138
- return body
3139
-
3140
- @classmethod
3141
- def from_dict(cls, d: Dict[str, Any]) -> UpdateExchangeRequest:
3142
- """Deserializes the UpdateExchangeRequest from a dictionary."""
3143
- return cls(exchange=_from_dict(d, "exchange", Exchange), id=d.get("id", None))
3144
-
3145
-
3146
2767
  @dataclass
3147
2768
  class UpdateExchangeResponse:
3148
2769
  exchange: Optional[Exchange] = None
@@ -3167,53 +2788,6 @@ class UpdateExchangeResponse:
3167
2788
  return cls(exchange=_from_dict(d, "exchange", Exchange))
3168
2789
 
3169
2790
 
3170
- @dataclass
3171
- class UpdateInstallationRequest:
3172
- installation: InstallationDetail
3173
-
3174
- installation_id: Optional[str] = None
3175
-
3176
- listing_id: Optional[str] = None
3177
-
3178
- rotate_token: Optional[bool] = None
3179
-
3180
- def as_dict(self) -> dict:
3181
- """Serializes the UpdateInstallationRequest into a dictionary suitable for use as a JSON request body."""
3182
- body = {}
3183
- if self.installation:
3184
- body["installation"] = self.installation.as_dict()
3185
- if self.installation_id is not None:
3186
- body["installation_id"] = self.installation_id
3187
- if self.listing_id is not None:
3188
- body["listing_id"] = self.listing_id
3189
- if self.rotate_token is not None:
3190
- body["rotate_token"] = self.rotate_token
3191
- return body
3192
-
3193
- def as_shallow_dict(self) -> dict:
3194
- """Serializes the UpdateInstallationRequest into a shallow dictionary of its immediate attributes."""
3195
- body = {}
3196
- if self.installation:
3197
- body["installation"] = self.installation
3198
- if self.installation_id is not None:
3199
- body["installation_id"] = self.installation_id
3200
- if self.listing_id is not None:
3201
- body["listing_id"] = self.listing_id
3202
- if self.rotate_token is not None:
3203
- body["rotate_token"] = self.rotate_token
3204
- return body
3205
-
3206
- @classmethod
3207
- def from_dict(cls, d: Dict[str, Any]) -> UpdateInstallationRequest:
3208
- """Deserializes the UpdateInstallationRequest from a dictionary."""
3209
- return cls(
3210
- installation=_from_dict(d, "installation", InstallationDetail),
3211
- installation_id=d.get("installation_id", None),
3212
- listing_id=d.get("listing_id", None),
3213
- rotate_token=d.get("rotate_token", None),
3214
- )
3215
-
3216
-
3217
2791
  @dataclass
3218
2792
  class UpdateInstallationResponse:
3219
2793
  installation: Optional[InstallationDetail] = None
@@ -3238,36 +2812,6 @@ class UpdateInstallationResponse:
3238
2812
  return cls(installation=_from_dict(d, "installation", InstallationDetail))
3239
2813
 
3240
2814
 
3241
- @dataclass
3242
- class UpdateListingRequest:
3243
- listing: Listing
3244
-
3245
- id: Optional[str] = None
3246
-
3247
- def as_dict(self) -> dict:
3248
- """Serializes the UpdateListingRequest into a dictionary suitable for use as a JSON request body."""
3249
- body = {}
3250
- if self.id is not None:
3251
- body["id"] = self.id
3252
- if self.listing:
3253
- body["listing"] = self.listing.as_dict()
3254
- return body
3255
-
3256
- def as_shallow_dict(self) -> dict:
3257
- """Serializes the UpdateListingRequest into a shallow dictionary of its immediate attributes."""
3258
- body = {}
3259
- if self.id is not None:
3260
- body["id"] = self.id
3261
- if self.listing:
3262
- body["listing"] = self.listing
3263
- return body
3264
-
3265
- @classmethod
3266
- def from_dict(cls, d: Dict[str, Any]) -> UpdateListingRequest:
3267
- """Deserializes the UpdateListingRequest from a dictionary."""
3268
- return cls(id=d.get("id", None), listing=_from_dict(d, "listing", Listing))
3269
-
3270
-
3271
2815
  @dataclass
3272
2816
  class UpdateListingResponse:
3273
2817
  listing: Optional[Listing] = None
@@ -3292,60 +2836,6 @@ class UpdateListingResponse:
3292
2836
  return cls(listing=_from_dict(d, "listing", Listing))
3293
2837
 
3294
2838
 
3295
- @dataclass
3296
- class UpdatePersonalizationRequestRequest:
3297
- status: PersonalizationRequestStatus
3298
-
3299
- listing_id: Optional[str] = None
3300
-
3301
- reason: Optional[str] = None
3302
-
3303
- request_id: Optional[str] = None
3304
-
3305
- share: Optional[ShareInfo] = None
3306
-
3307
- def as_dict(self) -> dict:
3308
- """Serializes the UpdatePersonalizationRequestRequest into a dictionary suitable for use as a JSON request body."""
3309
- body = {}
3310
- if self.listing_id is not None:
3311
- body["listing_id"] = self.listing_id
3312
- if self.reason is not None:
3313
- body["reason"] = self.reason
3314
- if self.request_id is not None:
3315
- body["request_id"] = self.request_id
3316
- if self.share:
3317
- body["share"] = self.share.as_dict()
3318
- if self.status is not None:
3319
- body["status"] = self.status.value
3320
- return body
3321
-
3322
- def as_shallow_dict(self) -> dict:
3323
- """Serializes the UpdatePersonalizationRequestRequest into a shallow dictionary of its immediate attributes."""
3324
- body = {}
3325
- if self.listing_id is not None:
3326
- body["listing_id"] = self.listing_id
3327
- if self.reason is not None:
3328
- body["reason"] = self.reason
3329
- if self.request_id is not None:
3330
- body["request_id"] = self.request_id
3331
- if self.share:
3332
- body["share"] = self.share
3333
- if self.status is not None:
3334
- body["status"] = self.status
3335
- return body
3336
-
3337
- @classmethod
3338
- def from_dict(cls, d: Dict[str, Any]) -> UpdatePersonalizationRequestRequest:
3339
- """Deserializes the UpdatePersonalizationRequestRequest from a dictionary."""
3340
- return cls(
3341
- listing_id=d.get("listing_id", None),
3342
- reason=d.get("reason", None),
3343
- request_id=d.get("request_id", None),
3344
- share=_from_dict(d, "share", ShareInfo),
3345
- status=_enum(d, "status", PersonalizationRequestStatus),
3346
- )
3347
-
3348
-
3349
2839
  @dataclass
3350
2840
  class UpdatePersonalizationRequestResponse:
3351
2841
  request: Optional[PersonalizationRequest] = None
@@ -3370,39 +2860,6 @@ class UpdatePersonalizationRequestResponse:
3370
2860
  return cls(request=_from_dict(d, "request", PersonalizationRequest))
3371
2861
 
3372
2862
 
3373
- @dataclass
3374
- class UpdateProviderAnalyticsDashboardRequest:
3375
- id: Optional[str] = None
3376
- """id is immutable property and can't be updated."""
3377
-
3378
- version: Optional[int] = None
3379
- """this is the version of the dashboard template we want to update our user to current expectation
3380
- is that it should be equal to latest version of the dashboard template"""
3381
-
3382
- def as_dict(self) -> dict:
3383
- """Serializes the UpdateProviderAnalyticsDashboardRequest into a dictionary suitable for use as a JSON request body."""
3384
- body = {}
3385
- if self.id is not None:
3386
- body["id"] = self.id
3387
- if self.version is not None:
3388
- body["version"] = self.version
3389
- return body
3390
-
3391
- def as_shallow_dict(self) -> dict:
3392
- """Serializes the UpdateProviderAnalyticsDashboardRequest into a shallow dictionary of its immediate attributes."""
3393
- body = {}
3394
- if self.id is not None:
3395
- body["id"] = self.id
3396
- if self.version is not None:
3397
- body["version"] = self.version
3398
- return body
3399
-
3400
- @classmethod
3401
- def from_dict(cls, d: Dict[str, Any]) -> UpdateProviderAnalyticsDashboardRequest:
3402
- """Deserializes the UpdateProviderAnalyticsDashboardRequest from a dictionary."""
3403
- return cls(id=d.get("id", None), version=d.get("version", None))
3404
-
3405
-
3406
2863
  @dataclass
3407
2864
  class UpdateProviderAnalyticsDashboardResponse:
3408
2865
  id: str
@@ -3441,36 +2898,6 @@ class UpdateProviderAnalyticsDashboardResponse:
3441
2898
  return cls(dashboard_id=d.get("dashboard_id", None), id=d.get("id", None), version=d.get("version", None))
3442
2899
 
3443
2900
 
3444
- @dataclass
3445
- class UpdateProviderRequest:
3446
- provider: ProviderInfo
3447
-
3448
- id: Optional[str] = None
3449
-
3450
- def as_dict(self) -> dict:
3451
- """Serializes the UpdateProviderRequest into a dictionary suitable for use as a JSON request body."""
3452
- body = {}
3453
- if self.id is not None:
3454
- body["id"] = self.id
3455
- if self.provider:
3456
- body["provider"] = self.provider.as_dict()
3457
- return body
3458
-
3459
- def as_shallow_dict(self) -> dict:
3460
- """Serializes the UpdateProviderRequest into a shallow dictionary of its immediate attributes."""
3461
- body = {}
3462
- if self.id is not None:
3463
- body["id"] = self.id
3464
- if self.provider:
3465
- body["provider"] = self.provider
3466
- return body
3467
-
3468
- @classmethod
3469
- def from_dict(cls, d: Dict[str, Any]) -> UpdateProviderRequest:
3470
- """Deserializes the UpdateProviderRequest from a dictionary."""
3471
- return cls(id=d.get("id", None), provider=_from_dict(d, "provider", ProviderInfo))
3472
-
3473
-
3474
2901
  @dataclass
3475
2902
  class UpdateProviderResponse:
3476
2903
  provider: Optional[ProviderInfo] = None