
    
                         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 dd	lmZ dd
lmZ  ej                   ej"                  j$                         G d dej&                               Zy)z*Describe GitLab Enterprise config command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)resource_args)concept_parsers)
properties)	resourcesc                   &    e Zd ZdZed        Zd Zy)DescribeAlphaz>Describe a GitLab Enterprise config in a Google Cloud project.c                     t         j                  j                  dt        j                         dd      j                  |        y)zRegister flags for this command.

    Args:
      parser: An argparse.ArgumentParser-like object. It is mocked out in order
        to capture some information, but behaves like an ArgumentParser.
    CONFIGzGitLab Enterprise config.TrequiredN)r	   ConceptParserForResourcer   GetGitLabConfigResourceSpecAddToParser)parsers    7lib/surface/builds/enterprise_config/gitlab/describe.pyArgszDescribeAlpha.Args!   s>     !!--113#	 .  #{6*    c           	         t        j                         }t        j                         }t        j                  j
                  j                  j                  d      }|j                  }t        j                  j                  ddd||j                  |d      }|j                  j                  |j                  |j                                     }|S )	zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    Tr   Nz+cloudbuild.projects.locations.gitLabConfigsv1)
projectsIdlocationsIdgitLabConfigsId)
collectionapi_versionparams)name)r   GetClientInstanceGetMessagesModuler
   VALUEScoreprojectGetr   r   REGISTRYParseregion projects_locations_gitLabConfigs2CloudbuildProjectsLocationsGitLabConfigsGetRequestRelativeName)selfargsclientmessagesparent	config_idgitlab_config_resourcegitlab_configs           r   RunzDescribeAlpha.Run/   s     ..0F002H##++///>FI&//55@ ;;(
	 6  ;;??CC'446 	D 	89M r   N)__name__
__module____qualname____doc__staticmethodr   r7    r   r   r   r      s    F+ +r   r   N)r;   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.cloudbuildr   (googlecloudsdk.command_lib.util.conceptsr	   googlecloudsdk.corer
   r   ReleaseTracksReleaseTrackALPHADescribeCommandr   r=   r   r   <module>rH      s_    1 &  ' = ( ? D * ) D%%++,0D(( 0 -0r   