
    	                     8   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SKJr  S	S
S.r\
R                  \
R                  " \
R                   R"                  \
R                   R$                  5       " S S\
R&                  5      5       5       r\\l        g)z''workbench instances diagnose' command.    )absolute_import)division)unicode_literals)	instances)util)base)flagsz-
        Diagnoses a workbench instance.
    a  
    To diagnose an instance, run:

        $ {command} example-instance --location=us-west1-b --gcs-bucket=gs://example-bucket

    To diagnose an instance with a relative path:

        $ {command} example-instance --location=us-west1-b --gcs-bucket=gs://example-bucket --relative-path=logs

    To diagnose an instance, with packet capture:

        $ {command} example-instance --location=us-west1-b --gcs-bucket=gs://example-bucket --enable-packet-capture
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)Diagnose0   zDiagnoses a workbench instance.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r	   AddDiagnoseInstanceFlags)parsers    +lib/surface/workbench/instances/diagnose.pyArgsDiagnose.Args5   s     
""6*    c                 <   U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[        R                  " UUUU[        R                  R                  S9$ )z9This is what gets called when the user runs this command.)operation_type)ReleaseTrackr   	GetClientGetMessagesprojects_locations_instancesr   instance_utilCreateInstanceDiagnoseRequest	HandleLROOperationTypeUPDATE)selfargsrelease_trackclientmessagesinstance_service	operations          r   RunDiagnose.Run:   s    %%'M^^M*F.H:: ))33DCEI""$2299; ;r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r(   __static_attributes__r*   r   r   r   r   0   s     (+ +;r   r   N)r/   
__future__r   r   r    googlecloudsdk.api_lib.workbenchr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.workbenchr	   DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GABETACommandr   detailed_helpr*   r   r   <module>r=      s    . &  ' G 1 ( 6		, D%%(($*;*;*@*@A;t|| ; B ;0 ' r   