
    
                     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)	z3Utilities for AI Platform index endpoints commands.    )absolute_import)division)unicode_literals)	resourcesc                 <    t        dj                  | |||            S )zBuild multi-parent operation.z8projects/{}/locations/{}/indexEndpoints/{}/operations/{})ParseIndexEndpointOperationformat)
project_idlocation_idindex_endpoint_idoperation_ids       9lib/googlecloudsdk/command_lib/ai/index_endpoints_util.pyBuildParentOperationr      s,     
%@GG
k#4lD
E E    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/indexEndpoints/z7aiplatform.projects.locations.indexEndpoints.operations)
collectionz(aiplatform.projects.locations.operations)r   REGISTRYParseRelativeName WrongResourceCollectionException)operation_names    r   r   r       sy     >)11
N 2 P P
 
			-	-!K 
. 
M M 55 
s    A AAN)	__doc__
__future__r   r   r   googlecloudsdk.corer   r   r    r   r   <module>r      s"    : &  ' )EMr   