次の方法で共有


ArmComputeModelFactory.VirtualMachineSoftwarePatchProperties Method

Definition

Initializes a new instance of VirtualMachineSoftwarePatchProperties.

public static Azure.ResourceManager.Compute.Models.VirtualMachineSoftwarePatchProperties VirtualMachineSoftwarePatchProperties (string patchId = default, string name = default, string version = default, string kbId = default, System.Collections.Generic.IEnumerable<string> classifications = default, Azure.ResourceManager.Compute.Models.VmGuestPatchRebootBehavior? rebootBehavior = default, string activityId = default, DateTimeOffset? publishedOn = default, DateTimeOffset? lastModifiedOn = default, Azure.ResourceManager.Compute.Models.PatchAssessmentState? assessmentState = default);
static member VirtualMachineSoftwarePatchProperties : string * string * string * string * seq<string> * Nullable<Azure.ResourceManager.Compute.Models.VmGuestPatchRebootBehavior> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Compute.Models.PatchAssessmentState> -> Azure.ResourceManager.Compute.Models.VirtualMachineSoftwarePatchProperties
Public Shared Function VirtualMachineSoftwarePatchProperties (Optional patchId As String = Nothing, Optional name As String = Nothing, Optional version As String = Nothing, Optional kbId As String = Nothing, Optional classifications As IEnumerable(Of String) = Nothing, Optional rebootBehavior As Nullable(Of VmGuestPatchRebootBehavior) = Nothing, Optional activityId As String = Nothing, Optional publishedOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedOn As Nullable(Of DateTimeOffset) = Nothing, Optional assessmentState As Nullable(Of PatchAssessmentState) = Nothing) As VirtualMachineSoftwarePatchProperties

Parameters

patchId
String

A unique identifier for the patch.

name
String

The friendly name of the patch.

version
String

The version number of the patch. This property applies only to Linux patches.

kbId
String

The KBID of the patch. Only applies to Windows patches.

classifications
IEnumerable<String>

The classification(s) of the patch as provided by the patch publisher.

rebootBehavior
Nullable<VmGuestPatchRebootBehavior>

Describes the reboot requirements of the patch.

activityId
String

The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs.

publishedOn
Nullable<DateTimeOffset>

The UTC timestamp when the repository published this patch.

lastModifiedOn
Nullable<DateTimeOffset>

The UTC timestamp of the last update to this patch record.

assessmentState
Nullable<PatchAssessmentState>

Describes the availability of a given patch.

Returns

A new VirtualMachineSoftwarePatchProperties instance for mocking.

Applies to