ó
    €ÏÂ  ã                   óN   • S 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	)z6Set up flags for creating or updating a GitLab config.é    )Úabsolute_import)Údivision)Úunicode_literals)Úarg_parsersc                 óÈ  • 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  U R                  SSS9  U(       d"  U R                  SSSS9  U R                  SSSS9  U $ )aA  Set up all the argparse flags for creating or updating a GitLab 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 GitLab config flags added in.
z
--host-uriz/The host uri of the GitLab Enterprise instance.)ÚrequiredÚhelpz--user-namez@The GitLab user name that should be associated with this config.z--api-key-secret-versionzàSecret Manager resource containing the Cloud Build API key that should be associated with this config. The secret is specified in resource URL format projects/{secret_project}/secrets/{secret_name}/versions/{secret_version}.z!--api-access-token-secret-versionz²Secret Manager resource containing the API 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 GitLab Enterprise. The certificate should be in PEM format.)Útyper	   z--service-directory-servicez£Service Directory service that should be used when making calls to the GitLab Enterprise instance.

If not specified, calls will be made over the public internet.
)r	   z--nameTzThe name of the GitLab config.z--regionz(The Cloud location of the GitLab config.)Úadd_argumentr   ÚFileContents)ÚparserÚupdates     Ú9lib/googlecloudsdk/command_lib/cloudbuild/gitlab_flags.pyÚAddGitLabConfigArgsr      sZ  € ð 	×ÑØØŒzØ<ð ñ >ð 	×ÑØØŒzØMð ñ Oð 	×ÑØ ØŒzð nð ñ ð
 	×ÑØ)ØŒzð @ð ñ ð
 	×ÑØ*ØŒzð Að ñ ð
 	×ÑØ'ØŒzð ~ð ñ ð
 	×ÑØÜ×#Ò#Ó%ð Sð ñ ð
 	×ÑØ#ðð ñ ö 
Ø
×ÑØ˜4Ð&Fð ñ Hà
×ÑØØØ7ð ñ 9ð
 
€-ó    c                 ó   • [        U SS9$ )z¸Set up all the argparse flags for creating a GitLab config.

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

Returns:
  The parser argument with GitLab config flags added in.
F©r   ©r   ©r   s    r   ÚAddGitLabConfigCreateArgsr   V   s   € ô 
˜V¨EÑ	2Ð2r   c                 ó   • [        U SS9$ )z¸Set up all the argparse flags for updating a GitLab config.

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

Returns:
  The parser argument with GitLab config flags added in.
Tr   r   r   s    r   ÚAddGitLabConfigUpdateArgsr   b   s   € ô 
˜V¨DÑ	1Ð1r   N)F)
Ú__doc__Ú
__future__r   r   r   Úgooglecloudsdk.callioper   r   r   r   © r   r   Ú<module>r      s&   ðñ =å &Ý Ý 'å /ô;ò|	3ó	2r   