def _process_new_update_request(self, machine, 
         new_name, new_version, uuid_suffix, update_date=None):
     if not update_date:
         update_date = self.start_time
     instance = self._new_instance_of(machine, update_date)
     update_request_helper = CoreMachineRequestHelper(
             new_name, update_date, new_version, False, instance)
     core_request = update_request_helper.to_core_machine_request()
     process_machine_request(core_request, 'machine-%s' % uuid_suffix,
             update_cloud=False)
     new_machine = core_request.new_machine
     return new_machine
 def _process_new_fork_request(self, machine,
         new_name, new_version, uuid_suffix, fork_date=None):
     if not fork_date:
         fork_date = self.start_time
     instance = self._new_instance_of(machine, fork_date)
     #Create a MachineRequest for newly created Instance
     new_app_request_helper = CoreMachineRequestHelper(
             new_name, fork_date, new_version, True, instance)
     new_app_request = new_app_request_helper.to_core_machine_request()
     process_machine_request(new_app_request, 'machine-%s' % uuid_suffix,
             update_cloud=False)
     new_machine = new_app_request.new_machine
     return new_machine
 def _process_new_update_request(self,
                                 machine,
                                 new_name,
                                 new_version,
                                 uuid_suffix,
                                 update_date=None):
     if not update_date:
         update_date = self.start_time
     instance = self._new_instance_of(machine, update_date)
     update_request_helper = CoreMachineRequestHelper(
         new_name, update_date, new_version, False, instance)
     core_request = update_request_helper.to_core_machine_request()
     process_machine_request(core_request,
                             'machine-%s' % uuid_suffix,
                             update_cloud=False)
     new_machine = core_request.new_machine
     return new_machine
 def _process_new_fork_request(self,
                               machine,
                               new_name,
                               new_version,
                               uuid_suffix,
                               fork_date=None):
     if not fork_date:
         fork_date = self.start_time
     instance = self._new_instance_of(machine, fork_date)
     # Create a MachineRequest for newly created Instance
     new_app_request_helper = CoreMachineRequestHelper(
         new_name, fork_date, new_version, True, instance)
     new_app_request = new_app_request_helper.to_core_machine_request()
     process_machine_request(new_app_request,
                             'machine-%s' % uuid_suffix,
                             update_cloud=False)
     new_machine = new_app_request.new_machine
     return new_machine