
    
                         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  ej                  ej                   j"                         G d
 dej$                               Zy)z&List Bitbucket Server configs command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)flags)
properties)	resourcesc                   &    e Zd ZdZed        Zd Zy)DescribeAlphaz=Describe a Bitbucket Server config in a Google Cloud project.c                 T    t        j                  |        | j                  dd       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%The id of the Bitbucket Server Config)helpN)build_flagsAddRegionFlagadd_argument)parsers    @lib/surface/builds/enterprise_config/bitbucketserver/describe.pyArgszDescribeAlpha.Args    s&     f%
'NO    c           	      >   t        j                         }t        j                         }t        j                  j
                  j                  j                         }|j                  xs |xs t         j                  }t        j                  j                  j                  j                  d      }|j                  }t        j                  j                  ddd|||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.
    T)requiredNz4cloudbuild.projects.locations.bitbucketServerConfigsv1)
projectsIdlocationsIdbitbucketServerConfigsId)
collectionapi_versionparams)name)r   GetClientInstanceGetMessagesModuler	   VALUESbuildsregionGetDEFAULT_REGIONcoreprojectr   r
   REGISTRYParse)projects_locations_bitbucketServerConfigs;CloudbuildProjectsLocationsBitbucketServerConfigsGetRequestRelativeName)
selfargsclientmessages
regionprop
bbs_regionparent	config_idbbs_resourcebbss
             r   RunzDescribeAlpha.Run+   s     ..0F002H""))00446JL
Lo.L.LJ##++///>FI%%++I %(1
	 , L 
:
:
>
>LL**, 	M 	./C Jr   N)__name__
__module____qualname____doc__staticmethodr   r9    r   r   r   r      s    EP P!r   r   N)r=   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.buildsr   r   googlecloudsdk.corer	   r
   ReleaseTracksReleaseTrackALPHADescribeCommandr   r?   r   r   <module>rI      s\    - &  ' = ( B * ) D%%++,/D(( / -/r   