@@ -85,7 +85,7 @@ class WorkspaceConnection(Resource):
85
85
:param target: The URL or ARM resource ID of the external resource.
86
86
:type target: str
87
87
:param metadata: Metadata dictionary.
88
- :type metadata: Optional[Dict[Any , Any]]
88
+ :type metadata: Optional[Dict[str , Any]]
89
89
:param type: The category of external resource for this connection.
90
90
:type type: The type of connection, possible values are: "git", "python_feed", "container_registry",
91
91
"feature_store", "s3", "snowflake", "azure_sql_db", "azure_synapse_analytics", "azure_my_sql_db",
@@ -315,41 +315,41 @@ def credentials(
315
315
return self ._credentials
316
316
317
317
@property
318
- def metadata (self ) -> Optional [Dict [Any , Any ]]:
318
+ def metadata (self ) -> Optional [Dict [str , Any ]]:
319
319
"""The connection's metadata dictionary.
320
320
:return: This connection's metadata.
321
- :rtype: Optional[Dict[Any , Any]]
321
+ :rtype: Optional[Dict[str , Any]]
322
322
"""
323
323
return self ._metadata if self ._metadata is not None else {}
324
324
325
325
@metadata .setter
326
- def metadata (self , value : Optional [Dict [Any , Any ]]) -> None :
326
+ def metadata (self , value : Optional [Dict [str , Any ]]) -> None :
327
327
"""Set the metadata for the connection. Be warned that setting this will override
328
328
ALL metadata values, including those implicitly set by certain connection types to manage their
329
329
extra data. Usually, you should probably access the metadata dictionary, then add or remove values
330
330
individually as needed.
331
331
:param value: The new metadata for connection.
332
332
This completely overwrites the existing metadata dictionary.
333
- :type value: Optional[Dict[Any , Any]]
333
+ :type value: Optional[Dict[str , Any]]
334
334
"""
335
335
if not value :
336
336
return
337
337
self ._metadata = value
338
338
339
339
@property
340
- def tags (self ) -> Optional [Dict [Any , Any ]]:
340
+ def tags (self ) -> Optional [Dict [str , Any ]]:
341
341
"""Deprecated. Use metadata instead.
342
342
:return: This connection's metadata.
343
- :rtype: Optional[Dict[Any , Any]]
343
+ :rtype: Optional[Dict[str , Any]]
344
344
"""
345
345
return self ._metadata if self ._metadata is not None else {}
346
346
347
347
@tags .setter
348
- def tags (self , value : Optional [Dict [Any , Any ]]) -> None :
348
+ def tags (self , value : Optional [Dict [str , Any ]]) -> None :
349
349
"""Deprecated use metadata instead
350
350
:param value: The new metadata for connection.
351
351
This completely overwrites the existing metadata dictionary.
352
- :type value: Optional[Dict[Any , Any]]
352
+ :type value: Optional[Dict[str , Any]]
353
353
"""
354
354
if not value :
355
355
return
0 commit comments