Ë
    €ÏÂ  ã                   óL   — d 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	)z6Set up flags for creating or updating a GitLab config.é    )Úabsolute_import)Údivision)Úunicode_literals)Úarg_parsersc                 óÈ  — | j                  d| d¬«       | j                  d| d¬«       | j                  d| d¬«       | j                  d| d	¬«       | j                  d
| d¬«       | j                  d| d¬«       | j                  dt        j                  «       d¬«       | j                  dd¬«       |s(| j                  ddd¬«       | j                  ddd¬«       | S )aO  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                 ó   — t        | d¬«      S )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                 ó   — t        | d¬«      S )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   