
    j                     ~    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddl	mZ dZ G d	 d
ej                        Zy)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                   .    e Zd ZdZdeiZed        Zd Zy)ProxyStatusz0Retrieve the envoy configuration sync status.
  EXAMPLESc                 `    t        j                  | ddd       | j                  dddd       y )	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ArgszProxyStatus.Args&   s?    && I	        c                    t        j                         }t        j                  |      }t        j                  |      \  }}|r"t
        j                  j                  d|z          |r"t
        j                  j                  d|z          t        j                  t        j                  j                  j                  j                         d      } |d|j                  |||t        j                  ddi      |	      }|S )
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   Runz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____doc__r   detailed_helpstaticmethodr   r7    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>rE      s5    " = ( @ L # *1$** 1r   