
    	                        S r SSKJr  SSKJr  SSKJr  SrSr	Sr
Sr " S	 S
\R                  5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r\R&                  R(                  4S jr\R&                  R(                  4S jr\R&                  R(                  4S jrg)z(Utilities for calling the Metastore API.    )apis)base)
exceptions	metastorev1alphav1betav1c                       \ rS rSrSrSrg)Error   z)Class for errors raised by Metastore API. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       ,lib/googlecloudsdk/api_lib/metastore/util.pyr   r      s    1r   r   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )OperationError    zHClass for errors raised when a polled operation completes with an error.c                 J   > [         [        U ]  SR                  X5      5        g )NzOperation [{}] failed: {})superr   __init__format)selfoperation_namedescription	__class__s      r   r   OperationError.__init__#   s#    	.$()D)K)K*% &r   r   )r   r   r   r   r   r   r   __classcell__)r!   s   @r   r   r       s    P& &r   r   c                       \ rS rSrSrSrg)ServiceDeleteError(   z0Class for errors raised when deleting a service.r   Nr   r   r   r   r%   r%   (   s    8r   r%   c                       \ rS rSrSrSrg)FederationDeleteError,   z3Class for errors raised when deleting a federation.r   Nr   r   r   r   r(   r(   ,   s    ;r   r(   c                       \ rS rSrSrSrg)AlterLocationError0   zAClass for errors raised when altering metadata resource location.r   Nr   r   r   r   r+   r+   0   s    Ir   r+   c                       \ rS rSrSrSrg)MoveTableToDatabaseError4   z6Class for errors raised when moving table to database.r   Nr   r   r   r   r.   r.   4   s    >r   r.   c                       \ rS rSrSrSrg)QueryMetadataError8   z/Class for errors raised when querying metadata.r   Nr   r   r   r   r1   r1   8   s    7r   r1   c                     U [         R                  R                  :X  a  [        $ U [         R                  R                  :X  a  [
        $ [        $ )N)r   ReleaseTrackALPHAMETASTORE_ALPHA_API_VERSIONBETAMETASTORE_BETA_API_VERSIONMETASTORE_GA_API_VERSIONrelease_tracks    r   GetApiVersionr<   <   s<    d''---&&))...%%##r   c                 F    [         R                  " [        [        U S95      $ Nr:   )r   GetMessagesModuleMETASTORE_API_NAMEr<   r:   s    r   r?   r?   E   "    			 2 -M J
L Lr   c                 F    [         R                  " [        [        U S95      $ r>   )r   GetClientInstancer@   r<   r:   s    r   rC   rC   J   rA   r   N)r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   googlecloudsdk.corer   core_exceptionsr@   r6   r8   r9   r   r   r%   r(   r+   r.   r1   r4   GAr<   r?   rC   r   r   r   <module>rI      s    / - ( =  ' %  2O!! 2&U &9 9<E <J J?u ?8 8 !% 1 1 4 4 $ %)$5$5$8$8 L
 %)$5$5$8$8 Lr   