
    	                         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	KrS
r " S S\
R                  \
R                   5      rSS0\l        g	)zKCommand for listing the associations of an organization or folder resource.    )absolute_import)division)unicode_literals)base_classes)client)base)flagsNz<  table(
    name,
    displayName,
    firewallPolicyId
  )c                   .    \ rS rSrSr\S 5       rS rSrg)List$   zList the associations of an organization or folder resource.

*{command}* is used to list the associations of an organization or folder
 resource.
c                 n    [         R                  " U5        UR                  R                  [        5        g )N)r	   AddArgsListAssociationdisplay_info	AddFormatDEFAULT_LIST_FORMAT)clsparsers     :lib/surface/compute/firewall_policies/associations/list.pyArgs	List.Args+   s%    	  (
!!"56    c                    [         R                  " U R                  5       5      n[        R                  " UR                  UR
                  [        R                  " U R                  5       5      R                  5       S9nS nUR                  S5      (       a  SUR                  -   nO%UR                  S5      (       a  SUR                  -   nUR                  USS9nU(       d  g US   R                  $ )	N)compute_client	resourcesversionorganizationzorganizations/folderzfolders/F)target_resourceonly_generate_requestr   )r   ComputeApiHolderReleaseTrackr   OrgFirewallPolicyr   six	text_typelowerIsSpecifiedr   r   ListAssociationsassociations)selfargsholderorg_firewall_policyr   ress         r   RunList.Run0   s    **4+<+<+>?F 22}}""d//1288:<
 O''(4+<+<<o			(	#	#"T[[0o

.
.'u / FCq6r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r.   __static_attributes__r0   r   r   r   r   $   s      7 7r   r   EXAMPLESzp    To list the associations of the folder with ID ``987654321", run:

      $ {command} --folder=987654321
    )r5   
__future__r   r   r   googlecloudsdk.api_lib.computer   0googlecloudsdk.api_lib.compute.firewall_policiesr   googlecloudsdk.callioper   4googlecloudsdk.command_lib.compute.firewall_policiesr	   r#   r   DescribeCommandListCommandr   detailed_helpr0   r   r   <module>rA      sZ    R &  ' 7 C ( F 
 4!1!1 D 	 r   