
    e                     X   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 ddlmZ dd	lmZ  e	j$                  e	j&                  j(                         G d
 de	j*                               Z e	j$                  e	j&                  j.                         G d de             Zy)z+Lists Cloud NetApp Volumes Backup Policies.    )absolute_import)division)unicode_literals)client)base)flags)concept_parsers)
propertiesc                   \    e Zd ZdZdddZej                  j                  Ze	d        Z
d Zy)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                     t        j                  t        j                  d      g      j	                  |        | j
                  j                  t        j                         y )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Argsz	List.Args2   sO    !!<<@	
 k&
!!88    c                    t         j                  j                  j                  j	                          |j
                  j                  j                         j                         }|j                  r|j                  nd}|j                  d      }||d<   dj                  |      }t        j                  | j                        }t        |j                  ||j                               S )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   RunzList.Run?   s     "",,.==))//1>>@L $t}}3H &&s+M M"88M*L"77))+F)),djj)IJJr   N)__name__
__module____qualname____doc__detailed_helpr   ReleaseTrackGAr.   staticmethodr   r5    r   r   r   r      sA    2	- $$''.
 
Kr   r   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar   N)r6   r7   r8   r9   r   r;   BETAr.   r>   r   r   r@   r@   N   s    2$$)).r   r@   N)r9   
__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;   r<   ListCommandr   rA   r@   r>   r   r   <module>rK      s    2 &  ' Y ( 3 [ D * D%%(()-K4 -K *-K` D%%**+*t * ,*r   