
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  SS	K	Jr  SS
K	Jr  SSK	Jr  \R                  " \R                   R"                  5       " S S\R$                  5      5       r\R                  " \R                   R(                  \R                   R*                  5       " S S\5      5       rg)z&Vertex AI operations describe command.    )absolute_import)division)unicode_literals)
operations)base)	constants)endpoint_util)flags)index_endpoints_util)indexes_utilc                   4    \ rS rSrSr\S 5       rS rS rSr	g)
DescribeV1   aj  Gets detailed index information about the given operation id.

## EXAMPLES

To describe an operation `123` of project `example` in region
`us-central1`, run:

  $ {command} 123 --project=example --region=us-central1

To describe an operation `123` belongs to parent index resource `456` of
project `example` in region `us-central1`, run:

  $ {command} 123 --index=456 --project=example --region=us-central1

To describe an operation `123` belongs to parent index endpoint resource `456`
of project `example` in region `us-central1`, run:

  $ {command} 123 --index-endpoint=456 --project=example --region=us-central1
c                     [         R                  " U 5        [         R                  " SSS9R                  U 5        [         R                  " SSS9R                  U 5        g )NFzd     ID of the index. Applies to operations belongs to an index resource. Do not set otherwise.
    )requiredhelper_textzv     ID of the index endpoint. Applies to operations belongs to an index endpoint resource. Do not set otherwise.
    )r
   AddOperationResourceArgGetIndexIdArgAddToParserGetIndexEndpointIdArg)parsers    %lib/surface/ai/operations/describe.pyArgsDescribeV1.Args4   sT    	!!&)		 
V			 
V	    c                    UR                   R                  R                  5       nUR                  5       S   nUR                  5       S   nUR                  5       S   nUR                  b#  [
        R                  " XEUR                  U5      nO/UR                  b"  [        R                  " XEUR                  U5      n[        R                  " X%S9   [        R                  " US9R                  U5      sS S S 5        $ ! , (       d  f       g = f)N
projectsIdlocationsIdoperationsId)region)version)CONCEPTS	operationParseAsDictindexr   BuildIndexParentOperationindex_endpointr   BuildParentOperationr	   AiplatformEndpointOverridesr   OperationsClientGet)selfargsr!   operation_ref
project_idr    operation_ids          r   _RunDescribeV1._RunB   s     MM++113M%%'5J!!#M2F '').9Lzz"<<
djj,8m				(*??
d11<Am		2	27	J((9==mL 
K	J	Js   #C>>
Dc                 B    U R                  U[        R                  5      $ N)r2   r   
GA_VERSIONr-   r.   s     r   RunDescribeV1.RunT   s    99T9//00r    N)
__name__
__module____qualname____firstlineno____doc__staticmethodr   r2   r8   __static_attributes__r:   r   r   r   r      s&    (  M$1r   r   c                       \ rS rSrSrS rSrg)DescribeV1Beta1X   a  Gets detailed index information about the given operation id.

## EXAMPLES

To describe an operation `123` of project `example` in region
`us-central1`, run:

  $ {command} 123 --project=example --region=us-central1

To describe an operation `123` belongs to parent index resource `456` of
project `example` in region `us-central1`, run:

  $ {command} 123 --index=456 --project=example --region=us-central1
c                 B    U R                  U[        R                  5      $ r5   )r2   r   BETA_VERSIONr7   s     r   r8   DescribeV1Beta1.Runi   s    99T91122r   r:   N)r;   r<   r=   r>   r?   r8   rA   r:   r   r   rC   rC   X   s    3r   rC   N)r?   
__future__r   r   r   googlecloudsdk.api_lib.air   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   r
   r   r   ReleaseTracksReleaseTrackGADescribeCommandr   ALPHABETArC   r:   r   r   <module>rR      s    - &  ' 0 ( 3 7 / > 6 D%%(()61%% 61 *61r D%%++T->->-C-CD3j 3 E3r   