
    e                     X   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Jr  SS	KJr  \	R$                  " \	R&                  R(                  5       " S
 S\	R*                  5      5       r\	R$                  " \	R&                  R.                  5       " S S\5      5       rg)z+Lists Cloud NetApp Volumes Backup Policies.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)
propertiesc                   d    \ rS rSrSrSSS.r\R                  R                  r	\
S 5       rS rSrg	)
List   *List Cloud NetApp Volumes Backup Policies.zC          Lists Backup Policies for Cloud NetApp Volumes
          z          The following command lists all Backup Policies in the default netapp/location

              $ {command}

          To list all Backup Policies in a specified location, run:

              $ {command} --location=us-central1
          )DESCRIPTIONEXAMPLESc                     [         R                  " [        R                  " S5      /5      R	                  U 5        U R
                  R                  [        R                  5        g )Nz.The location in which to list Backup Policies.)	r	   ConceptParserr   *GetResourceListingLocationPresentationSpecAddToParserdisplay_info	AddFormatbackuppolicies_flagsBACKUP_POLICIES_LIST_FORMAT)parsers    *lib/surface/netapp/backup_policies/list.pyArgs	List.Args2   sO    !!<<@	
 k&
!!88    c                    [         R                  R                  R                  R	                  5         UR
                  R                  R                  5       R                  5       nUR                  (       a  UR                  OSnUR                  S5      nX4S'   SR                  U5      n[        R                  " U R                  S9n[        UR                  X!R                   S95      $ )zRun the list command.-/)release_track)limit)r
   VALUEScoreproject	GetOrFailCONCEPTSlocationParseRelativeNamesplitjoinbackuppolicies_clientBackupPoliciesClient_RELEASE_TRACKlistListBackupPoliciesr#   )selfargslocation_refr)   location_listr   s         r   RunList.Run?   s     "",,.==))//1>>@L $t}}3H &&s+M "88M*L"77))+F)),jj)IJJr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpr   ReleaseTrackGAr0   staticmethodr   r7   __static_attributes__r9   r   r   r   r      sA    2	- $$''.
 
Kr   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)ListBetaN   r   r9   N)
r:   r;   r<   r=   r>   r   r@   BETAr0   rC   r9   r   r   rE   rE   N   s    2$$)).r   rE   N)r>   
__future__r   r   r   -googlecloudsdk.api_lib.netapp.backup_policiesr   r.   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   1googlecloudsdk.command_lib.netapp.backup_policiesr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   ReleaseTracksr@   rA   ListCommandr   rG   rE   r9   r   r   <module>rQ      s    2 &  ' Y ( 3 [ D * D%%(()-K4 -K *-K` D%%**+*t * ,*r   