你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AssetProperties Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the asset properties.
public class AssetProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.DeviceRegistry.Models.AssetProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.DeviceRegistry.Models.AssetProperties>
type AssetProperties = class
interface IJsonModel<AssetProperties>
interface IPersistableModel<AssetProperties>
Public Class AssetProperties
Implements IJsonModel(Of AssetProperties), IPersistableModel(Of AssetProperties)
- Inheritance
-
AssetProperties
- Implements
Constructors
AssetProperties(String) |
Initializes a new instance of AssetProperties. |
Properties
AssetEndpointProfileRef |
A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must provide asset endpoint profile name. |
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:
|
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. |
DiscoveredAssetRefs |
Reference to a list of discovered assets. Populated only if the asset has been created from discovery flow. Discovered asset names must be provided. |
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. |
ExternalAssetId |
Asset id provided by the customer. |
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. |
ProvisioningState |
Provisioning state of the resource. |
SerialNumber |
Asset serial number. |
SoftwareRevision |
Revision number of the software. |
Status |
Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources. |
Uuid |
Globally unique, immutable, non-reusable id. |
Version |
An integer that is incremented each time the resource is modified. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<AssetProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<AssetProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<AssetProperties>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<AssetProperties>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<AssetProperties>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |