
    
                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r  SSKJr  SS	KJr  \R                  " \R                   R"                  5       " S
 S\R$                  5      5       rg)z&List Bitbucket Server configs command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)flags)
properties)	resourcesc                   .    \ rS rSrSr\S 5       rS rSrg)DescribeAlpha   z=Describe a Bitbucket Server config in a Google Cloud project.c                 P    [         R                  " U 5        U R                  SSS9  g)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ArgsDescribeAlpha.Args    s&     f%
'NO    c           	      D   [         R                  " 5       n[         R                  " 5       n[        R                  R
                  R                  R                  5       nUR                  =(       d    U=(       d    [         R                  n[        R                  R                  R                  R                  SS9nUR                  n[        R                  R                  SSSUUUS.S9nUR                  R                  UR!                  UR#                  5       S95      n	U	$ )	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   Run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____firstlineno____doc__staticmethodr   r;   __static_attributes__r=   r   r   r   r      s    EP P!r   r   N)rB   
__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>rN      sZ    - &  ' = ( B * ) D%%++,/D(( / -/r   