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

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