@@ -85,7 +85,7 @@ class WorkspaceConnection(Resource):
8585 :param target: The URL or ARM resource ID of the external resource.
8686 :type target: str
8787 :param metadata: Metadata dictionary.
88- :type metadata: Optional[Dict[Any , Any]]
88+ :type metadata: Optional[Dict[str , Any]]
8989 :param type: The category of external resource for this connection.
9090 :type type: The type of connection, possible values are: "git", "python_feed", "container_registry",
9191 "feature_store", "s3", "snowflake", "azure_sql_db", "azure_synapse_analytics", "azure_my_sql_db",
@@ -315,41 +315,41 @@ def credentials(
315315 return self ._credentials
316316
317317 @property
318- def metadata (self ) -> Optional [Dict [Any , Any ]]:
318+ def metadata (self ) -> Optional [Dict [str , Any ]]:
319319 """The connection's metadata dictionary.
320320 :return: This connection's metadata.
321- :rtype: Optional[Dict[Any , Any]]
321+ :rtype: Optional[Dict[str , Any]]
322322 """
323323 return self ._metadata if self ._metadata is not None else {}
324324
325325 @metadata .setter
326- def metadata (self , value : Optional [Dict [Any , Any ]]) -> None :
326+ def metadata (self , value : Optional [Dict [str , Any ]]) -> None :
327327 """Set the metadata for the connection. Be warned that setting this will override
328328 ALL metadata values, including those implicitly set by certain connection types to manage their
329329 extra data. Usually, you should probably access the metadata dictionary, then add or remove values
330330 individually as needed.
331331 :param value: The new metadata for connection.
332332 This completely overwrites the existing metadata dictionary.
333- :type value: Optional[Dict[Any , Any]]
333+ :type value: Optional[Dict[str , Any]]
334334 """
335335 if not value :
336336 return
337337 self ._metadata = value
338338
339339 @property
340- def tags (self ) -> Optional [Dict [Any , Any ]]:
340+ def tags (self ) -> Optional [Dict [str , Any ]]:
341341 """Deprecated. Use metadata instead.
342342 :return: This connection's metadata.
343- :rtype: Optional[Dict[Any , Any]]
343+ :rtype: Optional[Dict[str , Any]]
344344 """
345345 return self ._metadata if self ._metadata is not None else {}
346346
347347 @tags .setter
348- def tags (self , value : Optional [Dict [Any , Any ]]) -> None :
348+ def tags (self , value : Optional [Dict [str , Any ]]) -> None :
349349 """Deprecated use metadata instead
350350 :param value: The new metadata for connection.
351351 This completely overwrites the existing metadata dictionary.
352- :type value: Optional[Dict[Any , Any]]
352+ :type value: Optional[Dict[str , Any]]
353353 """
354354 if not value :
355355 return
0 commit comments