databricks-sdk 0.38.0__py3-none-any.whl → 0.40.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +36 -1
- databricks/sdk/mixins/open_ai_client.py +2 -2
- databricks/sdk/service/apps.py +175 -0
- databricks/sdk/service/billing.py +247 -0
- databricks/sdk/service/catalog.py +1795 -62
- databricks/sdk/service/cleanrooms.py +1281 -0
- databricks/sdk/service/compute.py +1843 -67
- databricks/sdk/service/dashboards.py +342 -3
- databricks/sdk/service/files.py +162 -2
- databricks/sdk/service/iam.py +351 -0
- databricks/sdk/service/jobs.py +1355 -24
- databricks/sdk/service/marketplace.py +688 -0
- databricks/sdk/service/ml.py +1038 -2
- databricks/sdk/service/oauth2.py +636 -0
- databricks/sdk/service/pipelines.py +524 -4
- databricks/sdk/service/provisioning.py +387 -0
- databricks/sdk/service/serving.py +615 -0
- databricks/sdk/service/settings.py +1186 -1
- databricks/sdk/service/sharing.py +326 -2
- databricks/sdk/service/sql.py +1186 -2
- databricks/sdk/service/vectorsearch.py +290 -0
- databricks/sdk/service/workspace.py +451 -0
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/METADATA +26 -26
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/RECORD +29 -28
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/WHEEL +1 -1
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.38.0.dist-info → databricks_sdk-0.40.0.dist-info}/top_level.txt +0 -0
|
@@ -46,6 +46,15 @@ class CreateProvider:
|
|
|
46
46
|
if self.recipient_profile_str is not None: body['recipient_profile_str'] = self.recipient_profile_str
|
|
47
47
|
return body
|
|
48
48
|
|
|
49
|
+
def as_shallow_dict(self) -> dict:
|
|
50
|
+
"""Serializes the CreateProvider into a shallow dictionary of its immediate attributes."""
|
|
51
|
+
body = {}
|
|
52
|
+
if self.authentication_type is not None: body['authentication_type'] = self.authentication_type
|
|
53
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
54
|
+
if self.name is not None: body['name'] = self.name
|
|
55
|
+
if self.recipient_profile_str is not None: body['recipient_profile_str'] = self.recipient_profile_str
|
|
56
|
+
return body
|
|
57
|
+
|
|
49
58
|
@classmethod
|
|
50
59
|
def from_dict(cls, d: Dict[str, any]) -> CreateProvider:
|
|
51
60
|
"""Deserializes the CreateProvider from a dictionary."""
|
|
@@ -102,6 +111,21 @@ class CreateRecipient:
|
|
|
102
111
|
if self.sharing_code is not None: body['sharing_code'] = self.sharing_code
|
|
103
112
|
return body
|
|
104
113
|
|
|
114
|
+
def as_shallow_dict(self) -> dict:
|
|
115
|
+
"""Serializes the CreateRecipient into a shallow dictionary of its immediate attributes."""
|
|
116
|
+
body = {}
|
|
117
|
+
if self.authentication_type is not None: body['authentication_type'] = self.authentication_type
|
|
118
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
119
|
+
if self.data_recipient_global_metastore_id is not None:
|
|
120
|
+
body['data_recipient_global_metastore_id'] = self.data_recipient_global_metastore_id
|
|
121
|
+
if self.expiration_time is not None: body['expiration_time'] = self.expiration_time
|
|
122
|
+
if self.ip_access_list: body['ip_access_list'] = self.ip_access_list
|
|
123
|
+
if self.name is not None: body['name'] = self.name
|
|
124
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
125
|
+
if self.properties_kvpairs: body['properties_kvpairs'] = self.properties_kvpairs
|
|
126
|
+
if self.sharing_code is not None: body['sharing_code'] = self.sharing_code
|
|
127
|
+
return body
|
|
128
|
+
|
|
105
129
|
@classmethod
|
|
106
130
|
def from_dict(cls, d: Dict[str, any]) -> CreateRecipient:
|
|
107
131
|
"""Deserializes the CreateRecipient from a dictionary."""
|
|
@@ -135,6 +159,14 @@ class CreateShare:
|
|
|
135
159
|
if self.storage_root is not None: body['storage_root'] = self.storage_root
|
|
136
160
|
return body
|
|
137
161
|
|
|
162
|
+
def as_shallow_dict(self) -> dict:
|
|
163
|
+
"""Serializes the CreateShare into a shallow dictionary of its immediate attributes."""
|
|
164
|
+
body = {}
|
|
165
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
166
|
+
if self.name is not None: body['name'] = self.name
|
|
167
|
+
if self.storage_root is not None: body['storage_root'] = self.storage_root
|
|
168
|
+
return body
|
|
169
|
+
|
|
138
170
|
@classmethod
|
|
139
171
|
def from_dict(cls, d: Dict[str, any]) -> CreateShare:
|
|
140
172
|
"""Deserializes the CreateShare from a dictionary."""
|
|
@@ -151,6 +183,11 @@ class DeleteResponse:
|
|
|
151
183
|
body = {}
|
|
152
184
|
return body
|
|
153
185
|
|
|
186
|
+
def as_shallow_dict(self) -> dict:
|
|
187
|
+
"""Serializes the DeleteResponse into a shallow dictionary of its immediate attributes."""
|
|
188
|
+
body = {}
|
|
189
|
+
return body
|
|
190
|
+
|
|
154
191
|
@classmethod
|
|
155
192
|
def from_dict(cls, d: Dict[str, any]) -> DeleteResponse:
|
|
156
193
|
"""Deserializes the DeleteResponse from a dictionary."""
|
|
@@ -165,6 +202,11 @@ class GetActivationUrlInfoResponse:
|
|
|
165
202
|
body = {}
|
|
166
203
|
return body
|
|
167
204
|
|
|
205
|
+
def as_shallow_dict(self) -> dict:
|
|
206
|
+
"""Serializes the GetActivationUrlInfoResponse into a shallow dictionary of its immediate attributes."""
|
|
207
|
+
body = {}
|
|
208
|
+
return body
|
|
209
|
+
|
|
168
210
|
@classmethod
|
|
169
211
|
def from_dict(cls, d: Dict[str, any]) -> GetActivationUrlInfoResponse:
|
|
170
212
|
"""Deserializes the GetActivationUrlInfoResponse from a dictionary."""
|
|
@@ -187,6 +229,13 @@ class GetRecipientSharePermissionsResponse:
|
|
|
187
229
|
if self.permissions_out: body['permissions_out'] = [v.as_dict() for v in self.permissions_out]
|
|
188
230
|
return body
|
|
189
231
|
|
|
232
|
+
def as_shallow_dict(self) -> dict:
|
|
233
|
+
"""Serializes the GetRecipientSharePermissionsResponse into a shallow dictionary of its immediate attributes."""
|
|
234
|
+
body = {}
|
|
235
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
236
|
+
if self.permissions_out: body['permissions_out'] = self.permissions_out
|
|
237
|
+
return body
|
|
238
|
+
|
|
190
239
|
@classmethod
|
|
191
240
|
def from_dict(cls, d: Dict[str, any]) -> GetRecipientSharePermissionsResponse:
|
|
192
241
|
"""Deserializes the GetRecipientSharePermissionsResponse from a dictionary."""
|
|
@@ -205,6 +254,12 @@ class IpAccessList:
|
|
|
205
254
|
if self.allowed_ip_addresses: body['allowed_ip_addresses'] = [v for v in self.allowed_ip_addresses]
|
|
206
255
|
return body
|
|
207
256
|
|
|
257
|
+
def as_shallow_dict(self) -> dict:
|
|
258
|
+
"""Serializes the IpAccessList into a shallow dictionary of its immediate attributes."""
|
|
259
|
+
body = {}
|
|
260
|
+
if self.allowed_ip_addresses: body['allowed_ip_addresses'] = self.allowed_ip_addresses
|
|
261
|
+
return body
|
|
262
|
+
|
|
208
263
|
@classmethod
|
|
209
264
|
def from_dict(cls, d: Dict[str, any]) -> IpAccessList:
|
|
210
265
|
"""Deserializes the IpAccessList from a dictionary."""
|
|
@@ -227,6 +282,13 @@ class ListProviderSharesResponse:
|
|
|
227
282
|
if self.shares: body['shares'] = [v.as_dict() for v in self.shares]
|
|
228
283
|
return body
|
|
229
284
|
|
|
285
|
+
def as_shallow_dict(self) -> dict:
|
|
286
|
+
"""Serializes the ListProviderSharesResponse into a shallow dictionary of its immediate attributes."""
|
|
287
|
+
body = {}
|
|
288
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
289
|
+
if self.shares: body['shares'] = self.shares
|
|
290
|
+
return body
|
|
291
|
+
|
|
230
292
|
@classmethod
|
|
231
293
|
def from_dict(cls, d: Dict[str, any]) -> ListProviderSharesResponse:
|
|
232
294
|
"""Deserializes the ListProviderSharesResponse from a dictionary."""
|
|
@@ -250,6 +312,13 @@ class ListProvidersResponse:
|
|
|
250
312
|
if self.providers: body['providers'] = [v.as_dict() for v in self.providers]
|
|
251
313
|
return body
|
|
252
314
|
|
|
315
|
+
def as_shallow_dict(self) -> dict:
|
|
316
|
+
"""Serializes the ListProvidersResponse into a shallow dictionary of its immediate attributes."""
|
|
317
|
+
body = {}
|
|
318
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
319
|
+
if self.providers: body['providers'] = self.providers
|
|
320
|
+
return body
|
|
321
|
+
|
|
253
322
|
@classmethod
|
|
254
323
|
def from_dict(cls, d: Dict[str, any]) -> ListProvidersResponse:
|
|
255
324
|
"""Deserializes the ListProvidersResponse from a dictionary."""
|
|
@@ -273,6 +342,13 @@ class ListRecipientsResponse:
|
|
|
273
342
|
if self.recipients: body['recipients'] = [v.as_dict() for v in self.recipients]
|
|
274
343
|
return body
|
|
275
344
|
|
|
345
|
+
def as_shallow_dict(self) -> dict:
|
|
346
|
+
"""Serializes the ListRecipientsResponse into a shallow dictionary of its immediate attributes."""
|
|
347
|
+
body = {}
|
|
348
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
349
|
+
if self.recipients: body['recipients'] = self.recipients
|
|
350
|
+
return body
|
|
351
|
+
|
|
276
352
|
@classmethod
|
|
277
353
|
def from_dict(cls, d: Dict[str, any]) -> ListRecipientsResponse:
|
|
278
354
|
"""Deserializes the ListRecipientsResponse from a dictionary."""
|
|
@@ -296,6 +372,13 @@ class ListSharesResponse:
|
|
|
296
372
|
if self.shares: body['shares'] = [v.as_dict() for v in self.shares]
|
|
297
373
|
return body
|
|
298
374
|
|
|
375
|
+
def as_shallow_dict(self) -> dict:
|
|
376
|
+
"""Serializes the ListSharesResponse into a shallow dictionary of its immediate attributes."""
|
|
377
|
+
body = {}
|
|
378
|
+
if self.next_page_token is not None: body['next_page_token'] = self.next_page_token
|
|
379
|
+
if self.shares: body['shares'] = self.shares
|
|
380
|
+
return body
|
|
381
|
+
|
|
299
382
|
@classmethod
|
|
300
383
|
def from_dict(cls, d: Dict[str, any]) -> ListSharesResponse:
|
|
301
384
|
"""Deserializes the ListSharesResponse from a dictionary."""
|
|
@@ -314,12 +397,41 @@ class Partition:
|
|
|
314
397
|
if self.values: body['values'] = [v.as_dict() for v in self.values]
|
|
315
398
|
return body
|
|
316
399
|
|
|
400
|
+
def as_shallow_dict(self) -> dict:
|
|
401
|
+
"""Serializes the Partition into a shallow dictionary of its immediate attributes."""
|
|
402
|
+
body = {}
|
|
403
|
+
if self.values: body['values'] = self.values
|
|
404
|
+
return body
|
|
405
|
+
|
|
317
406
|
@classmethod
|
|
318
407
|
def from_dict(cls, d: Dict[str, any]) -> Partition:
|
|
319
408
|
"""Deserializes the Partition from a dictionary."""
|
|
320
409
|
return cls(values=_repeated_dict(d, 'values', PartitionValue))
|
|
321
410
|
|
|
322
411
|
|
|
412
|
+
@dataclass
|
|
413
|
+
class PartitionSpecificationPartition:
|
|
414
|
+
values: Optional[List[PartitionValue]] = None
|
|
415
|
+
"""An array of partition values."""
|
|
416
|
+
|
|
417
|
+
def as_dict(self) -> dict:
|
|
418
|
+
"""Serializes the PartitionSpecificationPartition into a dictionary suitable for use as a JSON request body."""
|
|
419
|
+
body = {}
|
|
420
|
+
if self.values: body['values'] = [v.as_dict() for v in self.values]
|
|
421
|
+
return body
|
|
422
|
+
|
|
423
|
+
def as_shallow_dict(self) -> dict:
|
|
424
|
+
"""Serializes the PartitionSpecificationPartition into a shallow dictionary of its immediate attributes."""
|
|
425
|
+
body = {}
|
|
426
|
+
if self.values: body['values'] = self.values
|
|
427
|
+
return body
|
|
428
|
+
|
|
429
|
+
@classmethod
|
|
430
|
+
def from_dict(cls, d: Dict[str, any]) -> PartitionSpecificationPartition:
|
|
431
|
+
"""Deserializes the PartitionSpecificationPartition from a dictionary."""
|
|
432
|
+
return cls(values=_repeated_dict(d, 'values', PartitionValue))
|
|
433
|
+
|
|
434
|
+
|
|
323
435
|
@dataclass
|
|
324
436
|
class PartitionValue:
|
|
325
437
|
name: Optional[str] = None
|
|
@@ -329,7 +441,7 @@ class PartitionValue:
|
|
|
329
441
|
"""The operator to apply for the value."""
|
|
330
442
|
|
|
331
443
|
recipient_property_key: Optional[str] = None
|
|
332
|
-
"""The key of a Delta Sharing recipient's property. For example
|
|
444
|
+
"""The key of a Delta Sharing recipient's property. For example "databricks-account-id". When this
|
|
333
445
|
field is set, field `value` can not be set."""
|
|
334
446
|
|
|
335
447
|
value: Optional[str] = None
|
|
@@ -346,6 +458,16 @@ class PartitionValue:
|
|
|
346
458
|
if self.value is not None: body['value'] = self.value
|
|
347
459
|
return body
|
|
348
460
|
|
|
461
|
+
def as_shallow_dict(self) -> dict:
|
|
462
|
+
"""Serializes the PartitionValue into a shallow dictionary of its immediate attributes."""
|
|
463
|
+
body = {}
|
|
464
|
+
if self.name is not None: body['name'] = self.name
|
|
465
|
+
if self.op is not None: body['op'] = self.op
|
|
466
|
+
if self.recipient_property_key is not None:
|
|
467
|
+
body['recipient_property_key'] = self.recipient_property_key
|
|
468
|
+
if self.value is not None: body['value'] = self.value
|
|
469
|
+
return body
|
|
470
|
+
|
|
349
471
|
@classmethod
|
|
350
472
|
def from_dict(cls, d: Dict[str, any]) -> PartitionValue:
|
|
351
473
|
"""Deserializes the PartitionValue from a dictionary."""
|
|
@@ -356,7 +478,6 @@ class PartitionValue:
|
|
|
356
478
|
|
|
357
479
|
|
|
358
480
|
class PartitionValueOp(Enum):
|
|
359
|
-
"""The operator to apply for the value."""
|
|
360
481
|
|
|
361
482
|
EQUAL = 'EQUAL'
|
|
362
483
|
LIKE = 'LIKE'
|
|
@@ -374,6 +495,7 @@ class Privilege(Enum):
|
|
|
374
495
|
CREATE_EXTERNAL_TABLE = 'CREATE_EXTERNAL_TABLE'
|
|
375
496
|
CREATE_EXTERNAL_VOLUME = 'CREATE_EXTERNAL_VOLUME'
|
|
376
497
|
CREATE_FOREIGN_CATALOG = 'CREATE_FOREIGN_CATALOG'
|
|
498
|
+
CREATE_FOREIGN_SECURABLE = 'CREATE_FOREIGN_SECURABLE'
|
|
377
499
|
CREATE_FUNCTION = 'CREATE_FUNCTION'
|
|
378
500
|
CREATE_MANAGED_STORAGE = 'CREATE_MANAGED_STORAGE'
|
|
379
501
|
CREATE_MATERIALIZED_VIEW = 'CREATE_MATERIALIZED_VIEW'
|
|
@@ -425,6 +547,13 @@ class PrivilegeAssignment:
|
|
|
425
547
|
if self.privileges: body['privileges'] = [v.value for v in self.privileges]
|
|
426
548
|
return body
|
|
427
549
|
|
|
550
|
+
def as_shallow_dict(self) -> dict:
|
|
551
|
+
"""Serializes the PrivilegeAssignment into a shallow dictionary of its immediate attributes."""
|
|
552
|
+
body = {}
|
|
553
|
+
if self.principal is not None: body['principal'] = self.principal
|
|
554
|
+
if self.privileges: body['privileges'] = self.privileges
|
|
555
|
+
return body
|
|
556
|
+
|
|
428
557
|
@classmethod
|
|
429
558
|
def from_dict(cls, d: Dict[str, any]) -> PrivilegeAssignment:
|
|
430
559
|
"""Deserializes the PrivilegeAssignment from a dictionary."""
|
|
@@ -500,6 +629,26 @@ class ProviderInfo:
|
|
|
500
629
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
501
630
|
return body
|
|
502
631
|
|
|
632
|
+
def as_shallow_dict(self) -> dict:
|
|
633
|
+
"""Serializes the ProviderInfo into a shallow dictionary of its immediate attributes."""
|
|
634
|
+
body = {}
|
|
635
|
+
if self.authentication_type is not None: body['authentication_type'] = self.authentication_type
|
|
636
|
+
if self.cloud is not None: body['cloud'] = self.cloud
|
|
637
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
638
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
639
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
640
|
+
if self.data_provider_global_metastore_id is not None:
|
|
641
|
+
body['data_provider_global_metastore_id'] = self.data_provider_global_metastore_id
|
|
642
|
+
if self.metastore_id is not None: body['metastore_id'] = self.metastore_id
|
|
643
|
+
if self.name is not None: body['name'] = self.name
|
|
644
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
645
|
+
if self.recipient_profile: body['recipient_profile'] = self.recipient_profile
|
|
646
|
+
if self.recipient_profile_str is not None: body['recipient_profile_str'] = self.recipient_profile_str
|
|
647
|
+
if self.region is not None: body['region'] = self.region
|
|
648
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
649
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
650
|
+
return body
|
|
651
|
+
|
|
503
652
|
@classmethod
|
|
504
653
|
def from_dict(cls, d: Dict[str, any]) -> ProviderInfo:
|
|
505
654
|
"""Deserializes the ProviderInfo from a dictionary."""
|
|
@@ -530,6 +679,12 @@ class ProviderShare:
|
|
|
530
679
|
if self.name is not None: body['name'] = self.name
|
|
531
680
|
return body
|
|
532
681
|
|
|
682
|
+
def as_shallow_dict(self) -> dict:
|
|
683
|
+
"""Serializes the ProviderShare into a shallow dictionary of its immediate attributes."""
|
|
684
|
+
body = {}
|
|
685
|
+
if self.name is not None: body['name'] = self.name
|
|
686
|
+
return body
|
|
687
|
+
|
|
533
688
|
@classmethod
|
|
534
689
|
def from_dict(cls, d: Dict[str, any]) -> ProviderShare:
|
|
535
690
|
"""Deserializes the ProviderShare from a dictionary."""
|
|
@@ -623,6 +778,30 @@ class RecipientInfo:
|
|
|
623
778
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
624
779
|
return body
|
|
625
780
|
|
|
781
|
+
def as_shallow_dict(self) -> dict:
|
|
782
|
+
"""Serializes the RecipientInfo into a shallow dictionary of its immediate attributes."""
|
|
783
|
+
body = {}
|
|
784
|
+
if self.activated is not None: body['activated'] = self.activated
|
|
785
|
+
if self.activation_url is not None: body['activation_url'] = self.activation_url
|
|
786
|
+
if self.authentication_type is not None: body['authentication_type'] = self.authentication_type
|
|
787
|
+
if self.cloud is not None: body['cloud'] = self.cloud
|
|
788
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
789
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
790
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
791
|
+
if self.data_recipient_global_metastore_id is not None:
|
|
792
|
+
body['data_recipient_global_metastore_id'] = self.data_recipient_global_metastore_id
|
|
793
|
+
if self.ip_access_list: body['ip_access_list'] = self.ip_access_list
|
|
794
|
+
if self.metastore_id is not None: body['metastore_id'] = self.metastore_id
|
|
795
|
+
if self.name is not None: body['name'] = self.name
|
|
796
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
797
|
+
if self.properties_kvpairs: body['properties_kvpairs'] = self.properties_kvpairs
|
|
798
|
+
if self.region is not None: body['region'] = self.region
|
|
799
|
+
if self.sharing_code is not None: body['sharing_code'] = self.sharing_code
|
|
800
|
+
if self.tokens: body['tokens'] = self.tokens
|
|
801
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
802
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
803
|
+
return body
|
|
804
|
+
|
|
626
805
|
@classmethod
|
|
627
806
|
def from_dict(cls, d: Dict[str, any]) -> RecipientInfo:
|
|
628
807
|
"""Deserializes the RecipientInfo from a dictionary."""
|
|
@@ -666,6 +845,15 @@ class RecipientProfile:
|
|
|
666
845
|
body['share_credentials_version'] = self.share_credentials_version
|
|
667
846
|
return body
|
|
668
847
|
|
|
848
|
+
def as_shallow_dict(self) -> dict:
|
|
849
|
+
"""Serializes the RecipientProfile into a shallow dictionary of its immediate attributes."""
|
|
850
|
+
body = {}
|
|
851
|
+
if self.bearer_token is not None: body['bearer_token'] = self.bearer_token
|
|
852
|
+
if self.endpoint is not None: body['endpoint'] = self.endpoint
|
|
853
|
+
if self.share_credentials_version is not None:
|
|
854
|
+
body['share_credentials_version'] = self.share_credentials_version
|
|
855
|
+
return body
|
|
856
|
+
|
|
669
857
|
@classmethod
|
|
670
858
|
def from_dict(cls, d: Dict[str, any]) -> RecipientProfile:
|
|
671
859
|
"""Deserializes the RecipientProfile from a dictionary."""
|
|
@@ -710,6 +898,18 @@ class RecipientTokenInfo:
|
|
|
710
898
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
711
899
|
return body
|
|
712
900
|
|
|
901
|
+
def as_shallow_dict(self) -> dict:
|
|
902
|
+
"""Serializes the RecipientTokenInfo into a shallow dictionary of its immediate attributes."""
|
|
903
|
+
body = {}
|
|
904
|
+
if self.activation_url is not None: body['activation_url'] = self.activation_url
|
|
905
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
906
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
907
|
+
if self.expiration_time is not None: body['expiration_time'] = self.expiration_time
|
|
908
|
+
if self.id is not None: body['id'] = self.id
|
|
909
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
910
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
911
|
+
return body
|
|
912
|
+
|
|
713
913
|
@classmethod
|
|
714
914
|
def from_dict(cls, d: Dict[str, any]) -> RecipientTokenInfo:
|
|
715
915
|
"""Deserializes the RecipientTokenInfo from a dictionary."""
|
|
@@ -746,6 +946,16 @@ class RetrieveTokenResponse:
|
|
|
746
946
|
body['shareCredentialsVersion'] = self.share_credentials_version
|
|
747
947
|
return body
|
|
748
948
|
|
|
949
|
+
def as_shallow_dict(self) -> dict:
|
|
950
|
+
"""Serializes the RetrieveTokenResponse into a shallow dictionary of its immediate attributes."""
|
|
951
|
+
body = {}
|
|
952
|
+
if self.bearer_token is not None: body['bearerToken'] = self.bearer_token
|
|
953
|
+
if self.endpoint is not None: body['endpoint'] = self.endpoint
|
|
954
|
+
if self.expiration_time is not None: body['expirationTime'] = self.expiration_time
|
|
955
|
+
if self.share_credentials_version is not None:
|
|
956
|
+
body['shareCredentialsVersion'] = self.share_credentials_version
|
|
957
|
+
return body
|
|
958
|
+
|
|
749
959
|
@classmethod
|
|
750
960
|
def from_dict(cls, d: Dict[str, any]) -> RetrieveTokenResponse:
|
|
751
961
|
"""Deserializes the RetrieveTokenResponse from a dictionary."""
|
|
@@ -773,6 +983,14 @@ class RotateRecipientToken:
|
|
|
773
983
|
if self.name is not None: body['name'] = self.name
|
|
774
984
|
return body
|
|
775
985
|
|
|
986
|
+
def as_shallow_dict(self) -> dict:
|
|
987
|
+
"""Serializes the RotateRecipientToken into a shallow dictionary of its immediate attributes."""
|
|
988
|
+
body = {}
|
|
989
|
+
if self.existing_token_expire_in_seconds is not None:
|
|
990
|
+
body['existing_token_expire_in_seconds'] = self.existing_token_expire_in_seconds
|
|
991
|
+
if self.name is not None: body['name'] = self.name
|
|
992
|
+
return body
|
|
993
|
+
|
|
776
994
|
@classmethod
|
|
777
995
|
def from_dict(cls, d: Dict[str, any]) -> RotateRecipientToken:
|
|
778
996
|
"""Deserializes the RotateRecipientToken from a dictionary."""
|
|
@@ -793,6 +1011,12 @@ class SecurablePropertiesKvPairs:
|
|
|
793
1011
|
if self.properties: body['properties'] = self.properties
|
|
794
1012
|
return body
|
|
795
1013
|
|
|
1014
|
+
def as_shallow_dict(self) -> dict:
|
|
1015
|
+
"""Serializes the SecurablePropertiesKvPairs into a shallow dictionary of its immediate attributes."""
|
|
1016
|
+
body = {}
|
|
1017
|
+
if self.properties: body['properties'] = self.properties
|
|
1018
|
+
return body
|
|
1019
|
+
|
|
796
1020
|
@classmethod
|
|
797
1021
|
def from_dict(cls, d: Dict[str, any]) -> SecurablePropertiesKvPairs:
|
|
798
1022
|
"""Deserializes the SecurablePropertiesKvPairs from a dictionary."""
|
|
@@ -849,6 +1073,21 @@ class ShareInfo:
|
|
|
849
1073
|
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
850
1074
|
return body
|
|
851
1075
|
|
|
1076
|
+
def as_shallow_dict(self) -> dict:
|
|
1077
|
+
"""Serializes the ShareInfo into a shallow dictionary of its immediate attributes."""
|
|
1078
|
+
body = {}
|
|
1079
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
1080
|
+
if self.created_at is not None: body['created_at'] = self.created_at
|
|
1081
|
+
if self.created_by is not None: body['created_by'] = self.created_by
|
|
1082
|
+
if self.name is not None: body['name'] = self.name
|
|
1083
|
+
if self.objects: body['objects'] = self.objects
|
|
1084
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
1085
|
+
if self.storage_location is not None: body['storage_location'] = self.storage_location
|
|
1086
|
+
if self.storage_root is not None: body['storage_root'] = self.storage_root
|
|
1087
|
+
if self.updated_at is not None: body['updated_at'] = self.updated_at
|
|
1088
|
+
if self.updated_by is not None: body['updated_by'] = self.updated_by
|
|
1089
|
+
return body
|
|
1090
|
+
|
|
852
1091
|
@classmethod
|
|
853
1092
|
def from_dict(cls, d: Dict[str, any]) -> ShareInfo:
|
|
854
1093
|
"""Deserializes the ShareInfo from a dictionary."""
|
|
@@ -880,6 +1119,13 @@ class ShareToPrivilegeAssignment:
|
|
|
880
1119
|
if self.share_name is not None: body['share_name'] = self.share_name
|
|
881
1120
|
return body
|
|
882
1121
|
|
|
1122
|
+
def as_shallow_dict(self) -> dict:
|
|
1123
|
+
"""Serializes the ShareToPrivilegeAssignment into a shallow dictionary of its immediate attributes."""
|
|
1124
|
+
body = {}
|
|
1125
|
+
if self.privilege_assignments: body['privilege_assignments'] = self.privilege_assignments
|
|
1126
|
+
if self.share_name is not None: body['share_name'] = self.share_name
|
|
1127
|
+
return body
|
|
1128
|
+
|
|
883
1129
|
@classmethod
|
|
884
1130
|
def from_dict(cls, d: Dict[str, any]) -> ShareToPrivilegeAssignment:
|
|
885
1131
|
"""Deserializes the ShareToPrivilegeAssignment from a dictionary."""
|
|
@@ -962,6 +1208,25 @@ class SharedDataObject:
|
|
|
962
1208
|
if self.string_shared_as is not None: body['string_shared_as'] = self.string_shared_as
|
|
963
1209
|
return body
|
|
964
1210
|
|
|
1211
|
+
def as_shallow_dict(self) -> dict:
|
|
1212
|
+
"""Serializes the SharedDataObject into a shallow dictionary of its immediate attributes."""
|
|
1213
|
+
body = {}
|
|
1214
|
+
if self.added_at is not None: body['added_at'] = self.added_at
|
|
1215
|
+
if self.added_by is not None: body['added_by'] = self.added_by
|
|
1216
|
+
if self.cdf_enabled is not None: body['cdf_enabled'] = self.cdf_enabled
|
|
1217
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
1218
|
+
if self.content is not None: body['content'] = self.content
|
|
1219
|
+
if self.data_object_type is not None: body['data_object_type'] = self.data_object_type
|
|
1220
|
+
if self.history_data_sharing_status is not None:
|
|
1221
|
+
body['history_data_sharing_status'] = self.history_data_sharing_status
|
|
1222
|
+
if self.name is not None: body['name'] = self.name
|
|
1223
|
+
if self.partitions: body['partitions'] = self.partitions
|
|
1224
|
+
if self.shared_as is not None: body['shared_as'] = self.shared_as
|
|
1225
|
+
if self.start_version is not None: body['start_version'] = self.start_version
|
|
1226
|
+
if self.status is not None: body['status'] = self.status
|
|
1227
|
+
if self.string_shared_as is not None: body['string_shared_as'] = self.string_shared_as
|
|
1228
|
+
return body
|
|
1229
|
+
|
|
965
1230
|
@classmethod
|
|
966
1231
|
def from_dict(cls, d: Dict[str, any]) -> SharedDataObject:
|
|
967
1232
|
"""Deserializes the SharedDataObject from a dictionary."""
|
|
@@ -1025,6 +1290,13 @@ class SharedDataObjectUpdate:
|
|
|
1025
1290
|
if self.data_object: body['data_object'] = self.data_object.as_dict()
|
|
1026
1291
|
return body
|
|
1027
1292
|
|
|
1293
|
+
def as_shallow_dict(self) -> dict:
|
|
1294
|
+
"""Serializes the SharedDataObjectUpdate into a shallow dictionary of its immediate attributes."""
|
|
1295
|
+
body = {}
|
|
1296
|
+
if self.action is not None: body['action'] = self.action
|
|
1297
|
+
if self.data_object: body['data_object'] = self.data_object
|
|
1298
|
+
return body
|
|
1299
|
+
|
|
1028
1300
|
@classmethod
|
|
1029
1301
|
def from_dict(cls, d: Dict[str, any]) -> SharedDataObjectUpdate:
|
|
1030
1302
|
"""Deserializes the SharedDataObjectUpdate from a dictionary."""
|
|
@@ -1048,6 +1320,11 @@ class UpdatePermissionsResponse:
|
|
|
1048
1320
|
body = {}
|
|
1049
1321
|
return body
|
|
1050
1322
|
|
|
1323
|
+
def as_shallow_dict(self) -> dict:
|
|
1324
|
+
"""Serializes the UpdatePermissionsResponse into a shallow dictionary of its immediate attributes."""
|
|
1325
|
+
body = {}
|
|
1326
|
+
return body
|
|
1327
|
+
|
|
1051
1328
|
@classmethod
|
|
1052
1329
|
def from_dict(cls, d: Dict[str, any]) -> UpdatePermissionsResponse:
|
|
1053
1330
|
"""Deserializes the UpdatePermissionsResponse from a dictionary."""
|
|
@@ -1081,6 +1358,16 @@ class UpdateProvider:
|
|
|
1081
1358
|
if self.recipient_profile_str is not None: body['recipient_profile_str'] = self.recipient_profile_str
|
|
1082
1359
|
return body
|
|
1083
1360
|
|
|
1361
|
+
def as_shallow_dict(self) -> dict:
|
|
1362
|
+
"""Serializes the UpdateProvider into a shallow dictionary of its immediate attributes."""
|
|
1363
|
+
body = {}
|
|
1364
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
1365
|
+
if self.name is not None: body['name'] = self.name
|
|
1366
|
+
if self.new_name is not None: body['new_name'] = self.new_name
|
|
1367
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
1368
|
+
if self.recipient_profile_str is not None: body['recipient_profile_str'] = self.recipient_profile_str
|
|
1369
|
+
return body
|
|
1370
|
+
|
|
1084
1371
|
@classmethod
|
|
1085
1372
|
def from_dict(cls, d: Dict[str, any]) -> UpdateProvider:
|
|
1086
1373
|
"""Deserializes the UpdateProvider from a dictionary."""
|
|
@@ -1128,6 +1415,18 @@ class UpdateRecipient:
|
|
|
1128
1415
|
if self.properties_kvpairs: body['properties_kvpairs'] = self.properties_kvpairs.as_dict()
|
|
1129
1416
|
return body
|
|
1130
1417
|
|
|
1418
|
+
def as_shallow_dict(self) -> dict:
|
|
1419
|
+
"""Serializes the UpdateRecipient into a shallow dictionary of its immediate attributes."""
|
|
1420
|
+
body = {}
|
|
1421
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
1422
|
+
if self.expiration_time is not None: body['expiration_time'] = self.expiration_time
|
|
1423
|
+
if self.ip_access_list: body['ip_access_list'] = self.ip_access_list
|
|
1424
|
+
if self.name is not None: body['name'] = self.name
|
|
1425
|
+
if self.new_name is not None: body['new_name'] = self.new_name
|
|
1426
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
1427
|
+
if self.properties_kvpairs: body['properties_kvpairs'] = self.properties_kvpairs
|
|
1428
|
+
return body
|
|
1429
|
+
|
|
1131
1430
|
@classmethod
|
|
1132
1431
|
def from_dict(cls, d: Dict[str, any]) -> UpdateRecipient:
|
|
1133
1432
|
"""Deserializes the UpdateRecipient from a dictionary."""
|
|
@@ -1148,6 +1447,11 @@ class UpdateResponse:
|
|
|
1148
1447
|
body = {}
|
|
1149
1448
|
return body
|
|
1150
1449
|
|
|
1450
|
+
def as_shallow_dict(self) -> dict:
|
|
1451
|
+
"""Serializes the UpdateResponse into a shallow dictionary of its immediate attributes."""
|
|
1452
|
+
body = {}
|
|
1453
|
+
return body
|
|
1454
|
+
|
|
1151
1455
|
@classmethod
|
|
1152
1456
|
def from_dict(cls, d: Dict[str, any]) -> UpdateResponse:
|
|
1153
1457
|
"""Deserializes the UpdateResponse from a dictionary."""
|
|
@@ -1185,6 +1489,17 @@ class UpdateShare:
|
|
|
1185
1489
|
if self.updates: body['updates'] = [v.as_dict() for v in self.updates]
|
|
1186
1490
|
return body
|
|
1187
1491
|
|
|
1492
|
+
def as_shallow_dict(self) -> dict:
|
|
1493
|
+
"""Serializes the UpdateShare into a shallow dictionary of its immediate attributes."""
|
|
1494
|
+
body = {}
|
|
1495
|
+
if self.comment is not None: body['comment'] = self.comment
|
|
1496
|
+
if self.name is not None: body['name'] = self.name
|
|
1497
|
+
if self.new_name is not None: body['new_name'] = self.new_name
|
|
1498
|
+
if self.owner is not None: body['owner'] = self.owner
|
|
1499
|
+
if self.storage_root is not None: body['storage_root'] = self.storage_root
|
|
1500
|
+
if self.updates: body['updates'] = self.updates
|
|
1501
|
+
return body
|
|
1502
|
+
|
|
1188
1503
|
@classmethod
|
|
1189
1504
|
def from_dict(cls, d: Dict[str, any]) -> UpdateShare:
|
|
1190
1505
|
"""Deserializes the UpdateShare from a dictionary."""
|
|
@@ -1225,6 +1540,15 @@ class UpdateSharePermissions:
|
|
|
1225
1540
|
if self.page_token is not None: body['page_token'] = self.page_token
|
|
1226
1541
|
return body
|
|
1227
1542
|
|
|
1543
|
+
def as_shallow_dict(self) -> dict:
|
|
1544
|
+
"""Serializes the UpdateSharePermissions into a shallow dictionary of its immediate attributes."""
|
|
1545
|
+
body = {}
|
|
1546
|
+
if self.changes: body['changes'] = self.changes
|
|
1547
|
+
if self.max_results is not None: body['max_results'] = self.max_results
|
|
1548
|
+
if self.name is not None: body['name'] = self.name
|
|
1549
|
+
if self.page_token is not None: body['page_token'] = self.page_token
|
|
1550
|
+
return body
|
|
1551
|
+
|
|
1228
1552
|
@classmethod
|
|
1229
1553
|
def from_dict(cls, d: Dict[str, any]) -> UpdateSharePermissions:
|
|
1230
1554
|
"""Deserializes the UpdateSharePermissions from a dictionary."""
|