Ë
    €Ï9  ã                   óX   — 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„Z
d„ Zd	„ Zy
)z@Set up flags for creating or updating a Bitbucket Server config.é    )Úabsolute_import)Údivision)Úunicode_literals)Úarg_parsers)Úflagsc                 ó:  — | j                  d| d¬«       | j                  d| d¬«       | j                  d| d¬«       | j                  d| d	¬«       | j                  d
| d¬«       | j                  d| d¬«       | j                  dt        j                  «       d¬«       t        j                  | «       |sJ| j                  ddd¬«       | j                  «       }|j                  dd¬«       |j                  dd¬«       |r| j                  dd¬«       | S )ac  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                 ó   — t        | d¬«      S )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                 ó   — t        | d¬«      S )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   