
                             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  \R                  " \R                  R                  5       " S	 S
\R                  5      5       rg)z%Command for listing Stacks resources.    )absolute_import)division)unicode_literals)base)graph)run_apps_operations)logc                   $    \ rS rSrSrS rS rSrg)ExportGraph   z$Export a graph for Stacks resources.c                     U R                  5       n[        R                  " X5       nUR                  5       sSSS5        $ ! , (       d  f       g= f)a  Export a graph for Stacks resources.

Args:
  args: ArgumentParser, used to reference the inputs provided by the user.

Returns:
  dict with a single key that maps to a list of resources.
  This will be used by the integration_list_printer to format all
  the entries in the list.

  The reason this is not a list is because the printer will only recieve
  one entry at a time and cannot easily format all entries into a table.
N)ReleaseTrackr   ConnectGetBindingData)selfargsrelease_trackclients       ,lib/surface/stacks/resources/export_graph.pyRunExportGraph.Run   s:     %%'M		$	$T	9V""$ 
:	9	9s   A
Ac                     AU(       a]  [         R                  " US5       HA  n[        R                  R	                  U5        [        R                  R	                  S5        MC     gg)zThis method is called to print the result of the Run() method.

Args:
  args: all the arguments that were provided to this command invocation.
  bindings: The binding data returned from Run().
ResourcesGraph
N)r   GenerateBindingGraphr	   outwrite)r   r   bindingslines       r   DisplayExportGraph.Display2   sH     	,,X7GH$dd I      N)__name__
__module____qualname____firstlineno____doc__r   r    __static_attributes__r#   r"   r   r   r      s    ,%&r"   r   N)r(   
__future__r   r   r   googlecloudsdk.callioper   +googlecloudsdk.command_lib.run.integrationsr   r   googlecloudsdk.corer	   ReleaseTracksr   ALPHAListCommandr   r#   r"   r   <module>r1      sW    , &  ' ( = K # D%%++,!$"" ! -!r"   