
                             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                   5       " S S\
R"                  5      5       r\\l        g)z)'notebooks instances get-health' command.    )absolute_import)division)unicode_literals)	instances)util)base)flagszE
        Request for checking if a notebook instance is healthy.
    zq
    To check if an instance is healthy, run:

        $ {command} example-instance --location=us-central1-a
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)	GetHealth(   z7Request for checking if a notebook instance is healthy.c                 x    [         R                  " U R                  5       5      n[        R                  " X!5        g)z Register flags for this command.N)r   ApiVersionSelectorReleaseTrackr	   AddGetHealthInstanceFlags)clsparserapi_versions      -lib/surface/notebooks/instances/get_health.pyArgsGetHealth.Args,   s+     ))#*:*:*<=K	##K8    c                     U R                  5       n[        R                  " U5      n[        R                  " U5      nUR                  nUR                  [        R                  " X5      5      nU$ )N)r   r   	GetClientGetMessagesprojects_locations_instancesGetInstanceHealthinstance_utilCreateInstanceGetHealthRequest)selfargsrelease_trackclientmessagesinstance_serviceresults          r   RunGetHealth.Run2   s^    %%'M^^M*F.H:://44TDFFMr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r(   __static_attributes__r*   r   r   r   r   (   s    ?9 9
r   r   N)r/   
__future__r   r   r    googlecloudsdk.api_lib.notebooksr   r   r   googlecloudsdk.callioper   $googlecloudsdk.command_lib.notebooksr	   DETAILED_HELPReleaseTracksr   GADescribeCommandr   detailed_helpr*   r   r   <module>r;      sr    0 &  ' G 1 ( 6		 D%%(()$$  *& (	 r   