Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.IaasCmdletInfo.SetAzureDeploymentCmdletInfo.SetAzureDeploymentCmdletInfo C# (CSharp) Method

SetAzureDeploymentCmdletInfo() public method

public SetAzureDeploymentCmdletInfo ( string option, string serviceName, string packagePath, string configPath, string newStatus, string slot, string mode, string label, string roleName, bool force ) : Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ConfigDataInfo
option string
serviceName string
packagePath string
configPath string
newStatus string
slot string
mode string
label string
roleName string
force bool
return Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ConfigDataInfo
        public SetAzureDeploymentCmdletInfo(string option, string serviceName, string packagePath, string configPath, string newStatus, string slot, string mode, string label, string roleName, bool force)
        {
            cmdletName = Utilities.SetAzureDeploymentCmdletName;

            switch (option)
            {
                case "config":
                    cmdletParams.Add(new CmdletParam("Config"));
                    break;
                case "status":
                    cmdletParams.Add(new CmdletParam("Status"));
                    break;
                case "upgrade":
                    cmdletParams.Add(new CmdletParam("Upgrade"));
                    break;
            }

            cmdletParams.Add(new CmdletParam("ServiceName", serviceName));

            if (packagePath != null)
            {
                cmdletParams.Add(new CmdletParam("Package", packagePath));
            }
            if (configPath != null)
            {
                cmdletParams.Add(new CmdletParam("Configuration", configPath));
            }
            if (mode != null)
            {
                cmdletParams.Add(new CmdletParam("Mode", mode));
            }

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

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

            if (label != null)
            {
                cmdletParams.Add(new CmdletParam("Label", label));
            }
            if (roleName != null)
            {
                cmdletParams.Add(new CmdletParam("RoleName", roleName));
            }
            if (force)
            {
                cmdletParams.Add(new CmdletParam("Force"));
            }
        }

Same methods

SetAzureDeploymentCmdletInfo::SetAzureDeploymentCmdletInfo ( string serviceName, string slot ) : Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.ConfigDataInfo