Skip to content

Commit

Permalink
New service model for transformation plan request and task
Browse files Browse the repository at this point in the history
  • Loading branch information
bzwei committed Feb 13, 2018
1 parent 2b8a271 commit cccc456
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module MiqAeMethodService
class MiqAeServiceServiceTemplateTransformationPlanRequest < MiqAeServiceServiceTemplateProvisionRequest
expose :source_vms, :association => true
expose :validate_vm, :association => true
expose :approve_vm, :association => true
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module MiqAeMethodService
class MiqAeServiceServiceTemplateTransformationPlanTask < MiqAeServiceServiceTemplateProvisionTask
expose :update_transformation_progress

def transformation_destination(source_obj)
ar_method do
wrap_results(@object.transformation_destination(source_obj.object_class.find(source_obj.id)))
end
end
end
end

0 comments on commit cccc456

Please sign in to comment.