
                         8    S r SSKJr  SSKJr  SSKJr  S rS rg)zAHelper methods for parsing and displaying operation quota errors.    )absolute_import)division)unicode_literalsc                      U R                  S5       H  n UR                  S5      S:X  a    gM     g! [        [        [        4 a     M8  f = f! [        [        [        4 a     gf = f)zNReturns true if the given loaded json is an operation quota exceeded error.
  detailsreason$CONCURRENT_OPERATIONS_QUOTA_EXCEEDEDTF)getKeyErrorAttributeError	TypeError)erroritems     ;lib/googlecloudsdk/api_lib/compute/operation_quota_utils.pyIsJsonOperationQuotaErrorr      sr    		)$88H!GG H % 
	 	2 
NI	. s6   A 3A A AA AA A'&A'c                 \   SnSn U R                  S5      nUR                  S5       H3  nUR                  S5      S:X  a  UnUR                  S5      S:X  d  M1  UnM5     UR                  S5      nSU;   a  UR                  S5      nOUR                  S	5      nUR                  S
5      nUR                  S5      nUR                  S5      n	SXWX4;   a  UR                  S5      $ SR                  UR                  S5      XWX5      $ ! [        [        4 a    WR                  S5      s $ f = f)z4Constructs message to show for quota exceeded error.Nr   r   z@typez(type.googleapis.com/google.rpc.ErrorInfoz/type.googleapis.com/google.rpc.LocalizedMessagemessagemetadata	metadatascontainerTypecontainerIdlocationz{}
{}
	container type = {}
	container id = {}
	location = {}
Wait for other operations to be done, or view documentation on best practices for reducing concurrent operations: https://cloud.google.com/compute/quotas#best_practices.)r
   formatr   r   )
data
error_infolocalized_messager   r   localized_message_textr   container_typecontainer_idr   s
             r   CreateOperationQuotaExceededMsgr    %   s3   *$ HHWE		)$	'	H	H
	'	O	O 	 %
 /229= Z
+h,h\\/2N<<.L||J'H&OOYYy!!F GMf		)$&<G(	) N	#  99Y s   AD BD %!D !D+*D+N)__doc__
__future__r   r   r   r   r         r   <module>r%      s    H &  '( r$   