def to_resource
    resource = self.retrieve_resource
    resource.merge_tags_from(self)

    @parameters.each do |name, param|
      # Avoid adding each instance name twice
      next if param.class.isnamevar? and param.value == self.title

      # We've already got property values
      next if param.is_a?(Puppet::Property)
      resource[name] = param.value
    end

    resource
  end
def to_resource
    resource = self.retrieve_resource
    resource.merge_tags_from(self)

    @parameters.each do |name, param|
      # Avoid adding each instance name twice
      next if param.class.isnamevar? and param.value == self.title

      # We've already got property values
      next if param.is_a?(Puppet::Property)
      resource[name] = param.value
    end

    resource
  end
Convert this resource type instance to a Puppet::Resource.
 @return [Puppet::Resource] Returns a serializable representation of this resource