
                            S r SSKJr  SSKJ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 " S S\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 " S S \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 " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      r " S5 S6\5      r " S7 S8\5      r  " S9 S:\5      r! " S; S<\5      r" " S= S>\5      r# " S? S@\5      r$ " SA SB\5      r% " SC SD\5      r& " SE SF\5      r' " SG SH\5      r( " SI SJ\5      r) " SK SL\5      r* " SM SN\5      r+SO r, " SP SQ\5      r-gR)Sz>Wrapper for user-visible error exceptions to raise in the CLI.    )
exceptionsc                       \ rS rSrSrSrg)Error   zBase class for Services errors. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       H/root/google-cloud-sdk/lib/googlecloudsdk/api_lib/services/exceptions.pyr   r          'r   r   c                       \ rS rSrSrSrg)EnableServiceException   z%Exception for enable service command.r   Nr   r   r   r   r   r      s    -r   r   c                       \ rS rSrSrSrg)ListServicesException   zList services command.r   Nr   r   r   r   r   r          r   r   c                       \ rS rSrSrSrg)#GetServicePermissionDeniedException    z4Permission denied exception for get service command.r   Nr   r   r   r   r   r       s    <r   r   c                       \ rS rSrSrSrg),CreateQuotaOverridePermissionDeniedException$   z>Permission denied exception for create quota override command.r   Nr   r   r   r   r   r   $       Fr   r   c                       \ rS rSrSrSrg),UpdateQuotaOverridePermissionDeniedException(   z>Permission denied exception for update quota override command.r   Nr   r   r   r   r!   r!   (   r   r   r!   c                       \ rS rSrSrSrg),DeleteQuotaOverridePermissionDeniedException,   z>Permission denied exception for delete quota override command.r   Nr   r   r   r   r$   r$   ,   r   r   r$   c                       \ rS rSrSrSrg)*CreateConnectionsPermissionDeniedException0   :Permission denied exception for create connection command.r   Nr   r   r   r   r'   r'   0       Br   r'   c                       \ rS rSrSrSrg)*DeleteConnectionsPermissionDeniedException4   r)   r   Nr   r   r   r   r,   r,   4   r*   r   r,   c                       \ rS rSrSrSrg)*UpdateConnectionsPermissionDeniedException8   9Permission denied exception for list connections command.r   Nr   r   r   r   r/   r/   8       Ar   r/   c                       \ rS rSrSrSrg)(ListConnectionsPermissionDeniedException<   r1   r   Nr   r   r   r   r4   r4   <   r2   r   r4   c                       \ rS rSrSrSrg)1EnableVpcServiceControlsPermissionDeniedException@   zDPermission denied exception for enable vpc service controls command.r   Nr   r   r   r   r7   r7   @   s    Lr   r7   c                       \ rS rSrSrSrg).GetVpcServiceControlsPermissionDeniedExceptionD   zAPermission denied exception for get vpc service controls command.r   Nr   r   r   r   r:   r:   D       Ir   r:   c                       \ rS rSrSrSrg)2DisableVpcServiceControlsPermissionDeniedExceptionH   zEPermission denied exception for disable vpc service controls command.r   Nr   r   r   r   r>   r>   H   s    Mr   r>   c                       \ rS rSrSrSrg).CreatePeeredDnsDomainPermissionDeniedExceptionL   zAPermission denied exception for create peered dns domain command.r   Nr   r   r   r   rA   rA   L   r<   r   rA   c                       \ rS rSrSrSrg).DeletePeeredDnsDomainPermissionDeniedExceptionP   zAPermission denied exception for delete peered dns domain command.r   Nr   r   r   r   rD   rD   P   r<   r   rD   c                       \ rS rSrSrSrg)-ListPeeredDnsDomainsPermissionDeniedExceptionT   z@Permission denied exception for list peered dns domains command.r   Nr   r   r   r   rG   rG   T   s    Hr   rG   c                       \ rS rSrSrSrg)0GenerateServiceIdentityPermissionDeniedExceptionX   zCPermission denied exception for generate service identitiy command.r   Nr   r   r   r   rJ   rJ   X   s    Kr   rJ   c                       \ rS rSrSrSrg)GetConsumerPolicyException\   z"Exception for get consumer policy.r   Nr   r   r   r   rM   rM   \   s    *r   rM   c                       \ rS rSrSrSrg)UpdateConsumerPolicyException`   zUpdate consumer policy.r   Nr   r   r   r   rP   rP   `   s    r   rP   c                       \ rS rSrSrSrg)4GetReverseDependencyClosurePermissionDeniedExceptiond   z?Permission denied exception for get reverse dependency closure.r   Nr   r   r   r   rS   rS   d       Gr   rS   c                       \ rS rSrSrSrg)-ListFlattenedMembersPermissionDeniedExceptionh   z7Permission denied exception for list flattened members.r   Nr   r   r   r   rW   rW   h   s    ?r   rW   c                       \ rS rSrSrSrg)ListGroupMembersExceptionl   z!Exception for list group members.r   Nr   r   r   r   rZ   rZ   l   s    )r   rZ   c                       \ rS rSrSrSrg)'FetchValueInfoPermissionDeniedExceptionp   z?Permission denied exception for fetch value info group members.r   Nr   r   r   r   r]   r]   p   rU   r   r]   c                       \ rS rSrSrSrg)GetEffectivePolicyExceptiont   z#Exception for get effective policy.r   Nr   r   r   r   r`   r`   t   s    +r   r`   c                       \ rS rSrSrSrg)-FetchPublicValueInfoPermissionDeniedExceptionx   zFPermission denied exception for fetch public value info group members.r   Nr   r   r   r   rc   rc   x   s    Nr   rc   c                       \ rS rSrSrSrg)TestEnabledException|   zException for test enabled.r   Nr   r   r   r   rf   rf   |   s    #r   rf   c                       \ rS rSrSrSrg)ListDescendantServicesException   z'Exception for list descendant services.r   Nr   r   r   r   ri   ri          /r   ri   c                       \ rS rSrSrSrg)ListExpandedMembersException   z$Exception for list expanded members.r   Nr   r   r   r   rm   rm      s    ,r   rm   c                       \ rS rSrSrSrg)+ListAncestorGroupsPermissionDeniedException   z5Permission denied exception for list ancestor groups.r   Nr   r   r   r   rp   rp      s    =r   rp   c                       \ rS rSrSrSrg)BatchGetServiceException   zBatch get service.r   Nr   r   r   r   rs   rs      s    r   rs   c                       \ rS rSrSrSrg)ListCategoryServicesException   zList category service.r   Nr   r   r   r   rv   rv      r   r   rv   c                       \ rS rSrSrSrg)AnalyzeConsumerPolicyException   zAnalyze consumer policy.r   Nr   r   r   r   ry   ry      s     r   ry   c                       \ rS rSrSrSrg)TestMcpEnabledException   zException for test MCP enabled.r   Nr   r   r   r   r|   r|      r   r   r|   c                       \ rS rSrSrSrg)GetMcpPolicyException   zException for get MCP policy.r   Nr   r   r   r   r   r      s    %r   r   c                       \ rS rSrSrSrg)GetEffectiveMcpPolicyException   z'Exception for get effective MCP policy.r   Nr   r   r   r   r   r      rk   r   r   c                       \ rS rSrSrSrg)OperationErrorException   zOperation error.r   Nr   r   r   r   r   r      s    r   r   c                       \ rS rSrSrSrg)TimeoutError   zTimeout error.r   Nr   r   r   r   r   r      s    r   r   c                 d    [         R                  " U" [        R                  " U 5      5      5        g)z$Transform and re-raise error helper.N)core_exceptionsreraiseapi_lib_exceptionsHttpException)errklasss     r   ReraiseErrorr      s!    % 2 @ @ EFGr   c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )ConfigError   z*Raised when unable to parse a config file.c                 F   > U=(       d    Sn[         [        U ]
  " U40 UD6  g )NzConfig Error.)superr   __init__)selfmessagekwargs	__class__s      r   r   ConfigError.__init__   s!    (G	+t%g88r   r   )N)r	   r
   r   r   r   r   r   __classcell__)r   s   @r   r   r      s    29 9r   r   N).r   googlecloudsdk.api_lib.utilr   r   googlecloudsdk.corer   r   r   r   r   r   r!   r$   r'   r,   r/   r4   r7   r:   r>   rA   rD   rG   rJ   rM   rP   rS   rW   rZ   r]   r`   rc   rf   ri   rm   rp   rs   rv   ry   r|   r   r   r   r   r   r   r   r   r   <module>r      s   E H =(O!! (.U .E =% =G5 GG5 GG5 GC CC CB BBu BM MJU JN NJU JJU JIE ILu L+ + E  H5 H@E @* *He H,% ,OE O$5 $0e 0-5 ->% >u E !U !(e (&E &0U 0e 5 H
9% 9r   