你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Deployment.UpdateStages.WithTemplate 接口
public static interface Deployment.UpdateStages.WithTemplate
允许更改模板的部署更新。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
abstract Update |
withTemplate(Object template)
将模板指定为 Java 对象。 |
abstract Update |
withTemplate(String templateJson)
将模板指定为 JSON 字符串。 |
abstract Update |
withTemplateLink(String uri, String contentVersion)
将模板指定为 URL。 |
方法详细信息
withTemplate
public abstract Deployment.Update withTemplate(Object template)
将模板指定为 Java 对象。
Parameters:
template
- Java 对象
Returns:
部署更新的下一阶段
withTemplate
public abstract Deployment.Update withTemplate(String templateJson)
将模板指定为 JSON 字符串。
Parameters:
templateJson
- JSON 字符串
Returns:
部署更新的下一阶段
Throws:
java.io.IOException
- 序列化/反序列化引发的异常
withTemplateLink
public abstract Deployment.Update withTemplateLink(String uri, String contentVersion)
将模板指定为 URL。
Parameters:
uri
- 远程模板文件的位置
contentVersion
- 模板文件的版本
Returns:
部署更新的下一阶段