@@ -380,9 +380,8 @@ class AISearchIndexResource(_Model):
380380 """A AI Search Index resource.
381381
382382 :ivar index_connection_id: An index connection id in an IndexResource attached to this agent.
383- Required.
384383 :vartype index_connection_id: str
385- :ivar index_name: The name of an index in an IndexResource attached to this agent. Required.
384+ :ivar index_name: The name of an index in an IndexResource attached to this agent.
386385 :vartype index_name: str
387386 :ivar query_type: Type of query in an AIIndexResource attached to this agent. Known values are:
388387 "simple", "semantic", "vector", "vector_simple_hybrid", and "vector_semantic_hybrid".
@@ -391,12 +390,14 @@ class AISearchIndexResource(_Model):
391390 :vartype top_k: int
392391 :ivar filter: filter string for search resource.
393392 :vartype filter: str
393+ :ivar index_asset_id: Index asset id for search resource.
394+ :vartype index_asset_id: str
394395 """
395396
396- index_connection_id : str = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
397- """An index connection id in an IndexResource attached to this agent. Required. """
398- index_name : str = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
399- """The name of an index in an IndexResource attached to this agent. Required. """
397+ index_connection_id : Optional [ str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
398+ """An index connection id in an IndexResource attached to this agent."""
399+ index_name : Optional [ str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
400+ """The name of an index in an IndexResource attached to this agent."""
400401 query_type : Optional [Union [str , "_models.AzureAISearchQueryType" ]] = rest_field (
401402 visibility = ["read" , "create" , "update" , "delete" , "query" ]
402403 )
@@ -406,16 +407,19 @@ class AISearchIndexResource(_Model):
406407 """Number of documents to retrieve from search and present to the model."""
407408 filter : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
408409 """filter string for search resource."""
410+ index_asset_id : Optional [str ] = rest_field (visibility = ["read" , "create" , "update" , "delete" , "query" ])
411+ """Index asset id for search resource."""
409412
410413 @overload
411414 def __init__ (
412415 self ,
413416 * ,
414- index_connection_id : str ,
415- index_name : str ,
417+ index_connection_id : Optional [ str ] = None ,
418+ index_name : Optional [ str ] = None ,
416419 query_type : Optional [Union [str , "_models.AzureAISearchQueryType" ]] = None ,
417420 top_k : Optional [int ] = None ,
418421 filter : Optional [str ] = None , # pylint: disable=redefined-builtin
422+ index_asset_id : Optional [str ] = None ,
419423 ) -> None : ...
420424
421425 @overload
0 commit comments