ó
    €Ïˆ	  ã                   ój   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSK
r
S	 rS
 rS rg)zIContains hooks to be executed along with Cloud Workflows gcloud commands.é    )Úabsolute_import)Údivision)Úunicode_literals)Úcache)Úlog)Ú
propertiesNc                 óf  • SR                  UR                  SS 5      n[        R                  " U R                  5      R                  S5      nUS   nUS   n[        R                  R                  S5        [        R                  R                  SR                  X$UR                  U5      5        U $ )a  Prints describe execution command for just created execution of a workflow.

Function to be used as a response hook
(go/gcloud-declarative-commands#response)

Args:
  response: API response
  args: gcloud command arguments

Returns:
  response: API response
Ú NéÿÿÿÿÚ/é   z<
To view the workflow status, you can use following command:z5{} executions describe {} --workflow {} --location {})ÚjoinÚcommand_pathÚsixÚ	text_typeÚnameÚsplitr   ÚstatusÚPrintÚformatÚworkflow)ÚresponseÚargsÚcmd_baseÚresource_nameÚexecution_idÚlocations         Ú1lib/googlecloudsdk/command_lib/workflows/hooks.pyÚprint_describe_instructionr      s˜   € ð X‰Xd×'Ñ'¨¨Ð,Ó-€(Ü—-’- §¡Ó.×4Ñ4°SÓ9€-Ø˜rÑ"€,Ø˜1Ñ€(Ü‡**×ÑØEôGä‡**×ÑØ=×DÑDØ
 $§-¡-°ó;ô<ð 
€/ó    c                 óF   • [         R                  " U R                  5        U $ )z€Extracts the execution resource name to be saved into cache.

Args:
  response: API response

Returns:
  response: API response
)r   Úcache_execution_idr   )r   Ú_s     r   Úcache_execution_namer$   5   s   € ô ×Ò˜8Ÿ=™=Ô)Ø	€/r    c                 óÌ   • [         R                  R                  R                  R	                  5       (       d,  UR                  S5      (       d  [        R                  " S5        U$ )z”Prints a warning when the default location is used.

Args:
  args: gcloud command arguments
  request: API request

Returns:
  request: API request
r   zUThe default location(us-central1) was used since the location flag was not specified.)r   ÚVALUESÚ	workflowsr   ÚIsExplicitlySetÚIsSpecifiedr   Úwarning)r#   r   Úrequests      r   Úprint_default_location_warningr,   B   sL   € ô ×
Ñ
×
%Ñ
%×
.Ñ
.×
>Ñ
>×
@Ñ
@Ø
×
Ñ
˜:×
&Ñ
&Ü‡K‚Kð *ô +à	€.r    )Ú__doc__Ú
__future__r   r   r   Ú googlecloudsdk.api_lib.workflowsr   Úgooglecloudsdk.corer   r   r   r   r$   r,   © r    r   Ú<module>r2      s/   ðñ På &Ý Ý 'å 2Ý #Ý *ã 
òò2
ór    