
    B	                     l    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 g d	Zdd
Zy)z.Helpers for dealing with Private CA locations.    )absolute_import)division)unicode_literals)
exceptions)base)log)
properties)z
asia-east1z
asia-east2zasia-northeast1zasia-northeast2zasia-northeast3zasia-south1zasia-southeast1zasia-southeast2zaustralia-southeast1zeurope-north1zeurope-west1zeurope-west2zeurope-west3zeurope-west4zeurope-west6znorthamerica-northeast1zsouthamerica-east1zus-central1zus-east1zus-east4zus-west1zus-west2zus-west3zus-west4c                 z   | dk7  r$t        j                  dj                  |             t        j                  d      }t        j
                  d      }t        j                  j                  j                  j                         }	 |j                  j                  |j                  dj                  |                  }|j                  D cg c]  }|j                   c}S c c}w # t         j                   $ r;}t#        j$                  d|       t#        j$                  d       t&        cY d}~S d}~ww xY w)	zFGets a list of supported Private CA locations for the current project.v1zUnknown API version: {})api_versionzprojects/{})namezListLocations failed: %r.z Falling back to hard-coded list.N)r   NotYetImplementedErrorformatr   GetClientInstanceGetMessagesModuler	   VALUEScoreproject	GetOrFailprojects_locationsList%PrivatecaProjectsLocationsListRequest	locations
locationId	HttpErrorr   debug_V1Locations)versionclientmessagesr   responselocationes          1lib/googlecloudsdk/api_lib/privateca/locations.pyGetSupportedLocationsr%   9   s   _

+
+!((13 3 !!d3&##5(""**446'((--66%%g. 	7 	01H 190B0BC0BHH0BCCC			 II)1-II01s1   	AC, C'$C, 'C, ,D:?0D5/D:5D:N)r   )__doc__
__future__r   r   r   apitools.base.pyr    googlecloudsdk.api_lib.privatecar   googlecloudsdk.corer   r	   r   r%        r$   <module>r-      s+    5 &  ' ' 1 # *
8r,   