次の方法で共有


AssetUpdateProperties Class

Definition

The updatable properties of the Asset.

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

Constructors

AssetUpdateProperties()

Initializes a new instance of AssetUpdateProperties.

Properties

Attributes

A set of key-value pairs that contain custom attributes set by the customer.

To assign an object to the value of 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" }.

Datasets

Array of datasets that are part of the asset. Each dataset describes the data points that make up the set.

DefaultDatasetsConfiguration

Stringified JSON that contains connector-specific default configuration for all datasets. Each dataset can have its own configuration that overrides the default settings here.

DefaultEventsConfiguration

Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.

DefaultTopic

Object that describes the default topic information for the asset.

Description

Human-readable description of the asset.

DisplayName

Human-readable display name.

DocumentationUri

Reference to the documentation.

Events

Array of events that are part of the asset. Each event can have per-event configuration.

HardwareRevision

Revision number of the hardware.

IsEnabled

Enabled/Disabled status of the asset.

Manufacturer

Asset manufacturer name.

ManufacturerUri

Asset manufacturer URI.

Model

Asset model name.

ProductCode

Asset product code.

SerialNumber

Asset serial number.

SoftwareRevision

Revision number of the software.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AssetUpdateProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AssetUpdateProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AssetUpdateProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AssetUpdateProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AssetUpdateProperties>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to