Megosztás a következőn keresztül:


PurchasePlan Class

Definition

Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.

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

Constructors

PurchasePlan(String, String, String)

Initializes a new instance of PurchasePlan.

Properties

Name

The plan ID.

Product

Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.

Publisher

The publisher ID.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<PurchasePlan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PurchasePlan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PurchasePlan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PurchasePlan>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PurchasePlan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to