Changeset 79727 in vbox
- Timestamp:
- Jul 12, 2019 11:37:46 AM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageCloud.cpp
r79605 r79727 138 138 } 139 139 140 com::SafeArray<CloudMachineState_T> machi meStates;140 com::SafeArray<CloudMachineState_T> machineStates; 141 141 if (strState.isNotEmpty()) 142 142 { 143 143 if (strState.equals("running")) 144 machi meStates.push_back(CloudMachineState_Running);144 machineStates.push_back(CloudMachineState_Running); 145 145 else if (strState.equals("paused")) 146 machi meStates.push_back(CloudMachineState_Stopped);146 machineStates.push_back(CloudMachineState_Stopped); 147 147 else if (strState.equals("terminated")) 148 machi meStates.push_back(CloudMachineState_Terminated);148 machineStates.push_back(CloudMachineState_Terminated); 149 149 } 150 150 … … 204 204 205 205 CHECK_ERROR2_RET(hrc, oCloudClient, 206 ListInstances(ComSafeArrayAsInParam(machi meStates),206 ListInstances(ComSafeArrayAsInParam(machineStates), 207 207 pVMNamesHolder.asOutParam(), 208 208 pVMIdsHolder.asOutParam(), … … 284 284 else if (strState.equals("deleted")) 285 285 imageStates.push_back(CloudImageState_Deleted); 286 else if (strState.equals("exporting")) 287 imageStates.push_back(CloudImageState_Exporting); 288 else if (strState.equals("importing")) 289 imageStates.push_back(CloudImageState_Importing); 286 290 } 287 291 … … 878 882 { "--bucket-name", 'b', RTGETOPT_REQ_STRING }, 879 883 { "--object-name", 'o', RTGETOPT_REQ_STRING }, 880 { "--i mage-id",'i', RTGETOPT_REQ_STRING }884 { "--id", 'i', RTGETOPT_REQ_STRING } 881 885 }; 882 886 RTGETOPTSTATE GetState; … … 982 986 static const RTGETOPTDEF s_aOptions[] = 983 987 { 984 { "--i mage-id",'i', RTGETOPT_REQ_STRING },988 { "--id", 'i', RTGETOPT_REQ_STRING }, 985 989 { "--bucket-name", 'b', RTGETOPT_REQ_STRING }, 986 990 { "--object-name", 'o', RTGETOPT_REQ_STRING } … … 1005 1009 case 'i': 1006 1010 strImageId=ValueUnion.psz; 1007 Bstr(Utf8Str("image-id=").append(ValueUnion.psz)).detachTo(parameters.appendedRaw());1008 1011 break; 1009 1012 case 'b': … … 1027 1030 1028 1031 ComPtr<IVirtualBox> pVirtualBox = a->virtualBox; 1029 Bstr bstrImageId;1030 1032 ComObjPtr<ICloudClient> oCloudClient; 1031 1033 CHECK_ERROR2_RET(hrc, pCloudProfile, … … 1036 1038 ComPtr<IProgress> progress; 1037 1039 CHECK_ERROR2_RET(hrc, oCloudClient, 1038 ImportImage( pVirtualBox, ComSafeArrayAsInParam(parameters), progress.asOutParam()),1040 ImportImage(Bstr(strImageId.c_str()).raw(), pVirtualBox, ComSafeArrayAsInParam(parameters), progress.asOutParam()), 1039 1041 RTEXITCODE_FAILURE); 1040 1042 hrc = showProgress(progress); … … 1060 1062 static const RTGETOPTDEF s_aOptions[] = 1061 1063 { 1062 { "--i mage-id", 'i', RTGETOPT_REQ_STRING }1064 { "--id", 'i', RTGETOPT_REQ_STRING } 1063 1065 }; 1064 1066 RTGETOPTSTATE GetState; … … 1094 1096 RTPrintf("Getting information about the cloud image with id \'%s\'...\n", strImageId.c_str()); 1095 1097 1096 com::SafeArray<BSTR> parameters;1097 1098 ComPtr<IStringArray> infoArray; 1098 1099 com::SafeArray<BSTR> pStrInfoArray; … … 1102 1103 CHECK_ERROR2_RET(hrc, oCloudClient, 1103 1104 GetImageInfo(Bstr(strImageId.c_str()).raw(), 1104 ComSafeArrayAsInParam(parameters),1105 1105 infoArray.asOutParam(), 1106 1106 pProgress.asOutParam()), -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r79676 r79727 26066 26066 <interface 26067 26067 name="ICloudClient" extends="$unknown" 26068 uuid=" 7ec55937-3152-4e06-8192-c3828aadc7ab"26068 uuid="949f8c85-c689-40fa-a6b2-14425ccdfc0d" 26069 26069 wsmap="managed" reservedMethods="16" reservedAttributes="8" 26070 26070 > … … 26266 26266 Returns the information about an instance in the Cloud. 26267 26267 </desc> 26268 <param name=" instanceId" type="wstring" dir="in">26269 <desc> What to search for. This is the instance ID.</desc>26268 <param name="uid" type="wstring" dir="in"> 26269 <desc>The id of instance in the Cloud.</desc> 26270 26270 </param> 26271 26271 <param name="description" type="IVirtualSystemDescription" dir="in"> … … 26284 26284 </desc> 26285 26285 <param name="uid" type="wstring" dir="in"> 26286 <desc> the id of instance in the Cloud.</desc>26286 <desc>The id of instance in the Cloud.</desc> 26287 26287 </param> 26288 26288 <param name="progress" type="IProgress" dir="return"> … … 26296 26296 </desc> 26297 26297 <param name="uid" type="wstring" dir="in"> 26298 <desc> the id of instance in the Cloud.</desc>26298 <desc>The id of instance in the Cloud.</desc> 26299 26299 </param> 26300 26300 <param name="progress" type="IProgress" dir="return"> … … 26347 26347 <method name="importImage"> 26348 26348 <desc> 26349 Import an existing image in the Cloud into the VirtualBox. 26350 </desc> 26349 Import an existing image in the Cloud to the local host. 26350 </desc> 26351 <param name="uid" type="wstring" dir="in"> 26352 <desc>the id of image in the Cloud.</desc> 26353 </param> 26351 26354 <param name="virtualBox" type="IVirtualBox" dir="in"> 26352 26355 <desc>Reference to the server-side API root object.</desc> … … 26365 26368 </desc> 26366 26369 <param name="uid" type="wstring" dir="in"> 26367 <desc> the id of image in the Cloud.</desc>26370 <desc>The id of image in the Cloud.</desc> 26368 26371 </param> 26369 26372 <param name="progress" type="IProgress" dir="return"> … … 26376 26379 Returns the information about an image in the Cloud. 26377 26380 </desc> 26378 <param name="imageId" type="wstring" dir="in"> 26379 <desc>What to search for. This is the image ID.</desc> 26380 </param> 26381 <param name="parameters" type="wstring" dir="in" safearray="yes"> 26382 <desc>Each parameter in the array must be in the form "name=value".</desc> 26381 <param name="uid" type="wstring" dir="in"> 26382 <desc>The id of image in the Cloud.</desc> 26383 26383 </param> 26384 26384 <param name="infoArray" type="IStringArray" dir="out"> 26385 <desc>Each parameter in the array must be in the form "name=value".</desc> 26385 <desc> 26386 An array where the image settings or properties is returned. 26387 Each parameter in the array must be in the form "name=value". 26388 </desc> 26386 26389 </param> 26387 26390 <param name="progress" type="IProgress" dir="return">
Note:
See TracChangeset
for help on using the changeset viewer.