Language

ImageTemplateErrorHandling Class

Definition

Error handling options upon a build failure.

public class ImageTemplateErrorHandling : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ImageBuilder.Models.ImageTemplateErrorHandling>
type ImageTemplateErrorHandling = class
    interface IJsonModel<ImageTemplateErrorHandling>
    interface IPersistableModel<ImageTemplateErrorHandling>
Public Class ImageTemplateErrorHandling
Implements IJsonModel(Of ImageTemplateErrorHandling), IPersistableModel(Of ImageTemplateErrorHandling)
Inheritance
ImageTemplateErrorHandling
Implements

Constructors

Name Description
ImageTemplateErrorHandling()

Initializes a new instance of ImageTemplateErrorHandling.

Properties

Name Description
OnCustomizerError

If there is a customizer error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a customizer error and this field is set to 'abort', the build VM will be preserved.

OnValidationError

If there is a validation error and this field is set to 'cleanup', the build VM and associated network resources will be cleaned up. This is the default behavior. If there is a validation error and this field is set to 'abort', the build VM will be preserved.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ImageTemplateErrorHandling>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ImageTemplateErrorHandling>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ImageTemplateErrorHandling>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ImageTemplateErrorHandling>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ImageTemplateErrorHandling>.Write(ModelReaderWriterOptions)

Applies to