Condividi tramite


LabServicesSchedulePatch Class

Definition

Schedule for automatically turning virtual machines in a lab on and off at specified times. Used for updates.

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

Constructors

LabServicesSchedulePatch()

Initializes a new instance of LabServicesSchedulePatch.

Properties

Notes

Notes for this schedule.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

RecurrencePattern

The recurrence pattern of the scheduled actions.

StartOn

When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.

StopOn

When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.

TimeZoneId

The IANA timezone id for the schedule.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LabServicesSchedulePatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<LabServicesSchedulePatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LabServicesSchedulePatch>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LabServicesSchedulePatch>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<LabServicesSchedulePatch>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to