def config_name_from_full_name(full_name):
 (projects, _, configs, result) = full_name.split('/')
 if ((projects != 'projects') or (configs != 'configs')):
  raise ValueError('Unexpected format of resource', full_name, 'Expected "projects/{proj}/configs/{cfg}"')
 return result

def config_name_from_full_name ( full_name ) : ( projects , _ , configs , result ) = full_name . split ( '/' ) if ( ( projects != 'projects' ) or ( configs != 'configs' ) ) : raise ValueError ( 'Unexpected format of resource' , full_name , 'Expected "projects/{proj}/configs/{cfg}"' ) return result
extract the config name from a full resource name .