def __determine_delete_kwargs(options):
 delete_kwargs = __kwargs_option_to_dict(options.delete_kwargs)
 project = delete_kwargs.get('project', options.project)
 if (project == ''):
  try:
   project = get_metadata('project/project-id')
  except:
   raise ValueError('project is required when not running on GCP')
 delete_kwargs['project'] = project
 return delete_kwargs

def __determine_delete_kwargs ( options ) : delete_kwargs = __kwargs_option_to_dict ( options . delete_kwargs ) project = delete_kwargs . get ( 'project' , options . project ) if ( project == '' ) : try : project = get_metadata ( 'project/project-id' ) except : raise ValueError ( 'project is required when not running on GCP' ) delete_kwargs [ 'project' ] = project return delete_kwargs
determine the standard keyword arguments to pass to delete() method .