def update_inputs(instance, inputs, update_type)
      case update_type
        when "current_instance"
          instance.inputs.multi_update(:inputs => inputs)
        when "next_instance"
          instance.parent.show.next_instance.show.inputs.multi_update(:inputs => inputs)
        when "deployment"
          instance.deployment.show.inputs.multi_update(:inputs => inputs)
      end
    end
def update_inputs(instance, inputs, update_type)
      case update_type
        when "current_instance"
          instance.inputs.multi_update(:inputs => inputs)
        when "next_instance"
          instance.parent.show.next_instance.show.inputs.multi_update(:inputs => inputs)
        when "deployment"
          instance.deployment.show.inputs.multi_update(:inputs => inputs)
      end
    end
Updates inputs on one of the objects related to the specified instance.
 This deliberately lacks error handling. If you attempt to set the input on
 the deployment of the matching instance(s) and there isn't a deployment,
 you'll get the exception.

 TODO: Maybe handle the error so that other instances in a matched set can
 have a chance to succeed.

 @param [RightApi::Resource] The RightApi::Resource of media type
   Instance[http://reference.rightscale.com/api1.5/media_types/MediaTypeInstance.html]
   which will be used to find related objects, or which will get it's inputs
   updated.
 @param [Hash] inputs A hash where the keys are the name of an input and the
   value is the desired value for that input.  Uses Inputs 2.0[http://reference.rightscale.com/api1.5/resources/ResourceInputs.html#multi_update]
   semantics.
 @param [String] update_type Which object should be updated with the inputs
   supplied.  Acceptable values are ["current_instance","next_instance","deployment"]