Dela via


AsyncOperationStatus Class

Definition

The current status of an async operation.

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

Properties

EndOn

The end time of the operation.

Error

If present, details of the operation error.

Id

Fully qualified ID for the async operation.

Name

Name of the async operation.

PercentComplete

Percentage of the operation that is complete.

Properties

Properties returned by the resource provider on a successful operation

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" }.

ResourceId

Fully qualified ID for the resource that this async operation status relates to.

StartOn

The start time of the operation.

Status

The operation status.

Explicit Interface Implementations

IJsonModel<AsyncOperationStatus>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AsyncOperationStatus>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AsyncOperationStatus>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AsyncOperationStatus>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AsyncOperationStatus>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to