-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from bzwei/service_model_v2v
New service model for v2v request and task
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...tion_engine/service_models/miq_ae_service_service_template_transformation_plan_request.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
11 changes: 11 additions & 0 deletions
11
...omation_engine/service_models/miq_ae_service_service_template_transformation_plan_task.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |