ArmComputeModelFactory.VirtualMachineScaleSetLifecycleHookEventPatch Method

Definition

Initializes a new instance of VirtualMachineScaleSetLifecycleHookEventPatch.

public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch VirtualMachineScaleSetLifecycleHookEventPatch(Azure.ResourceManager.Compute.Models.VmScaleSetLifecycleHookEventType? eventType = default, string waitUntil = default, string maxWaitUntil = default, string timeCreated = default, Azure.ResourceManager.Compute.Models.LifecycleHookAction? defaultAction = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventTarget> targetResources = default, string additionalContextPriority = default, Azure.ResourceManager.Compute.Models.VmScaleSetLifecycleHookEventState? state = default);
static member VirtualMachineScaleSetLifecycleHookEventPatch : Nullable<Azure.ResourceManager.Compute.Models.VmScaleSetLifecycleHookEventType> * string * string * string * Nullable<Azure.ResourceManager.Compute.Models.LifecycleHookAction> * seq<Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventTarget> * string * Nullable<Azure.ResourceManager.Compute.Models.VmScaleSetLifecycleHookEventState> -> Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetLifecycleHookEventPatch
Public Shared Function VirtualMachineScaleSetLifecycleHookEventPatch (Optional eventType As Nullable(Of VmScaleSetLifecycleHookEventType) = Nothing, Optional waitUntil As String = Nothing, Optional maxWaitUntil As String = Nothing, Optional timeCreated As String = Nothing, Optional defaultAction As Nullable(Of LifecycleHookAction) = Nothing, Optional targetResources As IEnumerable(Of VirtualMachineScaleSetLifecycleHookEventTarget) = Nothing, Optional additionalContextPriority As String = Nothing, Optional state As Nullable(Of VmScaleSetLifecycleHookEventState) = Nothing) As VirtualMachineScaleSetLifecycleHookEventPatch

Parameters

eventType
Nullable<VmScaleSetLifecycleHookEventType>

Defines the type or scenario for sending a virtual machine scale set lifecycle hook event to the customer.

waitUntil
String

Specifies the exact UTC timestamp in ISO 8601 format till which the event would remain in the current lifecycle state waiting for an action from the customer. Beyond this timestamp, the platform will apply the defaultAction for the event.

maxWaitUntil
String

Specifies the exact UTC timestamp in ISO 8601 format till when the customer can delay the lifecycle hook event. The customer will not be allowed to delay the event to a timestamp beyond this.

timeCreated
String

The UTC timestamp in ISO 8601 format at which the platform creates the virtual machine scale set lifecycle hook event entity.

defaultAction
Nullable<LifecycleHookAction>

Specify the action that will be applied on the a target resource in the virtual machine scale set lifecycle hook event if the platform does not get a response from the customer for the target resource before waitUntil.

targetResources
IEnumerable<VirtualMachineScaleSetLifecycleHookEventTarget>

List of target resources which are getting processed in the virtual machine scale set lifecycle hook event.

additionalContextPriority
String

Additional key-value pairs set on the lifecycle hook event that gives customer some useful context/data. The keys in this dictionary are specific to the lifecycle hook type. Different lifecycle hook events can have different sets of keys in the additional context depending on the lifecycle hook type. For example, for a lifecycle hook event with UpgradeAutoOSScheduling type, the additional context can contain the key "priority" that helps customer identify the priority of the Auto OS Upgrade operation triggered on the virtual machine scale set.

state
Nullable<VmScaleSetLifecycleHookEventState>

Specifies the state of the virtual machine scale set lifecycle hook event.

Returns

A new VirtualMachineScaleSetLifecycleHookEventPatch instance for mocking.

Applies to