Пример #1
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[6];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("device", "String", 1,
                                     "Type of device {cpu|memory|disk|cd|nic}",
                                     null);
     useroptions[2] = new OptionSpec("operation", "String", 0
                                     , "{add|remove}"
                                     , null);
     useroptions[3] = new OptionSpec("value", "String", 1,
                                     "{numeric(For Memory and CPU) (high|"
                                     + "low|normal|numeric value|deviceId}",
                                     null);
     useroptions[4] = new OptionSpec("disksize", "Integer", 0
                                     , "Size of virtual disk"
                                     , null);
     useroptions[5] = new OptionSpec("diskmode", "String", 0,
                                     "{persistent|independent_persistent,"
                                     + "independent_nonpersistent}",
                                     null);
     return(useroptions);
 }
Пример #2
0
 public ICanBuildWithArgument On(string name, char shortName, string description)
 {
     currentOption = new OptionSpec {
         Name = name, ShortName = shortName, Description = description
     };
     return(this);
 }
Пример #3
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[7];
     useroptions[0] = new OptionSpec("itemType", "String", 1
                                     , "createdvs|addportgroup"
                                     , null);
     useroptions[1] = new OptionSpec("dcname", "String", 1,
                                     "Datacenter name",
                                     null);
     useroptions[2] = new OptionSpec("dvsname", "String", 1,
                                     "Name of dvs switch to add ",
                                     null);
     useroptions[3] = new OptionSpec("dvsdesc", "String", 0,
                                     "Description of dvs switch to add",
                                     null);
     useroptions[4] = new OptionSpec("dvsversion", "String", 0,
                                     "Distributed Virtual Switch version"
                                     + "either 4.0, 4.1.0, 5.0.0 or 5.1.0",
                                     null);
     useroptions[5] = new OptionSpec("numports", "String", 0,
                                     "Required for addportgroup:Number of ports in the portgroup",
                                     null);
     useroptions[6] = new OptionSpec("portgroupname", "String", 0,
                                     "Required for addportgroup: Name of the port group",
                                     null);
     return(useroptions);
 }
Пример #4
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[8];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("datacentername", "String", 1,
                                     "Name of the datacenter",
                                     null);
     useroptions[2] = new OptionSpec("hostname", "String", 0
                                     , "Name of the host"
                                     , null);
     useroptions[3] = new OptionSpec("guestosid", "String", 0,
                                     "Type of Guest OS",
                                     "winXPProGuest");
     useroptions[4] = new OptionSpec("cpucount", "Integer", 0
                                     , "Total CPU Count"
                                     , "1");
     useroptions[5] = new OptionSpec("disksize", "Integer", 0,
                                     "Size of the Disk",
                                     "1024");
     useroptions[6] = new OptionSpec("memorysize", "Integer", 0
                                     , "Size of the Memory in the blocks of 1024 MB"
                                     , "1024");
     useroptions[7] = new OptionSpec("datastorename", "String", 0,
                                     "Name of the datastore",
                                     null);
     return(useroptions);
 }
Пример #5
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[8];
     useroptions[0] = new OptionSpec("vmname", "String", 1,
                                     "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("targethost", "String", 1,
                                     "Target host on which VM is to be migrated",
                                     null);
     useroptions[2] = new OptionSpec("targetpool", "String", 1,
                                     "Name of the target resource pool",
                                     null);
     useroptions[3] = new OptionSpec("priority", "String", 0,
                                     "The priority of the migration task: defaultPriority, highPriority, lowPriority",
                                     null);
     useroptions[4] = new OptionSpec("validate", "String", 0,
                                     "Check whether the vmotion feature is legal for 4.0 servers",
                                     null);
     useroptions[5] = new OptionSpec("sourcehost", "String", 1,
                                     "Name of the host containg the virtual machine.",
                                     null);
     useroptions[6] = new OptionSpec("targetdatastore", "String", 1,
                                     "Name of the target datastore",
                                     null);
     useroptions[7] = new OptionSpec("state", "String", 0,
                                     "State of the VM poweredOn,poweredOff, suspended",
                                     null);
     return(useroptions);
 }
Пример #6
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[7];
     useroptions[0] = new OptionSpec("itemType", "String", 1
                                     , "addVmAntiAffinity|addVmdkAntiAffinity|list|"
                                     + "modifyVmAntiAffinity|modifyVmdkAntiAffinity"
                                     + "deleteVmAntiAffinity|deleteVmdkAntiAffinity",
                                     null);
     useroptions[1] = new OptionSpec("podname", "String", 1,
                                     "StoragePod name",
                                     null);
     useroptions[2] = new OptionSpec("rulename", "String", 0,
                                     "Rule name",
                                     null);
     useroptions[3] = new OptionSpec("vmlist", "String", 0,
                                     "Comma separated, list of VM names. It is required while"
                                     + " adding VmAntiAffinity Rule.",
                                     null);
     useroptions[4] = new OptionSpec("newrulename", "String", 0,
                                     "New name for rule while modifying",
                                     null);
     useroptions[5] = new OptionSpec("enable", "String", 0,
                                     "Set to true to enable this rule. Any other value is false",
                                     "false");
     useroptions[6] = new OptionSpec("vmname", "String", 0,
                                     " virtual machine name.",
                                     null);
     return(useroptions);
 }
Пример #7
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("vmpath", "String", 1
                                     , "Path of Virtual Machine"
                                     , null);
     return(useroptions);
 }
Пример #8
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("hostname", "String", 0
                                     , "Name of the host"
                                     , null);
     return(useroptions);
 }
Пример #9
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("vmpath", "String", 1
                                     , "A VM Inventory Path"
                                     , null);
     return(useroptions);
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("storagepodname", "String", 1
                                     , "Storage pod name"
                                     , null);
     return(useroptions);
 }
Пример #11
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("docref", "String", 1
                                     , "Document Reference"
                                     , null);
     return(useroptions);
 }
Пример #12
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("hostip", "String", 1
                                     , "IP of the host"
                                     , null);
     return(useroptions);
 }
Пример #13
0
 /// <summary>
 /// This method is used to add application specific user options
 /// </summary>
 ///<returns> Array of OptionSpec containing the details of application
 /// specific user options
 ///</returns>
 ///
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the Virtual Machine"
                                     , null);
     return(useroptions);
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("taskname", "String", 1
                                     , "Name of the task to be scheduled"
                                     , null);
     return(useroptions);
 }
Пример #15
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("typename", "String", 1
                                     , "Type of managed entity"
                                     , null);
     useroptions[1] = new OptionSpec("propertyname", "String", 1
                                     , "Name of the Property"
                                     , null);
     return(useroptions);
 }
Пример #16
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("info", "String", 1
                                     , "[interval|counter|host]"
                                     , null);
     useroptions[1] = new OptionSpec("hostname", "String", 0,
                                     "Name of the host system",
                                     null);
     return(useroptions);
 }
Пример #17
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("alarm", "String", 1,
                                     "Name of the alarm",
                                     null);
     return(useroptions);
 }
Пример #18
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the Virtual Machine"
                                     , null);
     useroptions[1] = new OptionSpec("localpath", "String", 1
                                     , "localpath to copy files"
                                     , null);
     return(useroptions);
 }
Пример #19
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("vapp", "String", 1,
                                     "Name of the vapp",
                                     null);
     useroptions[1] = new OptionSpec("localpath", "String", 1,
                                     "local System path where files needs to be saved",
                                     null);
     return(useroptions);
 }
Пример #20
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("hostname", "String", 1
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("operation", "String", 1
                                     , "Name of the operation"
                                     , null);
     return(useroptions);
 }
Пример #21
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("entityname", "String", 1
                                     , "Name of the virtual entity"
                                     , null);
     useroptions[1] = new OptionSpec("foldername", "String", 1,
                                     "Name of the folder",
                                     null);
     return(useroptions);
 }
Пример #22
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("DatacenterName", "String", 1
                                     , "Name of the Datacenter"
                                     , null);
     useroptions[1] = new OptionSpec("vmPath", "String", 1,
                                     "A path to the VM inventory, example:Datacentername/vm/vmname",
                                     null);
     useroptions[2] = new OptionSpec("CloneName", "String", 1,
                                     "Name of the Clone",
                                     null);
     return(useroptions);
 }
Пример #23
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("host", "String", 0
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("portgroupname", "String", 1,
                                     "Name of the portgroup",
                                     null);
     useroptions[2] = new OptionSpec("datacenter", "String", 0,
                                     "Name of the datacenter",
                                     null);
     return(useroptions);
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("sourcehostname", "String", 1
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("entityname", "String", 1,
                                     "Attached Entity Name",
                                     null);
     useroptions[2] = new OptionSpec("entitytype", "String", 1,
                                     "Attached Entity Type",
                                     null);
     return(useroptions);
 }
Пример #25
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("vswitchid", "String", 1
                                     , "Name of the virtual switch"
                                     , null);
     useroptions[1] = new OptionSpec("host", "String", 0,
                                     "Name of the host",
                                     null);
     useroptions[2] = new OptionSpec("datacenter", "String", 0,
                                     "Name of the datacenter",
                                     null);
     return(useroptions);
 }
Пример #26
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("hostname", "String", 1
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("memorysize", "Integer", 1,
                                     "Size of the memory",
                                     null);
     useroptions[2] = new OptionSpec("cpucount", "Integer", 1,
                                     "Number of the CPU count",
                                     null);
     return(useroptions);
 }
Пример #27
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of Virtual Machine"
                                     , null);
     useroptions[1] = new OptionSpec("operation", "String", 1
                                     , "Operation [on|off|suspend|reset|rebootGuest]"
                                     , null);
     useroptions[2] = new OptionSpec("hostname", "String", 1
                                     , "Name of the host system"
                                     , null);
     return(useroptions);
 }
Пример #28
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("snapshotname", "String", 0
                                     , "Name of the snapshot name"
                                     , null);
     useroptions[2] = new OptionSpec("description", "String", 0
                                     , "Description"
                                     , null);
     return(useroptions);
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("host", "String", 1
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("info", "String", 0,
                                     "Type of info required,only [cimticket] for now",
                                     "cimticket");
     useroptions[2] = new OptionSpec("file", "String", 0,
                                     "Full path of the file to save data to"
                                     , "cimTicketInfo.txt");
     return(useroptions);
 }
Пример #30
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec [] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("entitytype", "String", 1
                                     , "Type of the Entity "
                                     + "[HostSystem|VirtualMachine|ResourcePool]"
                                     , null);
     useroptions[1] = new OptionSpec("entityname", "String", 1,
                                     "Name of the Managed Entity",
                                     null);
     useroptions[2] = new OptionSpec("filename", "String", 1,
                                     "Name of the file",
                                     null);
     return(useroptions);
 }