
    	                     ,   S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  \R                  " 5       r\R                  R                  R                  \R                  R                  R                  \R                  R                  R                   S.rS rg	)
z"Utilities for Dataplex Entry Link.    )absolute_import)division)unicode_literals)util)
exceptions)UNSPECIFIEDSOURCETARGETc                    / nU (       d  [         R                  " S5      eU  H  nUS   R                  5       n[        R	                  U5      nU(       d  [         R                  " SU S35      e[
        R                  US   US9nSU;   a
  US   Ul        UR                  U5        M     [        U5      S:w  a  [         R                  " S	5      eU$ )
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)      sy    ) &  ' @ .		&	&	(
 	;;OO[[ 	;;OOVV 	;;OOVV
  "r    