
    j                     ~    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r " S	 S
\R                  5      rg)zCapture client sync status.    )
debug_util)base)	resources)istioctl_backend)log)
propertiesz
    Retrieve the configuration sync status of all the proxies with the control plane.

      Example: ${command} --project=projectId --membership=membershipId --location=us-central1
c                   6    \ rS rSrSrS\0r\S 5       rS r	Sr
g)ProxyStatus!   z0Retrieve the envoy configuration sync status.
  EXAMPLESc                 V    [         R                  " U SSSS9  U R                  SSSSS9  g )	NFTz/Name of the membership to troubleshoot against.)pluralmembership_requiredmembership_helppod_name?zPIf applied, capture the config dump differences between control plane and Envoy.)nargshiddenhelp)r   AddMembershipResourceArgadd_argument)parsers    6lib/surface/container/fleet/mesh/debug/proxy_status.pyArgsProxyStatus.Args&   s?    && I	        c                    [         R                  " 5       n[        R                  " U5      n[        R                  " U5      u  pEU(       a"  [
        R                  R                  SU-   5        U(       a"  [
        R                  R                  SU-   5        [         R                  " [        R                  R                  R                  R                  5       SS9nU" SUR                  UUU[         R                  " SS0S9US	9nU$ )
NzFound MeshName = zFound project number = apply)account	operationzproxy-statusGCLOUD_AUTH_PLUGINtrue)
extra_vars)commandr   context	mesh_nameproject_numberenvstdin)r   IstioctlWrapperr   ContextGeneratorMeshInfoGeneratorr   statusPrintGetAuthTokenr   VALUEScorer   Getr   GetEnvArgsForCommand)selfargscommand_executorr%   r&   r'   	auth_credresponses           r   RunProxyStatus.Run8   s    '779))$/G * < <T BI	jj*Y67	jj0>AB --!!&&..224I  %11,f5
 
H Or    N)__name__
__module____qualname____firstlineno____doc__r   detailed_helpstaticmethodr   r9   __static_attributes__r;   r   r   r
   r
   !   s(    x(- "r   r
   N)r@   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.fleetr   /googlecloudsdk.command_lib.container.fleet.meshr   googlecloudsdk.corer   r   r   BinaryBackedCommandr
   r;   r   r   <module>rJ      s5    " = ( @ L # *1$** 1r   