LifecycleHook Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a lifecycle hook.
public class LifecycleHook : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.LifecycleHook>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.LifecycleHook>
type LifecycleHook = class
interface IJsonModel<LifecycleHook>
interface IPersistableModel<LifecycleHook>
Public Class LifecycleHook
Implements IJsonModel(Of LifecycleHook), IPersistableModel(Of LifecycleHook)
- Inheritance
-
LifecycleHook
- Implements
Constructors
| Name | Description |
|---|---|
| LifecycleHook() |
Initializes a new instance of LifecycleHook. |
Properties
| Name | Description |
|---|---|
| DefaultAction |
Specifies the action that will be applied to a target resource in the virtual machine scale set lifecycle hook event if the platform does not receive a response from the customer for the target resource before waitUntil. |
| VmScaleSetLifecycleHookEventType |
Specifies the type of the lifecycle hook. |
| WaitDuration |
Specifies the time duration a virtual machine scale set lifecycle hook event sent to the customer waits for a response from the customer. It should be in ISO 8601 format. |
Methods
| Name | Description |
|---|---|
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<LifecycleHook>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<LifecycleHook>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<LifecycleHook>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<LifecycleHook>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<LifecycleHook>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |