
    f                         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
 ej                   G d dej                               Zy	)
z?Gets the effective Cloud KMS AutokeyConfig for a given project.    )absolute_import)division)unicode_literals)base)resource_argsc                   &    e Zd ZdZed        Zd Zy)ShowEffectiveConfiga  Gets the effective Cloud KMS AutokeyConfig for a given project.

  {command} can be used to get the effective Cloud KMS AutokeyConfig for a given
  project.

  ## EXAMPLES

  The following command retrieves the effective Cloud KMS AutokeyConfig for a
  given project `my-project`:

  $ {command} --project=my-project

  If --project flag is not provided, then the current project will be used.
  c                 2    t        j                  | dd       y )NTproject)r   AddKmsProjectResourceArgForKMS)parsers    7lib/surface/kms/autokey_config/show_effective_config.pyArgszShowEffectiveConfig.Args+   s    00yI    c                    t        j                         }t        j                         }|j                  j                  j                         }|j                  j                  |j                  |j                                     S )N)parent)
cloudkms_baseGetClientInstanceGetMessagesModuleCONCEPTSr   ParseprojectsShowEffectiveAutokeyConfig1CloudkmsProjectsShowEffectiveAutokeyConfigRequestRelativeName)selfargsclientmessagesproject_refs        r   RunzShowEffectiveConfig.Run/   sm    ,,.F..0H--''--/K??55BB++- 	C 	/0 0r   N)__name__
__module____qualname____doc__staticmethodr   r!    r   r   r	   r	      s"     J J0r   r	   N)r%   
__future__r   r   r   googlecloudsdk.api_lib.cloudkmsr   r   googlecloudsdk.calliopegooglecloudsdk.command_lib.kmsr   UniverseCompatibleCommandr	   r'   r   r   <module>r.      sB    F &  ' A ( 8 0$,, 0 0r   