
    8                     |   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 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)(Delete a Cloud NetApp Volume Quota Rule.    )client)base)flags)concept_parsers)log)
console_ioc                   \    e Zd ZdZej
                  j                  ZdddZe	d        Z
d Zy)Deletez'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                     t        j                  t        j                  d      g      j	                  |        t        j                  |        t        j                  |        y)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ArgszDelete.Args1   sL     !!**+FG# {6++F3	v&    c                    |j                   j                  j                         }|j                  s6dj	                  |j                               }t        j                  |      syt        j                  | j                        }|j                  ||j                        }|j                  rWdj	                  | j                         j                        }t        j                   j#                  dj	                  |             |S )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   Runz
Delete.Run:   s    ]]--335N::
B
I
I))+ 
 &&~>001D1DEF##NDKK@F{{;BB




$
$g 
jj&/ Mr   N)__name__
__module____qualname____doc__r   r'   GAr$   detailed_helpstaticmethodr   r1    r   r   r   r      sB     0$$''.	- ' 'r   r   c                   <    e Zd ZdZej
                  j                  Zy)
DeleteBetar   N)r2   r3   r4   r5   r   r'   BETAr$   r9   r   r   r;   r;   T   s     1$$)).r   r;   N)r5   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'   r6   DeleteCommandr   r<   r;   r9   r   r   <module>rG      s    / Z ( 3 \ D # 2 D%%(()4T 4 * 4n D%%**+* * , *r   