
                         n    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
  G d dej                        Zy	)
zLCapture cluster information and logs into archive to help diagnose problems.    )
debug_util)base)	resources)istioctl_backend)
propertiesc                   &    e Zd ZdZed        Zd Zy)	BugReportzCapture cluster information and logs into archive to help diagnose problems.

  Example: ${command} --project=projectId
                      --membership=membershipId
                      --location=location
  c                 6    t        j                  | ddd       y )NFTz/Name of the membership to troubleshoot against.)pluralmembership_requiredmembership_help)r   AddMembershipResourceArg)parsers    4lib/surface/container/fleet/mesh/debug/bug_report.pyArgszBugReport.Args    s    &&u I    c                 *   t        j                         }t        j                  |      }t        j                  t
        j                  j                  j                  j                         d      } |d|t        j                  ddi      |      }|S )Napply)account	operationz
bug-reportGCLOUD_AUTH_PLUGINtrue)
extra_vars)commandcontextenvstdin)r   IstioctlWrapperr   ContextGeneratorGetAuthTokenr   VALUEScorer   GetGetEnvArgsForCommand)selfargscommand_executorr   	auth_credresponses         r   RunzBugReport.Run(   s    '779))$/G --!!&&..224I  11,f5
 H Or   N)__name__
__module____qualname____doc__staticmethodr   r*    r   r   r	   r	      s       r   r	   N)r.   &googlecloudsdk.api_lib.container.fleetr   googlecloudsdk.callioper   *googlecloudsdk.command_lib.container.fleetr   /googlecloudsdk.command_lib.container.fleet.meshr   googlecloudsdk.corer   BinaryBackedCommandr	   r0   r   r   <module>r7      s,    S = ( @ L *(( r   