databricks-sdk 0.57.0__py3-none-any.whl → 0.59.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 +38 -9
- databricks/sdk/service/aibuilder.py +0 -163
- databricks/sdk/service/apps.py +53 -49
- databricks/sdk/service/billing.py +62 -223
- databricks/sdk/service/catalog.py +3052 -3707
- databricks/sdk/service/cleanrooms.py +5 -54
- databricks/sdk/service/compute.py +579 -2715
- databricks/sdk/service/dashboards.py +108 -317
- databricks/sdk/service/database.py +603 -122
- databricks/sdk/service/files.py +2 -218
- databricks/sdk/service/iam.py +19 -298
- databricks/sdk/service/jobs.py +77 -1263
- databricks/sdk/service/marketplace.py +3 -575
- databricks/sdk/service/ml.py +816 -2734
- databricks/sdk/service/oauth2.py +122 -238
- databricks/sdk/service/pipelines.py +133 -724
- databricks/sdk/service/provisioning.py +36 -757
- databricks/sdk/service/qualitymonitorv2.py +0 -18
- databricks/sdk/service/serving.py +37 -583
- databricks/sdk/service/settings.py +282 -1768
- databricks/sdk/service/sharing.py +6 -478
- databricks/sdk/service/sql.py +129 -1696
- databricks/sdk/service/vectorsearch.py +0 -410
- databricks/sdk/service/workspace.py +252 -727
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/RECORD +31 -31
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.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
|
|
@@ -2282,7 +1963,6 @@ class ListingSummary:
|
|
|
2282
1963
|
share: Optional[ShareInfo] = None
|
|
2283
1964
|
|
|
2284
1965
|
status: Optional[ListingStatus] = None
|
|
2285
|
-
"""Enums"""
|
|
2286
1966
|
|
|
2287
1967
|
subtitle: Optional[str] = None
|
|
2288
1968
|
|
|
@@ -2462,7 +2142,6 @@ class PersonalizationRequest:
|
|
|
2462
2142
|
comment: Optional[str] = None
|
|
2463
2143
|
|
|
2464
2144
|
contact_info: Optional[ContactInfo] = None
|
|
2465
|
-
"""contact info for the consumer requesting data or performing a listing installation"""
|
|
2466
2145
|
|
|
2467
2146
|
created_at: Optional[int] = None
|
|
2468
2147
|
|
|
@@ -3061,36 +2740,6 @@ class TokenInfo:
|
|
|
3061
2740
|
)
|
|
3062
2741
|
|
|
3063
2742
|
|
|
3064
|
-
@dataclass
|
|
3065
|
-
class UpdateExchangeFilterRequest:
|
|
3066
|
-
filter: ExchangeFilter
|
|
3067
|
-
|
|
3068
|
-
id: Optional[str] = None
|
|
3069
|
-
|
|
3070
|
-
def as_dict(self) -> dict:
|
|
3071
|
-
"""Serializes the UpdateExchangeFilterRequest into a dictionary suitable for use as a JSON request body."""
|
|
3072
|
-
body = {}
|
|
3073
|
-
if self.filter:
|
|
3074
|
-
body["filter"] = self.filter.as_dict()
|
|
3075
|
-
if self.id is not None:
|
|
3076
|
-
body["id"] = self.id
|
|
3077
|
-
return body
|
|
3078
|
-
|
|
3079
|
-
def as_shallow_dict(self) -> dict:
|
|
3080
|
-
"""Serializes the UpdateExchangeFilterRequest into a shallow dictionary of its immediate attributes."""
|
|
3081
|
-
body = {}
|
|
3082
|
-
if self.filter:
|
|
3083
|
-
body["filter"] = self.filter
|
|
3084
|
-
if self.id is not None:
|
|
3085
|
-
body["id"] = self.id
|
|
3086
|
-
return body
|
|
3087
|
-
|
|
3088
|
-
@classmethod
|
|
3089
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateExchangeFilterRequest:
|
|
3090
|
-
"""Deserializes the UpdateExchangeFilterRequest from a dictionary."""
|
|
3091
|
-
return cls(filter=_from_dict(d, "filter", ExchangeFilter), id=d.get("id", None))
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
2743
|
@dataclass
|
|
3095
2744
|
class UpdateExchangeFilterResponse:
|
|
3096
2745
|
filter: Optional[ExchangeFilter] = None
|
|
@@ -3115,36 +2764,6 @@ class UpdateExchangeFilterResponse:
|
|
|
3115
2764
|
return cls(filter=_from_dict(d, "filter", ExchangeFilter))
|
|
3116
2765
|
|
|
3117
2766
|
|
|
3118
|
-
@dataclass
|
|
3119
|
-
class UpdateExchangeRequest:
|
|
3120
|
-
exchange: Exchange
|
|
3121
|
-
|
|
3122
|
-
id: Optional[str] = None
|
|
3123
|
-
|
|
3124
|
-
def as_dict(self) -> dict:
|
|
3125
|
-
"""Serializes the UpdateExchangeRequest into a dictionary suitable for use as a JSON request body."""
|
|
3126
|
-
body = {}
|
|
3127
|
-
if self.exchange:
|
|
3128
|
-
body["exchange"] = self.exchange.as_dict()
|
|
3129
|
-
if self.id is not None:
|
|
3130
|
-
body["id"] = self.id
|
|
3131
|
-
return body
|
|
3132
|
-
|
|
3133
|
-
def as_shallow_dict(self) -> dict:
|
|
3134
|
-
"""Serializes the UpdateExchangeRequest into a shallow dictionary of its immediate attributes."""
|
|
3135
|
-
body = {}
|
|
3136
|
-
if self.exchange:
|
|
3137
|
-
body["exchange"] = self.exchange
|
|
3138
|
-
if self.id is not None:
|
|
3139
|
-
body["id"] = self.id
|
|
3140
|
-
return body
|
|
3141
|
-
|
|
3142
|
-
@classmethod
|
|
3143
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateExchangeRequest:
|
|
3144
|
-
"""Deserializes the UpdateExchangeRequest from a dictionary."""
|
|
3145
|
-
return cls(exchange=_from_dict(d, "exchange", Exchange), id=d.get("id", None))
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
2767
|
@dataclass
|
|
3149
2768
|
class UpdateExchangeResponse:
|
|
3150
2769
|
exchange: Optional[Exchange] = None
|
|
@@ -3169,53 +2788,6 @@ class UpdateExchangeResponse:
|
|
|
3169
2788
|
return cls(exchange=_from_dict(d, "exchange", Exchange))
|
|
3170
2789
|
|
|
3171
2790
|
|
|
3172
|
-
@dataclass
|
|
3173
|
-
class UpdateInstallationRequest:
|
|
3174
|
-
installation: InstallationDetail
|
|
3175
|
-
|
|
3176
|
-
installation_id: Optional[str] = None
|
|
3177
|
-
|
|
3178
|
-
listing_id: Optional[str] = None
|
|
3179
|
-
|
|
3180
|
-
rotate_token: Optional[bool] = None
|
|
3181
|
-
|
|
3182
|
-
def as_dict(self) -> dict:
|
|
3183
|
-
"""Serializes the UpdateInstallationRequest into a dictionary suitable for use as a JSON request body."""
|
|
3184
|
-
body = {}
|
|
3185
|
-
if self.installation:
|
|
3186
|
-
body["installation"] = self.installation.as_dict()
|
|
3187
|
-
if self.installation_id is not None:
|
|
3188
|
-
body["installation_id"] = self.installation_id
|
|
3189
|
-
if self.listing_id is not None:
|
|
3190
|
-
body["listing_id"] = self.listing_id
|
|
3191
|
-
if self.rotate_token is not None:
|
|
3192
|
-
body["rotate_token"] = self.rotate_token
|
|
3193
|
-
return body
|
|
3194
|
-
|
|
3195
|
-
def as_shallow_dict(self) -> dict:
|
|
3196
|
-
"""Serializes the UpdateInstallationRequest into a shallow dictionary of its immediate attributes."""
|
|
3197
|
-
body = {}
|
|
3198
|
-
if self.installation:
|
|
3199
|
-
body["installation"] = self.installation
|
|
3200
|
-
if self.installation_id is not None:
|
|
3201
|
-
body["installation_id"] = self.installation_id
|
|
3202
|
-
if self.listing_id is not None:
|
|
3203
|
-
body["listing_id"] = self.listing_id
|
|
3204
|
-
if self.rotate_token is not None:
|
|
3205
|
-
body["rotate_token"] = self.rotate_token
|
|
3206
|
-
return body
|
|
3207
|
-
|
|
3208
|
-
@classmethod
|
|
3209
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateInstallationRequest:
|
|
3210
|
-
"""Deserializes the UpdateInstallationRequest from a dictionary."""
|
|
3211
|
-
return cls(
|
|
3212
|
-
installation=_from_dict(d, "installation", InstallationDetail),
|
|
3213
|
-
installation_id=d.get("installation_id", None),
|
|
3214
|
-
listing_id=d.get("listing_id", None),
|
|
3215
|
-
rotate_token=d.get("rotate_token", None),
|
|
3216
|
-
)
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
2791
|
@dataclass
|
|
3220
2792
|
class UpdateInstallationResponse:
|
|
3221
2793
|
installation: Optional[InstallationDetail] = None
|
|
@@ -3240,36 +2812,6 @@ class UpdateInstallationResponse:
|
|
|
3240
2812
|
return cls(installation=_from_dict(d, "installation", InstallationDetail))
|
|
3241
2813
|
|
|
3242
2814
|
|
|
3243
|
-
@dataclass
|
|
3244
|
-
class UpdateListingRequest:
|
|
3245
|
-
listing: Listing
|
|
3246
|
-
|
|
3247
|
-
id: Optional[str] = None
|
|
3248
|
-
|
|
3249
|
-
def as_dict(self) -> dict:
|
|
3250
|
-
"""Serializes the UpdateListingRequest into a dictionary suitable for use as a JSON request body."""
|
|
3251
|
-
body = {}
|
|
3252
|
-
if self.id is not None:
|
|
3253
|
-
body["id"] = self.id
|
|
3254
|
-
if self.listing:
|
|
3255
|
-
body["listing"] = self.listing.as_dict()
|
|
3256
|
-
return body
|
|
3257
|
-
|
|
3258
|
-
def as_shallow_dict(self) -> dict:
|
|
3259
|
-
"""Serializes the UpdateListingRequest into a shallow dictionary of its immediate attributes."""
|
|
3260
|
-
body = {}
|
|
3261
|
-
if self.id is not None:
|
|
3262
|
-
body["id"] = self.id
|
|
3263
|
-
if self.listing:
|
|
3264
|
-
body["listing"] = self.listing
|
|
3265
|
-
return body
|
|
3266
|
-
|
|
3267
|
-
@classmethod
|
|
3268
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateListingRequest:
|
|
3269
|
-
"""Deserializes the UpdateListingRequest from a dictionary."""
|
|
3270
|
-
return cls(id=d.get("id", None), listing=_from_dict(d, "listing", Listing))
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
2815
|
@dataclass
|
|
3274
2816
|
class UpdateListingResponse:
|
|
3275
2817
|
listing: Optional[Listing] = None
|
|
@@ -3294,60 +2836,6 @@ class UpdateListingResponse:
|
|
|
3294
2836
|
return cls(listing=_from_dict(d, "listing", Listing))
|
|
3295
2837
|
|
|
3296
2838
|
|
|
3297
|
-
@dataclass
|
|
3298
|
-
class UpdatePersonalizationRequestRequest:
|
|
3299
|
-
status: PersonalizationRequestStatus
|
|
3300
|
-
|
|
3301
|
-
listing_id: Optional[str] = None
|
|
3302
|
-
|
|
3303
|
-
reason: Optional[str] = None
|
|
3304
|
-
|
|
3305
|
-
request_id: Optional[str] = None
|
|
3306
|
-
|
|
3307
|
-
share: Optional[ShareInfo] = None
|
|
3308
|
-
|
|
3309
|
-
def as_dict(self) -> dict:
|
|
3310
|
-
"""Serializes the UpdatePersonalizationRequestRequest into a dictionary suitable for use as a JSON request body."""
|
|
3311
|
-
body = {}
|
|
3312
|
-
if self.listing_id is not None:
|
|
3313
|
-
body["listing_id"] = self.listing_id
|
|
3314
|
-
if self.reason is not None:
|
|
3315
|
-
body["reason"] = self.reason
|
|
3316
|
-
if self.request_id is not None:
|
|
3317
|
-
body["request_id"] = self.request_id
|
|
3318
|
-
if self.share:
|
|
3319
|
-
body["share"] = self.share.as_dict()
|
|
3320
|
-
if self.status is not None:
|
|
3321
|
-
body["status"] = self.status.value
|
|
3322
|
-
return body
|
|
3323
|
-
|
|
3324
|
-
def as_shallow_dict(self) -> dict:
|
|
3325
|
-
"""Serializes the UpdatePersonalizationRequestRequest into a shallow dictionary of its immediate attributes."""
|
|
3326
|
-
body = {}
|
|
3327
|
-
if self.listing_id is not None:
|
|
3328
|
-
body["listing_id"] = self.listing_id
|
|
3329
|
-
if self.reason is not None:
|
|
3330
|
-
body["reason"] = self.reason
|
|
3331
|
-
if self.request_id is not None:
|
|
3332
|
-
body["request_id"] = self.request_id
|
|
3333
|
-
if self.share:
|
|
3334
|
-
body["share"] = self.share
|
|
3335
|
-
if self.status is not None:
|
|
3336
|
-
body["status"] = self.status
|
|
3337
|
-
return body
|
|
3338
|
-
|
|
3339
|
-
@classmethod
|
|
3340
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdatePersonalizationRequestRequest:
|
|
3341
|
-
"""Deserializes the UpdatePersonalizationRequestRequest from a dictionary."""
|
|
3342
|
-
return cls(
|
|
3343
|
-
listing_id=d.get("listing_id", None),
|
|
3344
|
-
reason=d.get("reason", None),
|
|
3345
|
-
request_id=d.get("request_id", None),
|
|
3346
|
-
share=_from_dict(d, "share", ShareInfo),
|
|
3347
|
-
status=_enum(d, "status", PersonalizationRequestStatus),
|
|
3348
|
-
)
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
2839
|
@dataclass
|
|
3352
2840
|
class UpdatePersonalizationRequestResponse:
|
|
3353
2841
|
request: Optional[PersonalizationRequest] = None
|
|
@@ -3372,39 +2860,6 @@ class UpdatePersonalizationRequestResponse:
|
|
|
3372
2860
|
return cls(request=_from_dict(d, "request", PersonalizationRequest))
|
|
3373
2861
|
|
|
3374
2862
|
|
|
3375
|
-
@dataclass
|
|
3376
|
-
class UpdateProviderAnalyticsDashboardRequest:
|
|
3377
|
-
id: Optional[str] = None
|
|
3378
|
-
"""id is immutable property and can't be updated."""
|
|
3379
|
-
|
|
3380
|
-
version: Optional[int] = None
|
|
3381
|
-
"""this is the version of the dashboard template we want to update our user to current expectation
|
|
3382
|
-
is that it should be equal to latest version of the dashboard template"""
|
|
3383
|
-
|
|
3384
|
-
def as_dict(self) -> dict:
|
|
3385
|
-
"""Serializes the UpdateProviderAnalyticsDashboardRequest into a dictionary suitable for use as a JSON request body."""
|
|
3386
|
-
body = {}
|
|
3387
|
-
if self.id is not None:
|
|
3388
|
-
body["id"] = self.id
|
|
3389
|
-
if self.version is not None:
|
|
3390
|
-
body["version"] = self.version
|
|
3391
|
-
return body
|
|
3392
|
-
|
|
3393
|
-
def as_shallow_dict(self) -> dict:
|
|
3394
|
-
"""Serializes the UpdateProviderAnalyticsDashboardRequest into a shallow dictionary of its immediate attributes."""
|
|
3395
|
-
body = {}
|
|
3396
|
-
if self.id is not None:
|
|
3397
|
-
body["id"] = self.id
|
|
3398
|
-
if self.version is not None:
|
|
3399
|
-
body["version"] = self.version
|
|
3400
|
-
return body
|
|
3401
|
-
|
|
3402
|
-
@classmethod
|
|
3403
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateProviderAnalyticsDashboardRequest:
|
|
3404
|
-
"""Deserializes the UpdateProviderAnalyticsDashboardRequest from a dictionary."""
|
|
3405
|
-
return cls(id=d.get("id", None), version=d.get("version", None))
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
2863
|
@dataclass
|
|
3409
2864
|
class UpdateProviderAnalyticsDashboardResponse:
|
|
3410
2865
|
id: str
|
|
@@ -3443,36 +2898,6 @@ class UpdateProviderAnalyticsDashboardResponse:
|
|
|
3443
2898
|
return cls(dashboard_id=d.get("dashboard_id", None), id=d.get("id", None), version=d.get("version", None))
|
|
3444
2899
|
|
|
3445
2900
|
|
|
3446
|
-
@dataclass
|
|
3447
|
-
class UpdateProviderRequest:
|
|
3448
|
-
provider: ProviderInfo
|
|
3449
|
-
|
|
3450
|
-
id: Optional[str] = None
|
|
3451
|
-
|
|
3452
|
-
def as_dict(self) -> dict:
|
|
3453
|
-
"""Serializes the UpdateProviderRequest into a dictionary suitable for use as a JSON request body."""
|
|
3454
|
-
body = {}
|
|
3455
|
-
if self.id is not None:
|
|
3456
|
-
body["id"] = self.id
|
|
3457
|
-
if self.provider:
|
|
3458
|
-
body["provider"] = self.provider.as_dict()
|
|
3459
|
-
return body
|
|
3460
|
-
|
|
3461
|
-
def as_shallow_dict(self) -> dict:
|
|
3462
|
-
"""Serializes the UpdateProviderRequest into a shallow dictionary of its immediate attributes."""
|
|
3463
|
-
body = {}
|
|
3464
|
-
if self.id is not None:
|
|
3465
|
-
body["id"] = self.id
|
|
3466
|
-
if self.provider:
|
|
3467
|
-
body["provider"] = self.provider
|
|
3468
|
-
return body
|
|
3469
|
-
|
|
3470
|
-
@classmethod
|
|
3471
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateProviderRequest:
|
|
3472
|
-
"""Deserializes the UpdateProviderRequest from a dictionary."""
|
|
3473
|
-
return cls(id=d.get("id", None), provider=_from_dict(d, "provider", ProviderInfo))
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
2901
|
@dataclass
|
|
3477
2902
|
class UpdateProviderResponse:
|
|
3478
2903
|
provider: Optional[ProviderInfo] = None
|
|
@@ -4687,6 +4112,7 @@ class ProviderProviderAnalyticsDashboardsAPI:
|
|
|
4687
4112
|
"""Create provider analytics dashboard. Returns Marketplace specific `id`. Not to be confused with the
|
|
4688
4113
|
Lakeview dashboard id.
|
|
4689
4114
|
|
|
4115
|
+
|
|
4690
4116
|
:returns: :class:`ProviderAnalyticsDashboard`
|
|
4691
4117
|
"""
|
|
4692
4118
|
|
|
@@ -4700,6 +4126,7 @@ class ProviderProviderAnalyticsDashboardsAPI:
|
|
|
4700
4126
|
def get(self) -> ListProviderAnalyticsDashboardResponse:
|
|
4701
4127
|
"""Get provider analytics dashboard.
|
|
4702
4128
|
|
|
4129
|
+
|
|
4703
4130
|
:returns: :class:`ListProviderAnalyticsDashboardResponse`
|
|
4704
4131
|
"""
|
|
4705
4132
|
|
|
@@ -4713,6 +4140,7 @@ class ProviderProviderAnalyticsDashboardsAPI:
|
|
|
4713
4140
|
def get_latest_version(self) -> GetLatestVersionProviderAnalyticsDashboardResponse:
|
|
4714
4141
|
"""Get latest version of provider analytics dashboard.
|
|
4715
4142
|
|
|
4143
|
+
|
|
4716
4144
|
:returns: :class:`GetLatestVersionProviderAnalyticsDashboardResponse`
|
|
4717
4145
|
"""
|
|
4718
4146
|
|