ó
    €Ï9  ã                   óZ   • 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 jr
S rS	 rg
)z@Set up flags for creating or updating a Bitbucket Server config.é    )Úabsolute_import)Údivision)Úunicode_literals)Úarg_parsers)Úflagsc                 ó@  • U R                  SU(       + SS9  U R                  SU(       + SS9  U R                  SU(       + SS9  U R                  SU(       + S	S9  U R                  S
U(       + SS9  U R                  SU(       + SS9  U R                  S[        R                  " 5       SS9  [        R                  " U 5        U(       dA  U R                  SSSS9  U R                  5       nUR                  SSS9  UR                  SSS9  U(       a  U R                  SSS9  U $ )aU  Set up all the argparse flags for creating or updating a Bitbucket Server config.

Args:
  parser: An argparse.ArgumentParser-like object.
  update: If true, use the version of the flags for updating a config.
    Otherwise, use the version for creating a config.

Returns:
  The parser argument with Bitbucket Server config flags added in.
z
--host-uriz.The host uri of the Bitbucket Server instance.)ÚrequiredÚhelpz--user-namezJThe Bitbucket Server user name that should be associated with this config.z	--api-keyzCThe Cloud Build API key that should be associated with this config.z#--admin-access-token-secret-versionz´Secret Manager resource containing the admin access token. The secret is specified in resource URL format projects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.z"--read-access-token-secret-versionz³Secret Manager resource containing the read access token. The secret is specified in resource URL format projects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.z--webhook-secret-secret-versionz°Secret Manager resource containing the webhook secret. The secret is specified in resource URL format projects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.z--ssl-ca-filez„Path to a local file that contains SSL certificate to use for requests to Bitbucket Server. The certificate should be in PEM format.)Útyper
   z--nameTz3The config name of the Bitbucket Server connection.z--peered-networkz”VPC network that should be used when making calls to the Bitbucket Server instance.

If not specified, calls will be made over the public internet.
)r
   z--peered-network-ip-rangez•IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. Examples: `192.168.0.0/24` or '/29'.
ÚCONFIGzCThe unique identifier of the Bitbucket Server Config to be updated.)Úadd_argumentr   ÚFileContentsÚbuild_flagsÚAddRegionFlagÚadd_argument_group)ÚparserÚupdateÚnetworks      ÚBlib/googlecloudsdk/command_lib/cloudbuild/bitbucketserver_flags.pyÚAddBitbucketServerConfigArgsr      s’  € ð 	×ÑØØŒzØ;ð ñ =ð 	×ÑØØŒzØWð ñ ð
 	×ÑØØŒzØPð ñ ð
 	×ÑØ+ØŒzð Bð ñ ð
 	×ÑØ*ØŒzð Að ñ ð
 	×ÑØ'ØŒzð ~ð ñ ð
 	×ÑØÜ×#Ò#Ó%ð Rð ñ ô
 ×Ò˜FÔ#Þ	Ø
×ÑØØØBð ñ Dð ×'Ñ'Ó)€GØ×ÑØðð ñ ð ×ÑØ#ðð ñ ö
 Ø
×ÑØØRð ñ ð 
€-ó    c                 ó   • [        U SS9$ )zÌSet up all the argparse flags for creating a Bitbucket Server Config.

Args:
  parser: An argparse.ArgumentParser-like object.

Returns:
  The parser argument with Bitbucket Server Config flags added in.
F©r   ©r   ©r   s    r   Ú"AddBitbucketServerConfigCreateArgsr   a   s   € ô 
& f°UÑ	;Ð;r   c                 ó   • [        U SS9$ )zÌSet up all the argparse flags for updating a Bitbucket Server Config.

Args:
  parser: An argparse.ArgumentParser-like object.

Returns:
  The parser argument with Bitbucket Server Config flags added in.
Tr   r   r   s    r   Ú"AddBitbucketServerConfigUpdateArgsr   m   s   € ô 
& f°TÑ	:Ð:r   N)F)Ú__doc__Ú
__future__r   r   r   Úgooglecloudsdk.callioper   Ú!googlecloudsdk.command_lib.buildsr   r   r   r   r   © r   r   Ú<module>r$      s+   ðñ Gå &Ý Ý 'å /Ý BôEòP	<ó	;r   