
    q                     &   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d	lmZ dd
lmZ ddlmZ  ej(                  ej*                  j,                  ej*                  j.                         G d dej0                               Zy)z)The `domains list-user-verified` command.    )absolute_import)division)print_function)unicode_literals)
exceptions)appengine_domains_api_client)global_methods)base)log)
propertiesc                   0    e Zd ZdZdddZed        Zd Zy)ListUserVerifiedz"Lists the user's verified domains.z{description}z          To list domains that have been verified by the current user, run:

            $ {command}

          Use the {parent_command} verify command to verify additional
          domains.
          )DESCRIPTIONEXAMPLESc                 :    | j                   j                  d       y )Nztable(id:sort=1))display_info	AddFormat)parsers    )lib/surface/domains/list_user_verified.pyArgszListUserVerified.Args1   s    
!!"45    c                    	 t         j                  j                  j                  j	                         }t        j                  | j                               }|j                         S # t        j                  t        j                  f$ r}	 t        j                         }t        j                  |      cY d }~S # t        j                  t        j                  f$ r t        j                  d       t        j                  d       t        j                  dj!                               t        j                  d       t        j                  dj!                  |             |w xY wd }~ww xY w)NzTo list user-verified domains, you must activate either the App Engine or Cloud Run API and have read permissions on one of them.zTo activate App Engine, visit:zVhttps://console.cloud.google.com/apis/api/appengine.googleapis.com/overview?project={}zTo activate Cloud Run, visit:zPhttps://console.cloud.google.com/apis/api/run.googleapis.com/overview?project={})r   VALUEScoreprojectGet
api_clientGetApiClientForTrackReleaseTrackListVerifiedDomainsapitools_exceptionsHttpNotFoundErrorHttpForbiddenErrorrun_methodsGetServerlessClientInstancer   errorformat)selfargsr   clientappengine_err
run_clients         r   RunzListUserVerified.Run5   s+   !!&&..224g..t/@/@/BCf''))
  11224  <<>
..z::!33!446 		 $ 	% 			23		 AAGB	  			12		 ;;A6'?	Ls+   A$A' '#E.(B93E.9B-E&&E))E.N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r-    r   r   r   r      s/    * 	- 6 6r   r   N)r1   
__future__r   r   r   r   apitools.base.pyr   r!   googlecloudsdk.api_lib.app.apir   r   googlecloudsdk.api_lib.runr	   r$   googlecloudsdk.callioper
   googlecloudsdk.corer   r   ReleaseTracksr   BETAGACommandr   r4   r   r   <module>r?      so    0 &  % ' > U D ( # * D%%**D,=,=,@,@A/t|| / B/r   