LinuxPatchSettings Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. LinuxPatchSettings
- com.
Implements
public final class LinuxPatchSettings
implements JsonSerializable<LinuxPatchSettings>
Specifies settings related to VM Guest Patching on Linux.
Constructor Summary
Constructor | Description |
---|---|
LinuxPatchSettings() |
Creates an instance of Linux |
Method Summary
Modifier and Type | Method and Description |
---|---|
Linux |
assessmentMode()
Get the assessment |
Linux |
automaticByPlatformSettings()
Get the automatic |
static
Linux |
fromJson(JsonReader jsonReader)
Reads an instance of Linux |
Linux |
patchMode()
Get the patch |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Linux |
withAssessmentMode(LinuxPatchAssessmentMode assessmentMode)
Set the assessment |
Linux |
withAutomaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings)
Set the automatic |
Linux |
withPatchMode(LinuxVMGuestPatchMode patchMode)
Set the patch |
Methods inherited from java.lang.Object
Constructor Details
LinuxPatchSettings
public LinuxPatchSettings()
Creates an instance of LinuxPatchSettings class.
Method Details
assessmentMode
public LinuxPatchAssessmentMode assessmentMode()
Get the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.
Possible values are:
**ImageDefault** - You control the timing of patch assessments on a virtual machine.
**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
Returns:
automaticByPlatformSettings
public LinuxVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings()
Get the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.
Returns:
fromJson
public static LinuxPatchSettings fromJson(JsonReader jsonReader)
Reads an instance of LinuxPatchSettings from the JsonReader.
Parameters:
Returns:
Throws:
patchMode
public LinuxVMGuestPatchMode patchMode()
Get the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.
Possible values are:
**ImageDefault** - The virtual machine's default patching configuration is used.
**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAssessmentMode
public LinuxPatchSettings withAssessmentMode(LinuxPatchAssessmentMode assessmentMode)
Set the assessmentMode property: Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.
Possible values are:
**ImageDefault** - You control the timing of patch assessments on a virtual machine.
**AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.
Parameters:
Returns:
withAutomaticByPlatformSettings
public LinuxPatchSettings withAutomaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettings automaticByPlatformSettings)
Set the automaticByPlatformSettings property: Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux.
Parameters:
Returns:
withPatchMode
public LinuxPatchSettings withPatchMode(LinuxVMGuestPatchMode patchMode)
Set the patchMode property: Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.
Possible values are:
**ImageDefault** - The virtual machine's default patching configuration is used.
**AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true.
Parameters:
Returns:
Applies to
Azure SDK for Java