
    2                     |   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)z4Destroy a secret version's metadata and secret data.    )api)base)parser_arguments)parser_extensions)args)log)
console_ioc                       \ rS rSrSrSr\S\R                  4S j5       r	S\
R                  S\R                  4S jrS	rg
)Destroy   ag  Destroy a secret version's metadata and secret data.

Destroy a secret version's metadata and secret data. This action is
irreversible.

## EXAMPLES

Destroy version `123` of the secret named `my-secret`:

  $ {command} 123 --secret=my-secret

Destroy version `123` of the secret named `my-secret` using etag:

  $ {command} 123 --secret=my-secret --etag=123
zfYou are about to destroy version [{version}] of the secret [{secret}]. This action cannot be reversed.parserc                     [         R                  " U SSSS9  [         R                  " U SSS9  [         R                  " U SS9  g	)
zArgs is called by calliope to gather arguments for secrets versions destroy command.

Args:
  parser: An argparse parser that you can use to add arguments that will be
    available to this command.

to destroyTpurpose
positionalrequiredto destroy Fr   hidden	destroyedactionNsecrets_args
AddVersionAddLocationAddVersionEtagr   s    'lib/surface/secrets/versions/destroy.pyArgsDestroy.Args2   s?      V]5I{;    r   returnc                 v   [         R                  " U R                  5       5      nUR                  R                  R                  5       n[        R                  " U R                  R                  UR                  5       UR                  5       R                  5       S9SSS9  [         R                  " US9R                  X1R                  UR                  S9nUR                   c&  ["        R                  " 5       R%                  U5        U$ ["        R                  " 5       R'                  UR                   U5        U$ )zRun is called by calliope to implement the secret versions destroy command.

Args:
  args: an argparse namespace, all the arguments that were provided to this
    command invocation.

Returns:
  API call to invoke secret version destroy.
versionsecretTthrow_if_unattendedcancel_on_noapi_versionetagsecret_locationsecrets_apiGetApiFromTrackReleaseTrackCONCEPTSr'   Parser	   PromptContinueCONFIRM_DESTROY_MESSAGEformatNameParentVersionsr   r/   locationscheduledDestroyTimesecrets_log	DestroyedScheduledDestroyselfr   r-   version_refresults        r    RunDestroy.Run@   s    --d.?.?.ABK--''--/K$$++$$&{/A/A/C/H/H/J 	, 	
 ! !!k:BB))T]] C F ""*&&{3
 M --

%
%{ Mr#    N)__name__
__module____qualname____firstlineno____doc__r8   staticmethodr   ArgumentInterceptorr!   r   	Namespacer2   r<   rF   __static_attributes__rH   r#   r    r   r      sS    "(  <#77 < <'11 k6J6J r#   r   c                   .    \ rS rSrSr\S 5       rS rSrg)DestroyBeta`   aj  Destroy a secret version's metadata and secret data.

Destroy a secret version's metadata and secret data. This action is
irreversible.

## EXAMPLES

Destroy version `123` of the secret named `my-secret`:

  $ {command} 123 --secret=my-secret

Destroy version `123` of the secret named `my-secret` using an etag:

  $ {command} 123 --secret=my-secret --etag=123
c                     [         R                  " U SSSS9  [         R                  " U SSS9  [         R                  " U SS9  g )	Nr   Tr   r   Fr   r   r   r   r   s    r    r!   DestroyBeta.Argss   s=     V]5I{;r#   c                 v   [         R                  " U R                  5       5      nUR                  R                  R                  5       n[        R                  " U R                  R                  UR                  5       UR                  5       R                  5       S9SSS9  [         R                  " US9R                  X1R                  UR                  S9nUR                   c&  ["        R                  " 5       R%                  U5        U$ ["        R                  " 5       R'                  UR                   U5        U$ )Nr&   Tr)   r,   r.   r1   rB   s        r    rF   DestroyBeta.Run{   s	   --d.?.?.ABK--''--/K$$++$$&{/A/A/C/H/H/J 	, 	
 ! !!k:BB))T]] C F ""*&&{3
 M --

%
%{ Mr#   rH   N)	rI   rJ   rK   rL   rM   rN   r!   rF   rQ   rH   r#   r    rS   rS   `   s       < <r#   rS   N)rM   googlecloudsdk.api_lib.secretsr   r2   googlecloudsdk.callioper   r   r   "googlecloudsdk.command_lib.secretsr   r   r   r?   googlecloudsdk.core.consoler	   UniverseCompatibleReleaseTracksr4   GADeleteCommandr   DefaultUniverseOnlyBETArS   rH   r#   r    <module>rc      s    ; > ( 4 5 C A 2 D%%(()@d   @ * @F D%%**+-' - , -r#   