
    	                     ,   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	  ej                         Zej                  j                  j                  ej                  j                  j                  ej                  j                  j                   dZd Zy	)
z"Utilities for Dataplex Entry Link.    )absolute_import)division)unicode_literals)util)
exceptions)UNSPECIFIEDSOURCETARGETc                    g }| st        j                  d      | D ]~  }|d   j                         }t        j	                  |      }|st        j                  d| d      t
        j                  |d   |      }d|v r
|d   |_        |j                  |        t        |      dk7  rt        j                  d	      |S )
zCreate Entry References.z#The entry references file is empty.typezInvalid entry reference type: z/. Valid types are: UNSPECIFIED, SOURCE, TARGET.name)r   r   path   z;The entry references file must contain exactly two entries.)
r   BadFileExceptionupperENTRY_REFERENCE_TYPE_MAPPINGgetmodule,GoogleCloudDataplexV1EntryLinkEntryReferencer   appendlen)entry_references_contententry_references_messageentry_referencereference_type_inputreference_type_enumentry_reference_messages         1lib/googlecloudsdk/api_lib/dataplex/entry_link.pyCreateEntryReferencesr   (   s    	!

%
%-  2o*6288:6::;OP''*+?*@ A; ; 
 	;; ($ 	< 	
   %4V%<"##$;<! 2" 		!"a'

%
%E  
"!    N)__doc__
__future__r   r   r   googlecloudsdk.api_lib.dataplexr   dataplex_apigooglecloudsdk.callioper   GetMessageModuler   r   TypeValueValuesEnumr   r	   r
   r   r    r    r   <module>r)      s{    ) &  ' @ .	&	&	&	(
 	;;OO[[ 	;;OOVV 	;;OOVV
  "r    