VirtualBox

Changeset 75920 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Dec 3, 2018 6:17:11 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
127126
Message:

bugref:9311. Added support of cloud export into VBoxManage.

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

Legend:

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

    r75919 r75920  
    36463646    <const name="CloudOCIVCN" value="31" />
    36473647    <const name="CloudOCIPublicIP" value="32" />
    3648     <const name="CloudOCIProfilePath" value="33" />
     3648    <const name="CloudOCIProfileName" value="33" />
    36493649    <const name="CloudOCISubnet" value="34" />
    36503650    <const name="CloudOCIKeepObject" value="35" />
     
    38523852    </method>
    38533853
     3854    <method name="removeDescriptionByType">
     3855      <desc>Delete all records which are equal to the passed type from the list</desc>
     3856
     3857      <param name="type" type="VirtualSystemDescriptionType" dir="in">
     3858        <desc></desc>
     3859      </param>
     3860    </method>
     3861
    38543862    <method name="getValuesByType">
    38553863      <desc>This is the same as <link to="#getDescriptionByType" /> except that you can specify which
  • trunk/src/VBox/Main/include/ApplianceImpl.h

    r75766 r75920  
    320320                           const com::Utf8Str &aVBoxValue,
    321321                           const com::Utf8Str &aExtraConfigValue);
     322    HRESULT removeDescriptionByType(VirtualSystemDescriptionType_T aType);
    322323    void i_removeByType(VirtualSystemDescriptionType_T aType);
    323324
  • trunk/src/VBox/Main/include/ApplianceImplPrivate.h

    r75766 r75920  
    5454      : storageType(VFSType_File) {}
    5555    VFSType_T storageType; /* Which type of storage should be handled */
     56    Utf8Str strProvider;   /* cloud provider name in case of export/import to Cloud */
    5657    Utf8Str strPath;       /* File path for the import/export */
    5758    Utf8Str strHostname;   /* Hostname on remote storage locations (could be empty) */
     
    230231    /** Number of passwords provided. */
    231232    uint32_t                  m_cPwProvided;
    232 
    233     struct CloudExportData_T {
    234         Utf8Str strDisplayMachineName;
    235         Utf8Str strProfileFilePath;
    236         Utf8Str strProfileName;
    237         Utf8Str strInstanceShapeId;
    238         Utf8Str strDomainName;
    239         Utf8Str strBootDiskSize;
    240         Utf8Str strBucketId;
    241         Utf8Str strSubnet;
    242         bool    fPublicIP;
    243         Utf8Str strUserId;
    244         Utf8Str strBootImageName;
    245     };
    246 
    247     CloudExportData_T m_CloudExportData;
    248233};
    249234
  • trunk/src/VBox/Main/src-server/ApplianceImpl.cpp

    r75766 r75920  
    13361336    {
    13371337        locInfo.storageType = VFSType_Cloud;
     1338        locInfo.strProvider = "OCI";
    13381339        strUri = strUri.substr(sizeof("OCI://") - 1);
    13391340    }
     
    16281629}
    16291630
     1631HRESULT VirtualSystemDescription::removeDescriptionByType(VirtualSystemDescriptionType_T aType)
     1632{
     1633    std::vector<VirtualSystemDescriptionEntry>::iterator it = m->maDescriptions.begin();
     1634    while (it != m->maDescriptions.end())
     1635    {
     1636        if (it->type == aType)
     1637            it = m->maDescriptions.erase(it);
     1638        else
     1639            ++it;
     1640    }
     1641
     1642    return S_OK;
     1643}
     1644
    16301645/* Private method; delete all records from the list
    16311646 * m->llDescriptions that match the given type.
Note: See TracChangeset for help on using the changeset viewer.

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