Share via


DeviceRegistryNamespaceAssetProperties Class

Definition

Defines the asset properties.

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

Constructors

Name Description
DeviceRegistryNamespaceAssetProperties(DeviceRef)

Initializes a new instance of DeviceRegistryNamespaceAssetProperties.

Properties

Name Description
AssetTypeRefs

URIs or type definition IDs.

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.

DefaultDatasetsDestinations

Default destinations for a dataset.

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.

DefaultEventsDestinations

Default destinations for an event.

DefaultManagementGroupsConfiguration

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

DefaultStreamsConfiguration

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

DefaultStreamsDestinations

Default destinations for a stream.

Description

Human-readable description of the asset.

DeviceRef

Reference to the device that provides data for this asset. Must provide device name & endpoint on the device to use.

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

Asset documentation reference.

Enabled

Enabled/disabled status of the asset.

EventGroups

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

ExternalAssetId

Asset ID provided by the customer.

HardwareRevision

Asset hardware revision number.

LastTransitionOn

A timestamp (in UTC) that is updated each time the resource is modified.

ManagementGroups

Array of management groups that are part of the asset. Each management group can have a per-group configuration.

Manufacturer

Asset manufacturer.

ManufacturerUri

Asset manufacturer URI.

Model

Asset model.

ProductCode

Asset product code.

ProvisioningState

Provisioning state of the resource.

SerialNumber

Asset serial number.

SoftwareRevision

Asset software revision number.

Status

Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.

Streams

Array of streams that are part of the asset. Each stream can have a per-stream configuration.

Uuid

Globally unique, immutable, non-reusable ID.

Version

An integer that is incremented each time the resource is modified.

Methods

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

Explicit Interface Implementations

Name Description
IJsonModel<DeviceRegistryNamespaceAssetProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<DeviceRegistryNamespaceAssetProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<DeviceRegistryNamespaceAssetProperties>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<DeviceRegistryNamespaceAssetProperties>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<DeviceRegistryNamespaceAssetProperties>.Write(ModelReaderWriterOptions)

Applies to