Skip to content

Commit

Permalink
Merge pull request #155 from bzwei/service_model_v2v
Browse files Browse the repository at this point in the history
New service model for v2v request and task
  • Loading branch information
gmcculloug authored Feb 20, 2018
2 parents 3d05a1b + cccc456 commit 9fd66be
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 9fd66be

Please sign in to comment.