
    o	                     p   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 ej                   ej                  ej                   j"                         G d dej$                                      Zej                   ej                  ej                   j(                         G d	 d
e                    Zy)z%List Cloud NetApp Volume Quota Rules.    )client)base)flags)concept_parsers)
propertiesc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)List$List Cloud NetApp Volume QuotaRules.z:          Lists Cloud NetApp Volume QuotaRules.
          z          The following command lists all QuotaRules in the given location and volume:

              $ {command} --location=us-central1 --volume=vol1
          )DESCRIPTIONEXAMPLESc                     t        j                  t        j                  d      g      j	                  |        t        j                  | d       y )Nz0The location in which to list Volume QuotaRules.T)required)r   ConceptParserr   *GetResourceListingLocationPresentationSpecAddToParserquota_rules_flagsAddQuotaRuleVolumeArg)parsers    .lib/surface/netapp/volumes/quota_rules/list.pyArgsz	List.Args,   sC    !!88>	@#  {6++FTB    c                 V   t         j                  j                  j                  j	                          |j
                  j                  j                         j                         }t        j                  | j                        }t        |j                  ||j                              S )zRun the list command.)release_track)limit)r   VALUEScoreproject	GetOrFailCONCEPTSvolumeParseRelativeNamequota_rules_clientQuotaRulesClient_RELEASE_TRACKlistListQuotaRulesr   )selfargs
volume_refr   s       r   RunzList.Run4   s}     "",,.%%++-::<J00))F %%j

%CDDr   N)__name__
__module____qualname____doc__r   ReleaseTrackGAr%   detailed_helpstaticmethodr   r+    r   r   r	   r	      sE     -$$''.		- C C	Er   r	   c                   <    e Zd ZdZej
                  j                  Zy)ListBetar
   N)r,   r-   r.   r/   r   r0   BETAr%   r4   r   r   r6   r6   @   s     -$$)).r   r6   N)r/   1googlecloudsdk.api_lib.netapp.volumes.quota_rulesr   r#   googlecloudsdk.callioper   !googlecloudsdk.command_lib.netappr   5googlecloudsdk.command_lib.netapp.volumes.quota_rulesr   (googlecloudsdk.command_lib.util.conceptsr   googlecloudsdk.corer   DefaultUniverseOnlyReleaseTracksr0   r1   ListCommandr	   r7   r6   r4   r   r   <module>rA      s     , Z ( 3 \ D * D%%(()!E4 !E * !EH D%%**+*t * , *r   