#NEWLINE# @ staticmethod #NEWLINE# def identify_ref_type( entity_ref ) : #NEWLINE# #INDENT# if ( not ref_type ) : #NEWLINE# #INDENT# raise ValueError ( 'Secret or container href is required.' ) #NEWLINE# #UNINDENT# if ( '/secrets' in entity_ref ) : #NEWLINE# #INDENT# ref_type = 'secret' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( '/containers' in entity_ref ) : #NEWLINE# #INDENT# ref_type = 'container' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'Secret or container URI is not specified.' ) #NEWLINE# #UNINDENT# #UNINDENT# return ref_type