
    8                     h    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 d	 Zd
 Zy)z>Helper functions for end of sale check and deprecation notice.    )absolute_import)division)unicode_literals)
enable_api)pretty_print)
exceptions)
propertiesc                      t         j                  j                  j                  j	                         } t        j                  | d      st        j                  d      y)z:Checks if the customer is new and if so returns EOS error.zrunapps.googleapis.comz@Cloud Run integrations are no longer available to new customers.N)	r	   VALUEScoreprojectGetr   IsServiceEnabledr   CRIUnavailableToNewUsersError)
project_ids    Clib/googlecloudsdk/command_lib/run/integrations/deprecation_util.pyCheckIfEndOfSaleAppliesr      sO      %%--113*		$	$Z1I	J

2
2J  
K    c                      t        j                  d       t        j                  d       t        j                  d       y)z4Prints a deprecation notice header for all commands.z5!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!zCloud Run Integrations will be removed from the gcloud CLI in January 2025. Existing integrations will continue to work with no action required.z7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

N)r   Info r   r   DeprecationNoticer   %   s5    KL
 OPr   N)__doc__
__future__r   r   r   googlecloudsdk.api_lib.servicesr   googlecloudsdk.command_lib.runr   "googlecloudsdk.command_lib.runappsr   googlecloudsdk.corer	   r   r   r   r   r   <module>r      s+    E &  ' 6 7 9 *Qr   