Ë
    €Ïø  ã                   ó†   — 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  G d	„ d
ej                  «      Zy)z*Command to enable a microservices feature.é    )Úabsolute_import)Údivision)Úunicode_literals)Úutil)Úbase)Ú
properties)ÚSUPPORTED_FEATURESc                   ó&   — e Zd ZdZed„ «       Zd„ Zy)ÚEnablea3  Enable a microservices feature.

  This command can fail for the following reasons:
  * The feature specified does not exist.
  * The active account does not have permission to enable the feature.

  ## EXAMPLES

  The following command enables the `observability` feature:

    $ {command} observability
  c                 ó4   — | j                  dt        d¬«       y )NÚfeaturez"Name of the feature to be enabled.)ÚchoicesÚhelp)Úadd_argumentr	   )Úparsers    ú,lib/surface/microservices/features/enable.pyÚArgszEnable.Args)   s   € à
×ÑØÜ"Ø1ð õ 3ó    c                 óx  — t         j                  j                  j                  j	                  «       }d|z   dz   }t        j                  «       }t        j                  «       }|j                  ||j                  |j                  |dz   |j                  z   ¬«      ¬«      }|j                  j                  |«      S )Nz	projects/z/locations/globalz
/features/)Úname)ÚparentÚ	featureIdr   )r   ÚVALUESÚcoreÚprojectÚGetr   ÚGetClientInstanceÚGetMessagesModuleÚ3MicroservicesProjectsLocationsFeaturesCreateRequestr   ÚFeatureÚprojects_locations_featuresÚCreate)ÚselfÚargsr   r   ÚclientÚmessage_moduleÚrequests          r   ÚRunz
Enable.Run0   s«   € Ü×Ñ×$Ñ$×,Ñ,×0Ñ0Ó2€GØ˜7Ñ"Ð%8Ñ8€FÜ×#Ñ#Ó%€FÜ×+Ñ+Ó-€NØ×PÑPØØ—,‘,Ø×&Ñ&¨F°\Ñ,AØ'+§|¡|ñ-4Ð&ó 5ð Qó 6€Gð
 ×-Ñ-×4Ñ4°WÓ=Ð=r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ústaticmethodr   r(   © r   r   r   r      s    „ ñð ñ3ó ð3ó
>r   r   N)r,   Ú
__future__r   r   r   Ú$googlecloudsdk.api_lib.microservicesr   Úgooglecloudsdk.callioper   Úgooglecloudsdk.corer   Úsurface.microservices.featuresr	   ÚCreateCommandr   r.   r   r   Ú<module>r5      s1   ðñ 1å &Ý Ý 'å 5Ý (Ý *Ý =ô>ˆT×Ñõ >r   