def document_action(section, resource_name, event_emitter, action_model, service_model, include_signature=True):
 operation_model = service_model.operation_model(action_model.request.operation)
 ignore_params = get_resource_ignore_params(action_model.request.params)
 example_return_value = 'response'
 if action_model.resource:
  example_return_value = xform_name(action_model.resource.type)
 example_resource_name = xform_name(resource_name)
 if (service_model.service_name == resource_name):
  example_resource_name = resource_name
 example_prefix = ('%s = %s.%s' % (example_return_value, example_resource_name, action_model.name))
 document_model_driven_resource_method(section=section, method_name=action_model.name, operation_model=operation_model, event_emitter=event_emitter, method_description=operation_model.documentation, example_prefix=example_prefix, exclude_input=ignore_params, resource_action_model=action_model, include_signature=include_signature)

def document_action ( section , resource_name , event_emitter , action_model , service_model , include_signature = True ) : operation_model = service_model . operation_model ( action_model . request . operation ) ignore_params = get_resource_ignore_params ( action_model . request . params ) example_return_value = 'response' if action_model . resource : example_return_value = xform_name ( action_model . resource . type ) example_resource_name = xform_name ( resource_name ) if ( service_model . service_name == resource_name ) : example_resource_name = resource_name example_prefix = ( '%s = %s.%s' % ( example_return_value , example_resource_name , action_model . name ) ) document_model_driven_resource_method ( section = section , method_name = action_model . name , operation_model = operation_model , event_emitter = event_emitter , method_description = operation_model . documentation , example_prefix = example_prefix , exclude_input = ignore_params , resource_action_model = action_model , include_signature = include_signature )
documents a resource action .