
                            d Z ddlmZ ddlmZ  G d dej                        Z G d de      Z G d de      Z G d	 d
e      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d! d"e      Z G d# d$e      Z G d% d&e      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Z G d7 d8e      Z  G d9 d:e      Z! G d; d<e      Z" G d= d>e      Z# G d? d@e      Z$ G dA dBe      Z% G dC dDe      Z& G dE dFe      Z' G dG dHe      Z( G dI dJe      Z) G dK dLe      Z* G dM dNe      Z+dO Z, G dP dQe      Z-yR)Sz>Wrapper for user-visible error exceptions to raise in the CLI.    )
exceptionsc                       e Zd ZdZy)ErrorzBase class for Services errors.N__name__
__module____qualname____doc__     1lib/googlecloudsdk/api_lib/services/exceptions.pyr   r          'r   r   c                       e Zd ZdZy)EnableServiceExceptionz%Exception for enable service command.Nr   r   r   r   r   r      s    -r   r   c                       e Zd ZdZy)ListServicesExceptionzList services command.Nr   r   r   r   r   r          r   r   c                       e Zd ZdZy)#GetServicePermissionDeniedExceptionz4Permission denied exception for get service command.Nr   r   r   r   r   r       s    <r   r   c                       e Zd ZdZy),CreateQuotaOverridePermissionDeniedExceptionz>Permission denied exception for create quota override command.Nr   r   r   r   r   r   $       Fr   r   c                       e Zd ZdZy),UpdateQuotaOverridePermissionDeniedExceptionz>Permission denied exception for update quota override command.Nr   r   r   r   r   r   (   r   r   r   c                       e Zd ZdZy),DeleteQuotaOverridePermissionDeniedExceptionz>Permission denied exception for delete quota override command.Nr   r   r   r   r   r   ,   r   r   r   c                       e Zd ZdZy)*CreateConnectionsPermissionDeniedException:Permission denied exception for create connection command.Nr   r   r   r   r   r   0       Br   r   c                       e Zd ZdZy)*DeleteConnectionsPermissionDeniedExceptionr   Nr   r   r   r   r"   r"   4   r    r   r"   c                       e Zd ZdZy)*UpdateConnectionsPermissionDeniedException9Permission denied exception for list connections command.Nr   r   r   r   r$   r$   8       Ar   r$   c                       e Zd ZdZy)(ListConnectionsPermissionDeniedExceptionr%   Nr   r   r   r   r(   r(   <   r&   r   r(   c                       e Zd ZdZy)1EnableVpcServiceControlsPermissionDeniedExceptionzDPermission denied exception for enable vpc service controls command.Nr   r   r   r   r*   r*   @   s    Lr   r*   c                       e Zd ZdZy).GetVpcServiceControlsPermissionDeniedExceptionzAPermission denied exception for get vpc service controls command.Nr   r   r   r   r,   r,   D       Ir   r,   c                       e Zd ZdZy)2DisableVpcServiceControlsPermissionDeniedExceptionzEPermission denied exception for disable vpc service controls command.Nr   r   r   r   r/   r/   H   s    Mr   r/   c                       e Zd ZdZy).CreatePeeredDnsDomainPermissionDeniedExceptionzAPermission denied exception for create peered dns domain command.Nr   r   r   r   r1   r1   L   r-   r   r1   c                       e Zd ZdZy).DeletePeeredDnsDomainPermissionDeniedExceptionzAPermission denied exception for delete peered dns domain command.Nr   r   r   r   r3   r3   P   r-   r   r3   c                       e Zd ZdZy)-ListPeeredDnsDomainsPermissionDeniedExceptionz@Permission denied exception for list peered dns domains command.Nr   r   r   r   r5   r5   T   s    Hr   r5   c                       e Zd ZdZy)0GenerateServiceIdentityPermissionDeniedExceptionzCPermission denied exception for generate service identitiy command.Nr   r   r   r   r7   r7   X   s    Kr   r7   c                       e Zd ZdZy)GetConsumerPolicyExceptionz"Exception for get consumer policy.Nr   r   r   r   r9   r9   \   s    *r   r9   c                       e Zd ZdZy)UpdateConsumerPolicyExceptionzUpdate consumer policy.Nr   r   r   r   r;   r;   `   s    r   r;   c                       e Zd ZdZy)4GetReverseDependencyClosurePermissionDeniedExceptionz?Permission denied exception for get reverse dependency closure.Nr   r   r   r   r=   r=   d       Gr   r=   c                       e Zd ZdZy)-ListFlattenedMembersPermissionDeniedExceptionz7Permission denied exception for list flattened members.Nr   r   r   r   r@   r@   h   s    ?r   r@   c                       e Zd ZdZy)ListGroupMembersExceptionz!Exception for list group members.Nr   r   r   r   rB   rB   l   s    )r   rB   c                       e Zd ZdZy)'FetchValueInfoPermissionDeniedExceptionz?Permission denied exception for fetch value info group members.Nr   r   r   r   rD   rD   p   r>   r   rD   c                       e Zd ZdZy)GetEffectivePolicyExceptionz#Exception for get effective policy.Nr   r   r   r   rF   rF   t   s    +r   rF   c                       e Zd ZdZy)-FetchPublicValueInfoPermissionDeniedExceptionzFPermission denied exception for fetch public value info group members.Nr   r   r   r   rH   rH   x   s    Nr   rH   c                       e Zd ZdZy)TestEnabledExceptionzException for test enabled.Nr   r   r   r   rJ   rJ   |   s    #r   rJ   c                       e Zd ZdZy)ListDescendantServicesExceptionz'Exception for list descendant services.Nr   r   r   r   rL   rL          /r   rL   c                       e Zd ZdZy)ListExpandedMembersExceptionz$Exception for list expanded members.Nr   r   r   r   rO   rO      s    ,r   rO   c                       e Zd ZdZy)+ListAncestorGroupsPermissionDeniedExceptionz5Permission denied exception for list ancestor groups.Nr   r   r   r   rQ   rQ      s    =r   rQ   c                       e Zd ZdZy)BatchGetServiceExceptionzBatch get service.Nr   r   r   r   rS   rS      s    r   rS   c                       e Zd ZdZy)ListCategoryServicesExceptionzList category service.Nr   r   r   r   rU   rU      r   r   rU   c                       e Zd ZdZy)AnalyzeConsumerPolicyExceptionzAnalyze consumer policy.Nr   r   r   r   rW   rW      s     r   rW   c                       e Zd ZdZy)TestMcpEnabledExceptionzException for test MCP enabled.Nr   r   r   r   rY   rY      r   r   rY   c                       e Zd ZdZy)GetMcpPolicyExceptionzException for get MCP policy.Nr   r   r   r   r[   r[      s    %r   r[   c                       e Zd ZdZy)GetEffectiveMcpPolicyExceptionz'Exception for get effective MCP policy.Nr   r   r   r   r]   r]      rM   r   r]   c                       e Zd ZdZy)OperationErrorExceptionzOperation error.Nr   r   r   r   r_   r_      s    r   r_   c                       e Zd ZdZy)TimeoutErrorzTimeout error.Nr   r   r   r   ra   ra      s    r   ra   c                 `    t        j                   |t        j                  |                    y)z$Transform and re-raise error helper.N)core_exceptionsreraiseapi_lib_exceptionsHttpException)errklasss     r   ReraiseErrorri      s!    % 2 @ @ EFGr   c                   $     e Zd ZdZd fd	Z xZS )ConfigErrorz*Raised when unable to parse a config file.c                 :    |xs d}t        t        | 
  |fi | y )NzConfig Error.)superrk   __init__)selfmessagekwargs	__class__s      r   rn   zConfigError.__init__   s!    (G	+t%g88r   )N)r   r   r	   r
   rn   __classcell__)rr   s   @r   rk   rk      s    29 9r   rk   N).r
   googlecloudsdk.api_lib.utilr   re   googlecloudsdk.corerc   r   r   r   r   r   r   r   r   r"   r$   r(   r*   r,   r/   r1   r3   r5   r7   r9   r;   r=   r@   rB   rD   rF   rH   rJ   rL   rO   rQ   rS   rU   rW   rY   r[   r]   r_   ra   ri   rk   r   r   r   <module>rv      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   