
    8                     |   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$                  R&                  5       " S S	\R(                  5      5       5       r\R                   \R"                  " \R$                  R,                  5       " S
 S\5      5       5       rg)(Delete a Cloud NetApp Volume Quota Rule.    )client)base)flags)concept_parsers)log)
console_ioc                   d    \ rS rSrSr\R                  R                  rSSS.r	\
S 5       rS rSrg	)
Delete   z'Delete a Cloud NetApp Volume QuotaRule.z<          Delete a Cloud NetApp Volume QuotaRule.
          aP            The following command deletes a QuotaRule named NAME using the required arguments:

              $ {command} NAME --location=us-central1 --volume=vol1

          To delete a QuotaRule named NAME asynchronously, run the following command:

              $ {command} NAME --location=us-central1 --volume=vol1 --async
          )DESCRIPTIONEXAMPLESc                     [         R                  " [        R                  " S5      /5      R	                  U 5        [
        R                  " U 5        [        R                  " U 5        g)z#Add args for deleting a Quota Rule.zThe Quota Rule to delete.N)r   ConceptParserr   GetQuotaRulePresentationSpecAddToParserquota_rules_flagsAddQuotaRuleVolumeArgAddResourceAsyncFlag)parsers    0lib/surface/netapp/volumes/quota_rules/delete.pyArgsDelete.Args1   sL     !!**+FG# {6++F3	v&    c                 (   UR                   R                  R                  5       nUR                  (       d9  SR	                  UR                  5       5      n[        R                  " US9(       d  g[        R                  " U R                  5      nUR                  X!R                  5      nUR                  (       aW  SR	                  U R                  5       R                  5      n[        R                   R#                  SR	                  U5      5        U$ )z>Delete a Cloud NetApp Volume QuotaRule in the current project.z5You are about to delete a QuotaRule {}.
Are you sure?)messageNz)gcloud {} netapp volumes quota-rules listzDCheck the status of the deletion by listing all quota rules:
  $ {} )CONCEPTS
quota_ruleParsequietformatRelativeNamer	   PromptContinuequota_rules_clientQuotaRulesClient_RELEASE_TRACKDeleteQuotaRuleasync_ReleaseTrackprefixr   statusPrint)selfargsquota_rule_refdelete_warningr   resultcommands          r   Run
Delete.Run:   s    ]]--335N::
B
I
I))+ 
 &&~>001D1DEF##NKK@F{{;BB




$
$g 
jj&/ Mr    N)__name__
__module____qualname____firstlineno____doc__r   r)   GAr&   detailed_helpstaticmethodr   r3   __static_attributes__r5   r   r   r   r      sB     0$$''.	- ' 'r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)
DeleteBetaT   r   r5   N)
r6   r7   r8   r9   r:   r   r)   BETAr&   r>   r5   r   r   r@   r@   T   s     1$$)).r   r@   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   googlecloudsdk.core.consoler	   DefaultUniverseOnlyReleaseTracksr)   r;   DeleteCommandr   rB   r@   r5   r   r   <module>rM      s    / Z ( 3 \ D # 2 D%%(()4T 4 * 4n D%%**+* * , *r   