Ë
    €Ï  ã                   ó   — 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 ej                  j                  j                  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d„Zdd„Zdd„Zdd„Zy)z>Shared resource flags for `gcloud service-directory` commands.é    )Úabsolute_import)Údivision)Úunicode_literals)Úconcepts)Údeps)Úconcept_parsers)Ú
propertiesc                  ób   — t        j                  ddt        j                  t        «      g¬«      S )z3Gets project resource attribute with default value.Úprojectz+The name of the project for the {resource}.)ÚnameÚ	help_textÚfallthroughs)r   Ú ResourceParameterAttributeConfigr   ÚPropertyFallthroughÚ_PROJECT© ó    úAlib/googlecloudsdk/command_lib/service_directory/resource_args.pyÚProjectAttributeConfigr      s,   € ä	×	2Ñ	2ØØ=Ü×,Ñ,¬XÓ6Ð7ô
9ð 9r   c                  ó0   — t        j                  dd¬«      S )z!Gets location resource attribute.Úlocationz*The name of the region for the {resource}.©r   r   ©r   r   r   r   r   ÚLocationAttributeConfigr   %   s   € ä	×	2Ñ	2ØÐ!Mô
Oð Or   c                  ó0   — t        j                  dd¬«      S )z"Gets namespace resource attribute.Ú	namespacez-The name of the namespace for the {resource}.r   r   r   r   r   ÚNamespaceAttributeConfigr   +   s   € ä	×	2Ñ	2ØØ?ô
Að Ar   c                  ó0   — t        j                  dd¬«      S )z Gets service resource attribute.Úservicez+The name of the service for the {resource}.r   r   r   r   r   ÚServiceAttributeConfigr    2   s   € ä	×	2Ñ	2ØÐ Mô
Oð Or   c                  ó0   — t        j                  dd¬«      S )z!Gets endpoint resource attribute.Úendpointz,The name of the endpoint for the {resource}.r   r   r   r   r   ÚEndpointAttributeConfigr#   8   s   € ä	×	2Ñ	2ØÐ!Oô
Qð Qr   c                  óB   — t        j                  ddt        «       ¬«      S )zGets project resource spec.zservicedirectory.projectsr   )Úresource_nameÚ
projectsId)r   ÚResourceSpecr   r   r   r   ÚGetProjectResourceSpecr(   >   s!   € ä	×	Ñ	Ø!ØÜ'Ó)ô
+ð +r   c                  óT   — t        j                  ddt        «       t        «       ¬«      S )zGets location resource spec.z#servicedirectory.projects.locationsr   )r%   ÚlocationsIdr&   )r   r'   r   r   r   r   r   ÚGetLocationResourceSpecr+   F   s'   € ä	×	Ñ	Ø+ØÜ)Ó+Ü'Ó)ô	
+ð +r   c                  óf   — t        j                  ddt        «       t        «       t	        «       ¬«      S )zGets namespace resource spec.z.servicedirectory.projects.locations.namespacesr   )r%   ÚnamespacesIdr*   r&   )r   r'   r   r   r   r   r   r   ÚGetNamespaceResourceSpecr.   O   s-   € ä	×	Ñ	Ø6ØÜ+Ó-Ü)Ó+Ü'Ó)ô
+ð +r   c            	      óx   — t        j                  ddt        «       t        «       t	        «       t        «       ¬«      S )zGets service resource spec.z7servicedirectory.projects.locations.namespaces.servicesr   )r%   Ú
servicesIdr-   r*   r&   )r   r'   r    r   r   r   r   r   r   ÚGetServiceResourceSpecr1   Y   s3   € ä	×	Ñ	Ø?ØÜ'Ó)Ü+Ó-Ü)Ó+Ü'Ó)ô
+ð +r   c            
      óŠ   — t        j                  ddt        «       t        «       t	        «       t        «       t        «       ¬«      S )zGets endpoint resource spec.zAservicedirectory.projects.locations.namespaces.services.endpointsr"   )r%   ÚendpointsIdr0   r-   r*   r&   )r   r'   r#   r    r   r   r   r   r   r   ÚGetEndpointResourceSpecr4   d   s9   € ä	×	Ñ	ØIØÜ)Ó+Ü'Ó)Ü+Ó-Ü)Ó+Ü'Ó)ô
+ð +r   c                 ó    — |rdnd}t         j                  j                  |t        «       dj	                  |«      d¬«      j                  | «      S )z9Adds a resource argument for a Service Directory project.r   z	--projectz The Service Directory project {}T©Úrequired)r   ÚConceptParserÚForResourcer(   ÚformatÚAddToParser©ÚparserÚverbÚ
positionalr   s       r   ÚAddProjectResourceArgr@   p   óO   € á ‰ k€$Ü	×	&Ñ	&×	2Ñ	2Ø
ÜÓØ(×/Ñ/°Ó5Øð	 
3ó 
÷ !‘[ Ó(ð	)r   c                 ó    — |rdnd}t         j                  j                  |t        «       dj	                  |«      d¬«      j                  | «      S )z:Adds a resource argument for a Service Directory location.r   z
--locationz!The Service Directory location {}Tr6   )r   r8   r9   r+   r:   r;   r<   s       r   ÚAddLocationResourceArgrC   z   óO   € á!‰ |€$Ü	×	&Ñ	&×	2Ñ	2Ø
ÜÓØ)×0Ñ0°Ó6Øð	 
3ó 
÷ !‘[ Ó(ð	)r   c                 ó    — |rdnd}t         j                  j                  |t        «       dj	                  |«      d¬«      j                  | «      S )z;Adds a resource argument for a Service Directory namespace.r   z--namespacez"The Service Directory namespace {}Tr6   )r   r8   r9   r.   r:   r;   r<   s       r   ÚAddNamespaceResourceArgrF   „   sO   € á"‰¨€$Ü	×	&Ñ	&×	2Ñ	2Ø
ÜÓ Ø*×1Ñ1°$Ó7Øð	 
3ó 
÷ !‘[ Ó(ð	)r   c                 ó    — |rdnd}t         j                  j                  |t        «       dj	                  |«      d¬«      j                  | «      S )z9Adds a resource argument for a Service Directory service.r   z	--servicez The Service Directory service {}Tr6   )r   r8   r9   r1   r:   r;   r<   s       r   ÚAddServiceResourceArgrH   Ž   rA   r   c                 ó    — |rdnd}t         j                  j                  |t        «       dj	                  |«      d¬«      j                  | «      S )z:Adds a resource argument for a Service Directory endpoint.r"   z
--endpointz!The Service Directory endpoint {}Tr6   )r   r8   r9   r4   r:   r;   r<   s       r   ÚAddEndpointResourceArgrJ   ˜   rD   r   N)T)Ú__doc__Ú
__future__r   r   r   Ú googlecloudsdk.calliope.conceptsr   r   Ú(googlecloudsdk.command_lib.util.conceptsr   Úgooglecloudsdk.corer	   ÚVALUESÚcorer   r   r   r   r   r    r#   r(   r+   r.   r1   r4   r@   rC   rF   rH   rJ   r   r   r   Ú<module>rR      s†   ðñ Eå &Ý Ý 'å 5Ý 1Ý DÝ *à×Ñ×!Ñ!×)Ñ)€ò9òOòAòOòQò+ò+ò+ò+ò	+ó)ó)ó)ó)ô)r   