All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.mo.samples.vm.VmCdOp.class Maven / Gradle / Ivy

The newest version!
????2{%com/vmware/vim25/mo/samples/vm/VmCdOpjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis'Lcom/vmware/vim25/mo/samples/vm/VmCdOp;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception	java/lang/SystemoutLjava/io/PrintStream;EUsage: java VmCdOp      
java/io/PrintStream println(Ljava/lang/String;)V"device - disk|cd$op - add|remove
&'(exit(I)V*#com/vmware/vim25/mo/ServiceInstance,java/net/URL
+. 
)016(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
)345
getRootFolder()Lcom/vmware/vim25/mo/Folder;7&com/vmware/vim25/mo/InventoryNavigator
69:&(Lcom/vmware/vim25/mo/ManagedEntity;)V<VirtualMachine
6>?@searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;B"com/vmware/vim25/mo/VirtualMachineDjava/lang/StringBuilderFNo VM 
C.
CIJKappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;M found
COPQtoString()Ljava/lang/String;
)STUgetServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
WYX$com/vmware/vim25/mo/ServerConnectionZlogout\)com/vmware/vim25/VirtualMachineConfigSpec
[	_add
acbjava/lang/StringdeequalsIgnoreCase(Ljava/lang/String;)Zgstorage1 (2)ivimaster
klmcreateAddCdConfigSpect(Lcom/vmware/vim25/mo/VirtualMachine;Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/VirtualDeviceConfigSpec;o(com/vmware/vim25/VirtualDeviceConfigSpec
[qrssetDeviceChange.([Lcom/vmware/vim25/VirtualDeviceConfigSpec;)VuremovewCD/DVD Drive 2
yz{createRemoveCdConfigSpecb(Lcom/vmware/vim25/mo/VirtualMachine;Ljava/lang/String;)Lcom/vmware/vim25/VirtualDeviceConfigSpec;}Invlaid device type [disk|cd]
A??reconfigVM_TaskG(Lcom/vmware/vim25/VirtualMachineConfigSpec;)Lcom/vmware/vim25/mo/Task;
???com/vmware/vim25/mo/Task?Q	waitForMeargs[Ljava/lang/String;vmnameLjava/lang/String;opsi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;vmConfigSpec+Lcom/vmware/vim25/VirtualMachineConfigSpec;dsNameisocdSpec*Lcom/vmware/vim25/VirtualDeviceConfigSpec;cdNametaskLcom/vmware/vim25/mo/Task;
StackMapTable??com/vmware/vim25/mo/Folder
n		???1com/vmware/vim25/VirtualDeviceConfigSpecOperation_?3Lcom/vmware/vim25/VirtualDeviceConfigSpecOperation;
n???setOperation6(Lcom/vmware/vim25/VirtualDeviceConfigSpecOperation;)V?com/vmware/vim25/VirtualCdrom
?	?+com/vmware/vim25/VirtualCdromIsoBackingInfo
?	
???findDatastoreSummary[(Lcom/vmware/vim25/mo/VirtualMachine;Ljava/lang/String;)Lcom/vmware/vim25/DatastoreSummary;
???!com/vmware/vim25/DatastoreSummary??getDatastore+()Lcom/vmware/vim25/ManagedObjectReference;
????setDatastore,(Lcom/vmware/vim25/ManagedObjectReference;)V?[?] 
A??QgetName?/?.iso
??? setFileName
???getIDEControllerF(Lcom/vmware/vim25/mo/VirtualMachine;)Lcom/vmware/vim25/VirtualDevice;
????
setBacking.(Lcom/vmware/vim25/VirtualDeviceBackingInfo;)V
???com/vmware/vim25/VirtualDevice??getKey()I
???java/lang/Integer??valueOf(I)Ljava/lang/Integer;
????setControllerKey(Ljava/lang/Integer;)V
????
getUnitNumber()Ljava/lang/Integer;
????
setUnitNumber
???(setKey
n???	setDevice#(Lcom/vmware/vim25/VirtualDevice;)VisoNamecdromLcom/vmware/vim25/VirtualCdrom;cdDeviceBacking-Lcom/vmware/vim25/VirtualCdromIsoBackingInfo;ds#Lcom/vmware/vim25/DatastoreSummary;vd Lcom/vmware/vim25/VirtualDevice;	??u?
A???	getConfig-()Lcom/vmware/vim25/VirtualMachineConfigInfo;
findVirtualDevice_(Lcom/vmware/vim25/VirtualMachineConfigInfo;Ljava/lang/String;)Lcom/vmware/vim25/VirtualDevice;No device available cdRemove

	)com/vmware/vim25/VirtualMachineConfigInfogetHardware$()Lcom/vmware/vim25/VirtualHardware;
 com/vmware/vim25/VirtualHardware	getDevice#()[Lcom/vmware/vim25/VirtualDevice;
?
getDeviceInfo ()Lcom/vmware/vim25/Description;
com/vmware/vim25/DescriptionQgetLabel
aequals(Ljava/lang/Object;)ZvmConfig+Lcom/vmware/vim25/VirtualMachineConfigInfo;namedevices![Lcom/vmware/vim25/VirtualDevice;iI$
A)*+
getRuntime.()Lcom/vmware/vim25/VirtualMachineRuntimeInfo;
A-./getEnvironmentBrowser*()Lcom/vmware/vim25/mo/EnvironmentBrowser;
132*com/vmware/vim25/VirtualMachineRuntimeInfo4?getHost6No Datastore found8com/vmware/vim25/mo/HostSystem
AS
7;<R(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)V
>@?&com/vmware/vim25/mo/EnvironmentBrowserABqueryConfigTargetA(Lcom/vmware/vim25/mo/HostSystem;)Lcom/vmware/vim25/ConfigTarget;
DFEcom/vmware/vim25/ConfigTarget?G1()[Lcom/vmware/vim25/VirtualMachineDatastoreInfo;
IKJ,com/vmware/vim25/VirtualMachineDatastoreInfo?L%()Lcom/vmware/vim25/DatastoreSummary;
?NOPisAccessible()Z
??dsSum
vmRuntimeInfo,Lcom/vmware/vim25/VirtualMachineRuntimeInfo;
envBrowser(Lcom/vmware/vim25/mo/EnvironmentBrowser;hmor)Lcom/vmware/vim25/ManagedObjectReference;configTargetLcom/vmware/vim25/ConfigTarget;dis/[Lcom/vmware/vim25/VirtualMachineDatastoreInfo;^'com/vmware/vim25/ManagedObjectReference\
abcgetDefaultDevicesG(Lcom/vmware/vim25/mo/VirtualMachine;)[Lcom/vmware/vim25/VirtualDevice;e%com/vmware/vim25/VirtualIDEController
ideControllerdefaultDevices
>ijkqueryConfigOptiona(Ljava/lang/String;Lcom/vmware/vim25/mo/HostSystem;)Lcom/vmware/vim25/VirtualMachineConfigOption;
mon+com/vmware/vim25/VirtualMachineConfigOptionpgetDefaultDevicer%No Datastore found in ComputeResource
.u/No VirtualHardwareInfo found in ComputeResourcecfgOpt-Lcom/vmware/vim25/VirtualMachineConfigOption;defaultDevs
SourceFileVmCdOp.java!/*??
C
	O
?*?????!??#??%*2L*2M?)Y?+Y*2?-*2*2?/N-?2:?6Y?8;+?=?A:?&??CYE?G+?HL?H?N?-?R?V??[Y?]:^,?`?'f:h:?j:	?nY	S?p?3t,?`?!v:?x:?nYS?p??|???~:??W?
?#GIKLM"O&P*R.S?RCUIVMWOVRWXV]Yb[}\?]?`?b?d?e?f?g?i?k?l?m?q?r?u?v?w?
???&???*???C???I???]????m??? ????????	??????????$"?b?aa)?A?5[&lm???nY??N-??????Y??:??Y??:*+??:?????CY??G+?H??H*???HĶH,?HƶH?N??*??:???Ӹٶ??????-??-?
B{}?!?(?2?M?^?a?g?n?{???????R????????????{??!r??(k??g,??z{???nY??M,????*??+???N-?
,-??,???CY?G+?H?N??
"?????$?&?=?*??????7??$???&n?
?,*??
M>?,2??+??,2??,?????
??
??!?*?*, !,"?$#$
 %&??
'??V	tM*?(N*?,:-?0:??5???7Y*?9?:?=:?C:6?$2?HM,?M?+,?Q?????????,?
>???
???!?#?7?>?D?M?_?b?r?\	t??t??rR?mST
gUVaWX7=YZ>6[\A1%&?*?#Aa?1>]? D_????'L*?`M>?,2?d?
,2L??,????+?
"???????%?*'??%f? g$	%&???'?bc?R*?(L*?,M+?0N,?7Y*?9-?:?h:?':??l:??Yq?s??Yt?s??
.??
??"?(?-?4?9?D?O?>R??MST
HUVCWX"0vw(*x$??DA1>]m'
yz




© 2015 - 2024 Weber Informatics LLC | Privacy Policy