
                             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                   G d d	ej                               Zy
)z'Describe the AutokeyConfig of a folder.    )absolute_import)division)unicode_literals)base)flags)parsingc                   &    e Zd ZdZed        Zd Zy)DescribezUpdates the AutokeyConfig for a folder.

  {command} can be used to update the AutokeyConfig of a folder.

  ## EXAMPLES

  The following command updates the AutokeyConfig for the folder mentioned in
  the config.yaml file:

  $ {command} config.yaml
  c                 .    t        j                  |        y )N)r   AddAutokeyConfigFileFlag)parsers    (lib/surface/kms/autokey_config/update.pyArgszDescribe.Args)   s    	""6*    c           	         t        j                         }t        j                         }t        j                  |j
                        \  }}}|s>|j                  j                  |j                  |j                  ||      |d            S |j                  j                  |j                  |j                  |||      |d            S )N)name
keyProjectr   )autokeyConfigr   
updateMask)r   r   etag)
cloudkms_baseGetClientInstanceGetMessagesModuler   ReadAutokeyConfigFromConfigFileCONFIG_FILEfoldersUpdateAutokeyConfig)CloudkmsFoldersUpdateAutokeyConfigRequestAutokeyConfig)selfargsclientmessagesr   key_projectr   s          r   RunzDescribe.Run-   s    ,,.F..0H%EED+t ^^//

<
<$22 3  % =   >>--::"00k 1  # 	; 	
 r   N)__name__
__module____qualname____doc__staticmethodr   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   r   UniverseCompatibleDescribeCommandr
   r+   r   r   <module>r2      sF    . &  ' A ( 0 2 *t## * *r   