azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.batch.p...

108 строки
8.0 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy"
name: "UpgradePolicy"
nameWithType: "UpgradePolicy"
summary: "Describes an upgrade policy - automatic, manual, or rolling."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public class **UpgradePolicy**"
constructors:
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.UpgradePolicy()"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.UpgradePolicy()"
name: "UpgradePolicy()"
nameWithType: "UpgradePolicy.UpgradePolicy()"
syntax: "public UpgradePolicy()"
methods:
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.automaticOSUpgradePolicy()"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.automaticOSUpgradePolicy()"
name: "automaticOSUpgradePolicy()"
nameWithType: "UpgradePolicy.automaticOSUpgradePolicy()"
summary: "Get the configuration parameters used for performing automatic OS upgrade."
syntax: "public AutomaticOSUpgradePolicy automaticOSUpgradePolicy()"
desc: "Get the configuration parameters used for performing automatic OS upgrade."
returns:
description: "the automaticOSUpgradePolicy value"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.AutomaticOSUpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.AutomaticOSUpgradePolicy&text=AutomaticOSUpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.mode()"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.mode()"
name: "mode()"
nameWithType: "UpgradePolicy.mode()"
summary: "Get possible values include: 'automatic', 'manual', 'rolling'."
syntax: "public UpgradeMode mode()"
desc: "Get possible values include: 'automatic', 'manual', 'rolling'."
returns:
description: "the mode value"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.UpgradeMode?alt=com.microsoft.azure.batch.protocol.models.UpgradeMode&text=UpgradeMode\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.rollingUpgradePolicy()"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.rollingUpgradePolicy()"
name: "rollingUpgradePolicy()"
nameWithType: "UpgradePolicy.rollingUpgradePolicy()"
summary: "Get the rolling<wbr>Upgrade<wbr>Policy value."
syntax: "public RollingUpgradePolicy rollingUpgradePolicy()"
desc: "Get the rollingUpgradePolicy value."
returns:
description: "the rollingUpgradePolicy value"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.RollingUpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.RollingUpgradePolicy&text=RollingUpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withAutomaticOSUpgradePolicy(com.microsoft.azure.batch.protocol.models.AutomaticOSUpgradePolicy)"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)"
name: "withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)"
nameWithType: "UpgradePolicy.withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)"
summary: "Set the configuration parameters used for performing automatic OS upgrade."
parameters:
- description: "the automaticOSUpgradePolicy value to set"
name: "automaticOSUpgradePolicy"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.AutomaticOSUpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.AutomaticOSUpgradePolicy&text=AutomaticOSUpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public UpgradePolicy withAutomaticOSUpgradePolicy(AutomaticOSUpgradePolicy automaticOSUpgradePolicy)"
desc: "Set the configuration parameters used for performing automatic OS upgrade."
returns:
description: "the UpgradePolicy object itself."
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.UpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.UpgradePolicy&text=UpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withMode(com.microsoft.azure.batch.protocol.models.UpgradeMode)"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withMode(UpgradeMode mode)"
name: "withMode(UpgradeMode mode)"
nameWithType: "UpgradePolicy.withMode(UpgradeMode mode)"
summary: "Set possible values include: 'automatic', 'manual', 'rolling'."
parameters:
- description: "the mode value to set"
name: "mode"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.UpgradeMode?alt=com.microsoft.azure.batch.protocol.models.UpgradeMode&text=UpgradeMode\" data-throw-if-not-resolved=\"False\" />"
syntax: "public UpgradePolicy withMode(UpgradeMode mode)"
desc: "Set possible values include: 'automatic', 'manual', 'rolling'."
returns:
description: "the UpgradePolicy object itself."
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.UpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.UpgradePolicy&text=UpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withRollingUpgradePolicy(com.microsoft.azure.batch.protocol.models.RollingUpgradePolicy)"
fullName: "com.microsoft.azure.batch.protocol.models.UpgradePolicy.withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)"
name: "withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)"
nameWithType: "UpgradePolicy.withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)"
summary: "Set the rolling<wbr>Upgrade<wbr>Policy value."
parameters:
- description: "the rollingUpgradePolicy value to set"
name: "rollingUpgradePolicy"
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.RollingUpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.RollingUpgradePolicy&text=RollingUpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public UpgradePolicy withRollingUpgradePolicy(RollingUpgradePolicy rollingUpgradePolicy)"
desc: "Set the rollingUpgradePolicy value."
returns:
description: "the UpgradePolicy object itself."
type: "<xref href=\"com.microsoft.azure.batch.protocol.models.UpgradePolicy?alt=com.microsoft.azure.batch.protocol.models.UpgradePolicy&text=UpgradePolicy\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Describes an upgrade policy - automatic, manual, or rolling."
metadata: {}
package: "com.microsoft.azure.batch.protocol.models"
artifact: com.microsoft.azure:azure-batch:11.2.0