
                             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dlmZ  G d	 d
e
j                        Zy)z5Command for getting the diagnostics of interconnects.    )absolute_import)division)unicode_literals)base_classes)client)base)flagsc                   *    e Zd ZdZdZed        Zd Zy)GetDiagnosticszGet diagnostics of a Compute Engine interconnect.

    *{command}* displays all runtime data associated with Compute Engine
    interconnect in a project.
  Nc                 p    t        j                         | _        | j                  j                  |d       y )Ndescribe)operation_type)r	   InterconnectArgumentINTERCONNECT_ARGAddArgument)clsparsers     4lib/surface/compute/interconnects/get_diagnostics.pyArgszGetDiagnostics.Args$   s,     557C$$VJ$G    c                     t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  ||j                        }|j                         S )N)compute_client)	r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   Interconnectr   )selfargsholderrefinterconnects        r   RunzGetDiagnostics.Run)   s^    **4+<+<+>?F



1
1$8H8H
IC&&s6==IL&&((r   )__name__
__module____qualname____doc__r   classmethodr   r#    r   r   r   r      s(     H H)r   r   N)r'   
__future__r   r   r   googlecloudsdk.api_lib.computer   ,googlecloudsdk.api_lib.compute.interconnectsr   googlecloudsdk.callioper   0googlecloudsdk.command_lib.compute.interconnectsr	   DescribeCommandr   r)   r   r   <module>r0      s1    < &  ' 7 ? ( B)T)) )r   