Device Class

Definition

An device resource belonging to a device group resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceTypeConverter))]
public class Device : Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice, Microsoft.Azure.PowerShell.Cmdlets.Sphere.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.DeviceTypeConverter))>]
type Device = class
    interface IDevice
    interface IJsonSerializable
    interface IProxyResource
    interface IResource
    interface IValidates
Public Class Device
Implements IDevice, IValidates
Inheritance
Device
Attributes
Implements

Constructors

Name Description
Device()

Creates an new Device instance.

Properties

Name Description
ChipSku

SKU of the chip

DeviceId

Device ID

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

LastAvailableOSVersion

OS version available for installation when update requested

LastInstalledOSVersion

OS version running on device when update requested

LastOSUpdateUtc

Time when update requested and new OS version available

LastUpdateRequestUtc

Time when update was last requested

Name

The name of the resource

ProvisioningState

The status of the last operation.

ResourceGroupName

Gets the resource group name

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Device.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Device.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Sphere.Models.IDevice.

FromJsonString(String)

Creates a new instance of Device, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Device into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to