
                         D    d Z ddlmZ ddlmZ ddlmZ ddlmZ d Zd Zy)	z+Utilities for AI Platform indexes commands.    )absolute_import)division)unicode_literals)	resourcesc                 <    t        dj                  | |||            S )zBuild multi-parent operation.z1projects/{}/locations/{}/indexes/{}/operations/{})ParseIndexOperationformat)
project_idlocation_idindex_idoperation_ids       1lib/googlecloudsdk/command_lib/ai/indexes_util.pyBuildIndexParentOperationr      s&    	9@@
k8\;
< <    c                     d| v r"	 t         j                  j                  | d      S t         j                  j                  | d      S # t         j                  $ r Y 6w xY w)zParse operation relative resource name to the operation reference object.

  Args:
    operation_name: The operation resource name

  Returns:
    The operation reference object
  z	/indexes/z0aiplatform.projects.locations.indexes.operations)
collectionz(aiplatform.projects.locations.operations)r   REGISTRYParseRelativeName WrongResourceCollectionException)operation_names    r   r   r      sy     N"11
G 2 I I
 
			-	-!K 
. 
M M 55 
s    A AAN)	__doc__
__future__r   r   r   googlecloudsdk.corer   r   r    r   r   <module>r      s!    2 &  ' )<Mr   