Ë
    €ÏÈ  ã                   óJ   — d 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	y	)
zNCommon utility functions to construct compute reservations sub block messages.é    )Úabsolute_import)Údivision)Úunicode_literals)Ú
exceptionsc                 óÀ   — |r*	 | j                   j                  |j                  «       «      S y# t        $ r& t	        j
                  ddj                  |«      «      ‚w xY w)z)Constructs the fault behavior enum value.z--fault-reasonszInvalid fault behavior: {}N)Ú2ReservationSubBlocksReportFaultyRequestFaultReasonÚBehaviorValueValuesEnumÚupperÚ	TypeErrorr   ÚInvalidArgumentExceptionÚformat)ÚmessagesÚfault_behaviors     úFlib/googlecloudsdk/command_lib/compute/reservations/sub_blocks/util.pyÚMakeFaultBehaviorr      si   € áð?Ø×HÑH×`Ñ`Ø
×
Ñ
Ó
 ó"ð "ð 
øô	 ò ?Ü×/Ñ/Ø
Ø
&×
-Ñ
-¨nÓ
=ó?ð ?ð?úó	   „(. ®/Ac                 óÀ   — |r*	 | j                   j                  |j                  «       «      S y# t        $ r& t	        j
                  ddj                  |«      «      ‚w xY w)z.Constructs the disruption schedule enum value.z--disruption-schedulezInvalid disruption schedule: {}N)Ú'ReservationSubBlocksReportFaultyRequestÚ!DisruptionScheduleValueValuesEnumr
   r   r   r   r   )r   Údisruption_schedules     r   ÚMakeDisruptionScheduler   %   so   € áðIØ×=Ñ=×_Ñ_Ø
×
#Ñ
#Ó
%ó'ð 'ð 
øô	 ò IÜ×/Ñ/Ø
!Ø
+×
2Ñ
2Ð3FÓ
GóIð IðIúr   c                 óÀ   — |r*	 | j                   j                  |j                  «       «      S y# t        $ r& t	        j
                  ddj                  |«      «      ‚w xY w)z,Constructs the failure component enum value.z--failure-componentzInvalid failure component: {}N)r   ÚFailureComponentValueValuesEnumr
   r   r   r   r   )r   Úfailure_components     r   ÚMakeFailureComponentr   2   so   € áðEØ×=Ñ=×]Ñ]Ø
×
!Ñ
!Ó
#ó%ð %ð 
øô	 ò EÜ×/Ñ/Ø
Ø
)×
0Ñ
0Ð1BÓ
CóEð EðEúr   N)
Ú__doc__Ú
__future__r   r   r   Úgooglecloudsdk.callioper   r   r   r   © ó    r   Ú<module>r!      s&   ðñ Uå &Ý Ý 'å .ò
ò
ó
r    