databricks-sdk 0.57.0__py3-none-any.whl → 0.59.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +38 -9
- databricks/sdk/service/aibuilder.py +0 -163
- databricks/sdk/service/apps.py +53 -49
- databricks/sdk/service/billing.py +62 -223
- databricks/sdk/service/catalog.py +3052 -3707
- databricks/sdk/service/cleanrooms.py +5 -54
- databricks/sdk/service/compute.py +579 -2715
- databricks/sdk/service/dashboards.py +108 -317
- databricks/sdk/service/database.py +603 -122
- databricks/sdk/service/files.py +2 -218
- databricks/sdk/service/iam.py +19 -298
- databricks/sdk/service/jobs.py +77 -1263
- databricks/sdk/service/marketplace.py +3 -575
- databricks/sdk/service/ml.py +816 -2734
- databricks/sdk/service/oauth2.py +122 -238
- databricks/sdk/service/pipelines.py +133 -724
- databricks/sdk/service/provisioning.py +36 -757
- databricks/sdk/service/qualitymonitorv2.py +0 -18
- databricks/sdk/service/serving.py +37 -583
- databricks/sdk/service/settings.py +282 -1768
- databricks/sdk/service/sharing.py +6 -478
- databricks/sdk/service/sql.py +129 -1696
- databricks/sdk/service/vectorsearch.py +0 -410
- databricks/sdk/service/workspace.py +252 -727
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/METADATA +1 -1
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/RECORD +31 -31
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/LICENSE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/licenses/NOTICE +0 -0
- {databricks_sdk-0.57.0.dist-info → databricks_sdk-0.59.0.dist-info}/top_level.txt +0 -0
|
@@ -55,193 +55,6 @@ class ColumnTypeName(Enum):
|
|
|
55
55
|
VARIANT = "VARIANT"
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
@dataclass
|
|
59
|
-
class CreateProvider:
|
|
60
|
-
name: str
|
|
61
|
-
"""The name of the Provider."""
|
|
62
|
-
|
|
63
|
-
authentication_type: AuthenticationType
|
|
64
|
-
"""The delta sharing authentication type."""
|
|
65
|
-
|
|
66
|
-
comment: Optional[str] = None
|
|
67
|
-
"""Description about the provider."""
|
|
68
|
-
|
|
69
|
-
recipient_profile_str: Optional[str] = None
|
|
70
|
-
"""This field is required when the __authentication_type__ is **TOKEN**,
|
|
71
|
-
**OAUTH_CLIENT_CREDENTIALS** or not provided."""
|
|
72
|
-
|
|
73
|
-
def as_dict(self) -> dict:
|
|
74
|
-
"""Serializes the CreateProvider into a dictionary suitable for use as a JSON request body."""
|
|
75
|
-
body = {}
|
|
76
|
-
if self.authentication_type is not None:
|
|
77
|
-
body["authentication_type"] = self.authentication_type.value
|
|
78
|
-
if self.comment is not None:
|
|
79
|
-
body["comment"] = self.comment
|
|
80
|
-
if self.name is not None:
|
|
81
|
-
body["name"] = self.name
|
|
82
|
-
if self.recipient_profile_str is not None:
|
|
83
|
-
body["recipient_profile_str"] = self.recipient_profile_str
|
|
84
|
-
return body
|
|
85
|
-
|
|
86
|
-
def as_shallow_dict(self) -> dict:
|
|
87
|
-
"""Serializes the CreateProvider into a shallow dictionary of its immediate attributes."""
|
|
88
|
-
body = {}
|
|
89
|
-
if self.authentication_type is not None:
|
|
90
|
-
body["authentication_type"] = self.authentication_type
|
|
91
|
-
if self.comment is not None:
|
|
92
|
-
body["comment"] = self.comment
|
|
93
|
-
if self.name is not None:
|
|
94
|
-
body["name"] = self.name
|
|
95
|
-
if self.recipient_profile_str is not None:
|
|
96
|
-
body["recipient_profile_str"] = self.recipient_profile_str
|
|
97
|
-
return body
|
|
98
|
-
|
|
99
|
-
@classmethod
|
|
100
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateProvider:
|
|
101
|
-
"""Deserializes the CreateProvider from a dictionary."""
|
|
102
|
-
return cls(
|
|
103
|
-
authentication_type=_enum(d, "authentication_type", AuthenticationType),
|
|
104
|
-
comment=d.get("comment", None),
|
|
105
|
-
name=d.get("name", None),
|
|
106
|
-
recipient_profile_str=d.get("recipient_profile_str", None),
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
@dataclass
|
|
111
|
-
class CreateRecipient:
|
|
112
|
-
name: str
|
|
113
|
-
"""Name of Recipient."""
|
|
114
|
-
|
|
115
|
-
authentication_type: AuthenticationType
|
|
116
|
-
"""The delta sharing authentication type."""
|
|
117
|
-
|
|
118
|
-
comment: Optional[str] = None
|
|
119
|
-
"""Description about the recipient."""
|
|
120
|
-
|
|
121
|
-
data_recipient_global_metastore_id: Optional[str] = None
|
|
122
|
-
"""The global Unity Catalog metastore id provided by the data recipient. This field is only present
|
|
123
|
-
when the __authentication_type__ is **DATABRICKS**. The identifier is of format
|
|
124
|
-
__cloud__:__region__:__metastore-uuid__."""
|
|
125
|
-
|
|
126
|
-
expiration_time: Optional[int] = None
|
|
127
|
-
"""Expiration timestamp of the token, in epoch milliseconds."""
|
|
128
|
-
|
|
129
|
-
ip_access_list: Optional[IpAccessList] = None
|
|
130
|
-
"""IP Access List"""
|
|
131
|
-
|
|
132
|
-
owner: Optional[str] = None
|
|
133
|
-
"""Username of the recipient owner."""
|
|
134
|
-
|
|
135
|
-
properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None
|
|
136
|
-
"""Recipient properties as map of string key-value pairs. When provided in update request, the
|
|
137
|
-
specified properties will override the existing properties. To add and remove properties, one
|
|
138
|
-
would need to perform a read-modify-write."""
|
|
139
|
-
|
|
140
|
-
sharing_code: Optional[str] = None
|
|
141
|
-
"""The one-time sharing code provided by the data recipient. This field is only present when the
|
|
142
|
-
__authentication_type__ is **DATABRICKS**."""
|
|
143
|
-
|
|
144
|
-
def as_dict(self) -> dict:
|
|
145
|
-
"""Serializes the CreateRecipient into a dictionary suitable for use as a JSON request body."""
|
|
146
|
-
body = {}
|
|
147
|
-
if self.authentication_type is not None:
|
|
148
|
-
body["authentication_type"] = self.authentication_type.value
|
|
149
|
-
if self.comment is not None:
|
|
150
|
-
body["comment"] = self.comment
|
|
151
|
-
if self.data_recipient_global_metastore_id is not None:
|
|
152
|
-
body["data_recipient_global_metastore_id"] = self.data_recipient_global_metastore_id
|
|
153
|
-
if self.expiration_time is not None:
|
|
154
|
-
body["expiration_time"] = self.expiration_time
|
|
155
|
-
if self.ip_access_list:
|
|
156
|
-
body["ip_access_list"] = self.ip_access_list.as_dict()
|
|
157
|
-
if self.name is not None:
|
|
158
|
-
body["name"] = self.name
|
|
159
|
-
if self.owner is not None:
|
|
160
|
-
body["owner"] = self.owner
|
|
161
|
-
if self.properties_kvpairs:
|
|
162
|
-
body["properties_kvpairs"] = self.properties_kvpairs.as_dict()
|
|
163
|
-
if self.sharing_code is not None:
|
|
164
|
-
body["sharing_code"] = self.sharing_code
|
|
165
|
-
return body
|
|
166
|
-
|
|
167
|
-
def as_shallow_dict(self) -> dict:
|
|
168
|
-
"""Serializes the CreateRecipient into a shallow dictionary of its immediate attributes."""
|
|
169
|
-
body = {}
|
|
170
|
-
if self.authentication_type is not None:
|
|
171
|
-
body["authentication_type"] = self.authentication_type
|
|
172
|
-
if self.comment is not None:
|
|
173
|
-
body["comment"] = self.comment
|
|
174
|
-
if self.data_recipient_global_metastore_id is not None:
|
|
175
|
-
body["data_recipient_global_metastore_id"] = self.data_recipient_global_metastore_id
|
|
176
|
-
if self.expiration_time is not None:
|
|
177
|
-
body["expiration_time"] = self.expiration_time
|
|
178
|
-
if self.ip_access_list:
|
|
179
|
-
body["ip_access_list"] = self.ip_access_list
|
|
180
|
-
if self.name is not None:
|
|
181
|
-
body["name"] = self.name
|
|
182
|
-
if self.owner is not None:
|
|
183
|
-
body["owner"] = self.owner
|
|
184
|
-
if self.properties_kvpairs:
|
|
185
|
-
body["properties_kvpairs"] = self.properties_kvpairs
|
|
186
|
-
if self.sharing_code is not None:
|
|
187
|
-
body["sharing_code"] = self.sharing_code
|
|
188
|
-
return body
|
|
189
|
-
|
|
190
|
-
@classmethod
|
|
191
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateRecipient:
|
|
192
|
-
"""Deserializes the CreateRecipient from a dictionary."""
|
|
193
|
-
return cls(
|
|
194
|
-
authentication_type=_enum(d, "authentication_type", AuthenticationType),
|
|
195
|
-
comment=d.get("comment", None),
|
|
196
|
-
data_recipient_global_metastore_id=d.get("data_recipient_global_metastore_id", None),
|
|
197
|
-
expiration_time=d.get("expiration_time", None),
|
|
198
|
-
ip_access_list=_from_dict(d, "ip_access_list", IpAccessList),
|
|
199
|
-
name=d.get("name", None),
|
|
200
|
-
owner=d.get("owner", None),
|
|
201
|
-
properties_kvpairs=_from_dict(d, "properties_kvpairs", SecurablePropertiesKvPairs),
|
|
202
|
-
sharing_code=d.get("sharing_code", None),
|
|
203
|
-
)
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
@dataclass
|
|
207
|
-
class CreateShare:
|
|
208
|
-
name: str
|
|
209
|
-
"""Name of the share."""
|
|
210
|
-
|
|
211
|
-
comment: Optional[str] = None
|
|
212
|
-
"""User-provided free-form text description."""
|
|
213
|
-
|
|
214
|
-
storage_root: Optional[str] = None
|
|
215
|
-
"""Storage root URL for the share."""
|
|
216
|
-
|
|
217
|
-
def as_dict(self) -> dict:
|
|
218
|
-
"""Serializes the CreateShare into a dictionary suitable for use as a JSON request body."""
|
|
219
|
-
body = {}
|
|
220
|
-
if self.comment is not None:
|
|
221
|
-
body["comment"] = self.comment
|
|
222
|
-
if self.name is not None:
|
|
223
|
-
body["name"] = self.name
|
|
224
|
-
if self.storage_root is not None:
|
|
225
|
-
body["storage_root"] = self.storage_root
|
|
226
|
-
return body
|
|
227
|
-
|
|
228
|
-
def as_shallow_dict(self) -> dict:
|
|
229
|
-
"""Serializes the CreateShare into a shallow dictionary of its immediate attributes."""
|
|
230
|
-
body = {}
|
|
231
|
-
if self.comment is not None:
|
|
232
|
-
body["comment"] = self.comment
|
|
233
|
-
if self.name is not None:
|
|
234
|
-
body["name"] = self.name
|
|
235
|
-
if self.storage_root is not None:
|
|
236
|
-
body["storage_root"] = self.storage_root
|
|
237
|
-
return body
|
|
238
|
-
|
|
239
|
-
@classmethod
|
|
240
|
-
def from_dict(cls, d: Dict[str, Any]) -> CreateShare:
|
|
241
|
-
"""Deserializes the CreateShare from a dictionary."""
|
|
242
|
-
return cls(comment=d.get("comment", None), name=d.get("name", None), storage_root=d.get("storage_root", None))
|
|
243
|
-
|
|
244
|
-
|
|
245
58
|
@dataclass
|
|
246
59
|
class DeleteResponse:
|
|
247
60
|
def as_dict(self) -> dict:
|
|
@@ -265,10 +78,8 @@ class DeltaSharingDependency:
|
|
|
265
78
|
"""Represents a UC dependency."""
|
|
266
79
|
|
|
267
80
|
function: Optional[DeltaSharingFunctionDependency] = None
|
|
268
|
-
"""A Function in UC as a dependency."""
|
|
269
81
|
|
|
270
82
|
table: Optional[DeltaSharingTableDependency] = None
|
|
271
|
-
"""A Table in UC as a dependency."""
|
|
272
83
|
|
|
273
84
|
def as_dict(self) -> dict:
|
|
274
85
|
"""Serializes the DeltaSharingDependency into a dictionary suitable for use as a JSON request body."""
|
|
@@ -1320,7 +1131,8 @@ class PermissionsChange:
|
|
|
1320
1131
|
"""The set of privileges to add."""
|
|
1321
1132
|
|
|
1322
1133
|
principal: Optional[str] = None
|
|
1323
|
-
"""The principal whose privileges we are changing.
|
|
1134
|
+
"""The principal whose privileges we are changing. Only one of principal or principal_id should be
|
|
1135
|
+
specified, never both at the same time."""
|
|
1324
1136
|
|
|
1325
1137
|
remove: Optional[List[str]] = None
|
|
1326
1138
|
"""The set of privileges to remove."""
|
|
@@ -1405,7 +1217,8 @@ class Privilege(Enum):
|
|
|
1405
1217
|
@dataclass
|
|
1406
1218
|
class PrivilegeAssignment:
|
|
1407
1219
|
principal: Optional[str] = None
|
|
1408
|
-
"""The principal (user email address or group name).
|
|
1220
|
+
"""The principal (user email address or group name). For deleted principals, `principal` is empty
|
|
1221
|
+
while `principal_id` is populated."""
|
|
1409
1222
|
|
|
1410
1223
|
privileges: Optional[List[Privilege]] = None
|
|
1411
1224
|
"""The privileges assigned to the principal."""
|
|
@@ -1437,7 +1250,6 @@ class PrivilegeAssignment:
|
|
|
1437
1250
|
@dataclass
|
|
1438
1251
|
class ProviderInfo:
|
|
1439
1252
|
authentication_type: Optional[AuthenticationType] = None
|
|
1440
|
-
"""The delta sharing authentication type."""
|
|
1441
1253
|
|
|
1442
1254
|
cloud: Optional[str] = None
|
|
1443
1255
|
"""Cloud vendor of the provider's UC metastore. This field is only present when the
|
|
@@ -1607,7 +1419,6 @@ class RecipientInfo:
|
|
|
1607
1419
|
retrieved."""
|
|
1608
1420
|
|
|
1609
1421
|
authentication_type: Optional[AuthenticationType] = None
|
|
1610
|
-
"""The delta sharing authentication type."""
|
|
1611
1422
|
|
|
1612
1423
|
cloud: Optional[str] = None
|
|
1613
1424
|
"""Cloud vendor of the recipient's Unity Catalog Metastore. This field is only present when the
|
|
@@ -1979,42 +1790,6 @@ class RetrieveTokenResponse:
|
|
|
1979
1790
|
)
|
|
1980
1791
|
|
|
1981
1792
|
|
|
1982
|
-
@dataclass
|
|
1983
|
-
class RotateRecipientToken:
|
|
1984
|
-
existing_token_expire_in_seconds: int
|
|
1985
|
-
"""The expiration time of the bearer token in ISO 8601 format. This will set the expiration_time of
|
|
1986
|
-
existing token only to a smaller timestamp, it cannot extend the expiration_time. Use 0 to
|
|
1987
|
-
expire the existing token immediately, negative number will return an error."""
|
|
1988
|
-
|
|
1989
|
-
name: Optional[str] = None
|
|
1990
|
-
"""The name of the Recipient."""
|
|
1991
|
-
|
|
1992
|
-
def as_dict(self) -> dict:
|
|
1993
|
-
"""Serializes the RotateRecipientToken into a dictionary suitable for use as a JSON request body."""
|
|
1994
|
-
body = {}
|
|
1995
|
-
if self.existing_token_expire_in_seconds is not None:
|
|
1996
|
-
body["existing_token_expire_in_seconds"] = self.existing_token_expire_in_seconds
|
|
1997
|
-
if self.name is not None:
|
|
1998
|
-
body["name"] = self.name
|
|
1999
|
-
return body
|
|
2000
|
-
|
|
2001
|
-
def as_shallow_dict(self) -> dict:
|
|
2002
|
-
"""Serializes the RotateRecipientToken into a shallow dictionary of its immediate attributes."""
|
|
2003
|
-
body = {}
|
|
2004
|
-
if self.existing_token_expire_in_seconds is not None:
|
|
2005
|
-
body["existing_token_expire_in_seconds"] = self.existing_token_expire_in_seconds
|
|
2006
|
-
if self.name is not None:
|
|
2007
|
-
body["name"] = self.name
|
|
2008
|
-
return body
|
|
2009
|
-
|
|
2010
|
-
@classmethod
|
|
2011
|
-
def from_dict(cls, d: Dict[str, Any]) -> RotateRecipientToken:
|
|
2012
|
-
"""Deserializes the RotateRecipientToken from a dictionary."""
|
|
2013
|
-
return cls(
|
|
2014
|
-
existing_token_expire_in_seconds=d.get("existing_token_expire_in_seconds", None), name=d.get("name", None)
|
|
2015
|
-
)
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
1793
|
@dataclass
|
|
2019
1794
|
class SecurablePropertiesKvPairs:
|
|
2020
1795
|
"""An object with __properties__ containing map of key-value properties attached to the securable."""
|
|
@@ -2549,6 +2324,7 @@ class TableInternalAttributes:
|
|
|
2549
2324
|
|
|
2550
2325
|
class TableInternalAttributesSharedTableType(Enum):
|
|
2551
2326
|
|
|
2327
|
+
DELTA_ICEBERG_TABLE = "DELTA_ICEBERG_TABLE"
|
|
2552
2328
|
DIRECTORY_BASED_TABLE = "DIRECTORY_BASED_TABLE"
|
|
2553
2329
|
FILE_BASED_TABLE = "FILE_BASED_TABLE"
|
|
2554
2330
|
FOREIGN_TABLE = "FOREIGN_TABLE"
|
|
@@ -2557,253 +2333,6 @@ class TableInternalAttributesSharedTableType(Enum):
|
|
|
2557
2333
|
VIEW = "VIEW"
|
|
2558
2334
|
|
|
2559
2335
|
|
|
2560
|
-
@dataclass
|
|
2561
|
-
class UpdateProvider:
|
|
2562
|
-
comment: Optional[str] = None
|
|
2563
|
-
"""Description about the provider."""
|
|
2564
|
-
|
|
2565
|
-
name: Optional[str] = None
|
|
2566
|
-
"""Name of the provider."""
|
|
2567
|
-
|
|
2568
|
-
new_name: Optional[str] = None
|
|
2569
|
-
"""New name for the provider."""
|
|
2570
|
-
|
|
2571
|
-
owner: Optional[str] = None
|
|
2572
|
-
"""Username of Provider owner."""
|
|
2573
|
-
|
|
2574
|
-
recipient_profile_str: Optional[str] = None
|
|
2575
|
-
"""This field is required when the __authentication_type__ is **TOKEN**,
|
|
2576
|
-
**OAUTH_CLIENT_CREDENTIALS** or not provided."""
|
|
2577
|
-
|
|
2578
|
-
def as_dict(self) -> dict:
|
|
2579
|
-
"""Serializes the UpdateProvider into a dictionary suitable for use as a JSON request body."""
|
|
2580
|
-
body = {}
|
|
2581
|
-
if self.comment is not None:
|
|
2582
|
-
body["comment"] = self.comment
|
|
2583
|
-
if self.name is not None:
|
|
2584
|
-
body["name"] = self.name
|
|
2585
|
-
if self.new_name is not None:
|
|
2586
|
-
body["new_name"] = self.new_name
|
|
2587
|
-
if self.owner is not None:
|
|
2588
|
-
body["owner"] = self.owner
|
|
2589
|
-
if self.recipient_profile_str is not None:
|
|
2590
|
-
body["recipient_profile_str"] = self.recipient_profile_str
|
|
2591
|
-
return body
|
|
2592
|
-
|
|
2593
|
-
def as_shallow_dict(self) -> dict:
|
|
2594
|
-
"""Serializes the UpdateProvider into a shallow dictionary of its immediate attributes."""
|
|
2595
|
-
body = {}
|
|
2596
|
-
if self.comment is not None:
|
|
2597
|
-
body["comment"] = self.comment
|
|
2598
|
-
if self.name is not None:
|
|
2599
|
-
body["name"] = self.name
|
|
2600
|
-
if self.new_name is not None:
|
|
2601
|
-
body["new_name"] = self.new_name
|
|
2602
|
-
if self.owner is not None:
|
|
2603
|
-
body["owner"] = self.owner
|
|
2604
|
-
if self.recipient_profile_str is not None:
|
|
2605
|
-
body["recipient_profile_str"] = self.recipient_profile_str
|
|
2606
|
-
return body
|
|
2607
|
-
|
|
2608
|
-
@classmethod
|
|
2609
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateProvider:
|
|
2610
|
-
"""Deserializes the UpdateProvider from a dictionary."""
|
|
2611
|
-
return cls(
|
|
2612
|
-
comment=d.get("comment", None),
|
|
2613
|
-
name=d.get("name", None),
|
|
2614
|
-
new_name=d.get("new_name", None),
|
|
2615
|
-
owner=d.get("owner", None),
|
|
2616
|
-
recipient_profile_str=d.get("recipient_profile_str", None),
|
|
2617
|
-
)
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
@dataclass
|
|
2621
|
-
class UpdateRecipient:
|
|
2622
|
-
comment: Optional[str] = None
|
|
2623
|
-
"""Description about the recipient."""
|
|
2624
|
-
|
|
2625
|
-
expiration_time: Optional[int] = None
|
|
2626
|
-
"""Expiration timestamp of the token, in epoch milliseconds."""
|
|
2627
|
-
|
|
2628
|
-
ip_access_list: Optional[IpAccessList] = None
|
|
2629
|
-
"""IP Access List"""
|
|
2630
|
-
|
|
2631
|
-
name: Optional[str] = None
|
|
2632
|
-
"""Name of the recipient."""
|
|
2633
|
-
|
|
2634
|
-
new_name: Optional[str] = None
|
|
2635
|
-
"""New name for the recipient. ."""
|
|
2636
|
-
|
|
2637
|
-
owner: Optional[str] = None
|
|
2638
|
-
"""Username of the recipient owner."""
|
|
2639
|
-
|
|
2640
|
-
properties_kvpairs: Optional[SecurablePropertiesKvPairs] = None
|
|
2641
|
-
"""Recipient properties as map of string key-value pairs. When provided in update request, the
|
|
2642
|
-
specified properties will override the existing properties. To add and remove properties, one
|
|
2643
|
-
would need to perform a read-modify-write."""
|
|
2644
|
-
|
|
2645
|
-
def as_dict(self) -> dict:
|
|
2646
|
-
"""Serializes the UpdateRecipient into a dictionary suitable for use as a JSON request body."""
|
|
2647
|
-
body = {}
|
|
2648
|
-
if self.comment is not None:
|
|
2649
|
-
body["comment"] = self.comment
|
|
2650
|
-
if self.expiration_time is not None:
|
|
2651
|
-
body["expiration_time"] = self.expiration_time
|
|
2652
|
-
if self.ip_access_list:
|
|
2653
|
-
body["ip_access_list"] = self.ip_access_list.as_dict()
|
|
2654
|
-
if self.name is not None:
|
|
2655
|
-
body["name"] = self.name
|
|
2656
|
-
if self.new_name is not None:
|
|
2657
|
-
body["new_name"] = self.new_name
|
|
2658
|
-
if self.owner is not None:
|
|
2659
|
-
body["owner"] = self.owner
|
|
2660
|
-
if self.properties_kvpairs:
|
|
2661
|
-
body["properties_kvpairs"] = self.properties_kvpairs.as_dict()
|
|
2662
|
-
return body
|
|
2663
|
-
|
|
2664
|
-
def as_shallow_dict(self) -> dict:
|
|
2665
|
-
"""Serializes the UpdateRecipient into a shallow dictionary of its immediate attributes."""
|
|
2666
|
-
body = {}
|
|
2667
|
-
if self.comment is not None:
|
|
2668
|
-
body["comment"] = self.comment
|
|
2669
|
-
if self.expiration_time is not None:
|
|
2670
|
-
body["expiration_time"] = self.expiration_time
|
|
2671
|
-
if self.ip_access_list:
|
|
2672
|
-
body["ip_access_list"] = self.ip_access_list
|
|
2673
|
-
if self.name is not None:
|
|
2674
|
-
body["name"] = self.name
|
|
2675
|
-
if self.new_name is not None:
|
|
2676
|
-
body["new_name"] = self.new_name
|
|
2677
|
-
if self.owner is not None:
|
|
2678
|
-
body["owner"] = self.owner
|
|
2679
|
-
if self.properties_kvpairs:
|
|
2680
|
-
body["properties_kvpairs"] = self.properties_kvpairs
|
|
2681
|
-
return body
|
|
2682
|
-
|
|
2683
|
-
@classmethod
|
|
2684
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateRecipient:
|
|
2685
|
-
"""Deserializes the UpdateRecipient from a dictionary."""
|
|
2686
|
-
return cls(
|
|
2687
|
-
comment=d.get("comment", None),
|
|
2688
|
-
expiration_time=d.get("expiration_time", None),
|
|
2689
|
-
ip_access_list=_from_dict(d, "ip_access_list", IpAccessList),
|
|
2690
|
-
name=d.get("name", None),
|
|
2691
|
-
new_name=d.get("new_name", None),
|
|
2692
|
-
owner=d.get("owner", None),
|
|
2693
|
-
properties_kvpairs=_from_dict(d, "properties_kvpairs", SecurablePropertiesKvPairs),
|
|
2694
|
-
)
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
@dataclass
|
|
2698
|
-
class UpdateShare:
|
|
2699
|
-
comment: Optional[str] = None
|
|
2700
|
-
"""User-provided free-form text description."""
|
|
2701
|
-
|
|
2702
|
-
name: Optional[str] = None
|
|
2703
|
-
"""The name of the share."""
|
|
2704
|
-
|
|
2705
|
-
new_name: Optional[str] = None
|
|
2706
|
-
"""New name for the share."""
|
|
2707
|
-
|
|
2708
|
-
owner: Optional[str] = None
|
|
2709
|
-
"""Username of current owner of share."""
|
|
2710
|
-
|
|
2711
|
-
storage_root: Optional[str] = None
|
|
2712
|
-
"""Storage root URL for the share."""
|
|
2713
|
-
|
|
2714
|
-
updates: Optional[List[SharedDataObjectUpdate]] = None
|
|
2715
|
-
"""Array of shared data object updates."""
|
|
2716
|
-
|
|
2717
|
-
def as_dict(self) -> dict:
|
|
2718
|
-
"""Serializes the UpdateShare into a dictionary suitable for use as a JSON request body."""
|
|
2719
|
-
body = {}
|
|
2720
|
-
if self.comment is not None:
|
|
2721
|
-
body["comment"] = self.comment
|
|
2722
|
-
if self.name is not None:
|
|
2723
|
-
body["name"] = self.name
|
|
2724
|
-
if self.new_name is not None:
|
|
2725
|
-
body["new_name"] = self.new_name
|
|
2726
|
-
if self.owner is not None:
|
|
2727
|
-
body["owner"] = self.owner
|
|
2728
|
-
if self.storage_root is not None:
|
|
2729
|
-
body["storage_root"] = self.storage_root
|
|
2730
|
-
if self.updates:
|
|
2731
|
-
body["updates"] = [v.as_dict() for v in self.updates]
|
|
2732
|
-
return body
|
|
2733
|
-
|
|
2734
|
-
def as_shallow_dict(self) -> dict:
|
|
2735
|
-
"""Serializes the UpdateShare into a shallow dictionary of its immediate attributes."""
|
|
2736
|
-
body = {}
|
|
2737
|
-
if self.comment is not None:
|
|
2738
|
-
body["comment"] = self.comment
|
|
2739
|
-
if self.name is not None:
|
|
2740
|
-
body["name"] = self.name
|
|
2741
|
-
if self.new_name is not None:
|
|
2742
|
-
body["new_name"] = self.new_name
|
|
2743
|
-
if self.owner is not None:
|
|
2744
|
-
body["owner"] = self.owner
|
|
2745
|
-
if self.storage_root is not None:
|
|
2746
|
-
body["storage_root"] = self.storage_root
|
|
2747
|
-
if self.updates:
|
|
2748
|
-
body["updates"] = self.updates
|
|
2749
|
-
return body
|
|
2750
|
-
|
|
2751
|
-
@classmethod
|
|
2752
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateShare:
|
|
2753
|
-
"""Deserializes the UpdateShare from a dictionary."""
|
|
2754
|
-
return cls(
|
|
2755
|
-
comment=d.get("comment", None),
|
|
2756
|
-
name=d.get("name", None),
|
|
2757
|
-
new_name=d.get("new_name", None),
|
|
2758
|
-
owner=d.get("owner", None),
|
|
2759
|
-
storage_root=d.get("storage_root", None),
|
|
2760
|
-
updates=_repeated_dict(d, "updates", SharedDataObjectUpdate),
|
|
2761
|
-
)
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
@dataclass
|
|
2765
|
-
class UpdateSharePermissions:
|
|
2766
|
-
changes: Optional[List[PermissionsChange]] = None
|
|
2767
|
-
"""Array of permissions change objects."""
|
|
2768
|
-
|
|
2769
|
-
name: Optional[str] = None
|
|
2770
|
-
"""The name of the share."""
|
|
2771
|
-
|
|
2772
|
-
omit_permissions_list: Optional[bool] = None
|
|
2773
|
-
"""Optional. Whether to return the latest permissions list of the share in the response."""
|
|
2774
|
-
|
|
2775
|
-
def as_dict(self) -> dict:
|
|
2776
|
-
"""Serializes the UpdateSharePermissions into a dictionary suitable for use as a JSON request body."""
|
|
2777
|
-
body = {}
|
|
2778
|
-
if self.changes:
|
|
2779
|
-
body["changes"] = [v.as_dict() for v in self.changes]
|
|
2780
|
-
if self.name is not None:
|
|
2781
|
-
body["name"] = self.name
|
|
2782
|
-
if self.omit_permissions_list is not None:
|
|
2783
|
-
body["omit_permissions_list"] = self.omit_permissions_list
|
|
2784
|
-
return body
|
|
2785
|
-
|
|
2786
|
-
def as_shallow_dict(self) -> dict:
|
|
2787
|
-
"""Serializes the UpdateSharePermissions into a shallow dictionary of its immediate attributes."""
|
|
2788
|
-
body = {}
|
|
2789
|
-
if self.changes:
|
|
2790
|
-
body["changes"] = self.changes
|
|
2791
|
-
if self.name is not None:
|
|
2792
|
-
body["name"] = self.name
|
|
2793
|
-
if self.omit_permissions_list is not None:
|
|
2794
|
-
body["omit_permissions_list"] = self.omit_permissions_list
|
|
2795
|
-
return body
|
|
2796
|
-
|
|
2797
|
-
@classmethod
|
|
2798
|
-
def from_dict(cls, d: Dict[str, Any]) -> UpdateSharePermissions:
|
|
2799
|
-
"""Deserializes the UpdateSharePermissions from a dictionary."""
|
|
2800
|
-
return cls(
|
|
2801
|
-
changes=_repeated_dict(d, "changes", PermissionsChange),
|
|
2802
|
-
name=d.get("name", None),
|
|
2803
|
-
omit_permissions_list=d.get("omit_permissions_list", None),
|
|
2804
|
-
)
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
2336
|
@dataclass
|
|
2808
2337
|
class UpdateSharePermissionsResponse:
|
|
2809
2338
|
privilege_assignments: Optional[List[PrivilegeAssignment]] = None
|
|
@@ -2968,7 +2497,6 @@ class ProvidersAPI:
|
|
|
2968
2497
|
:param name: str
|
|
2969
2498
|
The name of the Provider.
|
|
2970
2499
|
:param authentication_type: :class:`AuthenticationType`
|
|
2971
|
-
The delta sharing authentication type.
|
|
2972
2500
|
:param comment: str (optional)
|
|
2973
2501
|
Description about the provider.
|
|
2974
2502
|
:param recipient_profile_str: str (optional)
|
|
@@ -3308,6 +2836,7 @@ class RecipientFederationPoliciesAPI:
|
|
|
3308
2836
|
:param recipient_name: str
|
|
3309
2837
|
Name of the recipient. This is the name of the recipient for which the policy is being created.
|
|
3310
2838
|
:param policy: :class:`FederationPolicy`
|
|
2839
|
+
Name of the policy. This is the name of the policy to be created.
|
|
3311
2840
|
|
|
3312
2841
|
:returns: :class:`FederationPolicy`
|
|
3313
2842
|
"""
|
|
@@ -3476,7 +3005,6 @@ class RecipientsAPI:
|
|
|
3476
3005
|
:param name: str
|
|
3477
3006
|
Name of Recipient.
|
|
3478
3007
|
:param authentication_type: :class:`AuthenticationType`
|
|
3479
|
-
The delta sharing authentication type.
|
|
3480
3008
|
:param comment: str (optional)
|
|
3481
3009
|
Description about the recipient.
|
|
3482
3010
|
:param data_recipient_global_metastore_id: str (optional)
|