All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.ens20171110.models.UpgradeApplicationRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;

import com.aliyun.tea.*;

public class UpgradeApplicationRequest extends TeaModel {
    /**
     * 

The ID of the application.

*

This parameter is required.

* * example: *

a2bac6f4-75dc-455e-8389-2dc8e47526d3

*/ @NameInMap("AppId") public String appId; /** *

The information template for phased update. The value must be a JSON string and contain the following information:

*
    *
  • Version range that you want to update
  • *
  • Configuration information of the target version
  • *
  • Canary release policy for resources
  • *
  • Intelligent upgrade policy that contains information such as the time window and resource usage limit
  • *
*

This parameter is required.

* * example: *

{\"fromAppVersions\":{ \"operator\":\"In\", \"values\":[ \"v1\", \"v2\" ] }, \"toAppVersion\":\"v3\", \"descrip\":\"xxx\", \"workload\":[ { \"name\":\"nginx\", \"podSpec\":{ } } ], \"upgradeStrategy\":{ \"name\":\"ScheduleToISP\", \"parameters\":{ \"operator\":\"In\", \"values\":[ \"telecom\" ] } }, \"autoUpgradeStrategy\":{ \"name\":\"AdjustToPodUsage\", \"checkInterval\":600, \"startTime\":\"2021-02-19 00:00:00\", \"startHourPoint\":\"0\", \"endHourPoint\":\"8\", \"endTime\":\"2021-02-19 08:00:00\", \"level\":\"RegionId\", \"rules\":[ { \"regionCodes\":[ \"cn-wuxi-telecom_unicom_cmcc\", \"cn-shijiazhuang-telecom_unicom_cmcc\" ], \"usageRatioLimit\":{ \"maxPodUsageRatio\":50 }, \"maxUpgradingRatio\":50 }, { \"regionCodes\":[ \"cn-wuhan-telecom_unicom_cmcc\" ], \"usageRatioLimit\":{ \"maxPodUsageRatio\":30 }, \"maxUpgradingRatio\":20 }, { \"regionCodes\":[ \"All\" ], \"usageRatioLimit\":{ \"maxPodUsageRatio\":20 }, \"maxUpgradingRatio\":50, \"maxUpgradingCount\":2 } ] }}

*/ @NameInMap("Template") public String template; /** *

The timeout period for asynchronous upgrade. Unit: seconds. Default value: 300.

* * example: *

1800

*/ @NameInMap("Timeout") public Integer timeout; public static UpgradeApplicationRequest build(java.util.Map map) throws Exception { UpgradeApplicationRequest self = new UpgradeApplicationRequest(); return TeaModel.build(map, self); } public UpgradeApplicationRequest setAppId(String appId) { this.appId = appId; return this; } public String getAppId() { return this.appId; } public UpgradeApplicationRequest setTemplate(String template) { this.template = template; return this; } public String getTemplate() { return this.template; } public UpgradeApplicationRequest setTimeout(Integer timeout) { this.timeout = timeout; return this; } public Integer getTimeout() { return this.timeout; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy