
                            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  SSKJr  Sr\R$                  " \R&                  R(                  5       " S S\R*                  5      5       r\R$                  " \R&                  R.                  \R&                  R0                  5       " S S\5      5       rg)z5Command to delete a Persistent Resource in Vertex AI.    )absolute_import)division)unicode_literals)client)base)	constants)endpoint_util)flags)
validation)logzRequest to delete the PersistentResource [{name}] has been sent.

You may view the status of your persistent resource with the command

  $ {command_prefix} ai persistent-resources describe {name}
c                   L    \ rS rSrSr\R                  r\S 5       r	S r
S rSrg)DeleteGA&   4  Delete an active Persistent Resource.

If the Persistent Resource is not in the active state,
the command will not perform any operation.

## EXAMPLES

To delete a persistent resource ``123'' under project ``example'' in region
``us-central1'', run:

  $ {command} 123 --project=example --region=us-central1
c                 2    [         R                  " U S5        g )Nz	to delete)r
    AddPersistentResourceResourceArg)parsers    -lib/surface/ai/persistent_resources/delete.pyArgsDeleteGA.Args6   s    	**6;?    c                     SnU R                  5       R                  (       a   USU R                  5       R                  -   -  nU$ )Ngcloud )ReleaseTrackprefix)self
cmd_prefixs     r   _CommandPrefixDeleteGA._CommandPrefix:   s=    J!!C$++-4444jr   c                 
   UR                   R                  R                  5       nUR                  5       S   n[        R
                  " U5        [        R                  " U R                  US9   UR                  5       n[        R                  " U R                  S9R                  U5      n[        R                  R                  [         R#                  X@R%                  5       S95        UsS S S 5        $ ! , (       d  f       g = f)NlocationsId)versionregion)r#   )namecommand_prefix)CONCEPTSpersistent_resourceParseAsDictr   ValidateRegionr	   AiplatformEndpointOverrides_api_versionRelativeNamer   PersistentResourcesClientDeleter   statusPrint+_PERSISTENT_RESOURCE_DELETE_DISPLAY_MESSAGEformatr   )r   argspersistent_resource_refr$   resource_nameresponses         r   RunDeleteGA.Run@   s    "mm??EEG$++-m<Ff%		2	2!!&
2-::<m11##%%+VM%: 	jj
5
<
< 1D1D1F = HI 
2 
2 
2s   -A=C44
D N)__name__
__module____qualname____firstlineno____doc__r   
GA_VERSIONr-   staticmethodr   r   r9   __static_attributes__r;   r   r   r   r   &   s2     %%,@ @r   r   c                   0    \ rS rSrSr\R                  rSrg)DeletePreGAP   r   r;   N)	r<   r=   r>   r?   r@   r   BETA_VERSIONr-   rC   r;   r   r   rE   rE   P   s     '',r   rE   N)r@   
__future__r   r   r   .googlecloudsdk.api_lib.ai.persistent_resourcesr   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r	   2googlecloudsdk.command_lib.ai.persistent_resourcesr
   r   googlecloudsdk.corer   r3   ReleaseTracksr   GASilentCommandr   ALPHABETArE   r;   r   r   <module>rS      s    < &  ' A ( 3 7 D I #/ + D%%(()&t!! & *&R D%%++T->->-C-CD(( ( E(r   