Ë
    €Ï0  ã                   ó2   — d Z ddlmZ ddlmZ d„ Zd„ Zd„ Zy)z?Hooks for Simulation declarative style commands implementation.é    )Úutil)Ú
propertiesc                 óž   — t         j                  j                  j                  j	                  «       }|€t        d«      ‚d|z   dz   |_        |S )zOAdd parent path to request, since it isn't automatically populated by apitools.z#Required field project not providedz	projects/z/locations/global)r   ÚVALUESÚcoreÚprojectÚGetÚ
ValueErrorÚparent)Ú
unused_refÚunused_argsÚrequestr   s       úElib/googlecloudsdk/command_lib/network_management/simulation/hooks.pyÚSetProjectAsParentr      sJ   € ä×Ñ×"Ñ"×*Ñ*×.Ñ.Ó0€'Ø€_Ü
Ð:Ó
;Ð;Ø Ñ(Ð+>Ñ>€'„.Ø	€.ó    c                   ó   — y)zSet location ID to global.Úglobal© r   r   r   ÚSetLocationGlobalr      s   € à	r   c                 óÖ   — |j                   r\t        j                  |«      }t        j                  |j                   ||j                  |j
                  |j                  ¬«      |_        |S )z’Reads the firewall-service, route-service exported resources configs and transform them into the API accepted format and update the request proto.)Úfile_formatÚsimulation_typeÚoriginal_config_file)Úproposed_config_filer   ÚGetSimulationApiVersionFromArgsÚPrepareSimulationChangesr   r   r   Ú
simulation)r   Úargsr   Úapi_versions       r   Ú"ProcessSimulationConfigChangesFiler    #   s\   € à	×ÒÜ×6Ñ6°tÓ<€KÜ×6Ñ6Ø×!Ñ!ØØ×$Ñ$Ø×,Ñ,Ø!×6Ñ6ô€GÔð 
€.r   N)Ú__doc__Ú8googlecloudsdk.command_lib.network_management.simulationr   Úgooglecloudsdk.corer   r   r   r    r   r   r   Ú<module>r$      s    ðñ Få IÝ *òòó
r   