ResourceProvisionPayload Class

Definition

Resource creation data model.

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

Constructors

Name Description
ResourceProvisionPayload(Int32)

Initializes a new instance of ResourceProvisionPayload.

Properties

Name Description
ResourceCount

Number of VMs to be created.

ResourcePrefix

if resourceOverrides doesn't contain "name", service will create name based of prefix and ResourceCount e.g. resourceprefix-0,resourceprefix-1..

VirtualMachineBaseProfile

Virtual machine profile object that contains VM properties that are common across all VMs in this batch (if you want to create 100 VMs in this request, and they all have same vmSize, then include vmSize in baseProfile).

VirtualMachineOverrides

Virtual machine profile array that contains VM properties that needs to be overridden for each VM in the batch (if you want to create 100 VMs, they all need a distinct computerName property, you pass computerNames for each VM in batch in this array), service will merge baseProfile with VM specific overrides and create a merged VMProfile.

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<ResourceProvisionPayload>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ResourceProvisionPayload>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ResourceProvisionPayload>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResourceProvisionPayload>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ResourceProvisionPayload>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to