def _fix_up_parameters(method_desc, root_desc, http_method):
 parameters = method_desc.setdefault('parameters', {})
 for (name, description) in six.iteritems(root_desc.get('parameters', {})):
  parameters[name] = description
 for name in STACK_QUERY_PARAMETERS:
  parameters[name] = STACK_QUERY_PARAMETER_DEFAULT_VALUE.copy()
 if ((http_method in HTTP_PAYLOAD_METHODS) and ('request' in method_desc)):
  body = BODY_PARAMETER_DEFAULT_VALUE.copy()
  body.update(method_desc['request'])
  parameters['body'] = body
 return parameters

def _fix_up_parameters ( method_desc , root_desc , http_method ) : parameters = method_desc . setdefault ( 'parameters' , { } ) for ( name , description ) in six . iteritems ( root_desc . get ( 'parameters' , { } ) ) : parameters [ name ] = description for name in STACK_QUERY_PARAMETERS : parameters [ name ] = STACK_QUERY_PARAMETER_DEFAULT_VALUE . copy ( ) if ( ( http_method in HTTP_PAYLOAD_METHODS ) and ( 'request' in method_desc ) ) : body = BODY_PARAMETER_DEFAULT_VALUE . copy ( ) body . update ( method_desc [ 'request' ] ) parameters [ 'body' ] = body return parameters
updates parameters of an api method with values specific to this library .