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;
        }
        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 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, ExtensionConfigurationInput extConfig = null)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

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

            if (extConfig != null)
            {
                result.cmdletParams.Add(new CmdletParam("ExtensionConfiguration", extConfig));
            }

            return result;
        }
Exemple #6
0
        public static SetAzureDeploymentCmdletInfo SetAzureDeploymentConfigCmdletInfo(string serviceName, string slot, string configPath, ExtensionConfigurationInput extConfig = null)
        {
            SetAzureDeploymentCmdletInfo result = new SetAzureDeploymentCmdletInfo(serviceName, slot);

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

            if (extConfig != null)
            {
                result.cmdletParams.Add(new CmdletParam("ExtensionConfiguration", extConfig));
            }

            return(result);
        }