Наследование: Microsoft.WindowsAzure.Management.ServiceManagement.Test.FunctionalTests.PowershellCore.CmdletsInfo
Пример #1
0
        public static SetAzureDeploymentCmdletInfo SetAzureDeploymentUpgradeCmdletInfo(
            string serviceName, string slot, string mode, string packagePath, string configPath)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

            result.cmdletParams.Add(new CmdletParam("Upgrade"));

            result.cmdletParams.Add(new CmdletParam("Mode", mode));
            result.cmdletParams.Add(new CmdletParam("Package", packagePath));
            result.cmdletParams.Add(new CmdletParam("Configuration", configPath));

            return(result);
        }
        public static SetAzureDeploymentCmdletInfo SetAzureDeploymentUpgradeCmdletInfo(
            string serviceName, string slot, string mode, string packagePath, string configPath)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

            result.cmdletParams.Add(new CmdletParam("Upgrade"));

            result.cmdletParams.Add(new CmdletParam("Mode", mode));
            result.cmdletParams.Add(new CmdletParam("Package", packagePath));
            result.cmdletParams.Add(new CmdletParam("Configuration", configPath));

            return result;
        }
        public static SetAzureDeploymentCmdletInfo SetAzureDeploymentConfigCmdletInfo(string serviceName, string slot, string configPath)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

            result.cmdletParams.Add(new CmdletParam("Config"));
            result.cmdletParams.Add(new CmdletParam("Configuration", configPath));

            return result;
        }
        public static SetAzureDeploymentCmdletInfo SetAzureDeploymentStatusCmdletInfo(string serviceName, string slot, string newStatus)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

            result.cmdletParams.Add(new CmdletParam("Status"));
            result.cmdletParams.Add(new CmdletParam("NewStatus", newStatus));

            return result;
        }