Partilhar via


ImageAlternativeOption Class

Definition

Describes the alternative option specified by the Publisher for this image when this image is deprecated.

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

Constructors

ImageAlternativeOption()

Initializes a new instance of ImageAlternativeOption.

Properties

AlternativeType

Describes the type of the alternative option.

Value

Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ImageAlternativeOption>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ImageAlternativeOption>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ImageAlternativeOption>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImageAlternativeOption>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ImageAlternativeOption>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to