databricks-sdk 0.38.0__py3-none-any.whl → 0.39.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +21 -0
- databricks/sdk/mixins/open_ai_client.py +2 -2
- databricks/sdk/service/apps.py +175 -0
- databricks/sdk/service/billing.py +247 -0
- databricks/sdk/service/catalog.py +1794 -61
- databricks/sdk/service/cleanrooms.py +1281 -0
- databricks/sdk/service/compute.py +1486 -8
- databricks/sdk/service/dashboards.py +326 -1
- databricks/sdk/service/files.py +162 -2
- databricks/sdk/service/iam.py +351 -0
- databricks/sdk/service/jobs.py +1264 -8
- databricks/sdk/service/marketplace.py +688 -0
- databricks/sdk/service/ml.py +1038 -2
- databricks/sdk/service/oauth2.py +175 -0
- databricks/sdk/service/pipelines.py +520 -0
- databricks/sdk/service/provisioning.py +387 -0
- databricks/sdk/service/serving.py +615 -0
- databricks/sdk/service/settings.py +1186 -1
- databricks/sdk/service/sharing.py +326 -2
- databricks/sdk/service/sql.py +1186 -2
- databricks/sdk/service/vectorsearch.py +290 -0
- databricks/sdk/service/workspace.py +451 -0
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/METADATA +26 -26
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/RECORD +29 -28
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.39.0.dist-info}/top_level.txt +0 -0
|
@@ -27,6 +27,13 @@ class AddExchangeForListingRequest:
|
|
|
27
27
|
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
28
28
|
return body
|
|
29
29
|
|
|
30
|
+
def as_shallow_dict(self) -> dict:
|
|
31
|
+
"""Serializes the AddExchangeForListingRequest into a shallow dictionary of its immediate attributes."""
|
|
32
|
+
body = {}
|
|
33
|
+
if self.exchange_id is not None: body['exchange_id'] = self.exchange_id
|
|
34
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
35
|
+
return body
|
|
36
|
+
|
|
30
37
|
@classmethod
|
|
31
38
|
def from_dict(cls, d: Dict[str, any]) -> AddExchangeForListingRequest:
|
|
32
39
|
"""Deserializes the AddExchangeForListingRequest from a dictionary."""
|
|
@@ -43,6 +50,12 @@ class AddExchangeForListingResponse:
|
|
|
43
50
|
if self.exchange_for_listing: body['exchange_for_listing'] = self.exchange_for_listing.as_dict()
|
|
44
51
|
return body
|
|
45
52
|
|
|
53
|
+
def as_shallow_dict(self) -> dict:
|
|
54
|
+
"""Serializes the AddExchangeForListingResponse into a shallow dictionary of its immediate attributes."""
|
|
55
|
+
body = {}
|
|
56
|
+
if self.exchange_for_listing: body['exchange_for_listing'] = self.exchange_for_listing
|
|
57
|
+
return body
|
|
58
|
+
|
|
46
59
|
@classmethod
|
|
47
60
|
def from_dict(cls, d: Dict[str, any]) -> AddExchangeForListingResponse:
|
|
48
61
|
"""Deserializes the AddExchangeForListingResponse from a dictionary."""
|
|
@@ -69,6 +82,12 @@ class BatchGetListingsResponse:
|
|
|
69
82
|
if self.listings: body['listings'] = [v.as_dict() for v in self.listings]
|
|
70
83
|
return body
|
|
71
84
|
|
|
85
|
+
def as_shallow_dict(self) -> dict:
|
|
86
|
+
"""Serializes the BatchGetListingsResponse into a shallow dictionary of its immediate attributes."""
|
|
87
|
+
body = {}
|
|
88
|
+
if self.listings: body['listings'] = self.listings
|
|
89
|
+
return body
|
|
90
|
+
|
|
72
91
|
@classmethod
|
|
73
92
|
def from_dict(cls, d: Dict[str, any]) -> BatchGetListingsResponse:
|
|
74
93
|
"""Deserializes the BatchGetListingsResponse from a dictionary."""
|
|
@@ -85,6 +104,12 @@ class BatchGetProvidersResponse:
|
|
|
85
104
|
if self.providers: body['providers'] = [v.as_dict() for v in self.providers]
|
|
86
105
|
return body
|
|
87
106
|
|
|
107
|
+
def as_shallow_dict(self) -> dict:
|
|
108
|
+
"""Serializes the BatchGetProvidersResponse into a shallow dictionary of its immediate attributes."""
|
|
109
|
+
body = {}
|
|
110
|
+
if self.providers: body['providers'] = self.providers
|
|
111
|
+
return body
|
|
112
|
+
|
|
88
113
|
@classmethod
|
|
89
114
|
def from_dict(cls, d: Dict[str, any]) -> BatchGetProvidersResponse:
|
|
90
115
|
"""Deserializes the BatchGetProvidersResponse from a dictionary."""
|
|
@@ -127,6 +152,12 @@ class ConsumerTerms:
|
|
|
127
152
|
if self.version is not None: body['version'] = self.version
|
|
128
153
|
return body
|
|
129
154
|
|
|
155
|
+
def as_shallow_dict(self) -> dict:
|
|
156
|
+
"""Serializes the ConsumerTerms into a shallow dictionary of its immediate attributes."""
|
|
157
|
+
body = {}
|
|
158
|
+
if self.version is not None: body['version'] = self.version
|
|
159
|
+
return body
|
|
160
|
+
|
|
130
161
|
@classmethod
|
|
131
162
|
def from_dict(cls, d: Dict[str, any]) -> ConsumerTerms:
|
|
132
163
|
"""Deserializes the ConsumerTerms from a dictionary."""
|
|
@@ -154,6 +185,15 @@ class ContactInfo:
|
|
|
154
185
|
if self.last_name is not None: body['last_name'] = self.last_name
|
|
155
186
|
return body
|
|
156
187
|
|
|
188
|
+
def as_shallow_dict(self) -> dict:
|
|
189
|
+
"""Serializes the ContactInfo into a shallow dictionary of its immediate attributes."""
|
|
190
|
+
body = {}
|
|
191
|
+
if self.company is not None: body['company'] = self.company
|
|
192
|
+
if self.email is not None: body['email'] = self.email
|
|
193
|
+
if self.first_name is not None: body['first_name'] = self.first_name
|
|
194
|
+
if self.last_name is not None: body['last_name'] = self.last_name
|
|
195
|
+
return body
|
|
196
|
+
|
|
157
197
|
@classmethod
|
|
158
198
|
def from_dict(cls, d: Dict[str, any]) -> ContactInfo:
|
|
159
199
|
"""Deserializes the ContactInfo from a dictionary."""
|
|
@@ -179,6 +219,12 @@ class CreateExchangeFilterRequest:
|
|
|
179
219
|
if self.filter: body['filter'] = self.filter.as_dict()
|
|
180
220
|
return body
|
|
181
221
|
|
|
222
|
+
def as_shallow_dict(self) -> dict:
|
|
223
|
+
"""Serializes the CreateExchangeFilterRequest into a shallow dictionary of its immediate attributes."""
|
|
224
|
+
body = {}
|
|
225
|
+
if self.filter: body['filter'] = self.filter
|
|
226
|
+
return body
|
|
227
|
+
|
|
182
228
|
@classmethod
|
|
183
229
|
def from_dict(cls, d: Dict[str, any]) -> CreateExchangeFilterRequest:
|
|
184
230
|
"""Deserializes the CreateExchangeFilterRequest from a dictionary."""
|
|
@@ -195,6 +241,12 @@ class CreateExchangeFilterResponse:
|
|
|
195
241
|
if self.filter_id is not None: body['filter_id'] = self.filter_id
|
|
196
242
|
return body
|
|
197
243
|
|
|
244
|
+
def as_shallow_dict(self) -> dict:
|
|
245
|
+
"""Serializes the CreateExchangeFilterResponse into a shallow dictionary of its immediate attributes."""
|
|
246
|
+
body = {}
|
|
247
|
+
if self.filter_id is not None: body['filter_id'] = self.filter_id
|
|
248
|
+
return body
|
|
249
|
+
|
|
198
250
|
@classmethod
|
|
199
251
|
def from_dict(cls, d: Dict[str, any]) -> CreateExchangeFilterResponse:
|
|
200
252
|
"""Deserializes the CreateExchangeFilterResponse from a dictionary."""
|
|
@@ -211,6 +263,12 @@ class CreateExchangeRequest:
|
|
|
211
263
|
if self.exchange: body['exchange'] = self.exchange.as_dict()
|
|
212
264
|
return body
|
|
213
265
|
|
|
266
|
+
def as_shallow_dict(self) -> dict:
|
|
267
|
+
"""Serializes the CreateExchangeRequest into a shallow dictionary of its immediate attributes."""
|
|
268
|
+
body = {}
|
|
269
|
+
if self.exchange: body['exchange'] = self.exchange
|
|
270
|
+
return body
|
|
271
|
+
|
|
214
272
|
@classmethod
|
|
215
273
|
def from_dict(cls, d: Dict[str, any]) -> CreateExchangeRequest:
|
|
216
274
|
"""Deserializes the CreateExchangeRequest from a dictionary."""
|
|
@@ -227,6 +285,12 @@ class CreateExchangeResponse:
|
|
|
227
285
|
if self.exchange_id is not None: body['exchange_id'] = self.exchange_id
|
|
228
286
|
return body
|
|
229
287
|
|
|
288
|
+
def as_shallow_dict(self) -> dict:
|
|
289
|
+
"""Serializes the CreateExchangeResponse into a shallow dictionary of its immediate attributes."""
|
|
290
|
+
body = {}
|
|
291
|
+
if self.exchange_id is not None: body['exchange_id'] = self.exchange_id
|
|
292
|
+
return body
|
|
293
|
+
|
|
230
294
|
@classmethod
|
|
231
295
|
def from_dict(cls, d: Dict[str, any]) -> CreateExchangeResponse:
|
|
232
296
|
"""Deserializes the CreateExchangeResponse from a dictionary."""
|
|
@@ -253,6 +317,15 @@ class CreateFileRequest:
|
|
|
253
317
|
if self.mime_type is not None: body['mime_type'] = self.mime_type
|
|
254
318
|
return body
|
|
255
319
|
|
|
320
|
+
def as_shallow_dict(self) -> dict:
|
|
321
|
+
"""Serializes the CreateFileRequest into a shallow dictionary of its immediate attributes."""
|
|
322
|
+
body = {}
|
|
323
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
324
|
+
if self.file_parent: body['file_parent'] = self.file_parent
|
|
325
|
+
if self.marketplace_file_type is not None: body['marketplace_file_type'] = self.marketplace_file_type
|
|
326
|
+
if self.mime_type is not None: body['mime_type'] = self.mime_type
|
|
327
|
+
return body
|
|
328
|
+
|
|
256
329
|
@classmethod
|
|
257
330
|
def from_dict(cls, d: Dict[str, any]) -> CreateFileRequest:
|
|
258
331
|
"""Deserializes the CreateFileRequest from a dictionary."""
|
|
@@ -276,6 +349,13 @@ class CreateFileResponse:
|
|
|
276
349
|
if self.upload_url is not None: body['upload_url'] = self.upload_url
|
|
277
350
|
return body
|
|
278
351
|
|
|
352
|
+
def as_shallow_dict(self) -> dict:
|
|
353
|
+
"""Serializes the CreateFileResponse into a shallow dictionary of its immediate attributes."""
|
|
354
|
+
body = {}
|
|
355
|
+
if self.file_info: body['file_info'] = self.file_info
|
|
356
|
+
if self.upload_url is not None: body['upload_url'] = self.upload_url
|
|
357
|
+
return body
|
|
358
|
+
|
|
279
359
|
@classmethod
|
|
280
360
|
def from_dict(cls, d: Dict[str, any]) -> CreateFileResponse:
|
|
281
361
|
"""Deserializes the CreateFileResponse from a dictionary."""
|
|
@@ -309,6 +389,17 @@ class CreateInstallationRequest:
|
|
|
309
389
|
if self.share_name is not None: body['share_name'] = self.share_name
|
|
310
390
|
return body
|
|
311
391
|
|
|
392
|
+
def as_shallow_dict(self) -> dict:
|
|
393
|
+
"""Serializes the CreateInstallationRequest into a shallow dictionary of its immediate attributes."""
|
|
394
|
+
body = {}
|
|
395
|
+
if self.accepted_consumer_terms: body['accepted_consumer_terms'] = self.accepted_consumer_terms
|
|
396
|
+
if self.catalog_name is not None: body['catalog_name'] = self.catalog_name
|
|
397
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
398
|
+
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type
|
|
399
|
+
if self.repo_detail: body['repo_detail'] = self.repo_detail
|
|
400
|
+
if self.share_name is not None: body['share_name'] = self.share_name
|
|
401
|
+
return body
|
|
402
|
+
|
|
312
403
|
@classmethod
|
|
313
404
|
def from_dict(cls, d: Dict[str, any]) -> CreateInstallationRequest:
|
|
314
405
|
"""Deserializes the CreateInstallationRequest from a dictionary."""
|
|
@@ -330,6 +421,12 @@ class CreateListingRequest:
|
|
|
330
421
|
if self.listing: body['listing'] = self.listing.as_dict()
|
|
331
422
|
return body
|
|
332
423
|
|
|
424
|
+
def as_shallow_dict(self) -> dict:
|
|
425
|
+
"""Serializes the CreateListingRequest into a shallow dictionary of its immediate attributes."""
|
|
426
|
+
body = {}
|
|
427
|
+
if self.listing: body['listing'] = self.listing
|
|
428
|
+
return body
|
|
429
|
+
|
|
333
430
|
@classmethod
|
|
334
431
|
def from_dict(cls, d: Dict[str, any]) -> CreateListingRequest:
|
|
335
432
|
"""Deserializes the CreateListingRequest from a dictionary."""
|
|
@@ -346,6 +443,12 @@ class CreateListingResponse:
|
|
|
346
443
|
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
347
444
|
return body
|
|
348
445
|
|
|
446
|
+
def as_shallow_dict(self) -> dict:
|
|
447
|
+
"""Serializes the CreateListingResponse into a shallow dictionary of its immediate attributes."""
|
|
448
|
+
body = {}
|
|
449
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
450
|
+
return body
|
|
451
|
+
|
|
349
452
|
@classmethod
|
|
350
453
|
def from_dict(cls, d: Dict[str, any]) -> CreateListingResponse:
|
|
351
454
|
"""Deserializes the CreateListingResponse from a dictionary."""
|
|
@@ -389,6 +492,20 @@ class CreatePersonalizationRequest:
|
|
|
389
492
|
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type.value
|
|
390
493
|
return body
|
|
391
494
|
|
|
495
|
+
def as_shallow_dict(self) -> dict:
|
|
496
|
+
"""Serializes the CreatePersonalizationRequest into a shallow dictionary of its immediate attributes."""
|
|
497
|
+
body = {}
|
|
498
|
+
if self.accepted_consumer_terms: body['accepted_consumer_terms'] = self.accepted_consumer_terms
|
|
499
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
500
|
+
if self.company is not None: body['company'] = self.company
|
|
501
|
+
if self.first_name is not None: body['first_name'] = self.first_name
|
|
502
|
+
if self.intended_use is not None: body['intended_use'] = self.intended_use
|
|
503
|
+
if self.is_from_lighthouse is not None: body['is_from_lighthouse'] = self.is_from_lighthouse
|
|
504
|
+
if self.last_name is not None: body['last_name'] = self.last_name
|
|
505
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
506
|
+
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type
|
|
507
|
+
return body
|
|
508
|
+
|
|
392
509
|
@classmethod
|
|
393
510
|
def from_dict(cls, d: Dict[str, any]) -> CreatePersonalizationRequest:
|
|
394
511
|
"""Deserializes the CreatePersonalizationRequest from a dictionary."""
|
|
@@ -413,6 +530,12 @@ class CreatePersonalizationRequestResponse:
|
|
|
413
530
|
if self.id is not None: body['id'] = self.id
|
|
414
531
|
return body
|
|
415
532
|
|
|
533
|
+
def as_shallow_dict(self) -> dict:
|
|
534
|
+
"""Serializes the CreatePersonalizationRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
535
|
+
body = {}
|
|
536
|
+
if self.id is not None: body['id'] = self.id
|
|
537
|
+
return body
|
|
538
|
+
|
|
416
539
|
@classmethod
|
|
417
540
|
def from_dict(cls, d: Dict[str, any]) -> CreatePersonalizationRequestResponse:
|
|
418
541
|
"""Deserializes the CreatePersonalizationRequestResponse from a dictionary."""
|
|
@@ -429,6 +552,12 @@ class CreateProviderRequest:
|
|
|
429
552
|
if self.provider: body['provider'] = self.provider.as_dict()
|
|
430
553
|
return body
|
|
431
554
|
|
|
555
|
+
def as_shallow_dict(self) -> dict:
|
|
556
|
+
"""Serializes the CreateProviderRequest into a shallow dictionary of its immediate attributes."""
|
|
557
|
+
body = {}
|
|
558
|
+
if self.provider: body['provider'] = self.provider
|
|
559
|
+
return body
|
|
560
|
+
|
|
432
561
|
@classmethod
|
|
433
562
|
def from_dict(cls, d: Dict[str, any]) -> CreateProviderRequest:
|
|
434
563
|
"""Deserializes the CreateProviderRequest from a dictionary."""
|
|
@@ -445,6 +574,12 @@ class CreateProviderResponse:
|
|
|
445
574
|
if self.id is not None: body['id'] = self.id
|
|
446
575
|
return body
|
|
447
576
|
|
|
577
|
+
def as_shallow_dict(self) -> dict:
|
|
578
|
+
"""Serializes the CreateProviderResponse into a shallow dictionary of its immediate attributes."""
|
|
579
|
+
body = {}
|
|
580
|
+
if self.id is not None: body['id'] = self.id
|
|
581
|
+
return body
|
|
582
|
+
|
|
448
583
|
@classmethod
|
|
449
584
|
def from_dict(cls, d: Dict[str, any]) -> CreateProviderResponse:
|
|
450
585
|
"""Deserializes the CreateProviderResponse from a dictionary."""
|
|
@@ -477,6 +612,13 @@ class DataRefreshInfo:
|
|
|
477
612
|
if self.unit is not None: body['unit'] = self.unit.value
|
|
478
613
|
return body
|
|
479
614
|
|
|
615
|
+
def as_shallow_dict(self) -> dict:
|
|
616
|
+
"""Serializes the DataRefreshInfo into a shallow dictionary of its immediate attributes."""
|
|
617
|
+
body = {}
|
|
618
|
+
if self.interval is not None: body['interval'] = self.interval
|
|
619
|
+
if self.unit is not None: body['unit'] = self.unit
|
|
620
|
+
return body
|
|
621
|
+
|
|
480
622
|
@classmethod
|
|
481
623
|
def from_dict(cls, d: Dict[str, any]) -> DataRefreshInfo:
|
|
482
624
|
"""Deserializes the DataRefreshInfo from a dictionary."""
|
|
@@ -491,6 +633,11 @@ class DeleteExchangeFilterResponse:
|
|
|
491
633
|
body = {}
|
|
492
634
|
return body
|
|
493
635
|
|
|
636
|
+
def as_shallow_dict(self) -> dict:
|
|
637
|
+
"""Serializes the DeleteExchangeFilterResponse into a shallow dictionary of its immediate attributes."""
|
|
638
|
+
body = {}
|
|
639
|
+
return body
|
|
640
|
+
|
|
494
641
|
@classmethod
|
|
495
642
|
def from_dict(cls, d: Dict[str, any]) -> DeleteExchangeFilterResponse:
|
|
496
643
|
"""Deserializes the DeleteExchangeFilterResponse from a dictionary."""
|
|
@@ -505,6 +652,11 @@ class DeleteExchangeResponse:
|
|
|
505
652
|
body = {}
|
|
506
653
|
return body
|
|
507
654
|
|
|
655
|
+
def as_shallow_dict(self) -> dict:
|
|
656
|
+
"""Serializes the DeleteExchangeResponse into a shallow dictionary of its immediate attributes."""
|
|
657
|
+
body = {}
|
|
658
|
+
return body
|
|
659
|
+
|
|
508
660
|
@classmethod
|
|
509
661
|
def from_dict(cls, d: Dict[str, any]) -> DeleteExchangeResponse:
|
|
510
662
|
"""Deserializes the DeleteExchangeResponse from a dictionary."""
|
|
@@ -519,6 +671,11 @@ class DeleteFileResponse:
|
|
|
519
671
|
body = {}
|
|
520
672
|
return body
|
|
521
673
|
|
|
674
|
+
def as_shallow_dict(self) -> dict:
|
|
675
|
+
"""Serializes the DeleteFileResponse into a shallow dictionary of its immediate attributes."""
|
|
676
|
+
body = {}
|
|
677
|
+
return body
|
|
678
|
+
|
|
522
679
|
@classmethod
|
|
523
680
|
def from_dict(cls, d: Dict[str, any]) -> DeleteFileResponse:
|
|
524
681
|
"""Deserializes the DeleteFileResponse from a dictionary."""
|
|
@@ -533,6 +690,11 @@ class DeleteInstallationResponse:
|
|
|
533
690
|
body = {}
|
|
534
691
|
return body
|
|
535
692
|
|
|
693
|
+
def as_shallow_dict(self) -> dict:
|
|
694
|
+
"""Serializes the DeleteInstallationResponse into a shallow dictionary of its immediate attributes."""
|
|
695
|
+
body = {}
|
|
696
|
+
return body
|
|
697
|
+
|
|
536
698
|
@classmethod
|
|
537
699
|
def from_dict(cls, d: Dict[str, any]) -> DeleteInstallationResponse:
|
|
538
700
|
"""Deserializes the DeleteInstallationResponse from a dictionary."""
|
|
@@ -547,6 +709,11 @@ class DeleteListingResponse:
|
|
|
547
709
|
body = {}
|
|
548
710
|
return body
|
|
549
711
|
|
|
712
|
+
def as_shallow_dict(self) -> dict:
|
|
713
|
+
"""Serializes the DeleteListingResponse into a shallow dictionary of its immediate attributes."""
|
|
714
|
+
body = {}
|
|
715
|
+
return body
|
|
716
|
+
|
|
550
717
|
@classmethod
|
|
551
718
|
def from_dict(cls, d: Dict[str, any]) -> DeleteListingResponse:
|
|
552
719
|
"""Deserializes the DeleteListingResponse from a dictionary."""
|
|
@@ -561,6 +728,11 @@ class DeleteProviderResponse:
|
|
|
561
728
|
body = {}
|
|
562
729
|
return body
|
|
563
730
|
|
|
731
|
+
def as_shallow_dict(self) -> dict:
|
|
732
|
+
"""Serializes the DeleteProviderResponse into a shallow dictionary of its immediate attributes."""
|
|
733
|
+
body = {}
|
|
734
|
+
return body
|
|
735
|
+
|
|
564
736
|
@classmethod
|
|
565
737
|
def from_dict(cls, d: Dict[str, any]) -> DeleteProviderResponse:
|
|
566
738
|
"""Deserializes the DeleteProviderResponse from a dictionary."""
|
|
@@ -607,6 +779,20 @@ class Exchange:
|
|
|
607
779
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
608
780
|
return body
|
|
609
781
|
|
|
782
|
+
def as_shallow_dict(self) -> dict:
|
|
783
|
+
"""Serializes the Exchange into a shallow dictionary of its immediate attributes."""
|
|
784
|
+
body = {}
|
|
785
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
786
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
787
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
788
|
+
if self.filters: body['filters'] = self.filters
|
|
789
|
+
if self.id is not None: body['id'] = self.id
|
|
790
|
+
if self.linked_listings: body['linked_listings'] = self.linked_listings
|
|
791
|
+
if self.name is not None: body['name'] = self.name
|
|
792
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
793
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
794
|
+
return body
|
|
795
|
+
|
|
610
796
|
@classmethod
|
|
611
797
|
def from_dict(cls, d: Dict[str, any]) -> Exchange:
|
|
612
798
|
"""Deserializes the Exchange from a dictionary."""
|
|
@@ -655,6 +841,20 @@ class ExchangeFilter:
|
|
|
655
841
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
656
842
|
return body
|
|
657
843
|
|
|
844
|
+
def as_shallow_dict(self) -> dict:
|
|
845
|
+
"""Serializes the ExchangeFilter into a shallow dictionary of its immediate attributes."""
|
|
846
|
+
body = {}
|
|
847
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
848
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
849
|
+
if self.exchange_id is not None: body['exchange_id'] = self.exchange_id
|
|
850
|
+
if self.filter_type is not None: body['filter_type'] = self.filter_type
|
|
851
|
+
if self.filter_value is not None: body['filter_value'] = self.filter_value
|
|
852
|
+
if self.id is not None: body['id'] = self.id
|
|
853
|
+
if self.name is not None: body['name'] = self.name
|
|
854
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
855
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
856
|
+
return body
|
|
857
|
+
|
|
658
858
|
@classmethod
|
|
659
859
|
def from_dict(cls, d: Dict[str, any]) -> ExchangeFilter:
|
|
660
860
|
"""Deserializes the ExchangeFilter from a dictionary."""
|
|
@@ -702,6 +902,18 @@ class ExchangeListing:
|
|
|
702
902
|
if self.listing_name is not None: body['listing_name'] = self.listing_name
|
|
703
903
|
return body
|
|
704
904
|
|
|
905
|
+
def as_shallow_dict(self) -> dict:
|
|
906
|
+
"""Serializes the ExchangeListing into a shallow dictionary of its immediate attributes."""
|
|
907
|
+
body = {}
|
|
908
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
909
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
910
|
+
if self.exchange_id is not None: body['exchange_id'] = self.exchange_id
|
|
911
|
+
if self.exchange_name is not None: body['exchange_name'] = self.exchange_name
|
|
912
|
+
if self.id is not None: body['id'] = self.id
|
|
913
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
914
|
+
if self.listing_name is not None: body['listing_name'] = self.listing_name
|
|
915
|
+
return body
|
|
916
|
+
|
|
705
917
|
@classmethod
|
|
706
918
|
def from_dict(cls, d: Dict[str, any]) -> ExchangeListing:
|
|
707
919
|
"""Deserializes the ExchangeListing from a dictionary."""
|
|
@@ -754,6 +966,21 @@ class FileInfo:
|
|
|
754
966
|
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
755
967
|
return body
|
|
756
968
|
|
|
969
|
+
def as_shallow_dict(self) -> dict:
|
|
970
|
+
"""Serializes the FileInfo into a shallow dictionary of its immediate attributes."""
|
|
971
|
+
body = {}
|
|
972
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
973
|
+
if self.display_name is not None: body['display_name'] = self.display_name
|
|
974
|
+
if self.download_link is not None: body['download_link'] = self.download_link
|
|
975
|
+
if self.file_parent: body['file_parent'] = self.file_parent
|
|
976
|
+
if self.id is not None: body['id'] = self.id
|
|
977
|
+
if self.marketplace_file_type is not None: body['marketplace_file_type'] = self.marketplace_file_type
|
|
978
|
+
if self.mime_type is not None: body['mime_type'] = self.mime_type
|
|
979
|
+
if self.status is not None: body['status'] = self.status
|
|
980
|
+
if self.status_message is not None: body['status_message'] = self.status_message
|
|
981
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
982
|
+
return body
|
|
983
|
+
|
|
757
984
|
@classmethod
|
|
758
985
|
def from_dict(cls, d: Dict[str, any]) -> FileInfo:
|
|
759
986
|
"""Deserializes the FileInfo from a dictionary."""
|
|
@@ -783,6 +1010,13 @@ class FileParent:
|
|
|
783
1010
|
if self.parent_id is not None: body['parent_id'] = self.parent_id
|
|
784
1011
|
return body
|
|
785
1012
|
|
|
1013
|
+
def as_shallow_dict(self) -> dict:
|
|
1014
|
+
"""Serializes the FileParent into a shallow dictionary of its immediate attributes."""
|
|
1015
|
+
body = {}
|
|
1016
|
+
if self.file_parent_type is not None: body['file_parent_type'] = self.file_parent_type
|
|
1017
|
+
if self.parent_id is not None: body['parent_id'] = self.parent_id
|
|
1018
|
+
return body
|
|
1019
|
+
|
|
786
1020
|
@classmethod
|
|
787
1021
|
def from_dict(cls, d: Dict[str, any]) -> FileParent:
|
|
788
1022
|
"""Deserializes the FileParent from a dictionary."""
|
|
@@ -820,6 +1054,12 @@ class GetExchangeResponse:
|
|
|
820
1054
|
if self.exchange: body['exchange'] = self.exchange.as_dict()
|
|
821
1055
|
return body
|
|
822
1056
|
|
|
1057
|
+
def as_shallow_dict(self) -> dict:
|
|
1058
|
+
"""Serializes the GetExchangeResponse into a shallow dictionary of its immediate attributes."""
|
|
1059
|
+
body = {}
|
|
1060
|
+
if self.exchange: body['exchange'] = self.exchange
|
|
1061
|
+
return body
|
|
1062
|
+
|
|
823
1063
|
@classmethod
|
|
824
1064
|
def from_dict(cls, d: Dict[str, any]) -> GetExchangeResponse:
|
|
825
1065
|
"""Deserializes the GetExchangeResponse from a dictionary."""
|
|
@@ -836,6 +1076,12 @@ class GetFileResponse:
|
|
|
836
1076
|
if self.file_info: body['file_info'] = self.file_info.as_dict()
|
|
837
1077
|
return body
|
|
838
1078
|
|
|
1079
|
+
def as_shallow_dict(self) -> dict:
|
|
1080
|
+
"""Serializes the GetFileResponse into a shallow dictionary of its immediate attributes."""
|
|
1081
|
+
body = {}
|
|
1082
|
+
if self.file_info: body['file_info'] = self.file_info
|
|
1083
|
+
return body
|
|
1084
|
+
|
|
839
1085
|
@classmethod
|
|
840
1086
|
def from_dict(cls, d: Dict[str, any]) -> GetFileResponse:
|
|
841
1087
|
"""Deserializes the GetFileResponse from a dictionary."""
|
|
@@ -853,6 +1099,12 @@ class GetLatestVersionProviderAnalyticsDashboardResponse:
|
|
|
853
1099
|
if self.version is not None: body['version'] = self.version
|
|
854
1100
|
return body
|
|
855
1101
|
|
|
1102
|
+
def as_shallow_dict(self) -> dict:
|
|
1103
|
+
"""Serializes the GetLatestVersionProviderAnalyticsDashboardResponse into a shallow dictionary of its immediate attributes."""
|
|
1104
|
+
body = {}
|
|
1105
|
+
if self.version is not None: body['version'] = self.version
|
|
1106
|
+
return body
|
|
1107
|
+
|
|
856
1108
|
@classmethod
|
|
857
1109
|
def from_dict(cls, d: Dict[str, any]) -> GetLatestVersionProviderAnalyticsDashboardResponse:
|
|
858
1110
|
"""Deserializes the GetLatestVersionProviderAnalyticsDashboardResponse from a dictionary."""
|
|
@@ -873,6 +1125,13 @@ class GetListingContentMetadataResponse:
|
|
|
873
1125
|
body['shared_data_objects'] = [v.as_dict() for v in self.shared_data_objects]
|
|
874
1126
|
return body
|
|
875
1127
|
|
|
1128
|
+
def as_shallow_dict(self) -> dict:
|
|
1129
|
+
"""Serializes the GetListingContentMetadataResponse into a shallow dictionary of its immediate attributes."""
|
|
1130
|
+
body = {}
|
|
1131
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1132
|
+
if self.shared_data_objects: body['shared_data_objects'] = self.shared_data_objects
|
|
1133
|
+
return body
|
|
1134
|
+
|
|
876
1135
|
@classmethod
|
|
877
1136
|
def from_dict(cls, d: Dict[str, any]) -> GetListingContentMetadataResponse:
|
|
878
1137
|
"""Deserializes the GetListingContentMetadataResponse from a dictionary."""
|
|
@@ -890,6 +1149,12 @@ class GetListingResponse:
|
|
|
890
1149
|
if self.listing: body['listing'] = self.listing.as_dict()
|
|
891
1150
|
return body
|
|
892
1151
|
|
|
1152
|
+
def as_shallow_dict(self) -> dict:
|
|
1153
|
+
"""Serializes the GetListingResponse into a shallow dictionary of its immediate attributes."""
|
|
1154
|
+
body = {}
|
|
1155
|
+
if self.listing: body['listing'] = self.listing
|
|
1156
|
+
return body
|
|
1157
|
+
|
|
893
1158
|
@classmethod
|
|
894
1159
|
def from_dict(cls, d: Dict[str, any]) -> GetListingResponse:
|
|
895
1160
|
"""Deserializes the GetListingResponse from a dictionary."""
|
|
@@ -909,6 +1174,13 @@ class GetListingsResponse:
|
|
|
909
1174
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
910
1175
|
return body
|
|
911
1176
|
|
|
1177
|
+
def as_shallow_dict(self) -> dict:
|
|
1178
|
+
"""Serializes the GetListingsResponse into a shallow dictionary of its immediate attributes."""
|
|
1179
|
+
body = {}
|
|
1180
|
+
if self.listings: body['listings'] = self.listings
|
|
1181
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1182
|
+
return body
|
|
1183
|
+
|
|
912
1184
|
@classmethod
|
|
913
1185
|
def from_dict(cls, d: Dict[str, any]) -> GetListingsResponse:
|
|
914
1186
|
"""Deserializes the GetListingsResponse from a dictionary."""
|
|
@@ -927,6 +1199,12 @@ class GetPersonalizationRequestResponse:
|
|
|
927
1199
|
body['personalization_requests'] = [v.as_dict() for v in self.personalization_requests]
|
|
928
1200
|
return body
|
|
929
1201
|
|
|
1202
|
+
def as_shallow_dict(self) -> dict:
|
|
1203
|
+
"""Serializes the GetPersonalizationRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
1204
|
+
body = {}
|
|
1205
|
+
if self.personalization_requests: body['personalization_requests'] = self.personalization_requests
|
|
1206
|
+
return body
|
|
1207
|
+
|
|
930
1208
|
@classmethod
|
|
931
1209
|
def from_dict(cls, d: Dict[str, any]) -> GetPersonalizationRequestResponse:
|
|
932
1210
|
"""Deserializes the GetPersonalizationRequestResponse from a dictionary."""
|
|
@@ -944,6 +1222,12 @@ class GetProviderResponse:
|
|
|
944
1222
|
if self.provider: body['provider'] = self.provider.as_dict()
|
|
945
1223
|
return body
|
|
946
1224
|
|
|
1225
|
+
def as_shallow_dict(self) -> dict:
|
|
1226
|
+
"""Serializes the GetProviderResponse into a shallow dictionary of its immediate attributes."""
|
|
1227
|
+
body = {}
|
|
1228
|
+
if self.provider: body['provider'] = self.provider
|
|
1229
|
+
return body
|
|
1230
|
+
|
|
947
1231
|
@classmethod
|
|
948
1232
|
def from_dict(cls, d: Dict[str, any]) -> GetProviderResponse:
|
|
949
1233
|
"""Deserializes the GetProviderResponse from a dictionary."""
|
|
@@ -960,6 +1244,12 @@ class Installation:
|
|
|
960
1244
|
if self.installation: body['installation'] = self.installation.as_dict()
|
|
961
1245
|
return body
|
|
962
1246
|
|
|
1247
|
+
def as_shallow_dict(self) -> dict:
|
|
1248
|
+
"""Serializes the Installation into a shallow dictionary of its immediate attributes."""
|
|
1249
|
+
body = {}
|
|
1250
|
+
if self.installation: body['installation'] = self.installation
|
|
1251
|
+
return body
|
|
1252
|
+
|
|
963
1253
|
@classmethod
|
|
964
1254
|
def from_dict(cls, d: Dict[str, any]) -> Installation:
|
|
965
1255
|
"""Deserializes the Installation from a dictionary."""
|
|
@@ -1012,6 +1302,24 @@ class InstallationDetail:
|
|
|
1012
1302
|
if self.tokens: body['tokens'] = [v.as_dict() for v in self.tokens]
|
|
1013
1303
|
return body
|
|
1014
1304
|
|
|
1305
|
+
def as_shallow_dict(self) -> dict:
|
|
1306
|
+
"""Serializes the InstallationDetail into a shallow dictionary of its immediate attributes."""
|
|
1307
|
+
body = {}
|
|
1308
|
+
if self.catalog_name is not None: body['catalog_name'] = self.catalog_name
|
|
1309
|
+
if self.error_message is not None: body['error_message'] = self.error_message
|
|
1310
|
+
if self.id is not None: body['id'] = self.id
|
|
1311
|
+
if self.installed_on is not None: body['installed_on'] = self.installed_on
|
|
1312
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
1313
|
+
if self.listing_name is not None: body['listing_name'] = self.listing_name
|
|
1314
|
+
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type
|
|
1315
|
+
if self.repo_name is not None: body['repo_name'] = self.repo_name
|
|
1316
|
+
if self.repo_path is not None: body['repo_path'] = self.repo_path
|
|
1317
|
+
if self.share_name is not None: body['share_name'] = self.share_name
|
|
1318
|
+
if self.status is not None: body['status'] = self.status
|
|
1319
|
+
if self.token_detail: body['token_detail'] = self.token_detail
|
|
1320
|
+
if self.tokens: body['tokens'] = self.tokens
|
|
1321
|
+
return body
|
|
1322
|
+
|
|
1015
1323
|
@classmethod
|
|
1016
1324
|
def from_dict(cls, d: Dict[str, any]) -> InstallationDetail:
|
|
1017
1325
|
"""Deserializes the InstallationDetail from a dictionary."""
|
|
@@ -1049,6 +1357,13 @@ class ListAllInstallationsResponse:
|
|
|
1049
1357
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1050
1358
|
return body
|
|
1051
1359
|
|
|
1360
|
+
def as_shallow_dict(self) -> dict:
|
|
1361
|
+
"""Serializes the ListAllInstallationsResponse into a shallow dictionary of its immediate attributes."""
|
|
1362
|
+
body = {}
|
|
1363
|
+
if self.installations: body['installations'] = self.installations
|
|
1364
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1365
|
+
return body
|
|
1366
|
+
|
|
1052
1367
|
@classmethod
|
|
1053
1368
|
def from_dict(cls, d: Dict[str, any]) -> ListAllInstallationsResponse:
|
|
1054
1369
|
"""Deserializes the ListAllInstallationsResponse from a dictionary."""
|
|
@@ -1070,6 +1385,13 @@ class ListAllPersonalizationRequestsResponse:
|
|
|
1070
1385
|
body['personalization_requests'] = [v.as_dict() for v in self.personalization_requests]
|
|
1071
1386
|
return body
|
|
1072
1387
|
|
|
1388
|
+
def as_shallow_dict(self) -> dict:
|
|
1389
|
+
"""Serializes the ListAllPersonalizationRequestsResponse into a shallow dictionary of its immediate attributes."""
|
|
1390
|
+
body = {}
|
|
1391
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1392
|
+
if self.personalization_requests: body['personalization_requests'] = self.personalization_requests
|
|
1393
|
+
return body
|
|
1394
|
+
|
|
1073
1395
|
@classmethod
|
|
1074
1396
|
def from_dict(cls, d: Dict[str, any]) -> ListAllPersonalizationRequestsResponse:
|
|
1075
1397
|
"""Deserializes the ListAllPersonalizationRequestsResponse from a dictionary."""
|
|
@@ -1091,6 +1413,13 @@ class ListExchangeFiltersResponse:
|
|
|
1091
1413
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1092
1414
|
return body
|
|
1093
1415
|
|
|
1416
|
+
def as_shallow_dict(self) -> dict:
|
|
1417
|
+
"""Serializes the ListExchangeFiltersResponse into a shallow dictionary of its immediate attributes."""
|
|
1418
|
+
body = {}
|
|
1419
|
+
if self.filters: body['filters'] = self.filters
|
|
1420
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1421
|
+
return body
|
|
1422
|
+
|
|
1094
1423
|
@classmethod
|
|
1095
1424
|
def from_dict(cls, d: Dict[str, any]) -> ListExchangeFiltersResponse:
|
|
1096
1425
|
"""Deserializes the ListExchangeFiltersResponse from a dictionary."""
|
|
@@ -1111,6 +1440,13 @@ class ListExchangesForListingResponse:
|
|
|
1111
1440
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1112
1441
|
return body
|
|
1113
1442
|
|
|
1443
|
+
def as_shallow_dict(self) -> dict:
|
|
1444
|
+
"""Serializes the ListExchangesForListingResponse into a shallow dictionary of its immediate attributes."""
|
|
1445
|
+
body = {}
|
|
1446
|
+
if self.exchange_listing: body['exchange_listing'] = self.exchange_listing
|
|
1447
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1448
|
+
return body
|
|
1449
|
+
|
|
1114
1450
|
@classmethod
|
|
1115
1451
|
def from_dict(cls, d: Dict[str, any]) -> ListExchangesForListingResponse:
|
|
1116
1452
|
"""Deserializes the ListExchangesForListingResponse from a dictionary."""
|
|
@@ -1131,6 +1467,13 @@ class ListExchangesResponse:
|
|
|
1131
1467
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1132
1468
|
return body
|
|
1133
1469
|
|
|
1470
|
+
def as_shallow_dict(self) -> dict:
|
|
1471
|
+
"""Serializes the ListExchangesResponse into a shallow dictionary of its immediate attributes."""
|
|
1472
|
+
body = {}
|
|
1473
|
+
if self.exchanges: body['exchanges'] = self.exchanges
|
|
1474
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1475
|
+
return body
|
|
1476
|
+
|
|
1134
1477
|
@classmethod
|
|
1135
1478
|
def from_dict(cls, d: Dict[str, any]) -> ListExchangesResponse:
|
|
1136
1479
|
"""Deserializes the ListExchangesResponse from a dictionary."""
|
|
@@ -1151,6 +1494,13 @@ class ListFilesResponse:
|
|
|
1151
1494
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1152
1495
|
return body
|
|
1153
1496
|
|
|
1497
|
+
def as_shallow_dict(self) -> dict:
|
|
1498
|
+
"""Serializes the ListFilesResponse into a shallow dictionary of its immediate attributes."""
|
|
1499
|
+
body = {}
|
|
1500
|
+
if self.file_infos: body['file_infos'] = self.file_infos
|
|
1501
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1502
|
+
return body
|
|
1503
|
+
|
|
1154
1504
|
@classmethod
|
|
1155
1505
|
def from_dict(cls, d: Dict[str, any]) -> ListFilesResponse:
|
|
1156
1506
|
"""Deserializes the ListFilesResponse from a dictionary."""
|
|
@@ -1171,6 +1521,13 @@ class ListFulfillmentsResponse:
|
|
|
1171
1521
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1172
1522
|
return body
|
|
1173
1523
|
|
|
1524
|
+
def as_shallow_dict(self) -> dict:
|
|
1525
|
+
"""Serializes the ListFulfillmentsResponse into a shallow dictionary of its immediate attributes."""
|
|
1526
|
+
body = {}
|
|
1527
|
+
if self.fulfillments: body['fulfillments'] = self.fulfillments
|
|
1528
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1529
|
+
return body
|
|
1530
|
+
|
|
1174
1531
|
@classmethod
|
|
1175
1532
|
def from_dict(cls, d: Dict[str, any]) -> ListFulfillmentsResponse:
|
|
1176
1533
|
"""Deserializes the ListFulfillmentsResponse from a dictionary."""
|
|
@@ -1191,6 +1548,13 @@ class ListInstallationsResponse:
|
|
|
1191
1548
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1192
1549
|
return body
|
|
1193
1550
|
|
|
1551
|
+
def as_shallow_dict(self) -> dict:
|
|
1552
|
+
"""Serializes the ListInstallationsResponse into a shallow dictionary of its immediate attributes."""
|
|
1553
|
+
body = {}
|
|
1554
|
+
if self.installations: body['installations'] = self.installations
|
|
1555
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1556
|
+
return body
|
|
1557
|
+
|
|
1194
1558
|
@classmethod
|
|
1195
1559
|
def from_dict(cls, d: Dict[str, any]) -> ListInstallationsResponse:
|
|
1196
1560
|
"""Deserializes the ListInstallationsResponse from a dictionary."""
|
|
@@ -1211,6 +1575,13 @@ class ListListingsForExchangeResponse:
|
|
|
1211
1575
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1212
1576
|
return body
|
|
1213
1577
|
|
|
1578
|
+
def as_shallow_dict(self) -> dict:
|
|
1579
|
+
"""Serializes the ListListingsForExchangeResponse into a shallow dictionary of its immediate attributes."""
|
|
1580
|
+
body = {}
|
|
1581
|
+
if self.exchange_listings: body['exchange_listings'] = self.exchange_listings
|
|
1582
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1583
|
+
return body
|
|
1584
|
+
|
|
1214
1585
|
@classmethod
|
|
1215
1586
|
def from_dict(cls, d: Dict[str, any]) -> ListListingsForExchangeResponse:
|
|
1216
1587
|
"""Deserializes the ListListingsForExchangeResponse from a dictionary."""
|
|
@@ -1231,6 +1602,13 @@ class ListListingsResponse:
|
|
|
1231
1602
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1232
1603
|
return body
|
|
1233
1604
|
|
|
1605
|
+
def as_shallow_dict(self) -> dict:
|
|
1606
|
+
"""Serializes the ListListingsResponse into a shallow dictionary of its immediate attributes."""
|
|
1607
|
+
body = {}
|
|
1608
|
+
if self.listings: body['listings'] = self.listings
|
|
1609
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1610
|
+
return body
|
|
1611
|
+
|
|
1234
1612
|
@classmethod
|
|
1235
1613
|
def from_dict(cls, d: Dict[str, any]) -> ListListingsResponse:
|
|
1236
1614
|
"""Deserializes the ListListingsResponse from a dictionary."""
|
|
@@ -1255,6 +1633,14 @@ class ListProviderAnalyticsDashboardResponse:
|
|
|
1255
1633
|
if self.version is not None: body['version'] = self.version
|
|
1256
1634
|
return body
|
|
1257
1635
|
|
|
1636
|
+
def as_shallow_dict(self) -> dict:
|
|
1637
|
+
"""Serializes the ListProviderAnalyticsDashboardResponse into a shallow dictionary of its immediate attributes."""
|
|
1638
|
+
body = {}
|
|
1639
|
+
if self.dashboard_id is not None: body['dashboard_id'] = self.dashboard_id
|
|
1640
|
+
if self.id is not None: body['id'] = self.id
|
|
1641
|
+
if self.version is not None: body['version'] = self.version
|
|
1642
|
+
return body
|
|
1643
|
+
|
|
1258
1644
|
@classmethod
|
|
1259
1645
|
def from_dict(cls, d: Dict[str, any]) -> ListProviderAnalyticsDashboardResponse:
|
|
1260
1646
|
"""Deserializes the ListProviderAnalyticsDashboardResponse from a dictionary."""
|
|
@@ -1276,6 +1662,13 @@ class ListProvidersResponse:
|
|
|
1276
1662
|
if self.providers: body['providers'] = [v.as_dict() for v in self.providers]
|
|
1277
1663
|
return body
|
|
1278
1664
|
|
|
1665
|
+
def as_shallow_dict(self) -> dict:
|
|
1666
|
+
"""Serializes the ListProvidersResponse into a shallow dictionary of its immediate attributes."""
|
|
1667
|
+
body = {}
|
|
1668
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1669
|
+
if self.providers: body['providers'] = self.providers
|
|
1670
|
+
return body
|
|
1671
|
+
|
|
1279
1672
|
@classmethod
|
|
1280
1673
|
def from_dict(cls, d: Dict[str, any]) -> ListProvidersResponse:
|
|
1281
1674
|
"""Deserializes the ListProvidersResponse from a dictionary."""
|
|
@@ -1300,6 +1693,14 @@ class Listing:
|
|
|
1300
1693
|
if self.summary: body['summary'] = self.summary.as_dict()
|
|
1301
1694
|
return body
|
|
1302
1695
|
|
|
1696
|
+
def as_shallow_dict(self) -> dict:
|
|
1697
|
+
"""Serializes the Listing into a shallow dictionary of its immediate attributes."""
|
|
1698
|
+
body = {}
|
|
1699
|
+
if self.detail: body['detail'] = self.detail
|
|
1700
|
+
if self.id is not None: body['id'] = self.id
|
|
1701
|
+
if self.summary: body['summary'] = self.summary
|
|
1702
|
+
return body
|
|
1703
|
+
|
|
1303
1704
|
@classmethod
|
|
1304
1705
|
def from_dict(cls, d: Dict[str, any]) -> Listing:
|
|
1305
1706
|
"""Deserializes the Listing from a dictionary."""
|
|
@@ -1392,6 +1793,31 @@ class ListingDetail:
|
|
|
1392
1793
|
if self.update_frequency: body['update_frequency'] = self.update_frequency.as_dict()
|
|
1393
1794
|
return body
|
|
1394
1795
|
|
|
1796
|
+
def as_shallow_dict(self) -> dict:
|
|
1797
|
+
"""Serializes the ListingDetail into a shallow dictionary of its immediate attributes."""
|
|
1798
|
+
body = {}
|
|
1799
|
+
if self.assets: body['assets'] = self.assets
|
|
1800
|
+
if self.collection_date_end is not None: body['collection_date_end'] = self.collection_date_end
|
|
1801
|
+
if self.collection_date_start is not None: body['collection_date_start'] = self.collection_date_start
|
|
1802
|
+
if self.collection_granularity: body['collection_granularity'] = self.collection_granularity
|
|
1803
|
+
if self.cost is not None: body['cost'] = self.cost
|
|
1804
|
+
if self.data_source is not None: body['data_source'] = self.data_source
|
|
1805
|
+
if self.description is not None: body['description'] = self.description
|
|
1806
|
+
if self.documentation_link is not None: body['documentation_link'] = self.documentation_link
|
|
1807
|
+
if self.embedded_notebook_file_infos:
|
|
1808
|
+
body['embedded_notebook_file_infos'] = self.embedded_notebook_file_infos
|
|
1809
|
+
if self.file_ids: body['file_ids'] = self.file_ids
|
|
1810
|
+
if self.geographical_coverage is not None: body['geographical_coverage'] = self.geographical_coverage
|
|
1811
|
+
if self.license is not None: body['license'] = self.license
|
|
1812
|
+
if self.pricing_model is not None: body['pricing_model'] = self.pricing_model
|
|
1813
|
+
if self.privacy_policy_link is not None: body['privacy_policy_link'] = self.privacy_policy_link
|
|
1814
|
+
if self.size is not None: body['size'] = self.size
|
|
1815
|
+
if self.support_link is not None: body['support_link'] = self.support_link
|
|
1816
|
+
if self.tags: body['tags'] = self.tags
|
|
1817
|
+
if self.terms_of_service is not None: body['terms_of_service'] = self.terms_of_service
|
|
1818
|
+
if self.update_frequency: body['update_frequency'] = self.update_frequency
|
|
1819
|
+
return body
|
|
1820
|
+
|
|
1395
1821
|
@classmethod
|
|
1396
1822
|
def from_dict(cls, d: Dict[str, any]) -> ListingDetail:
|
|
1397
1823
|
"""Deserializes the ListingDetail from a dictionary."""
|
|
@@ -1438,6 +1864,16 @@ class ListingFulfillment:
|
|
|
1438
1864
|
if self.share_info: body['share_info'] = self.share_info.as_dict()
|
|
1439
1865
|
return body
|
|
1440
1866
|
|
|
1867
|
+
def as_shallow_dict(self) -> dict:
|
|
1868
|
+
"""Serializes the ListingFulfillment into a shallow dictionary of its immediate attributes."""
|
|
1869
|
+
body = {}
|
|
1870
|
+
if self.fulfillment_type is not None: body['fulfillment_type'] = self.fulfillment_type
|
|
1871
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
1872
|
+
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type
|
|
1873
|
+
if self.repo_info: body['repo_info'] = self.repo_info
|
|
1874
|
+
if self.share_info: body['share_info'] = self.share_info
|
|
1875
|
+
return body
|
|
1876
|
+
|
|
1441
1877
|
@classmethod
|
|
1442
1878
|
def from_dict(cls, d: Dict[str, any]) -> ListingFulfillment:
|
|
1443
1879
|
"""Deserializes the ListingFulfillment from a dictionary."""
|
|
@@ -1458,6 +1894,12 @@ class ListingSetting:
|
|
|
1458
1894
|
if self.visibility is not None: body['visibility'] = self.visibility.value
|
|
1459
1895
|
return body
|
|
1460
1896
|
|
|
1897
|
+
def as_shallow_dict(self) -> dict:
|
|
1898
|
+
"""Serializes the ListingSetting into a shallow dictionary of its immediate attributes."""
|
|
1899
|
+
body = {}
|
|
1900
|
+
if self.visibility is not None: body['visibility'] = self.visibility
|
|
1901
|
+
return body
|
|
1902
|
+
|
|
1461
1903
|
@classmethod
|
|
1462
1904
|
def from_dict(cls, d: Dict[str, any]) -> ListingSetting:
|
|
1463
1905
|
"""Deserializes the ListingSetting from a dictionary."""
|
|
@@ -1548,6 +1990,30 @@ class ListingSummary:
|
|
|
1548
1990
|
if self.updated_by_id is not None: body['updated_by_id'] = self.updated_by_id
|
|
1549
1991
|
return body
|
|
1550
1992
|
|
|
1993
|
+
def as_shallow_dict(self) -> dict:
|
|
1994
|
+
"""Serializes the ListingSummary into a shallow dictionary of its immediate attributes."""
|
|
1995
|
+
body = {}
|
|
1996
|
+
if self.categories: body['categories'] = self.categories
|
|
1997
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
1998
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
1999
|
+
if self.created_by_id is not None: body['created_by_id'] = self.created_by_id
|
|
2000
|
+
if self.exchange_ids: body['exchange_ids'] = self.exchange_ids
|
|
2001
|
+
if self.git_repo: body['git_repo'] = self.git_repo
|
|
2002
|
+
if self.listing_type is not None: body['listingType'] = self.listing_type
|
|
2003
|
+
if self.name is not None: body['name'] = self.name
|
|
2004
|
+
if self.provider_id is not None: body['provider_id'] = self.provider_id
|
|
2005
|
+
if self.provider_region: body['provider_region'] = self.provider_region
|
|
2006
|
+
if self.published_at is not None: body['published_at'] = self.published_at
|
|
2007
|
+
if self.published_by is not None: body['published_by'] = self.published_by
|
|
2008
|
+
if self.setting: body['setting'] = self.setting
|
|
2009
|
+
if self.share: body['share'] = self.share
|
|
2010
|
+
if self.status is not None: body['status'] = self.status
|
|
2011
|
+
if self.subtitle is not None: body['subtitle'] = self.subtitle
|
|
2012
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
2013
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
2014
|
+
if self.updated_by_id is not None: body['updated_by_id'] = self.updated_by_id
|
|
2015
|
+
return body
|
|
2016
|
+
|
|
1551
2017
|
@classmethod
|
|
1552
2018
|
def from_dict(cls, d: Dict[str, any]) -> ListingSummary:
|
|
1553
2019
|
"""Deserializes the ListingSummary from a dictionary."""
|
|
@@ -1587,6 +2053,13 @@ class ListingTag:
|
|
|
1587
2053
|
if self.tag_values: body['tag_values'] = [v for v in self.tag_values]
|
|
1588
2054
|
return body
|
|
1589
2055
|
|
|
2056
|
+
def as_shallow_dict(self) -> dict:
|
|
2057
|
+
"""Serializes the ListingTag into a shallow dictionary of its immediate attributes."""
|
|
2058
|
+
body = {}
|
|
2059
|
+
if self.tag_name is not None: body['tag_name'] = self.tag_name
|
|
2060
|
+
if self.tag_values: body['tag_values'] = self.tag_values
|
|
2061
|
+
return body
|
|
2062
|
+
|
|
1590
2063
|
@classmethod
|
|
1591
2064
|
def from_dict(cls, d: Dict[str, any]) -> ListingTag:
|
|
1592
2065
|
"""Deserializes the ListingTag from a dictionary."""
|
|
@@ -1667,6 +2140,27 @@ class PersonalizationRequest:
|
|
|
1667
2140
|
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
1668
2141
|
return body
|
|
1669
2142
|
|
|
2143
|
+
def as_shallow_dict(self) -> dict:
|
|
2144
|
+
"""Serializes the PersonalizationRequest into a shallow dictionary of its immediate attributes."""
|
|
2145
|
+
body = {}
|
|
2146
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
2147
|
+
if self.consumer_region: body['consumer_region'] = self.consumer_region
|
|
2148
|
+
if self.contact_info: body['contact_info'] = self.contact_info
|
|
2149
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
2150
|
+
if self.id is not None: body['id'] = self.id
|
|
2151
|
+
if self.intended_use is not None: body['intended_use'] = self.intended_use
|
|
2152
|
+
if self.is_from_lighthouse is not None: body['is_from_lighthouse'] = self.is_from_lighthouse
|
|
2153
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
2154
|
+
if self.listing_name is not None: body['listing_name'] = self.listing_name
|
|
2155
|
+
if self.metastore_id is not None: body['metastore_id'] = self.metastore_id
|
|
2156
|
+
if self.provider_id is not None: body['provider_id'] = self.provider_id
|
|
2157
|
+
if self.recipient_type is not None: body['recipient_type'] = self.recipient_type
|
|
2158
|
+
if self.share: body['share'] = self.share
|
|
2159
|
+
if self.status is not None: body['status'] = self.status
|
|
2160
|
+
if self.status_message is not None: body['status_message'] = self.status_message
|
|
2161
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
2162
|
+
return body
|
|
2163
|
+
|
|
1670
2164
|
@classmethod
|
|
1671
2165
|
def from_dict(cls, d: Dict[str, any]) -> PersonalizationRequest:
|
|
1672
2166
|
"""Deserializes the PersonalizationRequest from a dictionary."""
|
|
@@ -1706,6 +2200,12 @@ class ProviderAnalyticsDashboard:
|
|
|
1706
2200
|
if self.id is not None: body['id'] = self.id
|
|
1707
2201
|
return body
|
|
1708
2202
|
|
|
2203
|
+
def as_shallow_dict(self) -> dict:
|
|
2204
|
+
"""Serializes the ProviderAnalyticsDashboard into a shallow dictionary of its immediate attributes."""
|
|
2205
|
+
body = {}
|
|
2206
|
+
if self.id is not None: body['id'] = self.id
|
|
2207
|
+
return body
|
|
2208
|
+
|
|
1709
2209
|
@classmethod
|
|
1710
2210
|
def from_dict(cls, d: Dict[str, any]) -> ProviderAnalyticsDashboard:
|
|
1711
2211
|
"""Deserializes the ProviderAnalyticsDashboard from a dictionary."""
|
|
@@ -1766,6 +2266,28 @@ class ProviderInfo:
|
|
|
1766
2266
|
if self.term_of_service_link is not None: body['term_of_service_link'] = self.term_of_service_link
|
|
1767
2267
|
return body
|
|
1768
2268
|
|
|
2269
|
+
def as_shallow_dict(self) -> dict:
|
|
2270
|
+
"""Serializes the ProviderInfo into a shallow dictionary of its immediate attributes."""
|
|
2271
|
+
body = {}
|
|
2272
|
+
if self.business_contact_email is not None:
|
|
2273
|
+
body['business_contact_email'] = self.business_contact_email
|
|
2274
|
+
if self.company_website_link is not None: body['company_website_link'] = self.company_website_link
|
|
2275
|
+
if self.dark_mode_icon_file_id is not None:
|
|
2276
|
+
body['dark_mode_icon_file_id'] = self.dark_mode_icon_file_id
|
|
2277
|
+
if self.dark_mode_icon_file_path is not None:
|
|
2278
|
+
body['dark_mode_icon_file_path'] = self.dark_mode_icon_file_path
|
|
2279
|
+
if self.description is not None: body['description'] = self.description
|
|
2280
|
+
if self.icon_file_id is not None: body['icon_file_id'] = self.icon_file_id
|
|
2281
|
+
if self.icon_file_path is not None: body['icon_file_path'] = self.icon_file_path
|
|
2282
|
+
if self.id is not None: body['id'] = self.id
|
|
2283
|
+
if self.is_featured is not None: body['is_featured'] = self.is_featured
|
|
2284
|
+
if self.name is not None: body['name'] = self.name
|
|
2285
|
+
if self.privacy_policy_link is not None: body['privacy_policy_link'] = self.privacy_policy_link
|
|
2286
|
+
if self.published_by is not None: body['published_by'] = self.published_by
|
|
2287
|
+
if self.support_contact_email is not None: body['support_contact_email'] = self.support_contact_email
|
|
2288
|
+
if self.term_of_service_link is not None: body['term_of_service_link'] = self.term_of_service_link
|
|
2289
|
+
return body
|
|
2290
|
+
|
|
1769
2291
|
@classmethod
|
|
1770
2292
|
def from_dict(cls, d: Dict[str, any]) -> ProviderInfo:
|
|
1771
2293
|
"""Deserializes the ProviderInfo from a dictionary."""
|
|
@@ -1798,6 +2320,13 @@ class RegionInfo:
|
|
|
1798
2320
|
if self.region is not None: body['region'] = self.region
|
|
1799
2321
|
return body
|
|
1800
2322
|
|
|
2323
|
+
def as_shallow_dict(self) -> dict:
|
|
2324
|
+
"""Serializes the RegionInfo into a shallow dictionary of its immediate attributes."""
|
|
2325
|
+
body = {}
|
|
2326
|
+
if self.cloud is not None: body['cloud'] = self.cloud
|
|
2327
|
+
if self.region is not None: body['region'] = self.region
|
|
2328
|
+
return body
|
|
2329
|
+
|
|
1801
2330
|
@classmethod
|
|
1802
2331
|
def from_dict(cls, d: Dict[str, any]) -> RegionInfo:
|
|
1803
2332
|
"""Deserializes the RegionInfo from a dictionary."""
|
|
@@ -1812,6 +2341,11 @@ class RemoveExchangeForListingResponse:
|
|
|
1812
2341
|
body = {}
|
|
1813
2342
|
return body
|
|
1814
2343
|
|
|
2344
|
+
def as_shallow_dict(self) -> dict:
|
|
2345
|
+
"""Serializes the RemoveExchangeForListingResponse into a shallow dictionary of its immediate attributes."""
|
|
2346
|
+
body = {}
|
|
2347
|
+
return body
|
|
2348
|
+
|
|
1815
2349
|
@classmethod
|
|
1816
2350
|
def from_dict(cls, d: Dict[str, any]) -> RemoveExchangeForListingResponse:
|
|
1817
2351
|
"""Deserializes the RemoveExchangeForListingResponse from a dictionary."""
|
|
@@ -1829,6 +2363,12 @@ class RepoInfo:
|
|
|
1829
2363
|
if self.git_repo_url is not None: body['git_repo_url'] = self.git_repo_url
|
|
1830
2364
|
return body
|
|
1831
2365
|
|
|
2366
|
+
def as_shallow_dict(self) -> dict:
|
|
2367
|
+
"""Serializes the RepoInfo into a shallow dictionary of its immediate attributes."""
|
|
2368
|
+
body = {}
|
|
2369
|
+
if self.git_repo_url is not None: body['git_repo_url'] = self.git_repo_url
|
|
2370
|
+
return body
|
|
2371
|
+
|
|
1832
2372
|
@classmethod
|
|
1833
2373
|
def from_dict(cls, d: Dict[str, any]) -> RepoInfo:
|
|
1834
2374
|
"""Deserializes the RepoInfo from a dictionary."""
|
|
@@ -1851,6 +2391,13 @@ class RepoInstallation:
|
|
|
1851
2391
|
if self.repo_path is not None: body['repo_path'] = self.repo_path
|
|
1852
2392
|
return body
|
|
1853
2393
|
|
|
2394
|
+
def as_shallow_dict(self) -> dict:
|
|
2395
|
+
"""Serializes the RepoInstallation into a shallow dictionary of its immediate attributes."""
|
|
2396
|
+
body = {}
|
|
2397
|
+
if self.repo_name is not None: body['repo_name'] = self.repo_name
|
|
2398
|
+
if self.repo_path is not None: body['repo_path'] = self.repo_path
|
|
2399
|
+
return body
|
|
2400
|
+
|
|
1854
2401
|
@classmethod
|
|
1855
2402
|
def from_dict(cls, d: Dict[str, any]) -> RepoInstallation:
|
|
1856
2403
|
"""Deserializes the RepoInstallation from a dictionary."""
|
|
@@ -1870,6 +2417,13 @@ class SearchListingsResponse:
|
|
|
1870
2417
|
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
1871
2418
|
return body
|
|
1872
2419
|
|
|
2420
|
+
def as_shallow_dict(self) -> dict:
|
|
2421
|
+
"""Serializes the SearchListingsResponse into a shallow dictionary of its immediate attributes."""
|
|
2422
|
+
body = {}
|
|
2423
|
+
if self.listings: body['listings'] = self.listings
|
|
2424
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
2425
|
+
return body
|
|
2426
|
+
|
|
1873
2427
|
@classmethod
|
|
1874
2428
|
def from_dict(cls, d: Dict[str, any]) -> SearchListingsResponse:
|
|
1875
2429
|
"""Deserializes the SearchListingsResponse from a dictionary."""
|
|
@@ -1890,6 +2444,13 @@ class ShareInfo:
|
|
|
1890
2444
|
if self.type is not None: body['type'] = self.type.value
|
|
1891
2445
|
return body
|
|
1892
2446
|
|
|
2447
|
+
def as_shallow_dict(self) -> dict:
|
|
2448
|
+
"""Serializes the ShareInfo into a shallow dictionary of its immediate attributes."""
|
|
2449
|
+
body = {}
|
|
2450
|
+
if self.name is not None: body['name'] = self.name
|
|
2451
|
+
if self.type is not None: body['type'] = self.type
|
|
2452
|
+
return body
|
|
2453
|
+
|
|
1893
2454
|
@classmethod
|
|
1894
2455
|
def from_dict(cls, d: Dict[str, any]) -> ShareInfo:
|
|
1895
2456
|
"""Deserializes the ShareInfo from a dictionary."""
|
|
@@ -1911,6 +2472,13 @@ class SharedDataObject:
|
|
|
1911
2472
|
if self.name is not None: body['name'] = self.name
|
|
1912
2473
|
return body
|
|
1913
2474
|
|
|
2475
|
+
def as_shallow_dict(self) -> dict:
|
|
2476
|
+
"""Serializes the SharedDataObject into a shallow dictionary of its immediate attributes."""
|
|
2477
|
+
body = {}
|
|
2478
|
+
if self.data_object_type is not None: body['data_object_type'] = self.data_object_type
|
|
2479
|
+
if self.name is not None: body['name'] = self.name
|
|
2480
|
+
return body
|
|
2481
|
+
|
|
1914
2482
|
@classmethod
|
|
1915
2483
|
def from_dict(cls, d: Dict[str, any]) -> SharedDataObject:
|
|
1916
2484
|
"""Deserializes the SharedDataObject from a dictionary."""
|
|
@@ -1939,6 +2507,16 @@ class TokenDetail:
|
|
|
1939
2507
|
body['shareCredentialsVersion'] = self.share_credentials_version
|
|
1940
2508
|
return body
|
|
1941
2509
|
|
|
2510
|
+
def as_shallow_dict(self) -> dict:
|
|
2511
|
+
"""Serializes the TokenDetail into a shallow dictionary of its immediate attributes."""
|
|
2512
|
+
body = {}
|
|
2513
|
+
if self.bearer_token is not None: body['bearerToken'] = self.bearer_token
|
|
2514
|
+
if self.endpoint is not None: body['endpoint'] = self.endpoint
|
|
2515
|
+
if self.expiration_time is not None: body['expirationTime'] = self.expiration_time
|
|
2516
|
+
if self.share_credentials_version is not None:
|
|
2517
|
+
body['shareCredentialsVersion'] = self.share_credentials_version
|
|
2518
|
+
return body
|
|
2519
|
+
|
|
1942
2520
|
@classmethod
|
|
1943
2521
|
def from_dict(cls, d: Dict[str, any]) -> TokenDetail:
|
|
1944
2522
|
"""Deserializes the TokenDetail from a dictionary."""
|
|
@@ -1984,6 +2562,18 @@ class TokenInfo:
|
|
|
1984
2562
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
1985
2563
|
return body
|
|
1986
2564
|
|
|
2565
|
+
def as_shallow_dict(self) -> dict:
|
|
2566
|
+
"""Serializes the TokenInfo into a shallow dictionary of its immediate attributes."""
|
|
2567
|
+
body = {}
|
|
2568
|
+
if self.activation_url is not None: body['activation_url'] = self.activation_url
|
|
2569
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
2570
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
2571
|
+
if self.expiration_time is not None: body['expiration_time'] = self.expiration_time
|
|
2572
|
+
if self.id is not None: body['id'] = self.id
|
|
2573
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
2574
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
2575
|
+
return body
|
|
2576
|
+
|
|
1987
2577
|
@classmethod
|
|
1988
2578
|
def from_dict(cls, d: Dict[str, any]) -> TokenInfo:
|
|
1989
2579
|
"""Deserializes the TokenInfo from a dictionary."""
|
|
@@ -2009,6 +2599,13 @@ class UpdateExchangeFilterRequest:
|
|
|
2009
2599
|
if self.id is not None: body['id'] = self.id
|
|
2010
2600
|
return body
|
|
2011
2601
|
|
|
2602
|
+
def as_shallow_dict(self) -> dict:
|
|
2603
|
+
"""Serializes the UpdateExchangeFilterRequest into a shallow dictionary of its immediate attributes."""
|
|
2604
|
+
body = {}
|
|
2605
|
+
if self.filter: body['filter'] = self.filter
|
|
2606
|
+
if self.id is not None: body['id'] = self.id
|
|
2607
|
+
return body
|
|
2608
|
+
|
|
2012
2609
|
@classmethod
|
|
2013
2610
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExchangeFilterRequest:
|
|
2014
2611
|
"""Deserializes the UpdateExchangeFilterRequest from a dictionary."""
|
|
@@ -2025,6 +2622,12 @@ class UpdateExchangeFilterResponse:
|
|
|
2025
2622
|
if self.filter: body['filter'] = self.filter.as_dict()
|
|
2026
2623
|
return body
|
|
2027
2624
|
|
|
2625
|
+
def as_shallow_dict(self) -> dict:
|
|
2626
|
+
"""Serializes the UpdateExchangeFilterResponse into a shallow dictionary of its immediate attributes."""
|
|
2627
|
+
body = {}
|
|
2628
|
+
if self.filter: body['filter'] = self.filter
|
|
2629
|
+
return body
|
|
2630
|
+
|
|
2028
2631
|
@classmethod
|
|
2029
2632
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExchangeFilterResponse:
|
|
2030
2633
|
"""Deserializes the UpdateExchangeFilterResponse from a dictionary."""
|
|
@@ -2044,6 +2647,13 @@ class UpdateExchangeRequest:
|
|
|
2044
2647
|
if self.id is not None: body['id'] = self.id
|
|
2045
2648
|
return body
|
|
2046
2649
|
|
|
2650
|
+
def as_shallow_dict(self) -> dict:
|
|
2651
|
+
"""Serializes the UpdateExchangeRequest into a shallow dictionary of its immediate attributes."""
|
|
2652
|
+
body = {}
|
|
2653
|
+
if self.exchange: body['exchange'] = self.exchange
|
|
2654
|
+
if self.id is not None: body['id'] = self.id
|
|
2655
|
+
return body
|
|
2656
|
+
|
|
2047
2657
|
@classmethod
|
|
2048
2658
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExchangeRequest:
|
|
2049
2659
|
"""Deserializes the UpdateExchangeRequest from a dictionary."""
|
|
@@ -2060,6 +2670,12 @@ class UpdateExchangeResponse:
|
|
|
2060
2670
|
if self.exchange: body['exchange'] = self.exchange.as_dict()
|
|
2061
2671
|
return body
|
|
2062
2672
|
|
|
2673
|
+
def as_shallow_dict(self) -> dict:
|
|
2674
|
+
"""Serializes the UpdateExchangeResponse into a shallow dictionary of its immediate attributes."""
|
|
2675
|
+
body = {}
|
|
2676
|
+
if self.exchange: body['exchange'] = self.exchange
|
|
2677
|
+
return body
|
|
2678
|
+
|
|
2063
2679
|
@classmethod
|
|
2064
2680
|
def from_dict(cls, d: Dict[str, any]) -> UpdateExchangeResponse:
|
|
2065
2681
|
"""Deserializes the UpdateExchangeResponse from a dictionary."""
|
|
@@ -2085,6 +2701,15 @@ class UpdateInstallationRequest:
|
|
|
2085
2701
|
if self.rotate_token is not None: body['rotate_token'] = self.rotate_token
|
|
2086
2702
|
return body
|
|
2087
2703
|
|
|
2704
|
+
def as_shallow_dict(self) -> dict:
|
|
2705
|
+
"""Serializes the UpdateInstallationRequest into a shallow dictionary of its immediate attributes."""
|
|
2706
|
+
body = {}
|
|
2707
|
+
if self.installation: body['installation'] = self.installation
|
|
2708
|
+
if self.installation_id is not None: body['installation_id'] = self.installation_id
|
|
2709
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
2710
|
+
if self.rotate_token is not None: body['rotate_token'] = self.rotate_token
|
|
2711
|
+
return body
|
|
2712
|
+
|
|
2088
2713
|
@classmethod
|
|
2089
2714
|
def from_dict(cls, d: Dict[str, any]) -> UpdateInstallationRequest:
|
|
2090
2715
|
"""Deserializes the UpdateInstallationRequest from a dictionary."""
|
|
@@ -2104,6 +2729,12 @@ class UpdateInstallationResponse:
|
|
|
2104
2729
|
if self.installation: body['installation'] = self.installation.as_dict()
|
|
2105
2730
|
return body
|
|
2106
2731
|
|
|
2732
|
+
def as_shallow_dict(self) -> dict:
|
|
2733
|
+
"""Serializes the UpdateInstallationResponse into a shallow dictionary of its immediate attributes."""
|
|
2734
|
+
body = {}
|
|
2735
|
+
if self.installation: body['installation'] = self.installation
|
|
2736
|
+
return body
|
|
2737
|
+
|
|
2107
2738
|
@classmethod
|
|
2108
2739
|
def from_dict(cls, d: Dict[str, any]) -> UpdateInstallationResponse:
|
|
2109
2740
|
"""Deserializes the UpdateInstallationResponse from a dictionary."""
|
|
@@ -2123,6 +2754,13 @@ class UpdateListingRequest:
|
|
|
2123
2754
|
if self.listing: body['listing'] = self.listing.as_dict()
|
|
2124
2755
|
return body
|
|
2125
2756
|
|
|
2757
|
+
def as_shallow_dict(self) -> dict:
|
|
2758
|
+
"""Serializes the UpdateListingRequest into a shallow dictionary of its immediate attributes."""
|
|
2759
|
+
body = {}
|
|
2760
|
+
if self.id is not None: body['id'] = self.id
|
|
2761
|
+
if self.listing: body['listing'] = self.listing
|
|
2762
|
+
return body
|
|
2763
|
+
|
|
2126
2764
|
@classmethod
|
|
2127
2765
|
def from_dict(cls, d: Dict[str, any]) -> UpdateListingRequest:
|
|
2128
2766
|
"""Deserializes the UpdateListingRequest from a dictionary."""
|
|
@@ -2139,6 +2777,12 @@ class UpdateListingResponse:
|
|
|
2139
2777
|
if self.listing: body['listing'] = self.listing.as_dict()
|
|
2140
2778
|
return body
|
|
2141
2779
|
|
|
2780
|
+
def as_shallow_dict(self) -> dict:
|
|
2781
|
+
"""Serializes the UpdateListingResponse into a shallow dictionary of its immediate attributes."""
|
|
2782
|
+
body = {}
|
|
2783
|
+
if self.listing: body['listing'] = self.listing
|
|
2784
|
+
return body
|
|
2785
|
+
|
|
2142
2786
|
@classmethod
|
|
2143
2787
|
def from_dict(cls, d: Dict[str, any]) -> UpdateListingResponse:
|
|
2144
2788
|
"""Deserializes the UpdateListingResponse from a dictionary."""
|
|
@@ -2167,6 +2811,16 @@ class UpdatePersonalizationRequestRequest:
|
|
|
2167
2811
|
if self.status is not None: body['status'] = self.status.value
|
|
2168
2812
|
return body
|
|
2169
2813
|
|
|
2814
|
+
def as_shallow_dict(self) -> dict:
|
|
2815
|
+
"""Serializes the UpdatePersonalizationRequestRequest into a shallow dictionary of its immediate attributes."""
|
|
2816
|
+
body = {}
|
|
2817
|
+
if self.listing_id is not None: body['listing_id'] = self.listing_id
|
|
2818
|
+
if self.reason is not None: body['reason'] = self.reason
|
|
2819
|
+
if self.request_id is not None: body['request_id'] = self.request_id
|
|
2820
|
+
if self.share: body['share'] = self.share
|
|
2821
|
+
if self.status is not None: body['status'] = self.status
|
|
2822
|
+
return body
|
|
2823
|
+
|
|
2170
2824
|
@classmethod
|
|
2171
2825
|
def from_dict(cls, d: Dict[str, any]) -> UpdatePersonalizationRequestRequest:
|
|
2172
2826
|
"""Deserializes the UpdatePersonalizationRequestRequest from a dictionary."""
|
|
@@ -2187,6 +2841,12 @@ class UpdatePersonalizationRequestResponse:
|
|
|
2187
2841
|
if self.request: body['request'] = self.request.as_dict()
|
|
2188
2842
|
return body
|
|
2189
2843
|
|
|
2844
|
+
def as_shallow_dict(self) -> dict:
|
|
2845
|
+
"""Serializes the UpdatePersonalizationRequestResponse into a shallow dictionary of its immediate attributes."""
|
|
2846
|
+
body = {}
|
|
2847
|
+
if self.request: body['request'] = self.request
|
|
2848
|
+
return body
|
|
2849
|
+
|
|
2190
2850
|
@classmethod
|
|
2191
2851
|
def from_dict(cls, d: Dict[str, any]) -> UpdatePersonalizationRequestResponse:
|
|
2192
2852
|
"""Deserializes the UpdatePersonalizationRequestResponse from a dictionary."""
|
|
@@ -2209,6 +2869,13 @@ class UpdateProviderAnalyticsDashboardRequest:
|
|
|
2209
2869
|
if self.version is not None: body['version'] = self.version
|
|
2210
2870
|
return body
|
|
2211
2871
|
|
|
2872
|
+
def as_shallow_dict(self) -> dict:
|
|
2873
|
+
"""Serializes the UpdateProviderAnalyticsDashboardRequest into a shallow dictionary of its immediate attributes."""
|
|
2874
|
+
body = {}
|
|
2875
|
+
if self.id is not None: body['id'] = self.id
|
|
2876
|
+
if self.version is not None: body['version'] = self.version
|
|
2877
|
+
return body
|
|
2878
|
+
|
|
2212
2879
|
@classmethod
|
|
2213
2880
|
def from_dict(cls, d: Dict[str, any]) -> UpdateProviderAnalyticsDashboardRequest:
|
|
2214
2881
|
"""Deserializes the UpdateProviderAnalyticsDashboardRequest from a dictionary."""
|
|
@@ -2233,6 +2900,14 @@ class UpdateProviderAnalyticsDashboardResponse:
|
|
|
2233
2900
|
if self.version is not None: body['version'] = self.version
|
|
2234
2901
|
return body
|
|
2235
2902
|
|
|
2903
|
+
def as_shallow_dict(self) -> dict:
|
|
2904
|
+
"""Serializes the UpdateProviderAnalyticsDashboardResponse into a shallow dictionary of its immediate attributes."""
|
|
2905
|
+
body = {}
|
|
2906
|
+
if self.dashboard_id is not None: body['dashboard_id'] = self.dashboard_id
|
|
2907
|
+
if self.id is not None: body['id'] = self.id
|
|
2908
|
+
if self.version is not None: body['version'] = self.version
|
|
2909
|
+
return body
|
|
2910
|
+
|
|
2236
2911
|
@classmethod
|
|
2237
2912
|
def from_dict(cls, d: Dict[str, any]) -> UpdateProviderAnalyticsDashboardResponse:
|
|
2238
2913
|
"""Deserializes the UpdateProviderAnalyticsDashboardResponse from a dictionary."""
|
|
@@ -2254,6 +2929,13 @@ class UpdateProviderRequest:
|
|
|
2254
2929
|
if self.provider: body['provider'] = self.provider.as_dict()
|
|
2255
2930
|
return body
|
|
2256
2931
|
|
|
2932
|
+
def as_shallow_dict(self) -> dict:
|
|
2933
|
+
"""Serializes the UpdateProviderRequest into a shallow dictionary of its immediate attributes."""
|
|
2934
|
+
body = {}
|
|
2935
|
+
if self.id is not None: body['id'] = self.id
|
|
2936
|
+
if self.provider: body['provider'] = self.provider
|
|
2937
|
+
return body
|
|
2938
|
+
|
|
2257
2939
|
@classmethod
|
|
2258
2940
|
def from_dict(cls, d: Dict[str, any]) -> UpdateProviderRequest:
|
|
2259
2941
|
"""Deserializes the UpdateProviderRequest from a dictionary."""
|
|
@@ -2270,6 +2952,12 @@ class UpdateProviderResponse:
|
|
|
2270
2952
|
if self.provider: body['provider'] = self.provider.as_dict()
|
|
2271
2953
|
return body
|
|
2272
2954
|
|
|
2955
|
+
def as_shallow_dict(self) -> dict:
|
|
2956
|
+
"""Serializes the UpdateProviderResponse into a shallow dictionary of its immediate attributes."""
|
|
2957
|
+
body = {}
|
|
2958
|
+
if self.provider: body['provider'] = self.provider
|
|
2959
|
+
return body
|
|
2960
|
+
|
|
2273
2961
|
@classmethod
|
|
2274
2962
|
def from_dict(cls, d: Dict[str, any]) -> UpdateProviderResponse:
|
|
2275
2963
|
"""Deserializes the UpdateProviderResponse from a dictionary."""
|