Compartilhar via


ArmHybridComputeModelFactory.MachineInstallPatchesContent Method

Definition

Initializes a new instance of MachineInstallPatchesContent.

public static Azure.ResourceManager.HybridCompute.Models.MachineInstallPatchesContent MachineInstallPatchesContent (TimeSpan maximumDuration = default, Azure.ResourceManager.HybridCompute.Models.VmGuestPatchRebootSetting rebootSetting = default, Azure.ResourceManager.HybridCompute.Models.HybridComputeWindowsParameters windowsParameters = default, Azure.ResourceManager.HybridCompute.Models.HybridComputeLinuxParameters linuxParameters = default);
static member MachineInstallPatchesContent : TimeSpan * Azure.ResourceManager.HybridCompute.Models.VmGuestPatchRebootSetting * Azure.ResourceManager.HybridCompute.Models.HybridComputeWindowsParameters * Azure.ResourceManager.HybridCompute.Models.HybridComputeLinuxParameters -> Azure.ResourceManager.HybridCompute.Models.MachineInstallPatchesContent
Public Shared Function MachineInstallPatchesContent (Optional maximumDuration As TimeSpan = Nothing, Optional rebootSetting As VmGuestPatchRebootSetting = Nothing, Optional windowsParameters As HybridComputeWindowsParameters = Nothing, Optional linuxParameters As HybridComputeLinuxParameters = Nothing) As MachineInstallPatchesContent

Parameters

maximumDuration
TimeSpan

Specifies the maximum amount of time that the operation will run. It must be an ISO 8601-compliant duration string such as PT4H (4 hours).

rebootSetting
VmGuestPatchRebootSetting

Defines when it is acceptable to reboot a VM during a software update operation.

windowsParameters
HybridComputeWindowsParameters

Input for InstallPatches on a Windows VM, as directly received by the API.

linuxParameters
HybridComputeLinuxParameters

Input for InstallPatches on a Linux VM, as directly received by the API.

Returns

A new MachineInstallPatchesContent instance for mocking.

Applies to