你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DeploymentProperties 类
- java.
lang. Object - com.
microsoft. azure. management. resources. DeploymentProperties
- com.
public class DeploymentProperties
部署属性。
构造函数摘要
构造函数 | 说明 | |
---|---|---|
DeploymentProperties() |
方法摘要
方法继承自 java.lang.Object
构造函数详细信息
DeploymentProperties
public DeploymentProperties()
方法详细信息
debugSetting
public DebugSetting debugSetting()
获取部署的调试设置。
Returns:
expressionEvaluationOptions
public ExpressionEvaluationOptions expressionEvaluationOptions()
Get 指定是在父模板还是嵌套模板的范围内计算模板表达式。 仅适用于嵌套模板。 如果未指定,默认值为 outer。
Returns:
mode
public DeploymentMode mode()
获取用于部署资源的模式。 此值可以是“增量”或“完成”。 在增量模式下,将在不删除模板中未包含的现有资源的情况下部署资源。 在“完成”模式下,部署资源,并删除资源组中未包含在模板中的现有资源。 使用“完成”模式时要小心,因为可能会无意中删除资源。 可能的值包括:“Incremental”、“Complete”。
Returns:
onErrorDeployment
public OnErrorDeployment onErrorDeployment()
获取针对错误行为的部署。
Returns:
parameters
public Object parameters()
获取用于定义模板部署参数的名称和值对。 如果要直接在请求中提供参数值,而不是链接到现有参数文件,请使用此元素。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。 它可以是 JObject 或格式正确的 JSON 字符串。
Returns:
parametersLink
public ParametersLink parametersLink()
获取参数文件的 URI。 使用此元素链接到现有参数文件。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。
Returns:
template
public Object template()
获取模板内容。 如果要直接在请求中传递模板语法,而不是链接到现有模板,请使用此元素。 它可以是 JObject 或格式正确的 JSON 字符串。 使用 templateLink 属性或模板属性,但不能同时使用两者。
Returns:
templateLink
public TemplateLink templateLink()
获取模板的 URI。 使用 templateLink 属性或模板属性,但不能同时使用两者。
Returns:
withDebugSetting
public DeploymentProperties withDebugSetting(DebugSetting debugSetting)
设置部署的调试设置。
Parameters:
Returns:
withExpressionEvaluationOptions
public DeploymentProperties withExpressionEvaluationOptions(ExpressionEvaluationOptions expressionEvaluationOptions)
Set 指定是在父模板还是嵌套模板的范围内计算模板表达式。 仅适用于嵌套模板。 如果未指定,默认值为 outer。
Parameters:
Returns:
withMode
public DeploymentProperties withMode(DeploymentMode mode)
设置用于部署资源的模式。 此值可以是“增量”或“完成”。 在增量模式下,将在不删除模板中未包含的现有资源的情况下部署资源。 在“完成”模式下,部署资源,并删除资源组中未包含在模板中的现有资源。 使用“完成”模式时要小心,因为可能会无意中删除资源。 可能的值包括:“Incremental”、“Complete”。
Parameters:
Returns:
withOnErrorDeployment
public DeploymentProperties withOnErrorDeployment(OnErrorDeployment onErrorDeployment)
针对错误行为设置部署。
Parameters:
Returns:
withParameters
public DeploymentProperties withParameters(Object parameters)
设置用于定义模板部署参数的名称和值对。 如果要直接在请求中提供参数值,而不是链接到现有参数文件,请使用此元素。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。 它可以是 JObject 或格式正确的 JSON 字符串。
Parameters:
Returns:
withParametersLink
public DeploymentProperties withParametersLink(ParametersLink parametersLink)
设置参数文件的 URI。 使用此元素链接到现有参数文件。 使用 parametersLink 属性或 parameters 属性,但不能同时使用两者。
Parameters:
Returns:
withTemplate
public DeploymentProperties withTemplate(Object template)
设置模板内容。 如果要直接在请求中传递模板语法,而不是链接到现有模板,请使用此元素。 它可以是 JObject 或格式正确的 JSON 字符串。 使用 templateLink 属性或 template 属性,但不能同时使用两者。
Parameters:
Returns:
withTemplateLink
public DeploymentProperties withTemplateLink(TemplateLink templateLink)
设置模板的 URI。 使用 templateLink 属性或 template 属性,但不能同时使用两者。
Parameters:
Returns: