
                         z    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\R                  5      rg	)
zRestore a version.    )absolute_import)division)unicode_literals)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)Restore   a  Restore a version scheduled for destruction.

Restores the given version that was scheduled to be destroyed.

This moves the version from Scheduled for destruction to Disabled.
Only versions which are Scheduled for destruction can be Restored.

## EXAMPLES

The following command restores version 9 of key `frodo` within
keyring `fellowship` and location `us-east1` which was previously scheduled
for destruction:

  $ {command} 9 --location=us-east1 --keyring=fellowship --key=frodo
c                 2    [         R                  " U S5        g )Nz
to restore)r   AddKeyVersionResourceArgument)parsers    (lib/surface/kms/keys/versions/restore.pyArgsRestore.Args+   s    	''=    c                     [         R                  " 5       n[         R                  " 5       n[        R                  " U5      nUR                  UR                  5       S9nUR                  nUR                  U5      $ )N)name)	cloudkms_baseGetClientInstanceGetMessagesModuler   ParseCryptoKeyVersionNameJCloudkmsProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreRequestRelativeName8projects_locations_keyRings_cryptoKeys_cryptoKeyVersionsr	   )selfargsclientmessagesversion_refreqckvs          r   RunRestore.Run/   sl    ,,.F..0H11$7K

]
]%%' ^ )C 
I
IC;;sr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r"   __static_attributes__r$   r   r   r	   r	      s       > >
r   r	   N)r)   
__future__r   r   r   googlecloudsdk.api_lib.cloudkmsr   r   googlecloudsdk.calliopegooglecloudsdk.command_lib.kmsr   UpdateCommandr	   r$   r   r   <module>r1      s.     &  ' A ( 0d   r   