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

com.vmware.vim25.mo.samples.network.RemoveVirtualNic.class Maven / Gradle / Ivy

The newest version!
????2?4com/vmware/vim25/mo/samples/network/RemoveVirtualNicjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis6Lcom/vmware/vim25/mo/samples/network/RemoveVirtualNic;main([Ljava/lang/String;)V
Exceptionsjava/lang/Exception*com/vmware/vim25/mo/util/CommandLineParser
constructOptions(()[Lcom/vmware/vim25/mo/util/OptionSpec;
<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)Vurl
 !
get_option&(Ljava/lang/String;)Ljava/lang/String;#username%password'
datacenter)host+
portgroupname-#com/vmware/vim25/mo/ServiceInstance/java/net/URL
.12(Ljava/lang/String;)V
,456(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
,789
getRootFolder()Lcom/vmware/vim25/mo/Folder;
,;<=getAboutInfo()Lcom/vmware/vim25/AboutInfo;
?A@com/vmware/vim25/AboutInfoBC
getApiType()Ljava/lang/String;E	HostAgent
GIHjava/lang/StringJKequalsIgnoreCase(Ljava/lang/String;)ZM
ha-datacenterO
VirtualCenter	QSRjava/lang/SystemTUoutLjava/io/PrintStream;W'datacenter and host should be specified
Y[Zjava/io/PrintStream\2println^&com/vmware/vim25/mo/InventoryNavigator
]`a&(Lcom/vmware/vim25/mo/ManagedEntity;)Vc
Datacenter
]efgsearchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;icom/vmware/vim25/mo/Datacenterk
HostSystemmcom/vmware/vim25/mo/HostSystem
opqremoveVirtualNic5(Lcom/vmware/vim25/mo/HostSystem;Ljava/lang/String;)Vargs[Ljava/lang/String;clp,Lcom/vmware/vim25/mo/util/CommandLineParser;urlStrLjava/lang/String;dcnamehostname
portGroupNamesi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder; Lcom/vmware/vim25/mo/HostSystem;apiTypedc Lcom/vmware/vim25/mo/Datacenter;
StackMapTables?com/vmware/vim25/mo/Folder
l???getHostNetworkSystem)()Lcom/vmware/vim25/mo/HostNetworkSystem;
???%com/vmware/vim25/mo/HostNetworkSystem??getNetworkInfo$()Lcom/vmware/vim25/HostNetworkInfo;
??? com/vmware/vim25/HostNetworkInfo??getVnic$()[Lcom/vmware/vim25/HostVirtualNic;
???com/vmware/vim25/HostVirtualNic?CgetPortgroup
G???equals(Ljava/lang/Object;)Z
???C	getDevice
??p2?java/lang/StringBuilder?Successful removing : 
?1
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
???CtoString?*PortGroupName not found failed removing : ?2Failed : virtual network adapter cannot be found. ?"Failed : Configuration falilures. ?Failed removing nic: ?com/vmware/vim25/NotFound? com/vmware/vim25/HostConfigFaulthns'Lcom/vmware/vim25/mo/HostNetworkSystem;hvns"[Lcom/vmware/vim25/HostVirtualNic;foundZiInic!Lcom/vmware/vim25/HostVirtualNic;	portGroupeLcom/vmware/vim25/NotFound;"Lcom/vmware/vim25/HostConfigFault;Ljava/lang/Exception;??#com/vmware/vim25/mo/util/OptionSpec?String?Name of the host
???L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V?Name of the portgroup?Name of the datacenter
SourceFileRemoveVirtualNic.java!/*??
D
	?
ȻY?*?L+?M+"?N+$?:+&?:+(?:+*?:?,Y?.Y,?0-?3:?6:	:
?:?>:D?F??
L:? N?F????PV?X??]Y	?_b?d?h:?]Y?_j?d?l:

?n?
RHIJK"L*M2N:POQVRYTcUrWyY?[?\?_?`?b?c?
?rs?tu?vw?#w"?%w*?xw2?yw:?zwOy{|Vr}~	Yo)
ce?w????/?y?GGGGGG,?lG
pq??*??M,????N-??66?C-2:??:?.+???%6,?????P??Y???+?????X?-?????K?P??Y???+?????X?2M?P??X?&M?P??X?M?P??Y???+?????X???}????}???}?
Zij
kmprt!u(v6x9yBzXrb}g??????????????p?)?zw{??
s??k??J??!7??(0?w??????????.	????<?!?lG?K?K
k
;??Y??Y(????SY??Y*????SY??Y&????S?
???*?:???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy