public SetAzureVMImageDataDiskConfigInfo(VirtualMachineImageDiskConfigSet diskConfig, string dataDiskName, int lun, string hostCaching)
 {
     this.cmdletName = Utilities.SetAzureVMImageDataDiskConfigCmdletName;
     this.cmdletParams.Add(new CmdletParam("DiskConfig",diskConfig));
     this.cmdletParams.Add(new CmdletParam("DataDiskName",dataDiskName));
     this.cmdletParams.Add(new CmdletParam("Lun", lun));
     this.cmdletParams.Add(new CmdletParam("HostCaching", hostCaching));
 }
        public UpdateAzureVMImageCmdletInfo(string imageName, string label, string recommendedSize,VirtualMachineImageDiskConfigSet diskConfig )
        {
            cmdletName = Utilities.UpdateAzureVMImageCmdletName;

            cmdletParams.Add(new CmdletParam("ImageName", imageName));
            cmdletParams.Add(new CmdletParam("Label", label));

            if (! string.IsNullOrEmpty(recommendedSize))
            {
                cmdletParams.Add(new CmdletParam("RecommendedVMSize", recommendedSize));
            }
            if (diskConfig != null)
            {
                cmdletParams.Add(new CmdletParam("DiskConfig", diskConfig));
            }
        }
 public SetAzureVMImageOSDiskConfigInfo(VirtualMachineImageDiskConfigSet diskConfig, string hostCaching)
 {
     this.cmdletName = Utilities.SetAzureVMImageOSDiskConfigCmdletName;
     this.cmdletParams.Add(new CmdletParam("DiskConfig",diskConfig));
     this.cmdletParams.Add(new CmdletParam("HostCaching", hostCaching));
 }
        public AddAzureVMImageCmdletInfo(
            string imageName,
            string label,
            VirtualMachineImageDiskConfigSet diskConfig,
            string description,
            string eula,
            string imageFamily,
            DateTime? publishedDate,
            string privacyUri,
            string recommendedVMSize,
            string iconName,
            string smallIconName,
            bool? showInGui)
        {
            cmdletName = Utilities.AddAzureVMImageCmdletName;

            cmdletParams.Add(new CmdletParam("ImageName", imageName));

            cmdletParams.Add(new CmdletParam("Label", label));

            if (diskConfig != null)
            {
                cmdletParams.Add(new CmdletParam("DiskConfig", diskConfig));
            }

            if (!string.IsNullOrEmpty(description))
            {
                cmdletParams.Add(new CmdletParam("Description", description));
            }

            if (!string.IsNullOrEmpty(eula))
            {
                cmdletParams.Add(new CmdletParam("Eula", eula));
            }

            if (!string.IsNullOrEmpty(imageFamily))
            {
                cmdletParams.Add(new CmdletParam("ImageFamily", imageFamily));
            }

            if (publishedDate != null)
            {
                cmdletParams.Add(new CmdletParam("PublishedDate", publishedDate));
            }

            if (!string.IsNullOrEmpty(privacyUri))
            {
                cmdletParams.Add(new CmdletParam("PrivacyUri", privacyUri));
            }

            if (!string.IsNullOrEmpty(recommendedVMSize))
            {
                cmdletParams.Add(new CmdletParam("RecommendedVMSize", recommendedVMSize));
            }

            if (!string.IsNullOrEmpty(iconName))
            {
                cmdletParams.Add(new CmdletParam("IconName", iconName));
            }

            if (!string.IsNullOrEmpty(smallIconName))
            {
                cmdletParams.Add(new CmdletParam("SmallIconName", smallIconName));
            }

            if (showInGui != null)
            {
                cmdletParams.Add(new CmdletParam("ShowInGui", showInGui));
            }
        }