VirtualBox

Changeset 74086 in vbox for trunk


Ignore:
Timestamp:
Sep 5, 2018 4:21:43 PM (6 years ago)
Author:
vboxsync
Message:

OCI: initial commit for CloudClient::exportVM function

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r74003 r74086  
    2518525185    </method>
    2518625186
     25187    <method name="getExportParameters" const="yes">
     25188      <desc>
     25189        Returns the parameters required to be shown to user for export a VM to a cloud operation.
     25190      </desc>
     25191      <param name="jsonString" type="wstring" dir="return">
     25192        <desc>the parameters with values in json format.</desc>
     25193      </param>
     25194    </method>
     25195
     25196    <method name="exportVM">
     25197      <desc>
     25198        Exports a VM described in description parameter
     25199      </desc>
     25200      <param name="description" type="IVirtualSystemDescription" dir="in">
     25201        <desc>VirtualSystemDescription object which is describing a machine and all required parameters.</desc>
     25202      </param>
     25203      <param name="progress" type="IProgress" dir="in">
     25204        <desc>Progress object to track the operation completion.</desc>
     25205      </param>
     25206    </method>
     25207
     25208
     25209
     25210
    2518725211  </interface>
    2518825212
  • trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp

    r73975 r74086  
    23862386    hrc = ociProfile->CreateCloudClient(cloudClient.asOutParam());
    23872387
     2388#ifndef VBOX_WITH_CLOUD_PROVIDERS_NO_COMMANDS
     2389
    23882390    //fills by values from m->m_OciExportData
    23892391    //mostly all names(keys) come from official OCI API documentation (see LaunchInstance description)
     
    24682470        cloudClient.setNull();
    24692471    }
     2472#else
     2473    if (SUCCEEDED(hrc))
     2474    {
     2475        LogRel(("Appliance::i_writeFSOCI(): calling OCICloudClient::exportVM\n"));
     2476
     2477        if (m->virtualSystemDescriptions.size() == 1) {
     2478            cloudClient.exportVM(m->virtualSystemDescriptions.front(), pTask->pProgress);
     2479        } else {
     2480            //TODO: fail here
     2481        }
     2482    }
     2483#endif
    24702484
    24712485    LogFlowFuncLeave();
    24722486    return hrc;
    24732487}
    2474 
    24752488/**
    24762489 * Writes the Oracle Public Cloud appliance.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette