
                             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                   e
j                  e
j                  j                         G d	 d
e
j                                      Zy)zgDescribe command: show the configuration of Binary Authorization Continuous Validation for the project.    )absolute_import)division)unicode_literals)apis)continuous_validation)util)basec                   &    e Zd ZdZed        Zd Zy)Describea  Show the configuration of Binary Authorization Continuous Validation for the project.

  The output will contain "enabled: true" if Continuous Validation is enabled
  for the project, or "enabled: false" if CV is disabled.

  ## EXAMPLES

    $ {command}
    enforcementPolicyConfig:
      enabled: true
    name: projects/my-project/continuousValidationConfig
    updateTime: '2020-01-01T01:23:45.678901234Z'
  c                 V    | j                   j                  t        j                         y N)display_info	AddFormatr   CV_CONFIG_OUTPUT_FORMAT)parsers    @lib/surface/container/binauthz/continuous_validation/describe.pyArgszDescribe.Args,   s     !!"7"O"OP    c                     t        j                  | j                               }t        j                  |      j                  t        j                               }t        j                  |      S r   )	r   GetApiVersionReleaseTrackr   ClientGetr   GetCvConfigRefEnsureEnabledFalseIsShown)selfargsapi_version	cv_configs       r   RunzDescribe.Run1   sS    $$T%6%6%89K%,,[9==I ::9EEr   N)__name__
__module____qualname____doc__staticmethodr   r     r   r   r   r      s#     Q QFr   r   N)r$   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   r   googlecloudsdk.callioper	   DefaultUniverseOnlyReleaseTracksr   ALPHADescribeCommandr   r&   r   r   <module>r.      sk    n &  ' : K : ( D%%++,Ft## F - Fr   