
                            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  \	R&                  \	R(                  " \	R*                  R,                  5       " S S\	R.                  5      5       5       r\	R&                  \	R(                  " \	R*                  R2                  5       " S S\5      5       5       rg)z4Destroy a secret version's metadata and secret data.    )absolute_import)division)unicode_literals)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.Args5   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   r2   locationscheduledDestroyTimesecrets_log	DestroyedScheduledDestroyselfr
   r0   version_refresults        r#   RunDestroy.RunC   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__r;   staticmethodr   ArgumentInterceptorr$   r	   	Namespacer5   r?   rI   __static_attributes__rK   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)DestroyBetac   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.Argsv   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/   r1   r4   rE   s        r#   rI   DestroyBeta.Run~   s	   --d.?.?.ABK--''--/K$$++$$&{/A/A/C/H/H/J 	, 	
 ! !!k:BB))T]] C F ""*&&{3
 M --

%
%{ Mr&   rK   N)	rL   rM   rN   rO   rP   rQ   r$   rI   rT   rK   r&   r#   rV   rV   c   s       < <r&   rV   N)rP   
__future__r   r   r   googlecloudsdk.api_lib.secretsr   r5   googlecloudsdk.callioper   r   r	   "googlecloudsdk.command_lib.secretsr
   r   r   rB   googlecloudsdk.core.consoler   DefaultUniverseOnlyReleaseTracksr7   GADeleteCommandr   BETArV   rK   r&   r#   <module>rf      s    ; &  ' = ( 4 5 C A 2 D%%(()@d   @ * @F D%%**+-' - , -r&   