module MiqAeMethodService
  class MiqAeServiceOrchestrationTemplateVnfd < MiqAeServiceOrchestrationTemplate; end
end

module MiqAeMethodService
  class MiqAeServiceOrchestrationTemplateVnfd < MiqAeServiceOrchestrationTemplate
    CREATE_ATTRIBUTES = [:name, :description, :content, :draft, :orderable, :ems_id]

    def self.create(options = {})
      attributes = options.symbolize_keys.slice(*CREATE_ATTRIBUTES)
      attributes[:remote_proxy] = true

      ar_method { MiqAeServiceOrchestrationTemplateVnfd.wrap_results(OrchestrationTemplateVnfd.create!(attributes)) }
    end
  end
end

Make Vnfd template creatable from automate
Make Vnfd template creatable from automate

Make Vnfd template creatable from automate


(transferred from ManageIQ/manageiq@88a6e5b4527a1946c7115cb7f78c113ae47bd3db)
