Ë
    €Ï™  ã                   ó¨   — 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lm	Z	 ddl
mZ d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	 dd„Zd„ Zy)z2Shared resource flags for Config Manager commands.é    )Úabsolute_import)Údivision)Úunicode_literals)Úconcepts)Údeps)Úpresentation_specs)Ú
propertiesc                  ó0   — t        j                  dd¬«      S )NÚ
deploymentz"The deployment for the {resource}.©ÚnameÚ	help_text©r   Ú ResourceParameterAttributeConfig© ó    ú=lib/googlecloudsdk/command_lib/infra_manager/resource_args.pyÚDeploymentAttributeConfigr      s   € Ü	×	2Ñ	2ØÐ#Gô
ð r   c                  ó0   — t        j                  dd¬«      S )NÚrevisionz The revision for the {resource}.r   r   r   r   r   ÚRevisionAttributeConfigr   !   s   € Ü	×	2Ñ	2ØÐ!Cô
ð r   c                  ó¢   — t        j                  t        j                  j                  j
                  «      g} t        j                  d| d¬«      S )NÚlocationz&The Cloud location for the {resource}.)r   Úfallthroughsr   )r   ÚPropertyFallthroughr	   ÚVALUESÚinframanagerr   r   r   )r   s    r   ÚLocationAttributeConfigr   '   sG   € ä
×Ñœz×0Ñ0×=Ñ=×FÑFÓGð€,ô 
×	2Ñ	2ØØØ8ô
ð r   c                  ó0   — t        j                  dd¬«      S )NÚpreviewzThe preview for the {resource}.r   r   r   r   r   ÚPreviewAttributeConfigr!   2   s   € Ü	×	2Ñ	2ØÐ Aô
ð r   c                  ót   — t        j                  ddt        «       t        «       t         j                  d¬«      S )Nz%config.projects.locations.deploymentsr   F)Úresource_nameÚdeploymentsIdÚlocationsIdÚ
projectsIdÚdisable_auto_completers)r   ÚResourceSpecr   r   Ú DEFAULT_PROJECT_ATTRIBUTE_CONFIGr   r   r   ÚGetDeploymentResourceSpecr*   8   s3   € Ü	×	Ñ	Ø-Ø Ü-Ó/Ü)Ó+Ü×:Ñ:Ø#ô
ð r   c            	      ó†   — t        j                  ddt        «       t        «       t	        «       t         j
                  d¬«      S )Nz/config.projects.locations.deployments.revisionsr   F)r#   ÚrevisionsIdr$   r%   r&   r'   )r   r(   r   r   r   r)   r   r   r   ÚGetRevisionResourceSpecr-   C   s9   € Ü	×	Ñ	Ø7ØÜ)Ó+Ü-Ó/Ü)Ó+Ü×:Ñ:Ø#ô
ð r   c                  ót   — t        j                  ddt        «       t        «       t         j                  d¬«      S )Nz"config.projects.locations.previewsr    F)r#   Ú
previewsIdr%   r&   r'   )r   r(   r!   r   r)   r   r   r   ÚGetPreviewResourceSpecr0   O   s3   € Ü	×	Ñ	Ø*ØÜ'Ó)Ü)Ó+Ü×:Ñ:Ø#ô
ð r   c                  ób   — t        j                  ddt        «       t         j                  d¬«      S )Nzconfig.projects.locationsr   F)r#   r%   r&   r'   )r   r(   r   r)   r   r   r   ÚGetLocationResourceSpecr2   Z   s-   € Ü	×	Ñ	Ø!ØÜ)Ó+Ü×:Ñ:Ø#ô
ð r   c                 óH   — d}t        j                  |t        «       | d¬«      S )zêGets a resource presentation spec for a config manager deployment.

  Args:
    group_help: string, the help text for the entire arg group.

  Returns:
    ResourcePresentationSpec for a config manager deployment resource argument.
  Ú
DEPLOYMENTT©Úrequired)r   ÚResourcePresentationSpecr*   ©Ú
group_helpr   s     r   ÚGetDeploymentResourceArgSpecr:   d   s)   € ð 
€$Ü	×	4Ñ	4Ø
Ô%Ó'¨¸dô
ð r   c                 óH   — d}t        j                  |t        «       | d¬«      S )zæGets a resource presentation spec for a config manager revision.

  Args:
    group_help: string, the help text for the entire arg group.

  Returns:
    ResourcePresentationSpec for a config manager revision resource argument.
  ÚREVISIONTr5   )r   r7   r-   r8   s     r   ÚGetRevisionResourceArgSpecr=   s   s)   € ð 
€$Ü	×	4Ñ	4Ø
Ô#Ó% z¸Dô
ð r   Nc                 óJ   — d}t        j                  |t        «       | ||¬«      S )a  Gets a resource presentation spec for a config manager preview.

  Args:
    group_help: string, the help text for the entire arg group.
    required:
    flag_name_overrides:

  Returns:
    ResourcePresentationSpec for a config manager preview resource argument.
  ÚPREVIEW)r6   Úflag_name_overrides)r   r7   r0   )r9   r6   r@   r   s       r   ÚGetPreviewResourceArgSpecrA   ‚   s.   € ð 
€$Ü	×	4Ñ	4Ø
ÜÓØØØ-ô
ð r   c                 óH   — d}t        j                  |t        «       | d¬«      S )zäGets a resource presentation spec for a config manager preview.

  Args:
    group_help: string, the help text for the entire arg group.

  Returns:
    ResourcePresentationSpec for a config manager preview resource argument.
  z
--locationTr5   )r   r7   r2   r8   s     r   ÚGetLocationResourceArgSpecrC   ™   s+   € ð 
€$Ü	×	4Ñ	4Ø
ÜÓØØô	
ð r   )TN)Ú__doc__Ú
__future__r   r   r   Ú googlecloudsdk.calliope.conceptsr   r   Ú(googlecloudsdk.command_lib.util.conceptsr   Úgooglecloudsdk.corer	   r   r   r   r!   r*   r-   r0   r2   r:   r=   rA   rC   r   r   r   Ú<module>rI      s`   ðñ 9å &Ý Ý 'å 5Ý 1Ý GÝ *òòòòòò	òòòòð  48óó.r   